diff --git a/README.md b/README.md index e980244dc..90251e5d8 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,10 @@ jobs: deploy: name: Upload to Amazon S3 runs-on: ubuntu-latest - + # These permissions are needed to interact with GitHub's OIDC Token endpoint. + permissions: + id-token: write + contents: read steps: - name: Checkout uses: actions/checkout@v2 @@ -136,24 +139,28 @@ Resources: Role: Type: AWS::IAM::Role Properties: - RoleName: ExampleGithubRole AssumeRolePolicyDocument: Statement: - Effect: Allow Action: sts:AssumeRoleWithWebIdentity Principal: - Federated: !Ref GithubOidc + Federated: !If + - CreateOIDCProvider + - !Ref GithubOidc + - !Ref OIDCProviderArn Condition: StringLike: - vstoken.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:* + token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:* GithubOidc: Type: AWS::IAM::OIDCProvider Condition: CreateOIDCProvider Properties: - Url: https://vstoken.actions.githubusercontent.com - ClientIdList: [sigstore] - ThumbprintList: [a031c46782e6e6c662c2c87c76da9aa62ccabd8e] + Url: https://token.actions.githubusercontent.com + ClientIdList: + - sts.amazonaws.com + ThumbprintList: + - a031c46782e6e6c662c2c87c76da9aa62ccabd8e Outputs: Role: diff --git a/dist/index.js b/dist/index.js index 5866b55ae..3760f88d1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -95,13 +95,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-11-19","endpoin /***/ }), -/***/ 53: -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = __webpack_require__(9352); - -/***/ }), - /***/ 72: /***/ (function(module) { @@ -175,7 +168,6 @@ const aws = __webpack_require__(9350); const assert = __webpack_require__(2357); const fs = __webpack_require__(5747); const path = __webpack_require__(5622); -const axios = __webpack_require__(53); // The max time that a GitHub action is allowed to run is 6 hours. // That seems like a reasonable default to use if no role duration is defined. @@ -357,21 +349,6 @@ async function exportAccountId(maskAccountId, region) { return accountId; } -async function getWebIdentityToken() { - const isDefined = i => !!i; - const {ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN} = process.env; - - assert( - [ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN].every(isDefined), - 'Missing required environment value. Are you running in GitHub Actions?' - ); - const { data } = await axios.get(`${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=sigstore`, { - headers: {"Authorization": `bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}`} - } - ); - return data.value; -} - function loadCredentials() { // Force the SDK to re-resolve credentials with the default provider chain. // @@ -475,7 +452,7 @@ async function run() { let sourceAccountId; let webIdentityToken; if(useGitHubOIDCProvider()) { - webIdentityToken = await getWebIdentityToken(); + webIdentityToken = await core.getIDToken('sts.amazonaws.com'); roleDurationSeconds = core.getInput('role-duration-seconds', {required: false}) || DEFAULT_ROLE_DURATION_FOR_OIDC_ROLES; // We don't validate the credentials here because we don't have them yet when using OIDC. } else { @@ -503,13 +480,11 @@ async function run() { webIdentityToken }); exportCredentials(roleCredentials); - // I don't know a good workaround for this. I'm not sure why we're validating the credentials - // so frequently inside the action. The approach I've taken here is that if the GH OIDC token - // isn't set, then we're in a self-hosted runner and we need to validate the credentials for - // some mysterious reason that wasn't explained by whoever wrote this aciton. - // - // It's gross but it works so ... ¯\_(ツ)_/¯ - if (!process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN) { + // We need to validate the credentials in 2 of our use-cases + // First: self-hosted runners. If the GITHUB_ACTIONS environment variable + // is set to `true` then we are NOT in a self-hosted runner. + // Second: Customer provided credentials manually (IAM User keys stored in GH Secrets) + if (!process.env.GITHUB_ACTIONS || accessKeyId) { await validateCredentials(roleCredentials.accessKeyId); } await exportAccountId(maskAccountId, region); @@ -2140,57 +2115,6 @@ var EndpointMode = { module.exports = EndpointMode; -/***/ }), - -/***/ 392: -/***/ (function(module) { - -"use strict"; - - -/** - * Update an Error with the specified config, error code, and response. - * - * @param {Error} error The error to update. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The error. - */ -module.exports = function enhanceError(error, config, code, request, response) { - error.config = config; - if (code) { - error.code = code; - } - - error.request = request; - error.response = response; - error.isAxiosError = true; - - error.toJSON = function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: this.config, - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - }; - return error; -}; - - /***/ }), /***/ 395: @@ -2392,26 +2316,6 @@ Object.defineProperty(apiLoader.services['rdsdataservice'], '2018-08-01', { module.exports = AWS.RDSDataService; -/***/ }), - -/***/ 411: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -module.exports = function normalizeHeaderName(headers, normalizedName) { - utils.forEach(headers, function processHeader(value, name) { - if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { - headers[normalizedName] = value; - delete headers[name]; - } - }); -}; - - /***/ }), /***/ 422: @@ -4791,22 +4695,6 @@ Object.defineProperty(apiLoader.services['securityhub'], '2018-10-26', { module.exports = AWS.SecurityHub; -/***/ }), - -/***/ 1364: -/***/ (function(module) { - -"use strict"; - -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; - - /***/ }), /***/ 1371: @@ -6908,25 +6796,6 @@ module.exports = bytesToUuid; module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-04-19","endpointPrefix":"codestar","jsonVersion":"1.1","protocol":"json","serviceAbbreviation":"CodeStar","serviceFullName":"AWS CodeStar","serviceId":"CodeStar","signatureVersion":"v4","targetPrefix":"CodeStar_20170419","uid":"codestar-2017-04-19"},"operations":{"AssociateTeamMember":{"input":{"type":"structure","required":["projectId","userArn","projectRole"],"members":{"projectId":{},"clientRequestToken":{},"userArn":{},"projectRole":{},"remoteAccessAllowed":{"type":"boolean"}}},"output":{"type":"structure","members":{"clientRequestToken":{}}}},"CreateProject":{"input":{"type":"structure","required":["name","id"],"members":{"name":{"shape":"S9"},"id":{},"description":{"shape":"Sa"},"clientRequestToken":{},"sourceCode":{"type":"list","member":{"type":"structure","required":["source","destination"],"members":{"source":{"type":"structure","required":["s3"],"members":{"s3":{"shape":"Se"}}},"destination":{"type":"structure","members":{"codeCommit":{"type":"structure","required":["name"],"members":{"name":{}}},"gitHub":{"type":"structure","required":["name","type","owner","privateRepository","issuesEnabled","token"],"members":{"name":{},"description":{},"type":{},"owner":{},"privateRepository":{"type":"boolean"},"issuesEnabled":{"type":"boolean"},"token":{"type":"string","sensitive":true}}}}}}}},"toolchain":{"type":"structure","required":["source"],"members":{"source":{"type":"structure","required":["s3"],"members":{"s3":{"shape":"Se"}}},"roleArn":{},"stackParameters":{"type":"map","key":{},"value":{"type":"string","sensitive":true}}}},"tags":{"shape":"Sx"}}},"output":{"type":"structure","required":["id","arn"],"members":{"id":{},"arn":{},"clientRequestToken":{},"projectTemplateId":{}}}},"CreateUserProfile":{"input":{"type":"structure","required":["userArn","displayName","emailAddress"],"members":{"userArn":{},"displayName":{"shape":"S14"},"emailAddress":{"shape":"S15"},"sshPublicKey":{}}},"output":{"type":"structure","required":["userArn"],"members":{"userArn":{},"displayName":{"shape":"S14"},"emailAddress":{"shape":"S15"},"sshPublicKey":{},"createdTimestamp":{"type":"timestamp"},"lastModifiedTimestamp":{"type":"timestamp"}}}},"DeleteProject":{"input":{"type":"structure","required":["id"],"members":{"id":{},"clientRequestToken":{},"deleteStack":{"type":"boolean"}}},"output":{"type":"structure","members":{"stackId":{},"projectArn":{}}}},"DeleteUserProfile":{"input":{"type":"structure","required":["userArn"],"members":{"userArn":{}}},"output":{"type":"structure","required":["userArn"],"members":{"userArn":{}}}},"DescribeProject":{"input":{"type":"structure","required":["id"],"members":{"id":{}}},"output":{"type":"structure","members":{"name":{"shape":"S9"},"id":{},"arn":{},"description":{"shape":"Sa"},"clientRequestToken":{},"createdTimeStamp":{"type":"timestamp"},"stackId":{},"projectTemplateId":{},"status":{"type":"structure","required":["state"],"members":{"state":{},"reason":{}}}}}},"DescribeUserProfile":{"input":{"type":"structure","required":["userArn"],"members":{"userArn":{}}},"output":{"type":"structure","required":["userArn","createdTimestamp","lastModifiedTimestamp"],"members":{"userArn":{},"displayName":{"shape":"S14"},"emailAddress":{"shape":"S15"},"sshPublicKey":{},"createdTimestamp":{"type":"timestamp"},"lastModifiedTimestamp":{"type":"timestamp"}}}},"DisassociateTeamMember":{"input":{"type":"structure","required":["projectId","userArn"],"members":{"projectId":{},"userArn":{}}},"output":{"type":"structure","members":{}}},"ListProjects":{"input":{"type":"structure","members":{"nextToken":{},"maxResults":{"type":"integer"}}},"output":{"type":"structure","required":["projects"],"members":{"projects":{"type":"list","member":{"type":"structure","members":{"projectId":{},"projectArn":{}}}},"nextToken":{}}}},"ListResources":{"input":{"type":"structure","required":["projectId"],"members":{"projectId":{},"nextToken":{},"maxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"resources":{"type":"list","member":{"type":"structure","required":["id"],"members":{"id":{}}}},"nextToken":{}}}},"ListTagsForProject":{"input":{"type":"structure","required":["id"],"members":{"id":{},"nextToken":{},"maxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"tags":{"shape":"Sx"},"nextToken":{}}}},"ListTeamMembers":{"input":{"type":"structure","required":["projectId"],"members":{"projectId":{},"nextToken":{},"maxResults":{"type":"integer"}}},"output":{"type":"structure","required":["teamMembers"],"members":{"teamMembers":{"type":"list","member":{"type":"structure","required":["userArn","projectRole"],"members":{"userArn":{},"projectRole":{},"remoteAccessAllowed":{"type":"boolean"}}}},"nextToken":{}}}},"ListUserProfiles":{"input":{"type":"structure","members":{"nextToken":{},"maxResults":{"type":"integer"}}},"output":{"type":"structure","required":["userProfiles"],"members":{"userProfiles":{"type":"list","member":{"type":"structure","members":{"userArn":{},"displayName":{"shape":"S14"},"emailAddress":{"shape":"S15"},"sshPublicKey":{}}}},"nextToken":{}}}},"TagProject":{"input":{"type":"structure","required":["id","tags"],"members":{"id":{},"tags":{"shape":"Sx"}}},"output":{"type":"structure","members":{"tags":{"shape":"Sx"}}}},"UntagProject":{"input":{"type":"structure","required":["id","tags"],"members":{"id":{},"tags":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateProject":{"input":{"type":"structure","required":["id"],"members":{"id":{},"name":{"shape":"S9"},"description":{"shape":"Sa"}}},"output":{"type":"structure","members":{}}},"UpdateTeamMember":{"input":{"type":"structure","required":["projectId","userArn"],"members":{"projectId":{},"userArn":{},"projectRole":{},"remoteAccessAllowed":{"type":"boolean"}}},"output":{"type":"structure","members":{"userArn":{},"projectRole":{},"remoteAccessAllowed":{"type":"boolean"}}}},"UpdateUserProfile":{"input":{"type":"structure","required":["userArn"],"members":{"userArn":{},"displayName":{"shape":"S14"},"emailAddress":{"shape":"S15"},"sshPublicKey":{}}},"output":{"type":"structure","required":["userArn"],"members":{"userArn":{},"displayName":{"shape":"S14"},"emailAddress":{"shape":"S15"},"sshPublicKey":{},"createdTimestamp":{"type":"timestamp"},"lastModifiedTimestamp":{"type":"timestamp"}}}}},"shapes":{"S9":{"type":"string","sensitive":true},"Sa":{"type":"string","sensitive":true},"Se":{"type":"structure","members":{"bucketName":{},"bucketKey":{}}},"Sx":{"type":"map","key":{},"value":{}},"S14":{"type":"string","sensitive":true},"S15":{"type":"string","sensitive":true}}}; -/***/ }), - -/***/ 1727: -/***/ (function(module) { - -"use strict"; - - -module.exports = function bind(fn, thisArg) { - return function wrap() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - return fn.apply(thisArg, args); - }; -}; - - /***/ }), /***/ 1733: @@ -7394,113 +7263,6 @@ module.exports = { }; -/***/ }), - -/***/ 1825: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * @returns {Object} New object resulting from merging config2 to config1 - */ -module.exports = function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - var config = {}; - - function getMergedValue(target, source) { - if (utils.isPlainObject(target) && utils.isPlainObject(source)) { - return utils.merge(target, source); - } else if (utils.isPlainObject(source)) { - return utils.merge({}, source); - } else if (utils.isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(prop) { - if (!utils.isUndefined(config2[prop])) { - return getMergedValue(config1[prop], config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - return getMergedValue(undefined, config1[prop]); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - return getMergedValue(undefined, config2[prop]); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - return getMergedValue(undefined, config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - return getMergedValue(undefined, config1[prop]); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(prop) { - if (prop in config2) { - return getMergedValue(config1[prop], config2[prop]); - } else if (prop in config1) { - return getMergedValue(undefined, config1[prop]); - } - } - - var mergeMap = { - 'url': valueFromConfig2, - 'method': valueFromConfig2, - 'data': valueFromConfig2, - 'baseURL': defaultToConfig2, - 'transformRequest': defaultToConfig2, - 'transformResponse': defaultToConfig2, - 'paramsSerializer': defaultToConfig2, - 'timeout': defaultToConfig2, - 'timeoutMessage': defaultToConfig2, - 'withCredentials': defaultToConfig2, - 'adapter': defaultToConfig2, - 'responseType': defaultToConfig2, - 'xsrfCookieName': defaultToConfig2, - 'xsrfHeaderName': defaultToConfig2, - 'onUploadProgress': defaultToConfig2, - 'onDownloadProgress': defaultToConfig2, - 'decompress': defaultToConfig2, - 'maxContentLength': defaultToConfig2, - 'maxBodyLength': defaultToConfig2, - 'transport': defaultToConfig2, - 'httpAgent': defaultToConfig2, - 'httpsAgent': defaultToConfig2, - 'cancelToken': defaultToConfig2, - 'socketPath': defaultToConfig2, - 'responseEncoding': defaultToConfig2, - 'validateStatus': mergeDirectKeys - }; - - utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) { - var merge = mergeMap[prop] || mergeDeepProperties; - var configValue = merge(prop); - (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); - }); - - return config; -}; - - /***/ }), /***/ 1836: @@ -7547,162 +7309,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2019-12-02","endpoin module.exports = {"version":"2.0","metadata":{"apiVersion":"2019-12-02","endpointPrefix":"iotsitewise","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"AWS IoT SiteWise","serviceId":"IoTSiteWise","signatureVersion":"v4","signingName":"iotsitewise","uid":"iotsitewise-2019-12-02"},"operations":{"AssociateAssets":{"http":{"requestUri":"/assets/{assetId}/associate"},"input":{"type":"structure","required":["assetId","hierarchyId","childAssetId"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"hierarchyId":{},"childAssetId":{},"clientToken":{"idempotencyToken":true}}},"endpoint":{"hostPrefix":"api."}},"BatchAssociateProjectAssets":{"http":{"requestUri":"/projects/{projectId}/assets/associate","responseCode":200},"input":{"type":"structure","required":["projectId","assetIds"],"members":{"projectId":{"location":"uri","locationName":"projectId"},"assetIds":{"shape":"S5"},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"errors":{"type":"list","member":{"shape":"S8"}}}},"endpoint":{"hostPrefix":"monitor."}},"BatchDisassociateProjectAssets":{"http":{"requestUri":"/projects/{projectId}/assets/disassociate","responseCode":200},"input":{"type":"structure","required":["projectId","assetIds"],"members":{"projectId":{"location":"uri","locationName":"projectId"},"assetIds":{"shape":"S5"},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"errors":{"type":"list","member":{"shape":"S8"}}}},"endpoint":{"hostPrefix":"monitor."}},"BatchPutAssetPropertyValue":{"http":{"requestUri":"/properties"},"input":{"type":"structure","required":["entries"],"members":{"entries":{"type":"list","member":{"type":"structure","required":["entryId","propertyValues"],"members":{"entryId":{},"assetId":{},"propertyId":{},"propertyAlias":{},"propertyValues":{"type":"list","member":{"shape":"Sk"}}}}}}},"output":{"type":"structure","required":["errorEntries"],"members":{"errorEntries":{"type":"list","member":{"type":"structure","required":["entryId","errors"],"members":{"entryId":{},"errors":{"type":"list","member":{"type":"structure","required":["errorCode","errorMessage","timestamps"],"members":{"errorCode":{},"errorMessage":{},"timestamps":{"type":"list","member":{"shape":"Sq"}}}}}}}}}},"endpoint":{"hostPrefix":"data."}},"CreateAccessPolicy":{"http":{"requestUri":"/access-policies","responseCode":201},"input":{"type":"structure","required":["accessPolicyIdentity","accessPolicyResource","accessPolicyPermission"],"members":{"accessPolicyIdentity":{"shape":"S13"},"accessPolicyResource":{"shape":"S1a"},"accessPolicyPermission":{},"clientToken":{"idempotencyToken":true},"tags":{"shape":"S1e"}}},"output":{"type":"structure","required":["accessPolicyId","accessPolicyArn"],"members":{"accessPolicyId":{},"accessPolicyArn":{}}},"endpoint":{"hostPrefix":"monitor."}},"CreateAsset":{"http":{"requestUri":"/assets","responseCode":202},"input":{"type":"structure","required":["assetName","assetModelId"],"members":{"assetName":{},"assetModelId":{},"clientToken":{"idempotencyToken":true},"tags":{"shape":"S1e"}}},"output":{"type":"structure","required":["assetId","assetArn","assetStatus"],"members":{"assetId":{},"assetArn":{},"assetStatus":{"shape":"S1l"}}},"endpoint":{"hostPrefix":"api."}},"CreateAssetModel":{"http":{"requestUri":"/asset-models","responseCode":202},"input":{"type":"structure","required":["assetModelName"],"members":{"assetModelName":{},"assetModelDescription":{},"assetModelProperties":{"shape":"S1v"},"assetModelHierarchies":{"type":"list","member":{"type":"structure","required":["name","childAssetModelId"],"members":{"name":{},"childAssetModelId":{}}}},"assetModelCompositeModels":{"type":"list","member":{"type":"structure","required":["name","type"],"members":{"name":{},"description":{},"type":{},"properties":{"shape":"S1v"}}}},"clientToken":{"idempotencyToken":true},"tags":{"shape":"S1e"}}},"output":{"type":"structure","required":["assetModelId","assetModelArn","assetModelStatus"],"members":{"assetModelId":{},"assetModelArn":{},"assetModelStatus":{"shape":"S2q"}}},"endpoint":{"hostPrefix":"api."}},"CreateDashboard":{"http":{"requestUri":"/dashboards","responseCode":201},"input":{"type":"structure","required":["projectId","dashboardName","dashboardDefinition"],"members":{"projectId":{},"dashboardName":{},"dashboardDescription":{},"dashboardDefinition":{},"clientToken":{"idempotencyToken":true},"tags":{"shape":"S1e"}}},"output":{"type":"structure","required":["dashboardId","dashboardArn"],"members":{"dashboardId":{},"dashboardArn":{}}},"endpoint":{"hostPrefix":"monitor."}},"CreateGateway":{"http":{"requestUri":"/20200301/gateways","responseCode":201},"input":{"type":"structure","required":["gatewayName","gatewayPlatform"],"members":{"gatewayName":{},"gatewayPlatform":{"shape":"S2w"},"tags":{"shape":"S1e"}}},"output":{"type":"structure","required":["gatewayId","gatewayArn"],"members":{"gatewayId":{},"gatewayArn":{}}},"endpoint":{"hostPrefix":"api."}},"CreatePortal":{"http":{"requestUri":"/portals","responseCode":202},"input":{"type":"structure","required":["portalName","portalContactEmail","roleArn"],"members":{"portalName":{},"portalDescription":{},"portalContactEmail":{},"clientToken":{"idempotencyToken":true},"portalLogoImageFile":{"shape":"S33"},"roleArn":{},"tags":{"shape":"S1e"},"portalAuthMode":{},"notificationSenderEmail":{},"alarms":{"shape":"S37"}}},"output":{"type":"structure","required":["portalId","portalArn","portalStartUrl","portalStatus","ssoApplicationId"],"members":{"portalId":{},"portalArn":{},"portalStartUrl":{},"portalStatus":{"shape":"S3a"},"ssoApplicationId":{}}},"endpoint":{"hostPrefix":"monitor."}},"CreateProject":{"http":{"requestUri":"/projects","responseCode":201},"input":{"type":"structure","required":["portalId","projectName"],"members":{"portalId":{},"projectName":{},"projectDescription":{},"clientToken":{"idempotencyToken":true},"tags":{"shape":"S1e"}}},"output":{"type":"structure","required":["projectId","projectArn"],"members":{"projectId":{},"projectArn":{}}},"endpoint":{"hostPrefix":"monitor."}},"DeleteAccessPolicy":{"http":{"method":"DELETE","requestUri":"/access-policies/{accessPolicyId}","responseCode":204},"input":{"type":"structure","required":["accessPolicyId"],"members":{"accessPolicyId":{"location":"uri","locationName":"accessPolicyId"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"monitor."}},"DeleteAsset":{"http":{"method":"DELETE","requestUri":"/assets/{assetId}","responseCode":202},"input":{"type":"structure","required":["assetId"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"output":{"type":"structure","required":["assetStatus"],"members":{"assetStatus":{"shape":"S1l"}}},"endpoint":{"hostPrefix":"api."}},"DeleteAssetModel":{"http":{"method":"DELETE","requestUri":"/asset-models/{assetModelId}","responseCode":202},"input":{"type":"structure","required":["assetModelId"],"members":{"assetModelId":{"location":"uri","locationName":"assetModelId"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"output":{"type":"structure","required":["assetModelStatus"],"members":{"assetModelStatus":{"shape":"S2q"}}},"endpoint":{"hostPrefix":"api."}},"DeleteDashboard":{"http":{"method":"DELETE","requestUri":"/dashboards/{dashboardId}","responseCode":204},"input":{"type":"structure","required":["dashboardId"],"members":{"dashboardId":{"location":"uri","locationName":"dashboardId"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"monitor."}},"DeleteGateway":{"http":{"method":"DELETE","requestUri":"/20200301/gateways/{gatewayId}"},"input":{"type":"structure","required":["gatewayId"],"members":{"gatewayId":{"location":"uri","locationName":"gatewayId"}}},"endpoint":{"hostPrefix":"api."}},"DeletePortal":{"http":{"method":"DELETE","requestUri":"/portals/{portalId}","responseCode":202},"input":{"type":"structure","required":["portalId"],"members":{"portalId":{"location":"uri","locationName":"portalId"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"output":{"type":"structure","required":["portalStatus"],"members":{"portalStatus":{"shape":"S3a"}}},"endpoint":{"hostPrefix":"monitor."}},"DeleteProject":{"http":{"method":"DELETE","requestUri":"/projects/{projectId}","responseCode":204},"input":{"type":"structure","required":["projectId"],"members":{"projectId":{"location":"uri","locationName":"projectId"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"monitor."}},"DescribeAccessPolicy":{"http":{"method":"GET","requestUri":"/access-policies/{accessPolicyId}","responseCode":200},"input":{"type":"structure","required":["accessPolicyId"],"members":{"accessPolicyId":{"location":"uri","locationName":"accessPolicyId"}}},"output":{"type":"structure","required":["accessPolicyId","accessPolicyArn","accessPolicyIdentity","accessPolicyResource","accessPolicyPermission","accessPolicyCreationDate","accessPolicyLastUpdateDate"],"members":{"accessPolicyId":{},"accessPolicyArn":{},"accessPolicyIdentity":{"shape":"S13"},"accessPolicyResource":{"shape":"S1a"},"accessPolicyPermission":{},"accessPolicyCreationDate":{"type":"timestamp"},"accessPolicyLastUpdateDate":{"type":"timestamp"}}},"endpoint":{"hostPrefix":"monitor."}},"DescribeAsset":{"http":{"method":"GET","requestUri":"/assets/{assetId}"},"input":{"type":"structure","required":["assetId"],"members":{"assetId":{"location":"uri","locationName":"assetId"}}},"output":{"type":"structure","required":["assetId","assetArn","assetName","assetModelId","assetProperties","assetHierarchies","assetCreationDate","assetLastUpdateDate","assetStatus"],"members":{"assetId":{},"assetArn":{},"assetName":{},"assetModelId":{},"assetProperties":{"shape":"S40"},"assetHierarchies":{"shape":"S46"},"assetCompositeModels":{"type":"list","member":{"type":"structure","required":["name","type","properties"],"members":{"name":{},"description":{},"type":{},"properties":{"shape":"S40"}}}},"assetCreationDate":{"type":"timestamp"},"assetLastUpdateDate":{"type":"timestamp"},"assetStatus":{"shape":"S1l"}}},"endpoint":{"hostPrefix":"api."}},"DescribeAssetModel":{"http":{"method":"GET","requestUri":"/asset-models/{assetModelId}"},"input":{"type":"structure","required":["assetModelId"],"members":{"assetModelId":{"location":"uri","locationName":"assetModelId"}}},"output":{"type":"structure","required":["assetModelId","assetModelArn","assetModelName","assetModelDescription","assetModelProperties","assetModelHierarchies","assetModelCreationDate","assetModelLastUpdateDate","assetModelStatus"],"members":{"assetModelId":{},"assetModelArn":{},"assetModelName":{},"assetModelDescription":{},"assetModelProperties":{"shape":"S4c"},"assetModelHierarchies":{"shape":"S4e"},"assetModelCompositeModels":{"shape":"S4g"},"assetModelCreationDate":{"type":"timestamp"},"assetModelLastUpdateDate":{"type":"timestamp"},"assetModelStatus":{"shape":"S2q"}}},"endpoint":{"hostPrefix":"api."}},"DescribeAssetProperty":{"http":{"method":"GET","requestUri":"/assets/{assetId}/properties/{propertyId}"},"input":{"type":"structure","required":["assetId","propertyId"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"propertyId":{"location":"uri","locationName":"propertyId"}}},"output":{"type":"structure","required":["assetId","assetName","assetModelId"],"members":{"assetId":{},"assetName":{},"assetModelId":{},"assetProperty":{"shape":"S4k"},"compositeModel":{"type":"structure","required":["name","type","assetProperty"],"members":{"name":{},"type":{},"assetProperty":{"shape":"S4k"}}}}},"endpoint":{"hostPrefix":"api."}},"DescribeDashboard":{"http":{"method":"GET","requestUri":"/dashboards/{dashboardId}","responseCode":200},"input":{"type":"structure","required":["dashboardId"],"members":{"dashboardId":{"location":"uri","locationName":"dashboardId"}}},"output":{"type":"structure","required":["dashboardId","dashboardArn","dashboardName","projectId","dashboardDefinition","dashboardCreationDate","dashboardLastUpdateDate"],"members":{"dashboardId":{},"dashboardArn":{},"dashboardName":{},"projectId":{},"dashboardDescription":{},"dashboardDefinition":{},"dashboardCreationDate":{"type":"timestamp"},"dashboardLastUpdateDate":{"type":"timestamp"}}},"endpoint":{"hostPrefix":"monitor."}},"DescribeDefaultEncryptionConfiguration":{"http":{"method":"GET","requestUri":"/configuration/account/encryption"},"input":{"type":"structure","members":{}},"output":{"type":"structure","required":["encryptionType","configurationStatus"],"members":{"encryptionType":{},"kmsKeyArn":{},"configurationStatus":{"shape":"S4r"}}},"endpoint":{"hostPrefix":"api."}},"DescribeGateway":{"http":{"method":"GET","requestUri":"/20200301/gateways/{gatewayId}"},"input":{"type":"structure","required":["gatewayId"],"members":{"gatewayId":{"location":"uri","locationName":"gatewayId"}}},"output":{"type":"structure","required":["gatewayId","gatewayName","gatewayArn","gatewayCapabilitySummaries","creationDate","lastUpdateDate"],"members":{"gatewayId":{},"gatewayName":{},"gatewayArn":{},"gatewayPlatform":{"shape":"S2w"},"gatewayCapabilitySummaries":{"shape":"S4w"},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"}}},"endpoint":{"hostPrefix":"api."}},"DescribeGatewayCapabilityConfiguration":{"http":{"method":"GET","requestUri":"/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}"},"input":{"type":"structure","required":["gatewayId","capabilityNamespace"],"members":{"gatewayId":{"location":"uri","locationName":"gatewayId"},"capabilityNamespace":{"location":"uri","locationName":"capabilityNamespace"}}},"output":{"type":"structure","required":["gatewayId","capabilityNamespace","capabilityConfiguration","capabilitySyncStatus"],"members":{"gatewayId":{},"capabilityNamespace":{},"capabilityConfiguration":{},"capabilitySyncStatus":{}}},"endpoint":{"hostPrefix":"api."}},"DescribeLoggingOptions":{"http":{"method":"GET","requestUri":"/logging"},"input":{"type":"structure","members":{}},"output":{"type":"structure","required":["loggingOptions"],"members":{"loggingOptions":{"shape":"S55"}}},"endpoint":{"hostPrefix":"api."}},"DescribePortal":{"http":{"method":"GET","requestUri":"/portals/{portalId}","responseCode":200},"input":{"type":"structure","required":["portalId"],"members":{"portalId":{"location":"uri","locationName":"portalId"}}},"output":{"type":"structure","required":["portalId","portalArn","portalName","portalClientId","portalStartUrl","portalContactEmail","portalStatus","portalCreationDate","portalLastUpdateDate"],"members":{"portalId":{},"portalArn":{},"portalName":{},"portalDescription":{},"portalClientId":{},"portalStartUrl":{},"portalContactEmail":{},"portalStatus":{"shape":"S3a"},"portalCreationDate":{"type":"timestamp"},"portalLastUpdateDate":{"type":"timestamp"},"portalLogoImageLocation":{"type":"structure","required":["id","url"],"members":{"id":{},"url":{}}},"roleArn":{},"portalAuthMode":{},"notificationSenderEmail":{},"alarms":{"shape":"S37"}}},"endpoint":{"hostPrefix":"monitor."}},"DescribeProject":{"http":{"method":"GET","requestUri":"/projects/{projectId}","responseCode":200},"input":{"type":"structure","required":["projectId"],"members":{"projectId":{"location":"uri","locationName":"projectId"}}},"output":{"type":"structure","required":["projectId","projectArn","projectName","portalId","projectCreationDate","projectLastUpdateDate"],"members":{"projectId":{},"projectArn":{},"projectName":{},"portalId":{},"projectDescription":{},"projectCreationDate":{"type":"timestamp"},"projectLastUpdateDate":{"type":"timestamp"}}},"endpoint":{"hostPrefix":"monitor."}},"DescribeStorageConfiguration":{"http":{"method":"GET","requestUri":"/configuration/account/storage"},"input":{"type":"structure","members":{}},"output":{"type":"structure","required":["storageType","configurationStatus"],"members":{"storageType":{},"multiLayerStorage":{"shape":"S5g"},"configurationStatus":{"shape":"S4r"},"lastUpdateDate":{"type":"timestamp"}}},"endpoint":{"hostPrefix":"api."}},"DisassociateAssets":{"http":{"requestUri":"/assets/{assetId}/disassociate"},"input":{"type":"structure","required":["assetId","hierarchyId","childAssetId"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"hierarchyId":{},"childAssetId":{},"clientToken":{"idempotencyToken":true}}},"endpoint":{"hostPrefix":"api."}},"GetAssetPropertyAggregates":{"http":{"method":"GET","requestUri":"/properties/aggregates"},"input":{"type":"structure","required":["aggregateTypes","resolution","startDate","endDate"],"members":{"assetId":{"location":"querystring","locationName":"assetId"},"propertyId":{"location":"querystring","locationName":"propertyId"},"propertyAlias":{"location":"querystring","locationName":"propertyAlias"},"aggregateTypes":{"location":"querystring","locationName":"aggregateTypes","type":"list","member":{}},"resolution":{"location":"querystring","locationName":"resolution"},"qualities":{"shape":"S5n","location":"querystring","locationName":"qualities"},"startDate":{"location":"querystring","locationName":"startDate","type":"timestamp"},"endDate":{"location":"querystring","locationName":"endDate","type":"timestamp"},"timeOrdering":{"location":"querystring","locationName":"timeOrdering"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["aggregatedValues"],"members":{"aggregatedValues":{"type":"list","member":{"type":"structure","required":["timestamp","value"],"members":{"timestamp":{"type":"timestamp"},"quality":{},"value":{"type":"structure","members":{"average":{"type":"double"},"count":{"type":"double"},"maximum":{"type":"double"},"minimum":{"type":"double"},"sum":{"type":"double"},"standardDeviation":{"type":"double"}}}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"data."}},"GetAssetPropertyValue":{"http":{"method":"GET","requestUri":"/properties/latest"},"input":{"type":"structure","members":{"assetId":{"location":"querystring","locationName":"assetId"},"propertyId":{"location":"querystring","locationName":"propertyId"},"propertyAlias":{"location":"querystring","locationName":"propertyAlias"}}},"output":{"type":"structure","members":{"propertyValue":{"shape":"Sk"}}},"endpoint":{"hostPrefix":"data."}},"GetAssetPropertyValueHistory":{"http":{"method":"GET","requestUri":"/properties/history"},"input":{"type":"structure","members":{"assetId":{"location":"querystring","locationName":"assetId"},"propertyId":{"location":"querystring","locationName":"propertyId"},"propertyAlias":{"location":"querystring","locationName":"propertyAlias"},"startDate":{"location":"querystring","locationName":"startDate","type":"timestamp"},"endDate":{"location":"querystring","locationName":"endDate","type":"timestamp"},"qualities":{"shape":"S5n","location":"querystring","locationName":"qualities"},"timeOrdering":{"location":"querystring","locationName":"timeOrdering"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["assetPropertyValueHistory"],"members":{"assetPropertyValueHistory":{"type":"list","member":{"shape":"Sk"}},"nextToken":{}}},"endpoint":{"hostPrefix":"data."}},"GetInterpolatedAssetPropertyValues":{"http":{"method":"GET","requestUri":"/properties/interpolated"},"input":{"type":"structure","required":["startTimeInSeconds","endTimeInSeconds","quality","intervalInSeconds","type"],"members":{"assetId":{"location":"querystring","locationName":"assetId"},"propertyId":{"location":"querystring","locationName":"propertyId"},"propertyAlias":{"location":"querystring","locationName":"propertyAlias"},"startTimeInSeconds":{"location":"querystring","locationName":"startTimeInSeconds","type":"long"},"startTimeOffsetInNanos":{"location":"querystring","locationName":"startTimeOffsetInNanos","type":"integer"},"endTimeInSeconds":{"location":"querystring","locationName":"endTimeInSeconds","type":"long"},"endTimeOffsetInNanos":{"location":"querystring","locationName":"endTimeOffsetInNanos","type":"integer"},"quality":{"location":"querystring","locationName":"quality"},"intervalInSeconds":{"location":"querystring","locationName":"intervalInSeconds","type":"long"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"type":{"location":"querystring","locationName":"type"},"intervalWindowInSeconds":{"location":"querystring","locationName":"intervalWindowInSeconds","type":"long"}}},"output":{"type":"structure","required":["interpolatedAssetPropertyValues"],"members":{"interpolatedAssetPropertyValues":{"type":"list","member":{"type":"structure","required":["timestamp","value"],"members":{"timestamp":{"shape":"Sq"},"value":{"shape":"Sl"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"data."}},"ListAccessPolicies":{"http":{"method":"GET","requestUri":"/access-policies","responseCode":200},"input":{"type":"structure","members":{"identityType":{"location":"querystring","locationName":"identityType"},"identityId":{"location":"querystring","locationName":"identityId"},"resourceType":{"location":"querystring","locationName":"resourceType"},"resourceId":{"location":"querystring","locationName":"resourceId"},"iamArn":{"location":"querystring","locationName":"iamArn"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["accessPolicySummaries"],"members":{"accessPolicySummaries":{"type":"list","member":{"type":"structure","required":["id","identity","resource","permission"],"members":{"id":{},"identity":{"shape":"S13"},"resource":{"shape":"S1a"},"permission":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"monitor."}},"ListAssetModels":{"http":{"method":"GET","requestUri":"/asset-models"},"input":{"type":"structure","members":{"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["assetModelSummaries"],"members":{"assetModelSummaries":{"type":"list","member":{"type":"structure","required":["id","arn","name","description","creationDate","lastUpdateDate","status"],"members":{"id":{},"arn":{},"name":{},"description":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"},"status":{"shape":"S2q"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"api."}},"ListAssetRelationships":{"http":{"method":"GET","requestUri":"/assets/{assetId}/assetRelationships"},"input":{"type":"structure","required":["assetId","traversalType"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"traversalType":{"location":"querystring","locationName":"traversalType"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["assetRelationshipSummaries"],"members":{"assetRelationshipSummaries":{"type":"list","member":{"type":"structure","required":["relationshipType"],"members":{"hierarchyInfo":{"type":"structure","members":{"parentAssetId":{},"childAssetId":{}}},"relationshipType":{}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"api."}},"ListAssets":{"http":{"method":"GET","requestUri":"/assets"},"input":{"type":"structure","members":{"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"assetModelId":{"location":"querystring","locationName":"assetModelId"},"filter":{"location":"querystring","locationName":"filter"}}},"output":{"type":"structure","required":["assetSummaries"],"members":{"assetSummaries":{"type":"list","member":{"type":"structure","required":["id","arn","name","assetModelId","creationDate","lastUpdateDate","status","hierarchies"],"members":{"id":{},"arn":{},"name":{},"assetModelId":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"},"status":{"shape":"S1l"},"hierarchies":{"shape":"S46"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"api."}},"ListAssociatedAssets":{"http":{"method":"GET","requestUri":"/assets/{assetId}/hierarchies"},"input":{"type":"structure","required":["assetId"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"hierarchyId":{"location":"querystring","locationName":"hierarchyId"},"traversalDirection":{"location":"querystring","locationName":"traversalDirection"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["assetSummaries"],"members":{"assetSummaries":{"type":"list","member":{"type":"structure","required":["id","arn","name","assetModelId","creationDate","lastUpdateDate","status","hierarchies"],"members":{"id":{},"arn":{},"name":{},"assetModelId":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"},"status":{"shape":"S1l"},"hierarchies":{"shape":"S46"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"api."}},"ListDashboards":{"http":{"method":"GET","requestUri":"/dashboards","responseCode":200},"input":{"type":"structure","required":["projectId"],"members":{"projectId":{"location":"querystring","locationName":"projectId"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["dashboardSummaries"],"members":{"dashboardSummaries":{"type":"list","member":{"type":"structure","required":["id","name"],"members":{"id":{},"name":{},"description":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"monitor."}},"ListGateways":{"http":{"method":"GET","requestUri":"/20200301/gateways"},"input":{"type":"structure","members":{"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["gatewaySummaries"],"members":{"gatewaySummaries":{"type":"list","member":{"type":"structure","required":["gatewayId","gatewayName","creationDate","lastUpdateDate"],"members":{"gatewayId":{},"gatewayName":{},"gatewayPlatform":{"shape":"S2w"},"gatewayCapabilitySummaries":{"shape":"S4w"},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"api."}},"ListPortals":{"http":{"method":"GET","requestUri":"/portals","responseCode":200},"input":{"type":"structure","members":{"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","members":{"portalSummaries":{"type":"list","member":{"type":"structure","required":["id","name","startUrl","status"],"members":{"id":{},"name":{},"description":{},"startUrl":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"},"roleArn":{},"status":{"shape":"S3a"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"monitor."}},"ListProjectAssets":{"http":{"method":"GET","requestUri":"/projects/{projectId}/assets","responseCode":200},"input":{"type":"structure","required":["projectId"],"members":{"projectId":{"location":"uri","locationName":"projectId"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["assetIds"],"members":{"assetIds":{"type":"list","member":{}},"nextToken":{}}},"endpoint":{"hostPrefix":"monitor."}},"ListProjects":{"http":{"method":"GET","requestUri":"/projects","responseCode":200},"input":{"type":"structure","required":["portalId"],"members":{"portalId":{"location":"querystring","locationName":"portalId"},"nextToken":{"location":"querystring","locationName":"nextToken"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"}}},"output":{"type":"structure","required":["projectSummaries"],"members":{"projectSummaries":{"type":"list","member":{"type":"structure","required":["id","name"],"members":{"id":{},"name":{},"description":{},"creationDate":{"type":"timestamp"},"lastUpdateDate":{"type":"timestamp"}}}},"nextToken":{}}},"endpoint":{"hostPrefix":"monitor."}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags"},"input":{"type":"structure","required":["resourceArn"],"members":{"resourceArn":{"location":"querystring","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"tags":{"shape":"S1e"}}},"endpoint":{"hostPrefix":"api."}},"PutDefaultEncryptionConfiguration":{"http":{"requestUri":"/configuration/account/encryption"},"input":{"type":"structure","required":["encryptionType"],"members":{"encryptionType":{},"kmsKeyId":{}}},"output":{"type":"structure","required":["encryptionType","configurationStatus"],"members":{"encryptionType":{},"kmsKeyArn":{},"configurationStatus":{"shape":"S4r"}}},"endpoint":{"hostPrefix":"api."}},"PutLoggingOptions":{"http":{"method":"PUT","requestUri":"/logging"},"input":{"type":"structure","required":["loggingOptions"],"members":{"loggingOptions":{"shape":"S55"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"api."}},"PutStorageConfiguration":{"http":{"requestUri":"/configuration/account/storage"},"input":{"type":"structure","required":["storageType"],"members":{"storageType":{},"multiLayerStorage":{"shape":"S5g"}}},"output":{"type":"structure","required":["storageType","configurationStatus"],"members":{"storageType":{},"multiLayerStorage":{"shape":"S5g"},"configurationStatus":{"shape":"S4r"}}},"endpoint":{"hostPrefix":"api."}},"TagResource":{"http":{"requestUri":"/tags"},"input":{"type":"structure","required":["resourceArn","tags"],"members":{"resourceArn":{"location":"querystring","locationName":"resourceArn"},"tags":{"shape":"S1e"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"api."}},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags"},"input":{"type":"structure","required":["resourceArn","tagKeys"],"members":{"resourceArn":{"location":"querystring","locationName":"resourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"api."}},"UpdateAccessPolicy":{"http":{"method":"PUT","requestUri":"/access-policies/{accessPolicyId}","responseCode":200},"input":{"type":"structure","required":["accessPolicyId","accessPolicyIdentity","accessPolicyResource","accessPolicyPermission"],"members":{"accessPolicyId":{"location":"uri","locationName":"accessPolicyId"},"accessPolicyIdentity":{"shape":"S13"},"accessPolicyResource":{"shape":"S1a"},"accessPolicyPermission":{},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"monitor."}},"UpdateAsset":{"http":{"method":"PUT","requestUri":"/assets/{assetId}","responseCode":202},"input":{"type":"structure","required":["assetId","assetName"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"assetName":{},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","required":["assetStatus"],"members":{"assetStatus":{"shape":"S1l"}}},"endpoint":{"hostPrefix":"api."}},"UpdateAssetModel":{"http":{"method":"PUT","requestUri":"/asset-models/{assetModelId}","responseCode":202},"input":{"type":"structure","required":["assetModelId","assetModelName"],"members":{"assetModelId":{"location":"uri","locationName":"assetModelId"},"assetModelName":{},"assetModelDescription":{},"assetModelProperties":{"shape":"S4c"},"assetModelHierarchies":{"shape":"S4e"},"assetModelCompositeModels":{"shape":"S4g"},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","required":["assetModelStatus"],"members":{"assetModelStatus":{"shape":"S2q"}}},"endpoint":{"hostPrefix":"api."}},"UpdateAssetProperty":{"http":{"method":"PUT","requestUri":"/assets/{assetId}/properties/{propertyId}"},"input":{"type":"structure","required":["assetId","propertyId"],"members":{"assetId":{"location":"uri","locationName":"assetId"},"propertyId":{"location":"uri","locationName":"propertyId"},"propertyAlias":{},"propertyNotificationState":{},"clientToken":{"idempotencyToken":true}}},"endpoint":{"hostPrefix":"api."}},"UpdateDashboard":{"http":{"method":"PUT","requestUri":"/dashboards/{dashboardId}","responseCode":200},"input":{"type":"structure","required":["dashboardId","dashboardName","dashboardDefinition"],"members":{"dashboardId":{"location":"uri","locationName":"dashboardId"},"dashboardName":{},"dashboardDescription":{},"dashboardDefinition":{},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"monitor."}},"UpdateGateway":{"http":{"method":"PUT","requestUri":"/20200301/gateways/{gatewayId}"},"input":{"type":"structure","required":["gatewayId","gatewayName"],"members":{"gatewayId":{"location":"uri","locationName":"gatewayId"},"gatewayName":{}}},"endpoint":{"hostPrefix":"api."}},"UpdateGatewayCapabilityConfiguration":{"http":{"requestUri":"/20200301/gateways/{gatewayId}/capability","responseCode":201},"input":{"type":"structure","required":["gatewayId","capabilityNamespace","capabilityConfiguration"],"members":{"gatewayId":{"location":"uri","locationName":"gatewayId"},"capabilityNamespace":{},"capabilityConfiguration":{}}},"output":{"type":"structure","required":["capabilityNamespace","capabilitySyncStatus"],"members":{"capabilityNamespace":{},"capabilitySyncStatus":{}}},"endpoint":{"hostPrefix":"api."}},"UpdatePortal":{"http":{"method":"PUT","requestUri":"/portals/{portalId}","responseCode":202},"input":{"type":"structure","required":["portalId","portalName","portalContactEmail","roleArn"],"members":{"portalId":{"location":"uri","locationName":"portalId"},"portalName":{},"portalDescription":{},"portalContactEmail":{},"portalLogoImage":{"type":"structure","members":{"id":{},"file":{"shape":"S33"}}},"roleArn":{},"clientToken":{"idempotencyToken":true},"notificationSenderEmail":{},"alarms":{"shape":"S37"}}},"output":{"type":"structure","required":["portalStatus"],"members":{"portalStatus":{"shape":"S3a"}}},"endpoint":{"hostPrefix":"monitor."}},"UpdateProject":{"http":{"method":"PUT","requestUri":"/projects/{projectId}","responseCode":200},"input":{"type":"structure","required":["projectId","projectName"],"members":{"projectId":{"location":"uri","locationName":"projectId"},"projectName":{},"projectDescription":{},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"monitor."}}},"shapes":{"S5":{"type":"list","member":{}},"S8":{"type":"structure","required":["assetId","code","message"],"members":{"assetId":{},"code":{},"message":{}}},"Sk":{"type":"structure","required":["value","timestamp"],"members":{"value":{"shape":"Sl"},"timestamp":{"shape":"Sq"},"quality":{}}},"Sl":{"type":"structure","members":{"stringValue":{},"integerValue":{"type":"integer"},"doubleValue":{"type":"double"},"booleanValue":{"type":"boolean"}}},"Sq":{"type":"structure","required":["timeInSeconds"],"members":{"timeInSeconds":{"type":"long"},"offsetInNanos":{"type":"integer"}}},"S13":{"type":"structure","members":{"user":{"type":"structure","required":["id"],"members":{"id":{}}},"group":{"type":"structure","required":["id"],"members":{"id":{}}},"iamUser":{"type":"structure","required":["arn"],"members":{"arn":{}}},"iamRole":{"type":"structure","required":["arn"],"members":{"arn":{}}}}},"S1a":{"type":"structure","members":{"portal":{"type":"structure","required":["id"],"members":{"id":{}}},"project":{"type":"structure","required":["id"],"members":{"id":{}}}}},"S1e":{"type":"map","key":{},"value":{}},"S1l":{"type":"structure","required":["state"],"members":{"state":{},"error":{"shape":"S1n"}}},"S1n":{"type":"structure","required":["code","message"],"members":{"code":{},"message":{},"details":{"type":"list","member":{"type":"structure","required":["code","message"],"members":{"code":{},"message":{}}}}}},"S1v":{"type":"list","member":{"type":"structure","required":["name","dataType","type"],"members":{"name":{},"dataType":{},"dataTypeSpec":{},"unit":{},"type":{"shape":"S1z"}}}},"S1z":{"type":"structure","members":{"attribute":{"type":"structure","members":{"defaultValue":{}}},"measurement":{"type":"structure","members":{"processingConfig":{"type":"structure","required":["forwardingConfig"],"members":{"forwardingConfig":{"shape":"S24"}}}}},"transform":{"type":"structure","required":["expression","variables"],"members":{"expression":{},"variables":{"shape":"S28"},"processingConfig":{"type":"structure","required":["computeLocation"],"members":{"computeLocation":{},"forwardingConfig":{"shape":"S24"}}}}},"metric":{"type":"structure","required":["expression","variables","window"],"members":{"expression":{},"variables":{"shape":"S28"},"window":{"type":"structure","members":{"tumbling":{"type":"structure","required":["interval"],"members":{"interval":{},"offset":{}}}}},"processingConfig":{"type":"structure","required":["computeLocation"],"members":{"computeLocation":{}}}}}}},"S24":{"type":"structure","required":["state"],"members":{"state":{}}},"S28":{"type":"list","member":{"type":"structure","required":["name","value"],"members":{"name":{},"value":{"type":"structure","required":["propertyId"],"members":{"propertyId":{},"hierarchyId":{}}}}}},"S2q":{"type":"structure","required":["state"],"members":{"state":{},"error":{"shape":"S1n"}}},"S2w":{"type":"structure","members":{"greengrass":{"type":"structure","required":["groupArn"],"members":{"groupArn":{}}},"greengrassV2":{"type":"structure","required":["coreDeviceThingName"],"members":{"coreDeviceThingName":{}}}}},"S33":{"type":"structure","required":["data","type"],"members":{"data":{"type":"blob"},"type":{}}},"S37":{"type":"structure","required":["alarmRoleArn"],"members":{"alarmRoleArn":{},"notificationLambdaArn":{}}},"S3a":{"type":"structure","required":["state"],"members":{"state":{},"error":{"type":"structure","members":{"code":{},"message":{}}}}},"S40":{"type":"list","member":{"type":"structure","required":["id","name","dataType"],"members":{"id":{},"name":{},"alias":{},"notification":{"shape":"S43"},"dataType":{},"dataTypeSpec":{},"unit":{}}}},"S43":{"type":"structure","required":["topic","state"],"members":{"topic":{},"state":{}}},"S46":{"type":"list","member":{"type":"structure","required":["name"],"members":{"id":{},"name":{}}}},"S4c":{"type":"list","member":{"type":"structure","required":["name","dataType","type"],"members":{"id":{},"name":{},"dataType":{},"dataTypeSpec":{},"unit":{},"type":{"shape":"S1z"}}}},"S4e":{"type":"list","member":{"type":"structure","required":["name","childAssetModelId"],"members":{"id":{},"name":{},"childAssetModelId":{}}}},"S4g":{"type":"list","member":{"type":"structure","required":["name","type"],"members":{"name":{},"description":{},"type":{},"properties":{"shape":"S4c"}}}},"S4k":{"type":"structure","required":["id","name","dataType"],"members":{"id":{},"name":{},"alias":{},"notification":{"shape":"S43"},"dataType":{},"unit":{},"type":{"shape":"S1z"}}},"S4r":{"type":"structure","required":["state"],"members":{"state":{},"error":{"type":"structure","required":["code","message"],"members":{"code":{},"message":{}}}}},"S4w":{"type":"list","member":{"type":"structure","required":["capabilityNamespace","capabilitySyncStatus"],"members":{"capabilityNamespace":{},"capabilitySyncStatus":{}}}},"S55":{"type":"structure","required":["level"],"members":{"level":{}}},"S5g":{"type":"structure","required":["customerManagedS3Storage"],"members":{"customerManagedS3Storage":{"type":"structure","required":["s3ResourceArn","roleArn"],"members":{"s3ResourceArn":{},"roleArn":{}}}}},"S5n":{"type":"list","member":{}}}}; -/***/ }), - -/***/ 1874: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var buildURL = __webpack_require__(3133); -var InterceptorManager = __webpack_require__(2283); -var dispatchRequest = __webpack_require__(3946); -var mergeConfig = __webpack_require__(1825); -var validator = __webpack_require__(3470); - -var validators = validator.validators; -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - */ -function Axios(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; -} - -/** - * Dispatch a request - * - * @param {Object} config The config specific for this request (merged with this.defaults) - */ -Axios.prototype.request = function request(config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof config === 'string') { - config = arguments[1] || {}; - config.url = arguments[0]; - } else { - config = config || {}; - } - - config = mergeConfig(this.defaults, config); - - // Set config.method - if (config.method) { - config.method = config.method.toLowerCase(); - } else if (this.defaults.method) { - config.method = this.defaults.method.toLowerCase(); - } else { - config.method = 'get'; - } - - var transitional = config.transitional; - - if (transitional !== undefined) { - validator.assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean), - forcedJSONParsing: validators.transitional(validators.boolean), - clarifyTimeoutError: validators.transitional(validators.boolean) - }, false); - } - - // filter out skipped interceptors - var requestInterceptorChain = []; - var synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - var responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - - var promise; - - if (!synchronousRequestInterceptors) { - var chain = [dispatchRequest, undefined]; - - Array.prototype.unshift.apply(chain, requestInterceptorChain); - chain = chain.concat(responseInterceptorChain); - - promise = Promise.resolve(config); - while (chain.length) { - promise = promise.then(chain.shift(), chain.shift()); - } - - return promise; - } - - - var newConfig = config; - while (requestInterceptorChain.length) { - var onFulfilled = requestInterceptorChain.shift(); - var onRejected = requestInterceptorChain.shift(); - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected(error); - break; - } - } - - try { - promise = dispatchRequest(newConfig); - } catch (error) { - return Promise.reject(error); - } - - while (responseInterceptorChain.length) { - promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift()); - } - - return promise; -}; - -Axios.prototype.getUri = function getUri(config) { - config = mergeConfig(this.defaults, config); - return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); -}; - -// Provide aliases for supported request methods -utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: (config || {}).data - })); - }; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, data, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: data - })); - }; -}); - -module.exports = Axios; - - /***/ }), /***/ 1879: @@ -8108,13 +7714,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2018-03-01","endpoin /***/ }), -/***/ 1903: -/***/ (function(module) { - -module.exports = require("zlib"); - -/***/ }), - /***/ 1904: /***/ (function(module) { @@ -8733,15 +8332,6 @@ Object.defineProperty(apiLoader.services['workmailmessageflow'], '2019-05-01', { module.exports = AWS.WorkMailMessageFlow; -/***/ }), - -/***/ 2148: -/***/ (function(module) { - -module.exports = { - "version": "0.22.0" -}; - /***/ }), /***/ 2189: @@ -8949,68 +8539,6 @@ Object.defineProperty(apiLoader.services['mediastoredata'], '2017-09-01', { module.exports = AWS.MediaStoreData; -/***/ }), - -/***/ 2283: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -function InterceptorManager() { - this.handlers = []; -} - -/** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ -InterceptorManager.prototype.use = function use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; -}; - -/** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - */ -InterceptorManager.prototype.eject = function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } -}; - -/** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - */ -InterceptorManager.prototype.forEach = function forEach(fn) { - utils.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); -}; - -module.exports = InterceptorManager; - - /***/ }), /***/ 2304: @@ -10716,39 +10244,6 @@ module.exports = { Wisdom: __webpack_require__(5138) }; -/***/ }), - -/***/ 2564: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var createError = __webpack_require__(9026); - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - */ -module.exports = function settle(resolve, reject, response) { - var validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(createError( - 'Request failed with status code ' + response.status, - response.config, - null, - response.request, - response - )); - } -}; - - /***/ }), /***/ 2572: @@ -13310,41 +12805,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-09-30","endpoin module.exports = {"pagination":{"ListInvitations":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"ListMembers":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"ListNetworks":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"ListNodes":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"ListProposalVotes":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"ListProposals":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"}}}; -/***/ }), - -/***/ 2825: -/***/ (function(module) { - -"use strict"; - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ -module.exports = function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -}; - - /***/ }), /***/ 2838: @@ -13562,28 +13022,6 @@ module.exports = AWS.SSM; }).call(this); -/***/ }), - -/***/ 2887: -/***/ (function(module) { - -"use strict"; - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * @returns {string} The combined URL - */ -module.exports = function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -}; - - /***/ }), /***/ 2904: @@ -14194,270 +13632,6 @@ AWS.TemporaryCredentials = AWS.util.inherit(AWS.Credentials, { module.exports = {"pagination":{"ListApplicationVersions":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxItems"},"ListApplications":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxItems"},"ListApplicationDependencies":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxItems"}}}; -/***/ }), - -/***/ 3081: -/***/ (function(module, exports, __webpack_require__) { - -/** - * Module dependencies. - */ - -const tty = __webpack_require__(3867); -const util = __webpack_require__(1669); - -/** - * This is the Node.js implementation of `debug()`. - */ - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; - -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = __webpack_require__(5247); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); - -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} - -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - -function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} - -/** - * Invokes `util.format()` with the specified arguments and writes to stderr. - */ - -function log(...args) { - return process.stderr.write(util.format(...args) + '\n'); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - -function load() { - return process.env.DEBUG; -} - -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - -function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = __webpack_require__(6486)(exports); - -const {formatters} = module.exports; - -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .replace(/\s*\n\s*/g, ' '); -}; - -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; - - /***/ }), /***/ 3087: @@ -14568,84 +13742,6 @@ module.exports = require("child_process"); module.exports = {"version":"2.0","metadata":{"apiVersion":"2016-06-10","endpointPrefix":"polly","protocol":"rest-json","serviceFullName":"Amazon Polly","serviceId":"Polly","signatureVersion":"v4","uid":"polly-2016-06-10"},"operations":{"DeleteLexicon":{"http":{"method":"DELETE","requestUri":"/v1/lexicons/{LexiconName}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"LexiconName"}}},"output":{"type":"structure","members":{}}},"DescribeVoices":{"http":{"method":"GET","requestUri":"/v1/voices","responseCode":200},"input":{"type":"structure","members":{"Engine":{"location":"querystring","locationName":"Engine"},"LanguageCode":{"location":"querystring","locationName":"LanguageCode"},"IncludeAdditionalLanguageCodes":{"location":"querystring","locationName":"IncludeAdditionalLanguageCodes","type":"boolean"},"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"Voices":{"type":"list","member":{"type":"structure","members":{"Gender":{},"Id":{},"LanguageCode":{},"LanguageName":{},"Name":{},"AdditionalLanguageCodes":{"type":"list","member":{}},"SupportedEngines":{"type":"list","member":{}}}}},"NextToken":{}}}},"GetLexicon":{"http":{"method":"GET","requestUri":"/v1/lexicons/{LexiconName}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"LexiconName"}}},"output":{"type":"structure","members":{"Lexicon":{"type":"structure","members":{"Content":{"shape":"Sl"},"Name":{}}},"LexiconAttributes":{"shape":"Sm"}}}},"GetSpeechSynthesisTask":{"http":{"method":"GET","requestUri":"/v1/synthesisTasks/{TaskId}","responseCode":200},"input":{"type":"structure","required":["TaskId"],"members":{"TaskId":{"location":"uri","locationName":"TaskId"}}},"output":{"type":"structure","members":{"SynthesisTask":{"shape":"Sv"}}}},"ListLexicons":{"http":{"method":"GET","requestUri":"/v1/lexicons","responseCode":200},"input":{"type":"structure","members":{"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"Lexicons":{"type":"list","member":{"type":"structure","members":{"Name":{},"Attributes":{"shape":"Sm"}}}},"NextToken":{}}}},"ListSpeechSynthesisTasks":{"http":{"method":"GET","requestUri":"/v1/synthesisTasks","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"MaxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"NextToken"},"Status":{"location":"querystring","locationName":"Status"}}},"output":{"type":"structure","members":{"NextToken":{},"SynthesisTasks":{"type":"list","member":{"shape":"Sv"}}}}},"PutLexicon":{"http":{"method":"PUT","requestUri":"/v1/lexicons/{LexiconName}","responseCode":200},"input":{"type":"structure","required":["Name","Content"],"members":{"Name":{"location":"uri","locationName":"LexiconName"},"Content":{"shape":"Sl"}}},"output":{"type":"structure","members":{}}},"StartSpeechSynthesisTask":{"http":{"requestUri":"/v1/synthesisTasks","responseCode":200},"input":{"type":"structure","required":["OutputFormat","OutputS3BucketName","Text","VoiceId"],"members":{"Engine":{},"LanguageCode":{},"LexiconNames":{"shape":"S12"},"OutputFormat":{},"OutputS3BucketName":{},"OutputS3KeyPrefix":{},"SampleRate":{},"SnsTopicArn":{},"SpeechMarkTypes":{"shape":"S15"},"Text":{},"TextType":{},"VoiceId":{}}},"output":{"type":"structure","members":{"SynthesisTask":{"shape":"Sv"}}}},"SynthesizeSpeech":{"http":{"requestUri":"/v1/speech","responseCode":200},"input":{"type":"structure","required":["OutputFormat","Text","VoiceId"],"members":{"Engine":{},"LanguageCode":{},"LexiconNames":{"shape":"S12"},"OutputFormat":{},"SampleRate":{},"SpeechMarkTypes":{"shape":"S15"},"Text":{},"TextType":{},"VoiceId":{}}},"output":{"type":"structure","members":{"AudioStream":{"type":"blob","streaming":true},"ContentType":{"location":"header","locationName":"Content-Type"},"RequestCharacters":{"location":"header","locationName":"x-amzn-RequestCharacters","type":"integer"}},"payload":"AudioStream"}}},"shapes":{"Sl":{"type":"string","sensitive":true},"Sm":{"type":"structure","members":{"Alphabet":{},"LanguageCode":{},"LastModified":{"type":"timestamp"},"LexiconArn":{},"LexemesCount":{"type":"integer"},"Size":{"type":"integer"}}},"Sv":{"type":"structure","members":{"Engine":{},"TaskId":{},"TaskStatus":{},"TaskStatusReason":{},"OutputUri":{},"CreationTime":{"type":"timestamp"},"RequestCharacters":{"type":"integer"},"SnsTopicArn":{},"LexiconNames":{"shape":"S12"},"OutputFormat":{},"SampleRate":{},"SpeechMarkTypes":{"shape":"S15"},"TextType":{},"VoiceId":{},"LanguageCode":{}}},"S12":{"type":"list","member":{}},"S15":{"type":"list","member":{}}}}; -/***/ }), - -/***/ 3133: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @returns {string} The formatted url - */ -module.exports = function buildURL(url, params, paramsSerializer) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (utils.isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; - - utils.forEach(params, function serialize(val, key) { - if (val === null || typeof val === 'undefined') { - return; - } - - if (utils.isArray(val)) { - key = key + '[]'; - } else { - val = [val]; - } - - utils.forEach(val, function parseValue(v) { - if (utils.isDate(v)) { - v = v.toISOString(); - } else if (utils.isObject(v)) { - v = JSON.stringify(v); - } - parts.push(encode(key) + '=' + encode(v)); - }); - }); - - serializedParams = parts.join('&'); - } - - if (serializedParams) { - var hashmarkIndex = url.indexOf('#'); - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -}; - - /***/ }), /***/ 3137: @@ -16232,96 +15328,6 @@ module.exports = {"pagination":{}}; module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-07-25","endpointPrefix":"lookoutmetrics","jsonVersion":"1.1","protocol":"rest-json","serviceAbbreviation":"LookoutMetrics","serviceFullName":"Amazon Lookout for Metrics","serviceId":"LookoutMetrics","signatureVersion":"v4","signingName":"lookoutmetrics","uid":"lookoutmetrics-2017-07-25"},"operations":{"ActivateAnomalyDetector":{"http":{"requestUri":"/ActivateAnomalyDetector"},"input":{"type":"structure","required":["AnomalyDetectorArn"],"members":{"AnomalyDetectorArn":{}}},"output":{"type":"structure","members":{}}},"BackTestAnomalyDetector":{"http":{"requestUri":"/BackTestAnomalyDetector"},"input":{"type":"structure","required":["AnomalyDetectorArn"],"members":{"AnomalyDetectorArn":{}}},"output":{"type":"structure","members":{}}},"CreateAlert":{"http":{"requestUri":"/CreateAlert"},"input":{"type":"structure","required":["AlertName","AlertSensitivityThreshold","AnomalyDetectorArn","Action"],"members":{"AlertName":{},"AlertSensitivityThreshold":{"type":"integer"},"AlertDescription":{},"AnomalyDetectorArn":{},"Action":{"shape":"Sa"},"Tags":{"shape":"Sd"}}},"output":{"type":"structure","members":{"AlertArn":{}}}},"CreateAnomalyDetector":{"http":{"requestUri":"/CreateAnomalyDetector"},"input":{"type":"structure","required":["AnomalyDetectorName","AnomalyDetectorConfig"],"members":{"AnomalyDetectorName":{},"AnomalyDetectorDescription":{},"AnomalyDetectorConfig":{"shape":"Sk"},"KmsKeyArn":{},"Tags":{"shape":"Sd"}}},"output":{"type":"structure","members":{"AnomalyDetectorArn":{}}}},"CreateMetricSet":{"http":{"requestUri":"/CreateMetricSet"},"input":{"type":"structure","required":["AnomalyDetectorArn","MetricSetName","MetricList","MetricSource"],"members":{"AnomalyDetectorArn":{},"MetricSetName":{},"MetricSetDescription":{},"MetricList":{"shape":"Sr"},"Offset":{"type":"integer"},"TimestampColumn":{"shape":"Sx"},"DimensionList":{"shape":"Sz"},"MetricSetFrequency":{},"MetricSource":{"shape":"S10"},"Timezone":{},"Tags":{"shape":"Sd"}}},"output":{"type":"structure","members":{"MetricSetArn":{}}}},"DeleteAlert":{"http":{"requestUri":"/DeleteAlert"},"input":{"type":"structure","required":["AlertArn"],"members":{"AlertArn":{}}},"output":{"type":"structure","members":{}}},"DeleteAnomalyDetector":{"http":{"requestUri":"/DeleteAnomalyDetector"},"input":{"type":"structure","required":["AnomalyDetectorArn"],"members":{"AnomalyDetectorArn":{}}},"output":{"type":"structure","members":{}}},"DescribeAlert":{"http":{"requestUri":"/DescribeAlert"},"input":{"type":"structure","required":["AlertArn"],"members":{"AlertArn":{}}},"output":{"type":"structure","members":{"Alert":{"type":"structure","members":{"Action":{"shape":"Sa"},"AlertDescription":{},"AlertArn":{},"AnomalyDetectorArn":{},"AlertName":{},"AlertSensitivityThreshold":{"type":"integer"},"AlertType":{},"AlertStatus":{},"LastModificationTime":{"type":"timestamp"},"CreationTime":{"type":"timestamp"}}}}}},"DescribeAnomalyDetectionExecutions":{"http":{"requestUri":"/DescribeAnomalyDetectionExecutions"},"input":{"type":"structure","required":["AnomalyDetectorArn"],"members":{"AnomalyDetectorArn":{},"Timestamp":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"ExecutionList":{"type":"list","member":{"type":"structure","members":{"Timestamp":{},"Status":{},"FailureReason":{}}}},"NextToken":{}}}},"DescribeAnomalyDetector":{"http":{"requestUri":"/DescribeAnomalyDetector"},"input":{"type":"structure","required":["AnomalyDetectorArn"],"members":{"AnomalyDetectorArn":{}}},"output":{"type":"structure","members":{"AnomalyDetectorArn":{},"AnomalyDetectorName":{},"AnomalyDetectorDescription":{},"AnomalyDetectorConfig":{"type":"structure","members":{"AnomalyDetectorFrequency":{}}},"CreationTime":{"type":"timestamp"},"LastModificationTime":{"type":"timestamp"},"Status":{},"FailureReason":{},"KmsKeyArn":{}}}},"DescribeMetricSet":{"http":{"requestUri":"/DescribeMetricSet"},"input":{"type":"structure","required":["MetricSetArn"],"members":{"MetricSetArn":{}}},"output":{"type":"structure","members":{"MetricSetArn":{},"AnomalyDetectorArn":{},"MetricSetName":{},"MetricSetDescription":{},"CreationTime":{"type":"timestamp"},"LastModificationTime":{"type":"timestamp"},"Offset":{"type":"integer"},"MetricList":{"shape":"Sr"},"TimestampColumn":{"shape":"Sx"},"DimensionList":{"shape":"Sz"},"MetricSetFrequency":{},"Timezone":{},"MetricSource":{"shape":"S10"}}}},"GetAnomalyGroup":{"http":{"requestUri":"/GetAnomalyGroup"},"input":{"type":"structure","required":["AnomalyGroupId","AnomalyDetectorArn"],"members":{"AnomalyGroupId":{},"AnomalyDetectorArn":{}}},"output":{"type":"structure","members":{"AnomalyGroup":{"type":"structure","members":{"StartTime":{},"EndTime":{},"AnomalyGroupId":{},"AnomalyGroupScore":{"type":"double"},"PrimaryMetricName":{},"MetricLevelImpactList":{"type":"list","member":{"type":"structure","members":{"MetricName":{},"NumTimeSeries":{"type":"integer"},"ContributionMatrix":{"type":"structure","members":{"DimensionContributionList":{"type":"list","member":{"type":"structure","members":{"DimensionName":{},"DimensionValueContributionList":{"type":"list","member":{"type":"structure","members":{"DimensionValue":{},"ContributionScore":{"type":"double"}}}}}}}}}}}}}}}}},"GetFeedback":{"http":{"requestUri":"/GetFeedback"},"input":{"type":"structure","required":["AnomalyDetectorArn","AnomalyGroupTimeSeriesFeedback"],"members":{"AnomalyDetectorArn":{},"AnomalyGroupTimeSeriesFeedback":{"type":"structure","required":["AnomalyGroupId"],"members":{"AnomalyGroupId":{},"TimeSeriesId":{}}},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"AnomalyGroupTimeSeriesFeedback":{"type":"list","member":{"type":"structure","members":{"TimeSeriesId":{},"IsAnomaly":{"type":"boolean"}}}},"NextToken":{}}}},"GetSampleData":{"http":{"requestUri":"/GetSampleData"},"input":{"type":"structure","members":{"S3SourceConfig":{"type":"structure","required":["RoleArn","FileFormatDescriptor"],"members":{"RoleArn":{},"TemplatedPathList":{"shape":"S12"},"HistoricalDataPathList":{"shape":"S14"},"FileFormatDescriptor":{"shape":"S16"}}}}},"output":{"type":"structure","members":{"HeaderValues":{"type":"list","member":{}},"SampleRows":{"type":"list","member":{"type":"list","member":{}}}}}},"ListAlerts":{"http":{"requestUri":"/ListAlerts"},"input":{"type":"structure","members":{"AnomalyDetectorArn":{},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"AlertSummaryList":{"type":"list","member":{"type":"structure","members":{"AlertArn":{},"AnomalyDetectorArn":{},"AlertName":{},"AlertSensitivityThreshold":{"type":"integer"},"AlertType":{},"AlertStatus":{},"LastModificationTime":{"type":"timestamp"},"CreationTime":{"type":"timestamp"},"Tags":{"shape":"Sd"}}}},"NextToken":{}}}},"ListAnomalyDetectors":{"http":{"requestUri":"/ListAnomalyDetectors"},"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"AnomalyDetectorSummaryList":{"type":"list","member":{"type":"structure","members":{"AnomalyDetectorArn":{},"AnomalyDetectorName":{},"AnomalyDetectorDescription":{},"CreationTime":{"type":"timestamp"},"LastModificationTime":{"type":"timestamp"},"Status":{},"Tags":{"shape":"Sd"}}}},"NextToken":{}}}},"ListAnomalyGroupSummaries":{"http":{"requestUri":"/ListAnomalyGroupSummaries"},"input":{"type":"structure","required":["AnomalyDetectorArn","SensitivityThreshold"],"members":{"AnomalyDetectorArn":{},"SensitivityThreshold":{"type":"integer"},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"AnomalyGroupSummaryList":{"type":"list","member":{"type":"structure","members":{"StartTime":{},"EndTime":{},"AnomalyGroupId":{},"AnomalyGroupScore":{"type":"double"},"PrimaryMetricName":{}}}},"AnomalyGroupStatistics":{"type":"structure","members":{"EvaluationStartDate":{},"TotalCount":{"type":"integer"},"ItemizedMetricStatsList":{"type":"list","member":{"type":"structure","members":{"MetricName":{},"OccurrenceCount":{"type":"integer"}}}}}},"NextToken":{}}}},"ListAnomalyGroupTimeSeries":{"http":{"requestUri":"/ListAnomalyGroupTimeSeries"},"input":{"type":"structure","required":["AnomalyDetectorArn","AnomalyGroupId","MetricName"],"members":{"AnomalyDetectorArn":{},"AnomalyGroupId":{},"MetricName":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"AnomalyGroupId":{},"MetricName":{},"TimestampList":{"type":"list","member":{}},"NextToken":{},"TimeSeriesList":{"type":"list","member":{"type":"structure","required":["TimeSeriesId","DimensionList","MetricValueList"],"members":{"TimeSeriesId":{},"DimensionList":{"type":"list","member":{"type":"structure","required":["DimensionName","DimensionValue"],"members":{"DimensionName":{},"DimensionValue":{}}}},"MetricValueList":{"type":"list","member":{"type":"double"}}}}}}}},"ListMetricSets":{"http":{"requestUri":"/ListMetricSets"},"input":{"type":"structure","members":{"AnomalyDetectorArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"MetricSetSummaryList":{"type":"list","member":{"type":"structure","members":{"MetricSetArn":{},"AnomalyDetectorArn":{},"MetricSetDescription":{},"MetricSetName":{},"CreationTime":{"type":"timestamp"},"LastModificationTime":{"type":"timestamp"},"Tags":{"shape":"Sd"}}}},"NextToken":{}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sd","locationName":"Tags"}}}},"PutFeedback":{"http":{"requestUri":"/PutFeedback"},"input":{"type":"structure","required":["AnomalyDetectorArn","AnomalyGroupTimeSeriesFeedback"],"members":{"AnomalyDetectorArn":{},"AnomalyGroupTimeSeriesFeedback":{"type":"structure","required":["AnomalyGroupId","TimeSeriesId","IsAnomaly"],"members":{"AnomalyGroupId":{},"TimeSeriesId":{},"IsAnomaly":{"type":"boolean"}}}}},"output":{"type":"structure","members":{}}},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":204},"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{"location":"uri","locationName":"resourceArn"},"Tags":{"shape":"Sd","locationName":"tags"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":204},"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{"location":"uri","locationName":"resourceArn"},"TagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateAnomalyDetector":{"http":{"requestUri":"/UpdateAnomalyDetector"},"input":{"type":"structure","required":["AnomalyDetectorArn"],"members":{"AnomalyDetectorArn":{},"KmsKeyArn":{},"AnomalyDetectorDescription":{},"AnomalyDetectorConfig":{"shape":"Sk"}}},"output":{"type":"structure","members":{"AnomalyDetectorArn":{}}}},"UpdateMetricSet":{"http":{"requestUri":"/UpdateMetricSet"},"input":{"type":"structure","required":["MetricSetArn"],"members":{"MetricSetArn":{},"MetricSetDescription":{},"MetricList":{"shape":"Sr"},"Offset":{"type":"integer"},"TimestampColumn":{"shape":"Sx"},"DimensionList":{"shape":"Sz"},"MetricSetFrequency":{},"MetricSource":{"shape":"S10"}}},"output":{"type":"structure","members":{"MetricSetArn":{}}}}},"shapes":{"Sa":{"type":"structure","members":{"SNSConfiguration":{"type":"structure","required":["RoleArn","SnsTopicArn"],"members":{"RoleArn":{},"SnsTopicArn":{}}},"LambdaConfiguration":{"type":"structure","required":["RoleArn","LambdaArn"],"members":{"RoleArn":{},"LambdaArn":{}}}}},"Sd":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","members":{"AnomalyDetectorFrequency":{}}},"Sr":{"type":"list","member":{"type":"structure","required":["MetricName","AggregationFunction"],"members":{"MetricName":{},"AggregationFunction":{},"Namespace":{}}}},"Sx":{"type":"structure","members":{"ColumnName":{},"ColumnFormat":{}}},"Sz":{"type":"list","member":{}},"S10":{"type":"structure","members":{"S3SourceConfig":{"type":"structure","required":["RoleArn"],"members":{"RoleArn":{},"TemplatedPathList":{"shape":"S12"},"HistoricalDataPathList":{"shape":"S14"},"FileFormatDescriptor":{"shape":"S16"}}},"AppFlowConfig":{"type":"structure","required":["RoleArn","FlowName"],"members":{"RoleArn":{},"FlowName":{}}},"CloudWatchConfig":{"type":"structure","required":["RoleArn"],"members":{"RoleArn":{}}},"RDSSourceConfig":{"type":"structure","required":["DBInstanceIdentifier","DatabaseHost","DatabasePort","SecretManagerArn","DatabaseName","TableName","RoleArn","VpcConfiguration"],"members":{"DBInstanceIdentifier":{},"DatabaseHost":{},"DatabasePort":{"type":"integer"},"SecretManagerArn":{},"DatabaseName":{},"TableName":{},"RoleArn":{},"VpcConfiguration":{"shape":"S1q"}}},"RedshiftSourceConfig":{"type":"structure","required":["ClusterIdentifier","DatabaseHost","DatabasePort","SecretManagerArn","DatabaseName","TableName","RoleArn","VpcConfiguration"],"members":{"ClusterIdentifier":{},"DatabaseHost":{},"DatabasePort":{"type":"integer"},"SecretManagerArn":{},"DatabaseName":{},"TableName":{},"RoleArn":{},"VpcConfiguration":{"shape":"S1q"}}}}},"S12":{"type":"list","member":{}},"S14":{"type":"list","member":{}},"S16":{"type":"structure","members":{"CsvFormatDescriptor":{"type":"structure","members":{"FileCompression":{},"Charset":{},"ContainsHeader":{"type":"boolean"},"Delimiter":{},"HeaderList":{"type":"list","member":{}},"QuoteSymbol":{}}},"JsonFormatDescriptor":{"type":"structure","members":{"FileCompression":{},"Charset":{}}}}},"S1q":{"type":"structure","required":["SubnetIdList","SecurityGroupIdList"],"members":{"SubnetIdList":{"type":"list","member":{}},"SecurityGroupIdList":{"type":"list","member":{}}}}}}; -/***/ }), - -/***/ 3470: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var VERSION = __webpack_require__(2148).version; - -var validators = {}; - -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); - -var deprecatedWarnings = {}; - -/** - * Transitional option validator - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return function(value, opt, opts) { - if (validator === false) { - throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : ''))); - } - - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } - - return validator ? validator(value, opt, opts) : true; - }; -}; - -/** - * Assert object's properties type - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - */ - -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new TypeError('options must be an object'); - } - var keys = Object.keys(options); - var i = keys.length; - while (i-- > 0) { - var opt = keys[i]; - var validator = schema[opt]; - if (validator) { - var value = options[opt]; - var result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new TypeError('option ' + opt + ' must be ' + result); - } - continue; - } - if (allowUnknown !== true) { - throw Error('Unknown option ' + opt); - } - } -} - -module.exports = { - assertOptions: assertOptions, - validators: validators -}; - - /***/ }), /***/ 3494: @@ -17386,551 +16392,6 @@ module.exports = { }; -/***/ }), - -/***/ 3549: -/***/ (function(module, __unusedexports, __webpack_require__) { - -var url = __webpack_require__(8835); -var URL = url.URL; -var http = __webpack_require__(8605); -var https = __webpack_require__(7211); -var Writable = __webpack_require__(2413).Writable; -var assert = __webpack_require__(2357); -var debug = __webpack_require__(9900); - -// Create handlers that pass events from native requests -var events = ["abort", "aborted", "connect", "error", "socket", "timeout"]; -var eventHandlers = Object.create(null); -events.forEach(function (event) { - eventHandlers[event] = function (arg1, arg2, arg3) { - this._redirectable.emit(event, arg1, arg2, arg3); - }; -}); - -// Error types with codes -var RedirectionError = createErrorType( - "ERR_FR_REDIRECTION_FAILURE", - "" -); -var TooManyRedirectsError = createErrorType( - "ERR_FR_TOO_MANY_REDIRECTS", - "Maximum number of redirects exceeded" -); -var MaxBodyLengthExceededError = createErrorType( - "ERR_FR_MAX_BODY_LENGTH_EXCEEDED", - "Request body larger than maxBodyLength limit" -); -var WriteAfterEndError = createErrorType( - "ERR_STREAM_WRITE_AFTER_END", - "write after end" -); - -// An HTTP(S) request that can be redirected -function RedirectableRequest(options, responseCallback) { - // Initialize the request - Writable.call(this); - this._sanitizeOptions(options); - this._options = options; - this._ended = false; - this._ending = false; - this._redirectCount = 0; - this._redirects = []; - this._requestBodyLength = 0; - this._requestBodyBuffers = []; - - // Attach a callback if passed - if (responseCallback) { - this.on("response", responseCallback); - } - - // React to responses of native requests - var self = this; - this._onNativeResponse = function (response) { - self._processResponse(response); - }; - - // Perform the first request - this._performRequest(); -} -RedirectableRequest.prototype = Object.create(Writable.prototype); - -RedirectableRequest.prototype.abort = function () { - abortRequest(this._currentRequest); - this.emit("abort"); -}; - -// Writes buffered data to the current native request -RedirectableRequest.prototype.write = function (data, encoding, callback) { - // Writing is not allowed if end has been called - if (this._ending) { - throw new WriteAfterEndError(); - } - - // Validate input and shift parameters if necessary - if (!(typeof data === "string" || typeof data === "object" && ("length" in data))) { - throw new TypeError("data should be a string, Buffer or Uint8Array"); - } - if (typeof encoding === "function") { - callback = encoding; - encoding = null; - } - - // Ignore empty buffers, since writing them doesn't invoke the callback - // https://github.com/nodejs/node/issues/22066 - if (data.length === 0) { - if (callback) { - callback(); - } - return; - } - // Only write when we don't exceed the maximum body length - if (this._requestBodyLength + data.length <= this._options.maxBodyLength) { - this._requestBodyLength += data.length; - this._requestBodyBuffers.push({ data: data, encoding: encoding }); - this._currentRequest.write(data, encoding, callback); - } - // Error when we exceed the maximum body length - else { - this.emit("error", new MaxBodyLengthExceededError()); - this.abort(); - } -}; - -// Ends the current native request -RedirectableRequest.prototype.end = function (data, encoding, callback) { - // Shift parameters if necessary - if (typeof data === "function") { - callback = data; - data = encoding = null; - } - else if (typeof encoding === "function") { - callback = encoding; - encoding = null; - } - - // Write data if needed and end - if (!data) { - this._ended = this._ending = true; - this._currentRequest.end(null, null, callback); - } - else { - var self = this; - var currentRequest = this._currentRequest; - this.write(data, encoding, function () { - self._ended = true; - currentRequest.end(null, null, callback); - }); - this._ending = true; - } -}; - -// Sets a header value on the current native request -RedirectableRequest.prototype.setHeader = function (name, value) { - this._options.headers[name] = value; - this._currentRequest.setHeader(name, value); -}; - -// Clears a header value on the current native request -RedirectableRequest.prototype.removeHeader = function (name) { - delete this._options.headers[name]; - this._currentRequest.removeHeader(name); -}; - -// Global timeout for all underlying requests -RedirectableRequest.prototype.setTimeout = function (msecs, callback) { - var self = this; - - // Destroys the socket on timeout - function destroyOnTimeout(socket) { - socket.setTimeout(msecs); - socket.removeListener("timeout", socket.destroy); - socket.addListener("timeout", socket.destroy); - } - - // Sets up a timer to trigger a timeout event - function startTimer(socket) { - if (self._timeout) { - clearTimeout(self._timeout); - } - self._timeout = setTimeout(function () { - self.emit("timeout"); - clearTimer(); - }, msecs); - destroyOnTimeout(socket); - } - - // Stops a timeout from triggering - function clearTimer() { - if (self._timeout) { - clearTimeout(self._timeout); - self._timeout = null; - } - if (callback) { - self.removeListener("timeout", callback); - } - if (!self.socket) { - self._currentRequest.removeListener("socket", startTimer); - } - } - - // Attach callback if passed - if (callback) { - this.on("timeout", callback); - } - - // Start the timer if or when the socket is opened - if (this.socket) { - startTimer(this.socket); - } - else { - this._currentRequest.once("socket", startTimer); - } - - // Clean up on events - this.on("socket", destroyOnTimeout); - this.once("response", clearTimer); - this.once("error", clearTimer); - - return this; -}; - -// Proxy all other public ClientRequest methods -[ - "flushHeaders", "getHeader", - "setNoDelay", "setSocketKeepAlive", -].forEach(function (method) { - RedirectableRequest.prototype[method] = function (a, b) { - return this._currentRequest[method](a, b); - }; -}); - -// Proxy all public ClientRequest properties -["aborted", "connection", "socket"].forEach(function (property) { - Object.defineProperty(RedirectableRequest.prototype, property, { - get: function () { return this._currentRequest[property]; }, - }); -}); - -RedirectableRequest.prototype._sanitizeOptions = function (options) { - // Ensure headers are always present - if (!options.headers) { - options.headers = {}; - } - - // Since http.request treats host as an alias of hostname, - // but the url module interprets host as hostname plus port, - // eliminate the host property to avoid confusion. - if (options.host) { - // Use hostname if set, because it has precedence - if (!options.hostname) { - options.hostname = options.host; - } - delete options.host; - } - - // Complete the URL object when necessary - if (!options.pathname && options.path) { - var searchPos = options.path.indexOf("?"); - if (searchPos < 0) { - options.pathname = options.path; - } - else { - options.pathname = options.path.substring(0, searchPos); - options.search = options.path.substring(searchPos); - } - } -}; - - -// Executes the next native request (initial or redirect) -RedirectableRequest.prototype._performRequest = function () { - // Load the native protocol - var protocol = this._options.protocol; - var nativeProtocol = this._options.nativeProtocols[protocol]; - if (!nativeProtocol) { - this.emit("error", new TypeError("Unsupported protocol " + protocol)); - return; - } - - // If specified, use the agent corresponding to the protocol - // (HTTP and HTTPS use different types of agents) - if (this._options.agents) { - var scheme = protocol.substr(0, protocol.length - 1); - this._options.agent = this._options.agents[scheme]; - } - - // Create the native request - var request = this._currentRequest = - nativeProtocol.request(this._options, this._onNativeResponse); - this._currentUrl = url.format(this._options); - - // Set up event handlers - request._redirectable = this; - for (var e = 0; e < events.length; e++) { - request.on(events[e], eventHandlers[events[e]]); - } - - // End a redirected request - // (The first request must be ended explicitly with RedirectableRequest#end) - if (this._isRedirect) { - // Write the request entity and end. - var i = 0; - var self = this; - var buffers = this._requestBodyBuffers; - (function writeNext(error) { - // Only write if this request has not been redirected yet - /* istanbul ignore else */ - if (request === self._currentRequest) { - // Report any write errors - /* istanbul ignore if */ - if (error) { - self.emit("error", error); - } - // Write the next buffer if there are still left - else if (i < buffers.length) { - var buffer = buffers[i++]; - /* istanbul ignore else */ - if (!request.finished) { - request.write(buffer.data, buffer.encoding, writeNext); - } - } - // End the request if `end` has been called on us - else if (self._ended) { - request.end(); - } - } - }()); - } -}; - -// Processes a response from the current native request -RedirectableRequest.prototype._processResponse = function (response) { - // Store the redirected response - var statusCode = response.statusCode; - if (this._options.trackRedirects) { - this._redirects.push({ - url: this._currentUrl, - headers: response.headers, - statusCode: statusCode, - }); - } - - // RFC7231§6.4: The 3xx (Redirection) class of status code indicates - // that further action needs to be taken by the user agent in order to - // fulfill the request. If a Location header field is provided, - // the user agent MAY automatically redirect its request to the URI - // referenced by the Location field value, - // even if the specific status code is not understood. - var location = response.headers.location; - if (location && this._options.followRedirects !== false && - statusCode >= 300 && statusCode < 400) { - // Abort the current request - abortRequest(this._currentRequest); - // Discard the remainder of the response to avoid waiting for data - response.destroy(); - - // RFC7231§6.4: A client SHOULD detect and intervene - // in cyclical redirections (i.e., "infinite" redirection loops). - if (++this._redirectCount > this._options.maxRedirects) { - this.emit("error", new TooManyRedirectsError()); - return; - } - - // RFC7231§6.4: Automatic redirection needs to done with - // care for methods not known to be safe, […] - // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change - // the request method from POST to GET for the subsequent request. - if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || - // RFC7231§6.4.4: The 303 (See Other) status code indicates that - // the server is redirecting the user agent to a different resource […] - // A user agent can perform a retrieval request targeting that URI - // (a GET or HEAD request if using HTTP) […] - (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) { - this._options.method = "GET"; - // Drop a possible entity and headers related to it - this._requestBodyBuffers = []; - removeMatchingHeaders(/^content-/i, this._options.headers); - } - - // Drop the Host header, as the redirect might lead to a different host - var previousHostName = removeMatchingHeaders(/^host$/i, this._options.headers) || - url.parse(this._currentUrl).hostname; - - // Create the redirected request - var redirectUrl = url.resolve(this._currentUrl, location); - debug("redirecting to", redirectUrl); - this._isRedirect = true; - var redirectUrlParts = url.parse(redirectUrl); - Object.assign(this._options, redirectUrlParts); - - // Drop the Authorization header if redirecting to another host - if (redirectUrlParts.hostname !== previousHostName) { - removeMatchingHeaders(/^authorization$/i, this._options.headers); - } - - // Evaluate the beforeRedirect callback - if (typeof this._options.beforeRedirect === "function") { - var responseDetails = { headers: response.headers }; - try { - this._options.beforeRedirect.call(null, this._options, responseDetails); - } - catch (err) { - this.emit("error", err); - return; - } - this._sanitizeOptions(this._options); - } - - // Perform the redirected request - try { - this._performRequest(); - } - catch (cause) { - var error = new RedirectionError("Redirected request failed: " + cause.message); - error.cause = cause; - this.emit("error", error); - } - } - else { - // The response is not a redirect; return it as-is - response.responseUrl = this._currentUrl; - response.redirects = this._redirects; - this.emit("response", response); - - // Clean up - this._requestBodyBuffers = []; - } -}; - -// Wraps the key/value object of protocols with redirect functionality -function wrap(protocols) { - // Default settings - var exports = { - maxRedirects: 21, - maxBodyLength: 10 * 1024 * 1024, - }; - - // Wrap each protocol - var nativeProtocols = {}; - Object.keys(protocols).forEach(function (scheme) { - var protocol = scheme + ":"; - var nativeProtocol = nativeProtocols[protocol] = protocols[scheme]; - var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol); - - // Executes a request, following redirects - function request(input, options, callback) { - // Parse parameters - if (typeof input === "string") { - var urlStr = input; - try { - input = urlToOptions(new URL(urlStr)); - } - catch (err) { - /* istanbul ignore next */ - input = url.parse(urlStr); - } - } - else if (URL && (input instanceof URL)) { - input = urlToOptions(input); - } - else { - callback = options; - options = input; - input = { protocol: protocol }; - } - if (typeof options === "function") { - callback = options; - options = null; - } - - // Set defaults - options = Object.assign({ - maxRedirects: exports.maxRedirects, - maxBodyLength: exports.maxBodyLength, - }, input, options); - options.nativeProtocols = nativeProtocols; - - assert.equal(options.protocol, protocol, "protocol mismatch"); - debug("options", options); - return new RedirectableRequest(options, callback); - } - - // Executes a GET request, following redirects - function get(input, options, callback) { - var wrappedRequest = wrappedProtocol.request(input, options, callback); - wrappedRequest.end(); - return wrappedRequest; - } - - // Expose the properties on the wrapped protocol - Object.defineProperties(wrappedProtocol, { - request: { value: request, configurable: true, enumerable: true, writable: true }, - get: { value: get, configurable: true, enumerable: true, writable: true }, - }); - }); - return exports; -} - -/* istanbul ignore next */ -function noop() { /* empty */ } - -// from https://github.com/nodejs/node/blob/master/lib/internal/url.js -function urlToOptions(urlObject) { - var options = { - protocol: urlObject.protocol, - hostname: urlObject.hostname.startsWith("[") ? - /* istanbul ignore next */ - urlObject.hostname.slice(1, -1) : - urlObject.hostname, - hash: urlObject.hash, - search: urlObject.search, - pathname: urlObject.pathname, - path: urlObject.pathname + urlObject.search, - href: urlObject.href, - }; - if (urlObject.port !== "") { - options.port = Number(urlObject.port); - } - return options; -} - -function removeMatchingHeaders(regex, headers) { - var lastValue; - for (var header in headers) { - if (regex.test(header)) { - lastValue = headers[header]; - delete headers[header]; - } - } - return lastValue; -} - -function createErrorType(code, defaultMessage) { - function CustomError(message) { - Error.captureStackTrace(this, this.constructor); - this.message = message || defaultMessage; - } - CustomError.prototype = new Error(); - CustomError.prototype.constructor = CustomError; - CustomError.prototype.name = "Error [" + code + "]"; - CustomError.prototype.code = code; - return CustomError; -} - -function abortRequest(request) { - for (var e = 0; e < events.length; e++) { - request.removeListener(events[e], eventHandlers[events[e]]); - } - request.on("error", noop); - request.abort(); -} - -// Exports -module.exports = wrap({ http: http, https: https }); -module.exports.wrap = wrap; - - /***/ }), /***/ 3576: @@ -19362,277 +17823,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-07-29","endpoin module.exports = {"pagination":{"GetComplianceSummary":{"input_token":"PaginationToken","limit_key":"MaxResults","output_token":"PaginationToken","result_key":"SummaryList"},"GetResources":{"input_token":"PaginationToken","limit_key":"ResourcesPerPage","output_token":"PaginationToken","result_key":"ResourceTagMappingList"},"GetTagKeys":{"input_token":"PaginationToken","output_token":"PaginationToken","result_key":"TagKeys"},"GetTagValues":{"input_token":"PaginationToken","output_token":"PaginationToken","result_key":"TagValues"}}}; -/***/ }), - -/***/ 3794: -/***/ (function(module, exports, __webpack_require__) { - -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ - -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); - -/** - * Colors. - */ - -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; - -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. - * - * @api public - */ - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - -/** - * Invokes `console.log()` when available. - * No-op when `console.log` is not a "function". - * - * @api public - */ -function log(...args) { - // This hackery is required for IE8/9, where - // the `console.log` function doesn't have 'apply' - return typeof console === 'object' && - console.log && - console.log(...args); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ -function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} - -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = __webpack_require__(6486)(exports); - -const {formatters} = module.exports; - -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; - - /***/ }), /***/ 3801: @@ -20089,13 +18279,6 @@ module.exports = { }; -/***/ }), - -/***/ 3867: -/***/ (function(module) { - -module.exports = require("tty"); - /***/ }), /***/ 3870: @@ -20169,101 +18352,6 @@ module.exports = {"pagination":{"ListConnectors":{"input_token":"nextToken","out module.exports = {"pagination":{"DescribeDBClusterEndpoints":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBClusterEndpoints"},"DescribeDBClusterParameterGroups":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBClusterParameterGroups"},"DescribeDBClusterParameters":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"Parameters"},"DescribeDBClusterSnapshots":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBClusterSnapshots"},"DescribeDBClusters":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBClusters"},"DescribeDBEngineVersions":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBEngineVersions"},"DescribeDBInstances":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBInstances"},"DescribeDBParameterGroups":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBParameterGroups"},"DescribeDBParameters":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"Parameters"},"DescribeDBSubnetGroups":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"DBSubnetGroups"},"DescribeEngineDefaultParameters":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"EngineDefaults.Marker","result_key":"EngineDefaults.Parameters"},"DescribeEventSubscriptions":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"EventSubscriptionsList"},"DescribeEvents":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"Events"},"DescribeOrderableDBInstanceOptions":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"OrderableDBInstanceOptions"},"DescribePendingMaintenanceActions":{"input_token":"Marker","limit_key":"MaxRecords","output_token":"Marker","result_key":"PendingMaintenanceActions"},"ListTagsForResource":{"result_key":"TagList"}}}; -/***/ }), - -/***/ 3946: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var transformData = __webpack_require__(5589); -var isCancel = __webpack_require__(5732); -var defaults = __webpack_require__(6774); -var Cancel = __webpack_require__(9826); - -/** - * Throws a `Cancel` if cancellation has been requested. - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - - if (config.signal && config.signal.aborted) { - throw new Cancel('canceled'); - } -} - -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * @returns {Promise} The Promise to be fulfilled - */ -module.exports = function dispatchRequest(config) { - throwIfCancellationRequested(config); - - // Ensure headers exist - config.headers = config.headers || {}; - - // Transform request data - config.data = transformData.call( - config, - config.data, - config.headers, - config.transformRequest - ); - - // Flatten headers - config.headers = utils.merge( - config.headers.common || {}, - config.headers[config.method] || {}, - config.headers - ); - - utils.forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - function cleanHeaderConfig(method) { - delete config.headers[method]; - } - ); - - var adapter = config.adapter || defaults.adapter; - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = transformData.call( - config, - response.data, - response.headers, - config.transformResponse - ); - - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData.call( - config, - reason.response.data, - reason.response.headers, - config.transformResponse - ); - } - } - - return Promise.reject(reason); - }); -}; - - /***/ }), /***/ 3964: @@ -21824,28 +19912,6 @@ module.exports = {"version":2,"waiters":{"NotebookInstanceInService":{"delay":30 module.exports = {"version":"2.0","metadata":{"apiVersion":"2019-11-01","endpointPrefix":"access-analyzer","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"Access Analyzer","serviceId":"AccessAnalyzer","signatureVersion":"v4","signingName":"access-analyzer","uid":"accessanalyzer-2019-11-01"},"operations":{"ApplyArchiveRule":{"http":{"method":"PUT","requestUri":"/archive-rule","responseCode":200},"input":{"type":"structure","required":["analyzerArn","ruleName"],"members":{"analyzerArn":{},"clientToken":{"idempotencyToken":true},"ruleName":{}}},"idempotent":true},"CancelPolicyGeneration":{"http":{"method":"PUT","requestUri":"/policy/generation/{jobId}","responseCode":200},"input":{"type":"structure","required":["jobId"],"members":{"jobId":{"location":"uri","locationName":"jobId"}}},"output":{"type":"structure","members":{}},"idempotent":true},"CreateAccessPreview":{"http":{"method":"PUT","requestUri":"/access-preview","responseCode":200},"input":{"type":"structure","required":["analyzerArn","configurations"],"members":{"analyzerArn":{},"clientToken":{"idempotencyToken":true},"configurations":{"shape":"S9"}}},"output":{"type":"structure","required":["id"],"members":{"id":{}}},"idempotent":true},"CreateAnalyzer":{"http":{"method":"PUT","requestUri":"/analyzer","responseCode":200},"input":{"type":"structure","required":["analyzerName","type"],"members":{"analyzerName":{},"archiveRules":{"type":"list","member":{"type":"structure","required":["filter","ruleName"],"members":{"filter":{"shape":"S1l"},"ruleName":{}}}},"clientToken":{"idempotencyToken":true},"tags":{"shape":"S1o"},"type":{}}},"output":{"type":"structure","members":{"arn":{}}},"idempotent":true},"CreateArchiveRule":{"http":{"method":"PUT","requestUri":"/analyzer/{analyzerName}/archive-rule","responseCode":200},"input":{"type":"structure","required":["analyzerName","filter","ruleName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"},"clientToken":{"idempotencyToken":true},"filter":{"shape":"S1l"},"ruleName":{}}},"idempotent":true},"DeleteAnalyzer":{"http":{"method":"DELETE","requestUri":"/analyzer/{analyzerName}","responseCode":200},"input":{"type":"structure","required":["analyzerName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"}}},"idempotent":true},"DeleteArchiveRule":{"http":{"method":"DELETE","requestUri":"/analyzer/{analyzerName}/archive-rule/{ruleName}","responseCode":200},"input":{"type":"structure","required":["analyzerName","ruleName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"},"clientToken":{"idempotencyToken":true,"location":"querystring","locationName":"clientToken"},"ruleName":{"location":"uri","locationName":"ruleName"}}},"idempotent":true},"GetAccessPreview":{"http":{"method":"GET","requestUri":"/access-preview/{accessPreviewId}","responseCode":200},"input":{"type":"structure","required":["accessPreviewId","analyzerArn"],"members":{"accessPreviewId":{"location":"uri","locationName":"accessPreviewId"},"analyzerArn":{"location":"querystring","locationName":"analyzerArn"}}},"output":{"type":"structure","required":["accessPreview"],"members":{"accessPreview":{"type":"structure","required":["analyzerArn","configurations","createdAt","id","status"],"members":{"analyzerArn":{},"configurations":{"shape":"S9"},"createdAt":{"shape":"S1x"},"id":{},"status":{},"statusReason":{"shape":"S1z"}}}}}},"GetAnalyzedResource":{"http":{"method":"GET","requestUri":"/analyzed-resource","responseCode":200},"input":{"type":"structure","required":["analyzerArn","resourceArn"],"members":{"analyzerArn":{"location":"querystring","locationName":"analyzerArn"},"resourceArn":{"location":"querystring","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"resource":{"type":"structure","required":["analyzedAt","createdAt","isPublic","resourceArn","resourceOwnerAccount","resourceType","updatedAt"],"members":{"actions":{"shape":"S25"},"analyzedAt":{"shape":"S1x"},"createdAt":{"shape":"S1x"},"error":{},"isPublic":{"type":"boolean"},"resourceArn":{},"resourceOwnerAccount":{},"resourceType":{},"sharedVia":{"type":"list","member":{}},"status":{},"updatedAt":{"shape":"S1x"}}}}}},"GetAnalyzer":{"http":{"method":"GET","requestUri":"/analyzer/{analyzerName}","responseCode":200},"input":{"type":"structure","required":["analyzerName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"}}},"output":{"type":"structure","required":["analyzer"],"members":{"analyzer":{"shape":"S2b"}}}},"GetArchiveRule":{"http":{"method":"GET","requestUri":"/analyzer/{analyzerName}/archive-rule/{ruleName}","responseCode":200},"input":{"type":"structure","required":["analyzerName","ruleName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"},"ruleName":{"location":"uri","locationName":"ruleName"}}},"output":{"type":"structure","required":["archiveRule"],"members":{"archiveRule":{"shape":"S2h"}}}},"GetFinding":{"http":{"method":"GET","requestUri":"/finding/{id}","responseCode":200},"input":{"type":"structure","required":["analyzerArn","id"],"members":{"analyzerArn":{"location":"querystring","locationName":"analyzerArn"},"id":{"location":"uri","locationName":"id"}}},"output":{"type":"structure","members":{"finding":{"type":"structure","required":["analyzedAt","condition","createdAt","id","resourceOwnerAccount","resourceType","status","updatedAt"],"members":{"action":{"shape":"S25"},"analyzedAt":{"shape":"S1x"},"condition":{"shape":"S2m"},"createdAt":{"shape":"S1x"},"error":{},"id":{},"isPublic":{"type":"boolean"},"principal":{"shape":"S2n"},"resource":{},"resourceOwnerAccount":{},"resourceType":{},"sources":{"shape":"S2o"},"status":{},"updatedAt":{"shape":"S1x"}}}}}},"GetGeneratedPolicy":{"http":{"method":"GET","requestUri":"/policy/generation/{jobId}","responseCode":200},"input":{"type":"structure","required":["jobId"],"members":{"includeResourcePlaceholders":{"location":"querystring","locationName":"includeResourcePlaceholders","type":"boolean"},"includeServiceLevelTemplate":{"location":"querystring","locationName":"includeServiceLevelTemplate","type":"boolean"},"jobId":{"location":"uri","locationName":"jobId"}}},"output":{"type":"structure","required":["generatedPolicyResult","jobDetails"],"members":{"generatedPolicyResult":{"type":"structure","required":["properties"],"members":{"generatedPolicies":{"type":"list","member":{"type":"structure","required":["policy"],"members":{"policy":{}}}},"properties":{"type":"structure","required":["principalArn"],"members":{"cloudTrailProperties":{"type":"structure","required":["endTime","startTime","trailProperties"],"members":{"endTime":{"shape":"S1x"},"startTime":{"shape":"S1x"},"trailProperties":{"type":"list","member":{"type":"structure","required":["cloudTrailArn"],"members":{"allRegions":{"type":"boolean"},"cloudTrailArn":{},"regions":{"shape":"S32"}}}}}},"isComplete":{"type":"boolean"},"principalArn":{}}}}},"jobDetails":{"type":"structure","required":["jobId","startedOn","status"],"members":{"completedOn":{"shape":"S1x"},"jobError":{"type":"structure","required":["code","message"],"members":{"code":{},"message":{}}},"jobId":{},"startedOn":{"shape":"S1x"},"status":{}}}}}},"ListAccessPreviewFindings":{"http":{"requestUri":"/access-preview/{accessPreviewId}","responseCode":200},"input":{"type":"structure","required":["accessPreviewId","analyzerArn"],"members":{"accessPreviewId":{"location":"uri","locationName":"accessPreviewId"},"analyzerArn":{},"filter":{"shape":"S1l"},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["findings"],"members":{"findings":{"type":"list","member":{"type":"structure","required":["changeType","createdAt","id","resourceOwnerAccount","resourceType","status"],"members":{"action":{"shape":"S25"},"changeType":{},"condition":{"shape":"S2m"},"createdAt":{"shape":"S1x"},"error":{},"existingFindingId":{},"existingFindingStatus":{},"id":{},"isPublic":{"type":"boolean"},"principal":{"shape":"S2n"},"resource":{},"resourceOwnerAccount":{},"resourceType":{},"sources":{"shape":"S2o"},"status":{}}}},"nextToken":{}}}},"ListAccessPreviews":{"http":{"method":"GET","requestUri":"/access-preview","responseCode":200},"input":{"type":"structure","required":["analyzerArn"],"members":{"analyzerArn":{"location":"querystring","locationName":"analyzerArn"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["accessPreviews"],"members":{"accessPreviews":{"type":"list","member":{"type":"structure","required":["analyzerArn","createdAt","id","status"],"members":{"analyzerArn":{},"createdAt":{"shape":"S1x"},"id":{},"status":{},"statusReason":{"shape":"S1z"}}}},"nextToken":{}}}},"ListAnalyzedResources":{"http":{"requestUri":"/analyzed-resource","responseCode":200},"input":{"type":"structure","required":["analyzerArn"],"members":{"analyzerArn":{},"maxResults":{"type":"integer"},"nextToken":{},"resourceType":{}}},"output":{"type":"structure","required":["analyzedResources"],"members":{"analyzedResources":{"type":"list","member":{"type":"structure","required":["resourceArn","resourceOwnerAccount","resourceType"],"members":{"resourceArn":{},"resourceOwnerAccount":{},"resourceType":{}}}},"nextToken":{}}}},"ListAnalyzers":{"http":{"method":"GET","requestUri":"/analyzer","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"type":{"location":"querystring","locationName":"type"}}},"output":{"type":"structure","required":["analyzers"],"members":{"analyzers":{"type":"list","member":{"shape":"S2b"}},"nextToken":{}}}},"ListArchiveRules":{"http":{"method":"GET","requestUri":"/analyzer/{analyzerName}/archive-rule","responseCode":200},"input":{"type":"structure","required":["analyzerName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["archiveRules"],"members":{"archiveRules":{"type":"list","member":{"shape":"S2h"}},"nextToken":{}}}},"ListFindings":{"http":{"requestUri":"/finding","responseCode":200},"input":{"type":"structure","required":["analyzerArn"],"members":{"analyzerArn":{},"filter":{"shape":"S1l"},"maxResults":{"type":"integer"},"nextToken":{},"sort":{"type":"structure","members":{"attributeName":{},"orderBy":{}}}}},"output":{"type":"structure","required":["findings"],"members":{"findings":{"type":"list","member":{"type":"structure","required":["analyzedAt","condition","createdAt","id","resourceOwnerAccount","resourceType","status","updatedAt"],"members":{"action":{"shape":"S25"},"analyzedAt":{"shape":"S1x"},"condition":{"shape":"S2m"},"createdAt":{"shape":"S1x"},"error":{},"id":{},"isPublic":{"type":"boolean"},"principal":{"shape":"S2n"},"resource":{},"resourceOwnerAccount":{},"resourceType":{},"sources":{"shape":"S2o"},"status":{},"updatedAt":{"shape":"S1x"}}}},"nextToken":{}}}},"ListPolicyGenerations":{"http":{"method":"GET","requestUri":"/policy/generation","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"principalArn":{"location":"querystring","locationName":"principalArn"}}},"output":{"type":"structure","required":["policyGenerations"],"members":{"nextToken":{},"policyGenerations":{"type":"list","member":{"type":"structure","required":["jobId","principalArn","startedOn","status"],"members":{"completedOn":{"shape":"S1x"},"jobId":{},"principalArn":{},"startedOn":{"shape":"S1x"},"status":{}}}}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"tags":{"shape":"S1o"}}}},"StartPolicyGeneration":{"http":{"method":"PUT","requestUri":"/policy/generation","responseCode":200},"input":{"type":"structure","required":["policyGenerationDetails"],"members":{"clientToken":{"idempotencyToken":true},"cloudTrailDetails":{"type":"structure","required":["accessRole","startTime","trails"],"members":{"accessRole":{},"endTime":{"shape":"S1x"},"startTime":{"shape":"S1x"},"trails":{"type":"list","member":{"type":"structure","required":["cloudTrailArn"],"members":{"allRegions":{"type":"boolean"},"cloudTrailArn":{},"regions":{"shape":"S32"}}}}}},"policyGenerationDetails":{"type":"structure","required":["principalArn"],"members":{"principalArn":{}}}}},"output":{"type":"structure","required":["jobId"],"members":{"jobId":{}}},"idempotent":true},"StartResourceScan":{"http":{"requestUri":"/resource/scan","responseCode":200},"input":{"type":"structure","required":["analyzerArn","resourceArn"],"members":{"analyzerArn":{},"resourceArn":{}}}},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tags"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tags":{"shape":"S1o"}}},"output":{"type":"structure","members":{}},"idempotent":true},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tagKeys"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}},"idempotent":true},"UpdateArchiveRule":{"http":{"method":"PUT","requestUri":"/analyzer/{analyzerName}/archive-rule/{ruleName}","responseCode":200},"input":{"type":"structure","required":["analyzerName","filter","ruleName"],"members":{"analyzerName":{"location":"uri","locationName":"analyzerName"},"clientToken":{"idempotencyToken":true},"filter":{"shape":"S1l"},"ruleName":{"location":"uri","locationName":"ruleName"}}},"idempotent":true},"UpdateFindings":{"http":{"method":"PUT","requestUri":"/finding","responseCode":200},"input":{"type":"structure","required":["analyzerArn","status"],"members":{"analyzerArn":{},"clientToken":{"idempotencyToken":true},"ids":{"type":"list","member":{}},"resourceArn":{},"status":{}}},"idempotent":true},"ValidatePolicy":{"http":{"requestUri":"/policy/validation","responseCode":200},"input":{"type":"structure","required":["policyDocument","policyType"],"members":{"locale":{},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"policyDocument":{},"policyType":{}}},"output":{"type":"structure","required":["findings"],"members":{"findings":{"type":"list","member":{"type":"structure","required":["findingDetails","findingType","issueCode","learnMoreLink","locations"],"members":{"findingDetails":{},"findingType":{},"issueCode":{},"learnMoreLink":{},"locations":{"type":"list","member":{"type":"structure","required":["path","span"],"members":{"path":{"type":"list","member":{"type":"structure","members":{"index":{"type":"integer"},"key":{},"substring":{"type":"structure","required":["length","start"],"members":{"length":{"type":"integer"},"start":{"type":"integer"}}},"value":{}},"union":true}},"span":{"type":"structure","required":["end","start"],"members":{"end":{"shape":"S54"},"start":{"shape":"S54"}}}}}}}}},"nextToken":{}}}}},"shapes":{"S9":{"type":"map","key":{},"value":{"type":"structure","members":{"iamRole":{"type":"structure","members":{"trustPolicy":{}}},"kmsKey":{"type":"structure","members":{"grants":{"type":"list","member":{"type":"structure","required":["granteePrincipal","issuingAccount","operations"],"members":{"constraints":{"type":"structure","members":{"encryptionContextEquals":{"shape":"Si"},"encryptionContextSubset":{"shape":"Si"}}},"granteePrincipal":{},"issuingAccount":{},"operations":{"type":"list","member":{}},"retiringPrincipal":{}}}},"keyPolicies":{"type":"map","key":{},"value":{}}}},"s3Bucket":{"type":"structure","members":{"accessPoints":{"type":"map","key":{},"value":{"type":"structure","members":{"accessPointPolicy":{},"networkOrigin":{"type":"structure","members":{"internetConfiguration":{"type":"structure","members":{}},"vpcConfiguration":{"type":"structure","required":["vpcId"],"members":{"vpcId":{}}}},"union":true},"publicAccessBlock":{"shape":"S12"}}}},"bucketAclGrants":{"type":"list","member":{"type":"structure","required":["grantee","permission"],"members":{"grantee":{"type":"structure","members":{"id":{},"uri":{}},"union":true},"permission":{}}}},"bucketPolicy":{},"bucketPublicAccessBlock":{"shape":"S12"}}},"secretsManagerSecret":{"type":"structure","members":{"kmsKeyId":{},"secretPolicy":{}}},"sqsQueue":{"type":"structure","members":{"queuePolicy":{}}}},"union":true}},"Si":{"type":"map","key":{},"value":{}},"S12":{"type":"structure","required":["ignorePublicAcls","restrictPublicBuckets"],"members":{"ignorePublicAcls":{"type":"boolean"},"restrictPublicBuckets":{"type":"boolean"}}},"S1l":{"type":"map","key":{},"value":{"type":"structure","members":{"contains":{"shape":"S1n"},"eq":{"shape":"S1n"},"exists":{"type":"boolean"},"neq":{"shape":"S1n"}}}},"S1n":{"type":"list","member":{}},"S1o":{"type":"map","key":{},"value":{}},"S1x":{"type":"timestamp","timestampFormat":"iso8601"},"S1z":{"type":"structure","required":["code"],"members":{"code":{}}},"S25":{"type":"list","member":{}},"S2b":{"type":"structure","required":["arn","createdAt","name","status","type"],"members":{"arn":{},"createdAt":{"shape":"S1x"},"lastResourceAnalyzed":{},"lastResourceAnalyzedAt":{"shape":"S1x"},"name":{},"status":{},"statusReason":{"type":"structure","required":["code"],"members":{"code":{}}},"tags":{"shape":"S1o"},"type":{}}},"S2h":{"type":"structure","required":["createdAt","filter","ruleName","updatedAt"],"members":{"createdAt":{"shape":"S1x"},"filter":{"shape":"S1l"},"ruleName":{},"updatedAt":{"shape":"S1x"}}},"S2m":{"type":"map","key":{},"value":{}},"S2n":{"type":"map","key":{},"value":{}},"S2o":{"type":"list","member":{"type":"structure","required":["type"],"members":{"detail":{"type":"structure","members":{"accessPointArn":{}}},"type":{}}}},"S32":{"type":"list","member":{}},"S54":{"type":"structure","required":["column","line","offset"],"members":{"column":{"type":"integer"},"line":{"type":"integer"},"offset":{"type":"integer"}}}}}; -/***/ }), - -/***/ 4590: -/***/ (function(module) { - -"use strict"; - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -module.exports = function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); -}; - - /***/ }), /***/ 4599: @@ -22072,67 +20138,6 @@ module.exports = { module.exports = {"version":"2.0","metadata":{"apiVersion":"2015-06-23","endpointPrefix":"devicefarm","jsonVersion":"1.1","protocol":"json","serviceFullName":"AWS Device Farm","serviceId":"Device Farm","signatureVersion":"v4","targetPrefix":"DeviceFarm_20150623","uid":"devicefarm-2015-06-23"},"operations":{"CreateDevicePool":{"input":{"type":"structure","required":["projectArn","name","rules"],"members":{"projectArn":{},"name":{},"description":{},"rules":{"shape":"S5"},"maxDevices":{"type":"integer"}}},"output":{"type":"structure","members":{"devicePool":{"shape":"Sc"}}}},"CreateInstanceProfile":{"input":{"type":"structure","required":["name"],"members":{"name":{},"description":{},"packageCleanup":{"type":"boolean"},"excludeAppPackagesFromCleanup":{"shape":"Sg"},"rebootAfterUse":{"type":"boolean"}}},"output":{"type":"structure","members":{"instanceProfile":{"shape":"Si"}}}},"CreateNetworkProfile":{"input":{"type":"structure","required":["projectArn","name"],"members":{"projectArn":{},"name":{},"description":{},"type":{},"uplinkBandwidthBits":{"type":"long"},"downlinkBandwidthBits":{"type":"long"},"uplinkDelayMs":{"type":"long"},"downlinkDelayMs":{"type":"long"},"uplinkJitterMs":{"type":"long"},"downlinkJitterMs":{"type":"long"},"uplinkLossPercent":{"type":"integer"},"downlinkLossPercent":{"type":"integer"}}},"output":{"type":"structure","members":{"networkProfile":{"shape":"So"}}}},"CreateProject":{"input":{"type":"structure","required":["name"],"members":{"name":{},"defaultJobTimeoutMinutes":{"type":"integer"}}},"output":{"type":"structure","members":{"project":{"shape":"Ss"}}}},"CreateRemoteAccessSession":{"input":{"type":"structure","required":["projectArn","deviceArn"],"members":{"projectArn":{},"deviceArn":{},"instanceArn":{},"sshPublicKey":{},"remoteDebugEnabled":{"type":"boolean"},"remoteRecordEnabled":{"type":"boolean"},"remoteRecordAppArn":{},"name":{},"clientId":{},"configuration":{"type":"structure","members":{"billingMethod":{},"vpceConfigurationArns":{"shape":"Sz"}}},"interactionMode":{},"skipAppResign":{"type":"boolean"}}},"output":{"type":"structure","members":{"remoteAccessSession":{"shape":"S12"}}}},"CreateTestGridProject":{"input":{"type":"structure","required":["name"],"members":{"name":{},"description":{},"vpcConfig":{"shape":"S1m"}}},"output":{"type":"structure","members":{"testGridProject":{"shape":"S1r"}}}},"CreateTestGridUrl":{"input":{"type":"structure","required":["projectArn","expiresInSeconds"],"members":{"projectArn":{},"expiresInSeconds":{"type":"integer"}}},"output":{"type":"structure","members":{"url":{"shape":"S1w"},"expires":{"type":"timestamp"}}}},"CreateUpload":{"input":{"type":"structure","required":["projectArn","name","type"],"members":{"projectArn":{},"name":{},"type":{},"contentType":{}}},"output":{"type":"structure","members":{"upload":{"shape":"S21"}}}},"CreateVPCEConfiguration":{"input":{"type":"structure","required":["vpceConfigurationName","vpceServiceName","serviceDnsName"],"members":{"vpceConfigurationName":{},"vpceServiceName":{},"serviceDnsName":{},"vpceConfigurationDescription":{}}},"output":{"type":"structure","members":{"vpceConfiguration":{"shape":"S2c"}}}},"DeleteDevicePool":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteInstanceProfile":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteNetworkProfile":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteProject":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteRemoteAccessSession":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteRun":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteTestGridProject":{"input":{"type":"structure","required":["projectArn"],"members":{"projectArn":{}}},"output":{"type":"structure","members":{}}},"DeleteUpload":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"DeleteVPCEConfiguration":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{}}},"GetAccountSettings":{"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"accountSettings":{"type":"structure","members":{"awsAccountNumber":{},"unmeteredDevices":{"shape":"S2z"},"unmeteredRemoteAccessDevices":{"shape":"S2z"},"maxJobTimeoutMinutes":{"type":"integer"},"trialMinutes":{"type":"structure","members":{"total":{"type":"double"},"remaining":{"type":"double"}}},"maxSlots":{"type":"map","key":{},"value":{"type":"integer"}},"defaultJobTimeoutMinutes":{"type":"integer"},"skipAppResign":{"type":"boolean"}}}}}},"GetDevice":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"device":{"shape":"S15"}}}},"GetDeviceInstance":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"deviceInstance":{"shape":"S1c"}}}},"GetDevicePool":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"devicePool":{"shape":"Sc"}}}},"GetDevicePoolCompatibility":{"input":{"type":"structure","required":["devicePoolArn"],"members":{"devicePoolArn":{},"appArn":{},"testType":{},"test":{"shape":"S3a"},"configuration":{"shape":"S3d"}}},"output":{"type":"structure","members":{"compatibleDevices":{"shape":"S3l"},"incompatibleDevices":{"shape":"S3l"}}}},"GetInstanceProfile":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"instanceProfile":{"shape":"Si"}}}},"GetJob":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"job":{"shape":"S3t"}}}},"GetNetworkProfile":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"networkProfile":{"shape":"So"}}}},"GetOfferingStatus":{"input":{"type":"structure","members":{"nextToken":{}}},"output":{"type":"structure","members":{"current":{"shape":"S41"},"nextPeriod":{"shape":"S41"},"nextToken":{}}}},"GetProject":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"project":{"shape":"Ss"}}}},"GetRemoteAccessSession":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"remoteAccessSession":{"shape":"S12"}}}},"GetRun":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"run":{"shape":"S4i"}}}},"GetSuite":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"suite":{"shape":"S4r"}}}},"GetTest":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"test":{"shape":"S4u"}}}},"GetTestGridProject":{"input":{"type":"structure","required":["projectArn"],"members":{"projectArn":{}}},"output":{"type":"structure","members":{"testGridProject":{"shape":"S1r"}}}},"GetTestGridSession":{"input":{"type":"structure","members":{"projectArn":{},"sessionId":{},"sessionArn":{}}},"output":{"type":"structure","members":{"testGridSession":{"shape":"S50"}}}},"GetUpload":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"upload":{"shape":"S21"}}}},"GetVPCEConfiguration":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"vpceConfiguration":{"shape":"S2c"}}}},"InstallToRemoteAccessSession":{"input":{"type":"structure","required":["remoteAccessSessionArn","appArn"],"members":{"remoteAccessSessionArn":{},"appArn":{}}},"output":{"type":"structure","members":{"appUpload":{"shape":"S21"}}}},"ListArtifacts":{"input":{"type":"structure","required":["arn","type"],"members":{"arn":{},"type":{},"nextToken":{}}},"output":{"type":"structure","members":{"artifacts":{"type":"list","member":{"type":"structure","members":{"arn":{},"name":{},"type":{},"extension":{},"url":{}}}},"nextToken":{}}}},"ListDeviceInstances":{"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"deviceInstances":{"shape":"S1b"},"nextToken":{}}}},"ListDevicePools":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"type":{},"nextToken":{}}},"output":{"type":"structure","members":{"devicePools":{"type":"list","member":{"shape":"Sc"}},"nextToken":{}}}},"ListDevices":{"input":{"type":"structure","members":{"arn":{},"nextToken":{},"filters":{"shape":"S4l"}}},"output":{"type":"structure","members":{"devices":{"type":"list","member":{"shape":"S15"}},"nextToken":{}}}},"ListInstanceProfiles":{"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"instanceProfiles":{"type":"list","member":{"shape":"Si"}},"nextToken":{}}}},"ListJobs":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"jobs":{"type":"list","member":{"shape":"S3t"}},"nextToken":{}}}},"ListNetworkProfiles":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"type":{},"nextToken":{}}},"output":{"type":"structure","members":{"networkProfiles":{"type":"list","member":{"shape":"So"}},"nextToken":{}}}},"ListOfferingPromotions":{"input":{"type":"structure","members":{"nextToken":{}}},"output":{"type":"structure","members":{"offeringPromotions":{"type":"list","member":{"type":"structure","members":{"id":{},"description":{}}}},"nextToken":{}}}},"ListOfferingTransactions":{"input":{"type":"structure","members":{"nextToken":{}}},"output":{"type":"structure","members":{"offeringTransactions":{"type":"list","member":{"shape":"S64"}},"nextToken":{}}}},"ListOfferings":{"input":{"type":"structure","members":{"nextToken":{}}},"output":{"type":"structure","members":{"offerings":{"type":"list","member":{"shape":"S45"}},"nextToken":{}}}},"ListProjects":{"input":{"type":"structure","members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"projects":{"type":"list","member":{"shape":"Ss"}},"nextToken":{}}}},"ListRemoteAccessSessions":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"remoteAccessSessions":{"type":"list","member":{"shape":"S12"}},"nextToken":{}}}},"ListRuns":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"runs":{"type":"list","member":{"shape":"S4i"}},"nextToken":{}}}},"ListSamples":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"samples":{"type":"list","member":{"type":"structure","members":{"arn":{},"type":{},"url":{}}}},"nextToken":{}}}},"ListSuites":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"suites":{"type":"list","member":{"shape":"S4r"}},"nextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceARN"],"members":{"ResourceARN":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"S6s"}}}},"ListTestGridProjects":{"input":{"type":"structure","members":{"maxResult":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"testGridProjects":{"type":"list","member":{"shape":"S1r"}},"nextToken":{}}}},"ListTestGridSessionActions":{"input":{"type":"structure","required":["sessionArn"],"members":{"sessionArn":{},"maxResult":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"actions":{"type":"list","member":{"type":"structure","members":{"action":{},"started":{"type":"timestamp"},"duration":{"type":"long"},"statusCode":{},"requestMethod":{}}}},"nextToken":{}}}},"ListTestGridSessionArtifacts":{"input":{"type":"structure","required":["sessionArn"],"members":{"sessionArn":{},"type":{},"maxResult":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"artifacts":{"type":"list","member":{"type":"structure","members":{"filename":{},"type":{},"url":{"shape":"S1w"}}}},"nextToken":{}}}},"ListTestGridSessions":{"input":{"type":"structure","required":["projectArn"],"members":{"projectArn":{},"status":{},"creationTimeAfter":{"type":"timestamp"},"creationTimeBefore":{"type":"timestamp"},"endTimeAfter":{"type":"timestamp"},"endTimeBefore":{"type":"timestamp"},"maxResult":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"testGridSessions":{"type":"list","member":{"shape":"S50"}},"nextToken":{}}}},"ListTests":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"tests":{"type":"list","member":{"shape":"S4u"}},"nextToken":{}}}},"ListUniqueProblems":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"nextToken":{}}},"output":{"type":"structure","members":{"uniqueProblems":{"type":"map","key":{},"value":{"type":"list","member":{"type":"structure","members":{"message":{},"problems":{"type":"list","member":{"type":"structure","members":{"run":{"shape":"S7n"},"job":{"shape":"S7n"},"suite":{"shape":"S7n"},"test":{"shape":"S7n"},"device":{"shape":"S15"},"result":{},"message":{}}}}}}}},"nextToken":{}}}},"ListUploads":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"type":{},"nextToken":{}}},"output":{"type":"structure","members":{"uploads":{"type":"list","member":{"shape":"S21"}},"nextToken":{}}}},"ListVPCEConfigurations":{"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"vpceConfigurations":{"type":"list","member":{"shape":"S2c"}},"nextToken":{}}}},"PurchaseOffering":{"input":{"type":"structure","required":["offeringId","quantity"],"members":{"offeringId":{},"quantity":{"type":"integer"},"offeringPromotionId":{}}},"output":{"type":"structure","members":{"offeringTransaction":{"shape":"S64"}}}},"RenewOffering":{"input":{"type":"structure","required":["offeringId","quantity"],"members":{"offeringId":{},"quantity":{"type":"integer"}}},"output":{"type":"structure","members":{"offeringTransaction":{"shape":"S64"}}}},"ScheduleRun":{"input":{"type":"structure","required":["projectArn","test"],"members":{"projectArn":{},"appArn":{},"devicePoolArn":{},"deviceSelectionConfiguration":{"type":"structure","required":["filters","maxDevices"],"members":{"filters":{"shape":"S4l"},"maxDevices":{"type":"integer"}}},"name":{},"test":{"shape":"S3a"},"configuration":{"shape":"S3d"},"executionConfiguration":{"type":"structure","members":{"jobTimeoutMinutes":{"type":"integer"},"accountsCleanup":{"type":"boolean"},"appPackagesCleanup":{"type":"boolean"},"videoCapture":{"type":"boolean"},"skipAppResign":{"type":"boolean"}}}}},"output":{"type":"structure","members":{"run":{"shape":"S4i"}}}},"StopJob":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"job":{"shape":"S3t"}}}},"StopRemoteAccessSession":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"remoteAccessSession":{"shape":"S12"}}}},"StopRun":{"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","members":{"run":{"shape":"S4i"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceARN","Tags"],"members":{"ResourceARN":{},"Tags":{"shape":"S6s"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"input":{"type":"structure","required":["ResourceARN","TagKeys"],"members":{"ResourceARN":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateDeviceInstance":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"profileArn":{},"labels":{"shape":"S1d"}}},"output":{"type":"structure","members":{"deviceInstance":{"shape":"S1c"}}}},"UpdateDevicePool":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"name":{},"description":{},"rules":{"shape":"S5"},"maxDevices":{"type":"integer"},"clearMaxDevices":{"type":"boolean"}}},"output":{"type":"structure","members":{"devicePool":{"shape":"Sc"}}}},"UpdateInstanceProfile":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"name":{},"description":{},"packageCleanup":{"type":"boolean"},"excludeAppPackagesFromCleanup":{"shape":"Sg"},"rebootAfterUse":{"type":"boolean"}}},"output":{"type":"structure","members":{"instanceProfile":{"shape":"Si"}}}},"UpdateNetworkProfile":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"name":{},"description":{},"type":{},"uplinkBandwidthBits":{"type":"long"},"downlinkBandwidthBits":{"type":"long"},"uplinkDelayMs":{"type":"long"},"downlinkDelayMs":{"type":"long"},"uplinkJitterMs":{"type":"long"},"downlinkJitterMs":{"type":"long"},"uplinkLossPercent":{"type":"integer"},"downlinkLossPercent":{"type":"integer"}}},"output":{"type":"structure","members":{"networkProfile":{"shape":"So"}}}},"UpdateProject":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"name":{},"defaultJobTimeoutMinutes":{"type":"integer"}}},"output":{"type":"structure","members":{"project":{"shape":"Ss"}}}},"UpdateTestGridProject":{"input":{"type":"structure","required":["projectArn"],"members":{"projectArn":{},"name":{},"description":{},"vpcConfig":{"shape":"S1m"}}},"output":{"type":"structure","members":{"testGridProject":{"shape":"S1r"}}}},"UpdateUpload":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"name":{},"contentType":{},"editContent":{"type":"boolean"}}},"output":{"type":"structure","members":{"upload":{"shape":"S21"}}}},"UpdateVPCEConfiguration":{"input":{"type":"structure","required":["arn"],"members":{"arn":{},"vpceConfigurationName":{},"vpceServiceName":{},"serviceDnsName":{},"vpceConfigurationDescription":{}}},"output":{"type":"structure","members":{"vpceConfiguration":{"shape":"S2c"}}}}},"shapes":{"S5":{"type":"list","member":{"type":"structure","members":{"attribute":{},"operator":{},"value":{}}}},"Sc":{"type":"structure","members":{"arn":{},"name":{},"description":{},"type":{},"rules":{"shape":"S5"},"maxDevices":{"type":"integer"}}},"Sg":{"type":"list","member":{}},"Si":{"type":"structure","members":{"arn":{},"packageCleanup":{"type":"boolean"},"excludeAppPackagesFromCleanup":{"shape":"Sg"},"rebootAfterUse":{"type":"boolean"},"name":{},"description":{}}},"So":{"type":"structure","members":{"arn":{},"name":{},"description":{},"type":{},"uplinkBandwidthBits":{"type":"long"},"downlinkBandwidthBits":{"type":"long"},"uplinkDelayMs":{"type":"long"},"downlinkDelayMs":{"type":"long"},"uplinkJitterMs":{"type":"long"},"downlinkJitterMs":{"type":"long"},"uplinkLossPercent":{"type":"integer"},"downlinkLossPercent":{"type":"integer"}}},"Ss":{"type":"structure","members":{"arn":{},"name":{},"defaultJobTimeoutMinutes":{"type":"integer"},"created":{"type":"timestamp"}}},"Sz":{"type":"list","member":{}},"S12":{"type":"structure","members":{"arn":{},"name":{},"created":{"type":"timestamp"},"status":{},"result":{},"message":{},"started":{"type":"timestamp"},"stopped":{"type":"timestamp"},"device":{"shape":"S15"},"instanceArn":{},"remoteDebugEnabled":{"type":"boolean"},"remoteRecordEnabled":{"type":"boolean"},"remoteRecordAppArn":{},"hostAddress":{},"clientId":{},"billingMethod":{},"deviceMinutes":{"shape":"S1h"},"endpoint":{},"deviceUdid":{},"interactionMode":{},"skipAppResign":{"type":"boolean"}}},"S15":{"type":"structure","members":{"arn":{},"name":{},"manufacturer":{},"model":{},"modelId":{},"formFactor":{},"platform":{},"os":{},"cpu":{"type":"structure","members":{"frequency":{},"architecture":{},"clock":{"type":"double"}}},"resolution":{"type":"structure","members":{"width":{"type":"integer"},"height":{"type":"integer"}}},"heapSize":{"type":"long"},"memory":{"type":"long"},"image":{},"carrier":{},"radio":{},"remoteAccessEnabled":{"type":"boolean"},"remoteDebugEnabled":{"type":"boolean"},"fleetType":{},"fleetName":{},"instances":{"shape":"S1b"},"availability":{}}},"S1b":{"type":"list","member":{"shape":"S1c"}},"S1c":{"type":"structure","members":{"arn":{},"deviceArn":{},"labels":{"shape":"S1d"},"status":{},"udid":{},"instanceProfile":{"shape":"Si"}}},"S1d":{"type":"list","member":{}},"S1h":{"type":"structure","members":{"total":{"type":"double"},"metered":{"type":"double"},"unmetered":{"type":"double"}}},"S1m":{"type":"structure","required":["securityGroupIds","subnetIds","vpcId"],"members":{"securityGroupIds":{"type":"list","member":{}},"subnetIds":{"type":"list","member":{}},"vpcId":{}}},"S1r":{"type":"structure","members":{"arn":{},"name":{},"description":{},"vpcConfig":{"shape":"S1m"},"created":{"type":"timestamp"}}},"S1w":{"type":"string","sensitive":true},"S21":{"type":"structure","members":{"arn":{},"name":{},"created":{"type":"timestamp"},"type":{},"status":{},"url":{"type":"string","sensitive":true},"metadata":{},"contentType":{},"message":{},"category":{}}},"S2c":{"type":"structure","members":{"arn":{},"vpceConfigurationName":{},"vpceServiceName":{},"serviceDnsName":{},"vpceConfigurationDescription":{}}},"S2z":{"type":"map","key":{},"value":{"type":"integer"}},"S3a":{"type":"structure","required":["type"],"members":{"type":{},"testPackageArn":{},"testSpecArn":{},"filter":{},"parameters":{"type":"map","key":{},"value":{}}}},"S3d":{"type":"structure","members":{"extraDataPackageArn":{},"networkProfileArn":{},"locale":{},"location":{"shape":"S3e"},"vpceConfigurationArns":{"shape":"Sz"},"customerArtifactPaths":{"shape":"S3f"},"radios":{"shape":"S3j"},"auxiliaryApps":{"shape":"Sz"},"billingMethod":{}}},"S3e":{"type":"structure","required":["latitude","longitude"],"members":{"latitude":{"type":"double"},"longitude":{"type":"double"}}},"S3f":{"type":"structure","members":{"iosPaths":{"type":"list","member":{}},"androidPaths":{"type":"list","member":{}},"deviceHostPaths":{"type":"list","member":{}}}},"S3j":{"type":"structure","members":{"wifi":{"type":"boolean"},"bluetooth":{"type":"boolean"},"nfc":{"type":"boolean"},"gps":{"type":"boolean"}}},"S3l":{"type":"list","member":{"type":"structure","members":{"device":{"shape":"S15"},"compatible":{"type":"boolean"},"incompatibilityMessages":{"type":"list","member":{"type":"structure","members":{"message":{},"type":{}}}}}}},"S3t":{"type":"structure","members":{"arn":{},"name":{},"type":{},"created":{"type":"timestamp"},"status":{},"result":{},"started":{"type":"timestamp"},"stopped":{"type":"timestamp"},"counters":{"shape":"S3u"},"message":{},"device":{"shape":"S15"},"instanceArn":{},"deviceMinutes":{"shape":"S1h"},"videoEndpoint":{},"videoCapture":{"type":"boolean"}}},"S3u":{"type":"structure","members":{"total":{"type":"integer"},"passed":{"type":"integer"},"failed":{"type":"integer"},"warned":{"type":"integer"},"errored":{"type":"integer"},"stopped":{"type":"integer"},"skipped":{"type":"integer"}}},"S41":{"type":"map","key":{},"value":{"shape":"S43"}},"S43":{"type":"structure","members":{"type":{},"offering":{"shape":"S45"},"quantity":{"type":"integer"},"effectiveOn":{"type":"timestamp"}}},"S45":{"type":"structure","members":{"id":{},"description":{},"type":{},"platform":{},"recurringCharges":{"type":"list","member":{"type":"structure","members":{"cost":{"shape":"S49"},"frequency":{}}}}}},"S49":{"type":"structure","members":{"amount":{"type":"double"},"currencyCode":{}}},"S4i":{"type":"structure","members":{"arn":{},"name":{},"type":{},"platform":{},"created":{"type":"timestamp"},"status":{},"result":{},"started":{"type":"timestamp"},"stopped":{"type":"timestamp"},"counters":{"shape":"S3u"},"message":{},"totalJobs":{"type":"integer"},"completedJobs":{"type":"integer"},"billingMethod":{},"deviceMinutes":{"shape":"S1h"},"networkProfile":{"shape":"So"},"parsingResultUrl":{},"resultCode":{},"seed":{"type":"integer"},"appUpload":{},"eventCount":{"type":"integer"},"jobTimeoutMinutes":{"type":"integer"},"devicePoolArn":{},"locale":{},"radios":{"shape":"S3j"},"location":{"shape":"S3e"},"customerArtifactPaths":{"shape":"S3f"},"webUrl":{},"skipAppResign":{"type":"boolean"},"testSpecArn":{},"deviceSelectionResult":{"type":"structure","members":{"filters":{"shape":"S4l"},"matchedDevicesCount":{"type":"integer"},"maxDevices":{"type":"integer"}}}}},"S4l":{"type":"list","member":{"type":"structure","required":["attribute","operator","values"],"members":{"attribute":{},"operator":{},"values":{"type":"list","member":{}}}}},"S4r":{"type":"structure","members":{"arn":{},"name":{},"type":{},"created":{"type":"timestamp"},"status":{},"result":{},"started":{"type":"timestamp"},"stopped":{"type":"timestamp"},"counters":{"shape":"S3u"},"message":{},"deviceMinutes":{"shape":"S1h"}}},"S4u":{"type":"structure","members":{"arn":{},"name":{},"type":{},"created":{"type":"timestamp"},"status":{},"result":{},"started":{"type":"timestamp"},"stopped":{"type":"timestamp"},"counters":{"shape":"S3u"},"message":{},"deviceMinutes":{"shape":"S1h"}}},"S50":{"type":"structure","members":{"arn":{},"status":{},"created":{"type":"timestamp"},"ended":{"type":"timestamp"},"billingMinutes":{"type":"double"},"seleniumProperties":{}}},"S64":{"type":"structure","members":{"offeringStatus":{"shape":"S43"},"transactionId":{},"offeringPromotionId":{},"createdOn":{"type":"timestamp"},"cost":{"shape":"S49"}}},"S6s":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"S7n":{"type":"structure","members":{"arn":{},"name":{}}}}}; -/***/ }), - -/***/ 4631: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -// Headers whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -var ignoreDuplicateOf = [ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]; - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} headers Headers needing to be parsed - * @returns {Object} Headers parsed into an object - */ -module.exports = function parseHeaders(headers) { - var parsed = {}; - var key; - var val; - var i; - - if (!headers) { return parsed; } - - utils.forEach(headers.split('\n'), function parser(line) { - i = line.indexOf(':'); - key = utils.trim(line.substr(0, i)).toLowerCase(); - val = utils.trim(line.substr(i + 1)); - - if (key) { - if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { - return; - } - if (key === 'set-cookie') { - parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - } - }); - - return parsed; -}; - - /***/ }), /***/ 4645: @@ -23824,377 +21829,6 @@ module.exports = {"pagination":{"DescribeScalableTargets":{"input_token":"NextTo module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-07-01","endpointPrefix":"airflow","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"AmazonMWAA","serviceId":"MWAA","signatureVersion":"v4","signingName":"airflow","uid":"mwaa-2020-07-01"},"operations":{"CreateCliToken":{"http":{"requestUri":"/clitoken/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{"CliToken":{"type":"string","sensitive":true},"WebServerHostname":{}}},"endpoint":{"hostPrefix":"env."}},"CreateEnvironment":{"http":{"method":"PUT","requestUri":"/environments/{Name}","responseCode":200},"input":{"type":"structure","required":["DagS3Path","ExecutionRoleArn","Name","NetworkConfiguration","SourceBucketArn"],"members":{"AirflowConfigurationOptions":{"type":"map","key":{},"value":{},"sensitive":true},"AirflowVersion":{},"DagS3Path":{},"EnvironmentClass":{},"ExecutionRoleArn":{},"KmsKey":{},"LoggingConfiguration":{"shape":"Sf"},"MaxWorkers":{"type":"integer"},"MinWorkers":{"type":"integer"},"Name":{"location":"uri","locationName":"Name"},"NetworkConfiguration":{"shape":"Sl"},"PluginsS3ObjectVersion":{},"PluginsS3Path":{},"RequirementsS3ObjectVersion":{},"RequirementsS3Path":{},"Schedulers":{"type":"integer"},"SourceBucketArn":{},"Tags":{"shape":"St"},"WebserverAccessMode":{},"WeeklyMaintenanceWindowStart":{}}},"output":{"type":"structure","members":{"Arn":{}}},"endpoint":{"hostPrefix":"api."},"idempotent":true},"CreateWebLoginToken":{"http":{"requestUri":"/webtoken/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{"WebServerHostname":{},"WebToken":{"type":"string","sensitive":true}}},"endpoint":{"hostPrefix":"env."},"idempotent":true},"DeleteEnvironment":{"http":{"method":"DELETE","requestUri":"/environments/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"api."},"idempotent":true},"GetEnvironment":{"http":{"method":"GET","requestUri":"/environments/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{"Environment":{"type":"structure","members":{"AirflowConfigurationOptions":{"type":"map","key":{},"value":{}},"AirflowVersion":{},"Arn":{},"CreatedAt":{"type":"timestamp"},"DagS3Path":{},"EnvironmentClass":{},"ExecutionRoleArn":{},"KmsKey":{},"LastUpdate":{"type":"structure","members":{"CreatedAt":{"type":"timestamp"},"Error":{"type":"structure","members":{"ErrorCode":{},"ErrorMessage":{}}},"Status":{}}},"LoggingConfiguration":{"type":"structure","members":{"DagProcessingLogs":{"shape":"S1h"},"SchedulerLogs":{"shape":"S1h"},"TaskLogs":{"shape":"S1h"},"WebserverLogs":{"shape":"S1h"},"WorkerLogs":{"shape":"S1h"}}},"MaxWorkers":{"type":"integer"},"MinWorkers":{"type":"integer"},"Name":{},"NetworkConfiguration":{"shape":"Sl"},"PluginsS3ObjectVersion":{},"PluginsS3Path":{},"RequirementsS3ObjectVersion":{},"RequirementsS3Path":{},"Schedulers":{"type":"integer"},"ServiceRoleArn":{},"SourceBucketArn":{},"Status":{},"Tags":{"shape":"St"},"WebserverAccessMode":{},"WebserverUrl":{},"WeeklyMaintenanceWindowStart":{}}}}},"endpoint":{"hostPrefix":"api."}},"ListEnvironments":{"http":{"method":"GET","requestUri":"/environments","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"MaxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","required":["Environments"],"members":{"Environments":{"type":"list","member":{}},"NextToken":{}}},"endpoint":{"hostPrefix":"api."}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"}}},"output":{"type":"structure","members":{"Tags":{"shape":"St"}}},"endpoint":{"hostPrefix":"api."}},"PublishMetrics":{"http":{"requestUri":"/metrics/environments/{EnvironmentName}","responseCode":200},"input":{"type":"structure","required":["EnvironmentName","MetricData"],"members":{"EnvironmentName":{"location":"uri","locationName":"EnvironmentName"},"MetricData":{"type":"list","member":{"type":"structure","required":["MetricName","Timestamp"],"members":{"Dimensions":{"type":"list","member":{"type":"structure","required":["Name","Value"],"members":{"Name":{},"Value":{}}}},"MetricName":{},"StatisticValues":{"type":"structure","members":{"Maximum":{"type":"double"},"Minimum":{"type":"double"},"SampleCount":{"type":"integer"},"Sum":{"type":"double"}}},"Timestamp":{"type":"timestamp"},"Unit":{},"Value":{"type":"double"}}}}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"ops."}},"TagResource":{"http":{"requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"},"Tags":{"shape":"St"}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"api."}},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn","tagKeys"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"api."},"idempotent":true},"UpdateEnvironment":{"http":{"method":"PATCH","requestUri":"/environments/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"AirflowConfigurationOptions":{"type":"map","key":{},"value":{},"sensitive":true},"AirflowVersion":{},"DagS3Path":{},"EnvironmentClass":{},"ExecutionRoleArn":{},"LoggingConfiguration":{"shape":"Sf"},"MaxWorkers":{"type":"integer"},"MinWorkers":{"type":"integer"},"Name":{"location":"uri","locationName":"Name"},"NetworkConfiguration":{"type":"structure","required":["SecurityGroupIds"],"members":{"SecurityGroupIds":{"shape":"Sm"}}},"PluginsS3ObjectVersion":{},"PluginsS3Path":{},"RequirementsS3ObjectVersion":{},"RequirementsS3Path":{},"Schedulers":{"type":"integer"},"SourceBucketArn":{},"WebserverAccessMode":{},"WeeklyMaintenanceWindowStart":{}}},"output":{"type":"structure","members":{"Arn":{}}},"endpoint":{"hostPrefix":"api."}}},"shapes":{"Sf":{"type":"structure","members":{"DagProcessingLogs":{"shape":"Sg"},"SchedulerLogs":{"shape":"Sg"},"TaskLogs":{"shape":"Sg"},"WebserverLogs":{"shape":"Sg"},"WorkerLogs":{"shape":"Sg"}}},"Sg":{"type":"structure","required":["Enabled","LogLevel"],"members":{"Enabled":{"type":"boolean"},"LogLevel":{}}},"Sl":{"type":"structure","members":{"SecurityGroupIds":{"shape":"Sm"},"SubnetIds":{"type":"list","member":{}}}},"Sm":{"type":"list","member":{}},"St":{"type":"map","key":{},"value":{}},"S1h":{"type":"structure","members":{"CloudWatchLogGroupArn":{},"Enabled":{"type":"boolean"},"LogLevel":{}}}}}; -/***/ }), - -/***/ 4670: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var settle = __webpack_require__(2564); -var buildFullPath = __webpack_require__(5960); -var buildURL = __webpack_require__(3133); -var http = __webpack_require__(8605); -var https = __webpack_require__(7211); -var httpFollow = __webpack_require__(3549).http; -var httpsFollow = __webpack_require__(3549).https; -var url = __webpack_require__(8835); -var zlib = __webpack_require__(1903); -var VERSION = __webpack_require__(2148).version; -var createError = __webpack_require__(9026); -var enhanceError = __webpack_require__(392); -var defaults = __webpack_require__(6774); -var Cancel = __webpack_require__(9826); - -var isHttps = /https:?/; - -/** - * - * @param {http.ClientRequestArgs} options - * @param {AxiosProxyConfig} proxy - * @param {string} location - */ -function setProxy(options, proxy, location) { - options.hostname = proxy.host; - options.host = proxy.host; - options.port = proxy.port; - options.path = location; - - // Basic proxy authorization - if (proxy.auth) { - var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64'); - options.headers['Proxy-Authorization'] = 'Basic ' + base64; - } - - // If a proxy is used, any redirects must also pass through the proxy - options.beforeRedirect = function beforeRedirect(redirection) { - redirection.headers.host = redirection.host; - setProxy(redirection, proxy, redirection.href); - }; -} - -/*eslint consistent-return:0*/ -module.exports = function httpAdapter(config) { - return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) { - var onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - var resolve = function resolve(value) { - done(); - resolvePromise(value); - }; - var reject = function reject(value) { - done(); - rejectPromise(value); - }; - var data = config.data; - var headers = config.headers; - var headerNames = {}; - - Object.keys(headers).forEach(function storeLowerName(name) { - headerNames[name.toLowerCase()] = name; - }); - - // Set User-Agent (required by some servers) - // See https://github.com/axios/axios/issues/69 - if ('user-agent' in headerNames) { - // User-Agent is specified; handle case where no UA header is desired - if (!headers[headerNames['user-agent']]) { - delete headers[headerNames['user-agent']]; - } - // Otherwise, use specified value - } else { - // Only set header if it hasn't been set in config - headers['User-Agent'] = 'axios/' + VERSION; - } - - if (data && !utils.isStream(data)) { - if (Buffer.isBuffer(data)) { - // Nothing to do... - } else if (utils.isArrayBuffer(data)) { - data = Buffer.from(new Uint8Array(data)); - } else if (utils.isString(data)) { - data = Buffer.from(data, 'utf-8'); - } else { - return reject(createError( - 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', - config - )); - } - - // Add Content-Length header if data exists - if (!headerNames['content-length']) { - headers['Content-Length'] = data.length; - } - } - - // HTTP basic authentication - var auth = undefined; - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password || ''; - auth = username + ':' + password; - } - - // Parse url - var fullPath = buildFullPath(config.baseURL, config.url); - var parsed = url.parse(fullPath); - var protocol = parsed.protocol || 'http:'; - - if (!auth && parsed.auth) { - var urlAuth = parsed.auth.split(':'); - var urlUsername = urlAuth[0] || ''; - var urlPassword = urlAuth[1] || ''; - auth = urlUsername + ':' + urlPassword; - } - - if (auth && headerNames.authorization) { - delete headers[headerNames.authorization]; - } - - var isHttpsRequest = isHttps.test(protocol); - var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; - - var options = { - path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''), - method: config.method.toUpperCase(), - headers: headers, - agent: agent, - agents: { http: config.httpAgent, https: config.httpsAgent }, - auth: auth - }; - - if (config.socketPath) { - options.socketPath = config.socketPath; - } else { - options.hostname = parsed.hostname; - options.port = parsed.port; - } - - var proxy = config.proxy; - if (!proxy && proxy !== false) { - var proxyEnv = protocol.slice(0, -1) + '_proxy'; - var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()]; - if (proxyUrl) { - var parsedProxyUrl = url.parse(proxyUrl); - var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY; - var shouldProxy = true; - - if (noProxyEnv) { - var noProxy = noProxyEnv.split(',').map(function trim(s) { - return s.trim(); - }); - - shouldProxy = !noProxy.some(function proxyMatch(proxyElement) { - if (!proxyElement) { - return false; - } - if (proxyElement === '*') { - return true; - } - if (proxyElement[0] === '.' && - parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) { - return true; - } - - return parsed.hostname === proxyElement; - }); - } - - if (shouldProxy) { - proxy = { - host: parsedProxyUrl.hostname, - port: parsedProxyUrl.port, - protocol: parsedProxyUrl.protocol - }; - - if (parsedProxyUrl.auth) { - var proxyUrlAuth = parsedProxyUrl.auth.split(':'); - proxy.auth = { - username: proxyUrlAuth[0], - password: proxyUrlAuth[1] - }; - } - } - } - } - - if (proxy) { - options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : ''); - setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path); - } - - var transport; - var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true); - if (config.transport) { - transport = config.transport; - } else if (config.maxRedirects === 0) { - transport = isHttpsProxy ? https : http; - } else { - if (config.maxRedirects) { - options.maxRedirects = config.maxRedirects; - } - transport = isHttpsProxy ? httpsFollow : httpFollow; - } - - if (config.maxBodyLength > -1) { - options.maxBodyLength = config.maxBodyLength; - } - - if (config.insecureHTTPParser) { - options.insecureHTTPParser = config.insecureHTTPParser; - } - - // Create the request - var req = transport.request(options, function handleResponse(res) { - if (req.aborted) return; - - // uncompress the response body transparently if required - var stream = res; - - // return the last request in case of redirects - var lastRequest = res.req || req; - - - // if no content, is HEAD request or decompress disabled we should not decompress - if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) { - switch (res.headers['content-encoding']) { - /*eslint default-case:0*/ - case 'gzip': - case 'compress': - case 'deflate': - // add the unzipper to the body stream processing pipeline - stream = stream.pipe(zlib.createUnzip()); - - // remove the content-encoding in order to not confuse downstream operations - delete res.headers['content-encoding']; - break; - } - } - - var response = { - status: res.statusCode, - statusText: res.statusMessage, - headers: res.headers, - config: config, - request: lastRequest - }; - - if (config.responseType === 'stream') { - response.data = stream; - settle(resolve, reject, response); - } else { - var responseBuffer = []; - var totalResponseBytes = 0; - stream.on('data', function handleStreamData(chunk) { - responseBuffer.push(chunk); - totalResponseBytes += chunk.length; - - // make sure the content length is not over the maxContentLength if specified - if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { - stream.destroy(); - reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded', - config, null, lastRequest)); - } - }); - - stream.on('error', function handleStreamError(err) { - if (req.aborted) return; - reject(enhanceError(err, config, null, lastRequest)); - }); - - stream.on('end', function handleStreamEnd() { - var responseData = Buffer.concat(responseBuffer); - if (config.responseType !== 'arraybuffer') { - responseData = responseData.toString(config.responseEncoding); - if (!config.responseEncoding || config.responseEncoding === 'utf8') { - responseData = utils.stripBOM(responseData); - } - } - - response.data = responseData; - settle(resolve, reject, response); - }); - } - }); - - // Handle errors - req.on('error', function handleRequestError(err) { - if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return; - reject(enhanceError(err, config, null, req)); - }); - - // Handle request timeout - if (config.timeout) { - // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. - var timeout = parseInt(config.timeout, 10); - - if (isNaN(timeout)) { - reject(createError( - 'error trying to parse `config.timeout` to int', - config, - 'ERR_PARSE_TIMEOUT', - req - )); - - return; - } - - // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system. - // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET. - // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up. - // And then these socket which be hang up will devoring CPU little by little. - // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect. - req.setTimeout(timeout, function handleRequestTimeout() { - req.abort(); - var transitional = config.transitional || defaults.transitional; - reject(createError( - 'timeout of ' + timeout + 'ms exceeded', - config, - transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED', - req - )); - }); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = function(cancel) { - if (req.aborted) return; - - req.abort(); - reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel); - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - - // Send the request - if (utils.isStream(data)) { - data.on('error', function handleStreamError(err) { - reject(enhanceError(err, config, null, req)); - }).pipe(req); - } else { - req.end(data); - } - }); -}; - - /***/ }), /***/ 4671: @@ -24220,82 +21854,6 @@ Object.defineProperty(apiLoader.services['cur'], '2017-01-06', { module.exports = AWS.CUR; -/***/ }), - -/***/ 4688: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; - - /** - * Parse a URL to discover it's components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - var href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })() -); - - /***/ }), /***/ 4721: @@ -24425,23 +21983,6 @@ module.exports = AWS.CloudFront; module.exports = {"version":2,"waiters":{"DataSourceAvailable":{"delay":30,"operation":"DescribeDataSources","maxAttempts":60,"acceptors":[{"expected":"COMPLETED","matcher":"pathAll","state":"success","argument":"Results[].Status"},{"expected":"FAILED","matcher":"pathAny","state":"failure","argument":"Results[].Status"}]},"MLModelAvailable":{"delay":30,"operation":"DescribeMLModels","maxAttempts":60,"acceptors":[{"expected":"COMPLETED","matcher":"pathAll","state":"success","argument":"Results[].Status"},{"expected":"FAILED","matcher":"pathAny","state":"failure","argument":"Results[].Status"}]},"EvaluationAvailable":{"delay":30,"operation":"DescribeEvaluations","maxAttempts":60,"acceptors":[{"expected":"COMPLETED","matcher":"pathAll","state":"success","argument":"Results[].Status"},{"expected":"FAILED","matcher":"pathAny","state":"failure","argument":"Results[].Status"}]},"BatchPredictionAvailable":{"delay":30,"operation":"DescribeBatchPredictions","maxAttempts":60,"acceptors":[{"expected":"COMPLETED","matcher":"pathAll","state":"success","argument":"Results[].Status"},{"expected":"FAILED","matcher":"pathAny","state":"failure","argument":"Results[].Status"}]}}}; -/***/ }), - -/***/ 4784: -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __webpack_require__(3794); -} else { - module.exports = __webpack_require__(3081); -} - - /***/ }), /***/ 4795: @@ -24507,67 +22048,6 @@ module.exports = AWS.RoboMaker; module.exports = {"version":"2.0","metadata":{"apiVersion":"2019-12-02","endpointPrefix":"route53-recovery-cluster","jsonVersion":"1.0","protocol":"json","serviceFullName":"Route53 Recovery Cluster","serviceId":"Route53 Recovery Cluster","signatureVersion":"v4","signingName":"route53-recovery-cluster","targetPrefix":"ToggleCustomerAPI","uid":"route53-recovery-cluster-2019-12-02"},"operations":{"GetRoutingControlState":{"input":{"type":"structure","required":["RoutingControlArn"],"members":{"RoutingControlArn":{}}},"output":{"type":"structure","required":["RoutingControlArn","RoutingControlState"],"members":{"RoutingControlArn":{},"RoutingControlState":{}}}},"UpdateRoutingControlState":{"input":{"type":"structure","required":["RoutingControlArn","RoutingControlState"],"members":{"RoutingControlArn":{},"RoutingControlState":{}}},"output":{"type":"structure","members":{}}},"UpdateRoutingControlStates":{"input":{"type":"structure","required":["UpdateRoutingControlStateEntries"],"members":{"UpdateRoutingControlStateEntries":{"type":"list","member":{"type":"structure","required":["RoutingControlArn","RoutingControlState"],"members":{"RoutingControlArn":{},"RoutingControlState":{}}}}}},"output":{"type":"structure","members":{}}}},"shapes":{}}; -/***/ }), - -/***/ 4864: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs support document.cookie - (function standardBrowserEnv() { - return { - write: function write(name, value, expires, path, domain, secure) { - var cookie = []; - cookie.push(name + '=' + encodeURIComponent(value)); - - if (utils.isNumber(expires)) { - cookie.push('expires=' + new Date(expires).toGMTString()); - } - - if (utils.isString(path)) { - cookie.push('path=' + path); - } - - if (utils.isString(domain)) { - cookie.push('domain=' + domain); - } - - if (secure === true) { - cookie.push('secure'); - } - - document.cookie = cookie.join('; '); - }, - - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); - } - }; - })() : - - // Non standard browser env (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return { - write: function write() {}, - read: function read() { return null; }, - remove: function remove() {} - }; - })() -); - - /***/ }), /***/ 4887: @@ -25351,363 +22831,6 @@ module.exports = AWS.OpenSearch; module.exports = {"version":"2.0","metadata":{"apiVersion":"2013-01-10","endpointPrefix":"rds","protocol":"query","serviceAbbreviation":"Amazon RDS","serviceFullName":"Amazon Relational Database Service","serviceId":"RDS","signatureVersion":"v4","uid":"rds-2013-01-10","xmlNamespace":"http://rds.amazonaws.com/doc/2013-01-10/"},"operations":{"AddSourceIdentifierToSubscription":{"input":{"type":"structure","required":["SubscriptionName","SourceIdentifier"],"members":{"SubscriptionName":{},"SourceIdentifier":{}}},"output":{"resultWrapper":"AddSourceIdentifierToSubscriptionResult","type":"structure","members":{"EventSubscription":{"shape":"S4"}}}},"AddTagsToResource":{"input":{"type":"structure","required":["ResourceName","Tags"],"members":{"ResourceName":{},"Tags":{"shape":"S9"}}}},"AuthorizeDBSecurityGroupIngress":{"input":{"type":"structure","required":["DBSecurityGroupName"],"members":{"DBSecurityGroupName":{},"CIDRIP":{},"EC2SecurityGroupName":{},"EC2SecurityGroupId":{},"EC2SecurityGroupOwnerId":{}}},"output":{"resultWrapper":"AuthorizeDBSecurityGroupIngressResult","type":"structure","members":{"DBSecurityGroup":{"shape":"Sd"}}}},"CopyDBSnapshot":{"input":{"type":"structure","required":["SourceDBSnapshotIdentifier","TargetDBSnapshotIdentifier"],"members":{"SourceDBSnapshotIdentifier":{},"TargetDBSnapshotIdentifier":{}}},"output":{"resultWrapper":"CopyDBSnapshotResult","type":"structure","members":{"DBSnapshot":{"shape":"Sk"}}}},"CreateDBInstance":{"input":{"type":"structure","required":["DBInstanceIdentifier","AllocatedStorage","DBInstanceClass","Engine","MasterUsername","MasterUserPassword"],"members":{"DBName":{},"DBInstanceIdentifier":{},"AllocatedStorage":{"type":"integer"},"DBInstanceClass":{},"Engine":{},"MasterUsername":{},"MasterUserPassword":{},"DBSecurityGroups":{"shape":"Sp"},"VpcSecurityGroupIds":{"shape":"Sq"},"AvailabilityZone":{},"DBSubnetGroupName":{},"PreferredMaintenanceWindow":{},"DBParameterGroupName":{},"BackupRetentionPeriod":{"type":"integer"},"PreferredBackupWindow":{},"Port":{"type":"integer"},"MultiAZ":{"type":"boolean"},"EngineVersion":{},"AutoMinorVersionUpgrade":{"type":"boolean"},"LicenseModel":{},"Iops":{"type":"integer"},"OptionGroupName":{},"CharacterSetName":{},"PubliclyAccessible":{"type":"boolean"}}},"output":{"resultWrapper":"CreateDBInstanceResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"CreateDBInstanceReadReplica":{"input":{"type":"structure","required":["DBInstanceIdentifier","SourceDBInstanceIdentifier"],"members":{"DBInstanceIdentifier":{},"SourceDBInstanceIdentifier":{},"DBInstanceClass":{},"AvailabilityZone":{},"Port":{"type":"integer"},"AutoMinorVersionUpgrade":{"type":"boolean"},"Iops":{"type":"integer"},"OptionGroupName":{},"PubliclyAccessible":{"type":"boolean"}}},"output":{"resultWrapper":"CreateDBInstanceReadReplicaResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"CreateDBParameterGroup":{"input":{"type":"structure","required":["DBParameterGroupName","DBParameterGroupFamily","Description"],"members":{"DBParameterGroupName":{},"DBParameterGroupFamily":{},"Description":{}}},"output":{"resultWrapper":"CreateDBParameterGroupResult","type":"structure","members":{"DBParameterGroup":{"shape":"S1c"}}}},"CreateDBSecurityGroup":{"input":{"type":"structure","required":["DBSecurityGroupName","DBSecurityGroupDescription"],"members":{"DBSecurityGroupName":{},"DBSecurityGroupDescription":{}}},"output":{"resultWrapper":"CreateDBSecurityGroupResult","type":"structure","members":{"DBSecurityGroup":{"shape":"Sd"}}}},"CreateDBSnapshot":{"input":{"type":"structure","required":["DBSnapshotIdentifier","DBInstanceIdentifier"],"members":{"DBSnapshotIdentifier":{},"DBInstanceIdentifier":{}}},"output":{"resultWrapper":"CreateDBSnapshotResult","type":"structure","members":{"DBSnapshot":{"shape":"Sk"}}}},"CreateDBSubnetGroup":{"input":{"type":"structure","required":["DBSubnetGroupName","DBSubnetGroupDescription","SubnetIds"],"members":{"DBSubnetGroupName":{},"DBSubnetGroupDescription":{},"SubnetIds":{"shape":"S1i"}}},"output":{"resultWrapper":"CreateDBSubnetGroupResult","type":"structure","members":{"DBSubnetGroup":{"shape":"S11"}}}},"CreateEventSubscription":{"input":{"type":"structure","required":["SubscriptionName","SnsTopicArn"],"members":{"SubscriptionName":{},"SnsTopicArn":{},"SourceType":{},"EventCategories":{"shape":"S6"},"SourceIds":{"shape":"S5"},"Enabled":{"type":"boolean"}}},"output":{"resultWrapper":"CreateEventSubscriptionResult","type":"structure","members":{"EventSubscription":{"shape":"S4"}}}},"CreateOptionGroup":{"input":{"type":"structure","required":["OptionGroupName","EngineName","MajorEngineVersion","OptionGroupDescription"],"members":{"OptionGroupName":{},"EngineName":{},"MajorEngineVersion":{},"OptionGroupDescription":{}}},"output":{"resultWrapper":"CreateOptionGroupResult","type":"structure","members":{"OptionGroup":{"shape":"S1o"}}}},"DeleteDBInstance":{"input":{"type":"structure","required":["DBInstanceIdentifier"],"members":{"DBInstanceIdentifier":{},"SkipFinalSnapshot":{"type":"boolean"},"FinalDBSnapshotIdentifier":{}}},"output":{"resultWrapper":"DeleteDBInstanceResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"DeleteDBParameterGroup":{"input":{"type":"structure","required":["DBParameterGroupName"],"members":{"DBParameterGroupName":{}}}},"DeleteDBSecurityGroup":{"input":{"type":"structure","required":["DBSecurityGroupName"],"members":{"DBSecurityGroupName":{}}}},"DeleteDBSnapshot":{"input":{"type":"structure","required":["DBSnapshotIdentifier"],"members":{"DBSnapshotIdentifier":{}}},"output":{"resultWrapper":"DeleteDBSnapshotResult","type":"structure","members":{"DBSnapshot":{"shape":"Sk"}}}},"DeleteDBSubnetGroup":{"input":{"type":"structure","required":["DBSubnetGroupName"],"members":{"DBSubnetGroupName":{}}}},"DeleteEventSubscription":{"input":{"type":"structure","required":["SubscriptionName"],"members":{"SubscriptionName":{}}},"output":{"resultWrapper":"DeleteEventSubscriptionResult","type":"structure","members":{"EventSubscription":{"shape":"S4"}}}},"DeleteOptionGroup":{"input":{"type":"structure","required":["OptionGroupName"],"members":{"OptionGroupName":{}}}},"DescribeDBEngineVersions":{"input":{"type":"structure","members":{"Engine":{},"EngineVersion":{},"DBParameterGroupFamily":{},"MaxRecords":{"type":"integer"},"Marker":{},"DefaultOnly":{"type":"boolean"},"ListSupportedCharacterSets":{"type":"boolean"}}},"output":{"resultWrapper":"DescribeDBEngineVersionsResult","type":"structure","members":{"Marker":{},"DBEngineVersions":{"type":"list","member":{"locationName":"DBEngineVersion","type":"structure","members":{"Engine":{},"EngineVersion":{},"DBParameterGroupFamily":{},"DBEngineDescription":{},"DBEngineVersionDescription":{},"DefaultCharacterSet":{"shape":"S25"},"SupportedCharacterSets":{"type":"list","member":{"shape":"S25","locationName":"CharacterSet"}}}}}}}},"DescribeDBInstances":{"input":{"type":"structure","members":{"DBInstanceIdentifier":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeDBInstancesResult","type":"structure","members":{"Marker":{},"DBInstances":{"type":"list","member":{"shape":"St","locationName":"DBInstance"}}}}},"DescribeDBParameterGroups":{"input":{"type":"structure","members":{"DBParameterGroupName":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeDBParameterGroupsResult","type":"structure","members":{"Marker":{},"DBParameterGroups":{"type":"list","member":{"shape":"S1c","locationName":"DBParameterGroup"}}}}},"DescribeDBParameters":{"input":{"type":"structure","required":["DBParameterGroupName"],"members":{"DBParameterGroupName":{},"Source":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeDBParametersResult","type":"structure","members":{"Parameters":{"shape":"S2f"},"Marker":{}}}},"DescribeDBSecurityGroups":{"input":{"type":"structure","members":{"DBSecurityGroupName":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeDBSecurityGroupsResult","type":"structure","members":{"Marker":{},"DBSecurityGroups":{"type":"list","member":{"shape":"Sd","locationName":"DBSecurityGroup"}}}}},"DescribeDBSnapshots":{"input":{"type":"structure","members":{"DBInstanceIdentifier":{},"DBSnapshotIdentifier":{},"SnapshotType":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeDBSnapshotsResult","type":"structure","members":{"Marker":{},"DBSnapshots":{"type":"list","member":{"shape":"Sk","locationName":"DBSnapshot"}}}}},"DescribeDBSubnetGroups":{"input":{"type":"structure","members":{"DBSubnetGroupName":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeDBSubnetGroupsResult","type":"structure","members":{"Marker":{},"DBSubnetGroups":{"type":"list","member":{"shape":"S11","locationName":"DBSubnetGroup"}}}}},"DescribeEngineDefaultParameters":{"input":{"type":"structure","required":["DBParameterGroupFamily"],"members":{"DBParameterGroupFamily":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeEngineDefaultParametersResult","type":"structure","members":{"EngineDefaults":{"type":"structure","members":{"DBParameterGroupFamily":{},"Marker":{},"Parameters":{"shape":"S2f"}},"wrapper":true}}}},"DescribeEventCategories":{"input":{"type":"structure","members":{"SourceType":{}}},"output":{"resultWrapper":"DescribeEventCategoriesResult","type":"structure","members":{"EventCategoriesMapList":{"type":"list","member":{"locationName":"EventCategoriesMap","type":"structure","members":{"SourceType":{},"EventCategories":{"shape":"S6"}},"wrapper":true}}}}},"DescribeEventSubscriptions":{"input":{"type":"structure","members":{"SubscriptionName":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeEventSubscriptionsResult","type":"structure","members":{"Marker":{},"EventSubscriptionsList":{"type":"list","member":{"shape":"S4","locationName":"EventSubscription"}}}}},"DescribeEvents":{"input":{"type":"structure","members":{"SourceIdentifier":{},"SourceType":{},"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"},"Duration":{"type":"integer"},"EventCategories":{"shape":"S6"},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeEventsResult","type":"structure","members":{"Marker":{},"Events":{"type":"list","member":{"locationName":"Event","type":"structure","members":{"SourceIdentifier":{},"SourceType":{},"Message":{},"EventCategories":{"shape":"S6"},"Date":{"type":"timestamp"}}}}}}},"DescribeOptionGroupOptions":{"input":{"type":"structure","required":["EngineName"],"members":{"EngineName":{},"MajorEngineVersion":{},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeOptionGroupOptionsResult","type":"structure","members":{"OptionGroupOptions":{"type":"list","member":{"locationName":"OptionGroupOption","type":"structure","members":{"Name":{},"Description":{},"EngineName":{},"MajorEngineVersion":{},"MinimumRequiredMinorEngineVersion":{},"PortRequired":{"type":"boolean"},"DefaultPort":{"type":"integer"},"OptionsDependedOn":{"type":"list","member":{"locationName":"OptionName"}}}}},"Marker":{}}}},"DescribeOptionGroups":{"input":{"type":"structure","members":{"OptionGroupName":{},"Marker":{},"MaxRecords":{"type":"integer"},"EngineName":{},"MajorEngineVersion":{}}},"output":{"resultWrapper":"DescribeOptionGroupsResult","type":"structure","members":{"OptionGroupsList":{"type":"list","member":{"shape":"S1o","locationName":"OptionGroup"}},"Marker":{}}}},"DescribeOrderableDBInstanceOptions":{"input":{"type":"structure","required":["Engine"],"members":{"Engine":{},"EngineVersion":{},"DBInstanceClass":{},"LicenseModel":{},"Vpc":{"type":"boolean"},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeOrderableDBInstanceOptionsResult","type":"structure","members":{"OrderableDBInstanceOptions":{"type":"list","member":{"locationName":"OrderableDBInstanceOption","type":"structure","members":{"Engine":{},"EngineVersion":{},"DBInstanceClass":{},"LicenseModel":{},"AvailabilityZones":{"type":"list","member":{"shape":"S14","locationName":"AvailabilityZone"}},"MultiAZCapable":{"type":"boolean"},"ReadReplicaCapable":{"type":"boolean"},"Vpc":{"type":"boolean"}},"wrapper":true}},"Marker":{}}}},"DescribeReservedDBInstances":{"input":{"type":"structure","members":{"ReservedDBInstanceId":{},"ReservedDBInstancesOfferingId":{},"DBInstanceClass":{},"Duration":{},"ProductDescription":{},"OfferingType":{},"MultiAZ":{"type":"boolean"},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeReservedDBInstancesResult","type":"structure","members":{"Marker":{},"ReservedDBInstances":{"type":"list","member":{"shape":"S3m","locationName":"ReservedDBInstance"}}}}},"DescribeReservedDBInstancesOfferings":{"input":{"type":"structure","members":{"ReservedDBInstancesOfferingId":{},"DBInstanceClass":{},"Duration":{},"ProductDescription":{},"OfferingType":{},"MultiAZ":{"type":"boolean"},"MaxRecords":{"type":"integer"},"Marker":{}}},"output":{"resultWrapper":"DescribeReservedDBInstancesOfferingsResult","type":"structure","members":{"Marker":{},"ReservedDBInstancesOfferings":{"type":"list","member":{"locationName":"ReservedDBInstancesOffering","type":"structure","members":{"ReservedDBInstancesOfferingId":{},"DBInstanceClass":{},"Duration":{"type":"integer"},"FixedPrice":{"type":"double"},"UsagePrice":{"type":"double"},"CurrencyCode":{},"ProductDescription":{},"OfferingType":{},"MultiAZ":{"type":"boolean"},"RecurringCharges":{"shape":"S3o"}},"wrapper":true}}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceName"],"members":{"ResourceName":{}}},"output":{"resultWrapper":"ListTagsForResourceResult","type":"structure","members":{"TagList":{"shape":"S9"}}}},"ModifyDBInstance":{"input":{"type":"structure","required":["DBInstanceIdentifier"],"members":{"DBInstanceIdentifier":{},"AllocatedStorage":{"type":"integer"},"DBInstanceClass":{},"DBSecurityGroups":{"shape":"Sp"},"VpcSecurityGroupIds":{"shape":"Sq"},"ApplyImmediately":{"type":"boolean"},"MasterUserPassword":{},"DBParameterGroupName":{},"BackupRetentionPeriod":{"type":"integer"},"PreferredBackupWindow":{},"PreferredMaintenanceWindow":{},"MultiAZ":{"type":"boolean"},"EngineVersion":{},"AllowMajorVersionUpgrade":{"type":"boolean"},"AutoMinorVersionUpgrade":{"type":"boolean"},"Iops":{"type":"integer"},"OptionGroupName":{},"NewDBInstanceIdentifier":{}}},"output":{"resultWrapper":"ModifyDBInstanceResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"ModifyDBParameterGroup":{"input":{"type":"structure","required":["DBParameterGroupName","Parameters"],"members":{"DBParameterGroupName":{},"Parameters":{"shape":"S2f"}}},"output":{"shape":"S3z","resultWrapper":"ModifyDBParameterGroupResult"}},"ModifyDBSubnetGroup":{"input":{"type":"structure","required":["DBSubnetGroupName","SubnetIds"],"members":{"DBSubnetGroupName":{},"DBSubnetGroupDescription":{},"SubnetIds":{"shape":"S1i"}}},"output":{"resultWrapper":"ModifyDBSubnetGroupResult","type":"structure","members":{"DBSubnetGroup":{"shape":"S11"}}}},"ModifyEventSubscription":{"input":{"type":"structure","required":["SubscriptionName"],"members":{"SubscriptionName":{},"SnsTopicArn":{},"SourceType":{},"EventCategories":{"shape":"S6"},"Enabled":{"type":"boolean"}}},"output":{"resultWrapper":"ModifyEventSubscriptionResult","type":"structure","members":{"EventSubscription":{"shape":"S4"}}}},"ModifyOptionGroup":{"input":{"type":"structure","required":["OptionGroupName"],"members":{"OptionGroupName":{},"OptionsToInclude":{"type":"list","member":{"locationName":"OptionConfiguration","type":"structure","required":["OptionName"],"members":{"OptionName":{},"Port":{"type":"integer"},"DBSecurityGroupMemberships":{"shape":"Sp"},"VpcSecurityGroupMemberships":{"shape":"Sq"}}}},"OptionsToRemove":{"type":"list","member":{}},"ApplyImmediately":{"type":"boolean"}}},"output":{"resultWrapper":"ModifyOptionGroupResult","type":"structure","members":{"OptionGroup":{"shape":"S1o"}}}},"PromoteReadReplica":{"input":{"type":"structure","required":["DBInstanceIdentifier"],"members":{"DBInstanceIdentifier":{},"BackupRetentionPeriod":{"type":"integer"},"PreferredBackupWindow":{}}},"output":{"resultWrapper":"PromoteReadReplicaResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"PurchaseReservedDBInstancesOffering":{"input":{"type":"structure","required":["ReservedDBInstancesOfferingId"],"members":{"ReservedDBInstancesOfferingId":{},"ReservedDBInstanceId":{},"DBInstanceCount":{"type":"integer"}}},"output":{"resultWrapper":"PurchaseReservedDBInstancesOfferingResult","type":"structure","members":{"ReservedDBInstance":{"shape":"S3m"}}}},"RebootDBInstance":{"input":{"type":"structure","required":["DBInstanceIdentifier"],"members":{"DBInstanceIdentifier":{},"ForceFailover":{"type":"boolean"}}},"output":{"resultWrapper":"RebootDBInstanceResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"RemoveSourceIdentifierFromSubscription":{"input":{"type":"structure","required":["SubscriptionName","SourceIdentifier"],"members":{"SubscriptionName":{},"SourceIdentifier":{}}},"output":{"resultWrapper":"RemoveSourceIdentifierFromSubscriptionResult","type":"structure","members":{"EventSubscription":{"shape":"S4"}}}},"RemoveTagsFromResource":{"input":{"type":"structure","required":["ResourceName","TagKeys"],"members":{"ResourceName":{},"TagKeys":{"type":"list","member":{}}}}},"ResetDBParameterGroup":{"input":{"type":"structure","required":["DBParameterGroupName"],"members":{"DBParameterGroupName":{},"ResetAllParameters":{"type":"boolean"},"Parameters":{"shape":"S2f"}}},"output":{"shape":"S3z","resultWrapper":"ResetDBParameterGroupResult"}},"RestoreDBInstanceFromDBSnapshot":{"input":{"type":"structure","required":["DBInstanceIdentifier","DBSnapshotIdentifier"],"members":{"DBInstanceIdentifier":{},"DBSnapshotIdentifier":{},"DBInstanceClass":{},"Port":{"type":"integer"},"AvailabilityZone":{},"DBSubnetGroupName":{},"MultiAZ":{"type":"boolean"},"PubliclyAccessible":{"type":"boolean"},"AutoMinorVersionUpgrade":{"type":"boolean"},"LicenseModel":{},"DBName":{},"Engine":{},"Iops":{"type":"integer"},"OptionGroupName":{}}},"output":{"resultWrapper":"RestoreDBInstanceFromDBSnapshotResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"RestoreDBInstanceToPointInTime":{"input":{"type":"structure","required":["SourceDBInstanceIdentifier","TargetDBInstanceIdentifier"],"members":{"SourceDBInstanceIdentifier":{},"TargetDBInstanceIdentifier":{},"RestoreTime":{"type":"timestamp"},"UseLatestRestorableTime":{"type":"boolean"},"DBInstanceClass":{},"Port":{"type":"integer"},"AvailabilityZone":{},"DBSubnetGroupName":{},"MultiAZ":{"type":"boolean"},"PubliclyAccessible":{"type":"boolean"},"AutoMinorVersionUpgrade":{"type":"boolean"},"LicenseModel":{},"DBName":{},"Engine":{},"Iops":{"type":"integer"},"OptionGroupName":{}}},"output":{"resultWrapper":"RestoreDBInstanceToPointInTimeResult","type":"structure","members":{"DBInstance":{"shape":"St"}}}},"RevokeDBSecurityGroupIngress":{"input":{"type":"structure","required":["DBSecurityGroupName"],"members":{"DBSecurityGroupName":{},"CIDRIP":{},"EC2SecurityGroupName":{},"EC2SecurityGroupId":{},"EC2SecurityGroupOwnerId":{}}},"output":{"resultWrapper":"RevokeDBSecurityGroupIngressResult","type":"structure","members":{"DBSecurityGroup":{"shape":"Sd"}}}}},"shapes":{"S4":{"type":"structure","members":{"Id":{},"CustomerAwsId":{},"CustSubscriptionId":{},"SnsTopicArn":{},"Status":{},"SubscriptionCreationTime":{},"SourceType":{},"SourceIdsList":{"shape":"S5"},"EventCategoriesList":{"shape":"S6"},"Enabled":{"type":"boolean"}},"wrapper":true},"S5":{"type":"list","member":{"locationName":"SourceId"}},"S6":{"type":"list","member":{"locationName":"EventCategory"}},"S9":{"type":"list","member":{"locationName":"Tag","type":"structure","members":{"Key":{},"Value":{}}}},"Sd":{"type":"structure","members":{"OwnerId":{},"DBSecurityGroupName":{},"DBSecurityGroupDescription":{},"VpcId":{},"EC2SecurityGroups":{"type":"list","member":{"locationName":"EC2SecurityGroup","type":"structure","members":{"Status":{},"EC2SecurityGroupName":{},"EC2SecurityGroupId":{},"EC2SecurityGroupOwnerId":{}}}},"IPRanges":{"type":"list","member":{"locationName":"IPRange","type":"structure","members":{"Status":{},"CIDRIP":{}}}}},"wrapper":true},"Sk":{"type":"structure","members":{"DBSnapshotIdentifier":{},"DBInstanceIdentifier":{},"SnapshotCreateTime":{"type":"timestamp"},"Engine":{},"AllocatedStorage":{"type":"integer"},"Status":{},"Port":{"type":"integer"},"AvailabilityZone":{},"VpcId":{},"InstanceCreateTime":{"type":"timestamp"},"MasterUsername":{},"EngineVersion":{},"LicenseModel":{},"SnapshotType":{},"Iops":{"type":"integer"}},"wrapper":true},"Sp":{"type":"list","member":{"locationName":"DBSecurityGroupName"}},"Sq":{"type":"list","member":{"locationName":"VpcSecurityGroupId"}},"St":{"type":"structure","members":{"DBInstanceIdentifier":{},"DBInstanceClass":{},"Engine":{},"DBInstanceStatus":{},"MasterUsername":{},"DBName":{},"Endpoint":{"type":"structure","members":{"Address":{},"Port":{"type":"integer"}}},"AllocatedStorage":{"type":"integer"},"InstanceCreateTime":{"type":"timestamp"},"PreferredBackupWindow":{},"BackupRetentionPeriod":{"type":"integer"},"DBSecurityGroups":{"shape":"Sv"},"VpcSecurityGroups":{"shape":"Sx"},"DBParameterGroups":{"type":"list","member":{"locationName":"DBParameterGroup","type":"structure","members":{"DBParameterGroupName":{},"ParameterApplyStatus":{}}}},"AvailabilityZone":{},"DBSubnetGroup":{"shape":"S11"},"PreferredMaintenanceWindow":{},"PendingModifiedValues":{"type":"structure","members":{"DBInstanceClass":{},"AllocatedStorage":{"type":"integer"},"MasterUserPassword":{},"Port":{"type":"integer"},"BackupRetentionPeriod":{"type":"integer"},"MultiAZ":{"type":"boolean"},"EngineVersion":{},"Iops":{"type":"integer"},"DBInstanceIdentifier":{}}},"LatestRestorableTime":{"type":"timestamp"},"MultiAZ":{"type":"boolean"},"EngineVersion":{},"AutoMinorVersionUpgrade":{"type":"boolean"},"ReadReplicaSourceDBInstanceIdentifier":{},"ReadReplicaDBInstanceIdentifiers":{"type":"list","member":{"locationName":"ReadReplicaDBInstanceIdentifier"}},"LicenseModel":{},"Iops":{"type":"integer"},"OptionGroupMembership":{"type":"structure","members":{"OptionGroupName":{},"Status":{}}},"CharacterSetName":{},"SecondaryAvailabilityZone":{},"PubliclyAccessible":{"type":"boolean"}},"wrapper":true},"Sv":{"type":"list","member":{"locationName":"DBSecurityGroup","type":"structure","members":{"DBSecurityGroupName":{},"Status":{}}}},"Sx":{"type":"list","member":{"locationName":"VpcSecurityGroupMembership","type":"structure","members":{"VpcSecurityGroupId":{},"Status":{}}}},"S11":{"type":"structure","members":{"DBSubnetGroupName":{},"DBSubnetGroupDescription":{},"VpcId":{},"SubnetGroupStatus":{},"Subnets":{"type":"list","member":{"locationName":"Subnet","type":"structure","members":{"SubnetIdentifier":{},"SubnetAvailabilityZone":{"shape":"S14"},"SubnetStatus":{}}}}},"wrapper":true},"S14":{"type":"structure","members":{"Name":{},"ProvisionedIopsCapable":{"type":"boolean"}},"wrapper":true},"S1c":{"type":"structure","members":{"DBParameterGroupName":{},"DBParameterGroupFamily":{},"Description":{}},"wrapper":true},"S1i":{"type":"list","member":{"locationName":"SubnetIdentifier"}},"S1o":{"type":"structure","members":{"OptionGroupName":{},"OptionGroupDescription":{},"EngineName":{},"MajorEngineVersion":{},"Options":{"type":"list","member":{"locationName":"Option","type":"structure","members":{"OptionName":{},"OptionDescription":{},"Port":{"type":"integer"},"DBSecurityGroupMemberships":{"shape":"Sv"},"VpcSecurityGroupMemberships":{"shape":"Sx"}}}},"AllowsVpcAndNonVpcInstanceMemberships":{"type":"boolean"},"VpcId":{}},"wrapper":true},"S25":{"type":"structure","members":{"CharacterSetName":{},"CharacterSetDescription":{}}},"S2f":{"type":"list","member":{"locationName":"Parameter","type":"structure","members":{"ParameterName":{},"ParameterValue":{},"Description":{},"Source":{},"ApplyType":{},"DataType":{},"AllowedValues":{},"IsModifiable":{"type":"boolean"},"MinimumEngineVersion":{},"ApplyMethod":{}}}},"S3m":{"type":"structure","members":{"ReservedDBInstanceId":{},"ReservedDBInstancesOfferingId":{},"DBInstanceClass":{},"StartTime":{"type":"timestamp"},"Duration":{"type":"integer"},"FixedPrice":{"type":"double"},"UsagePrice":{"type":"double"},"CurrencyCode":{},"DBInstanceCount":{"type":"integer"},"ProductDescription":{},"OfferingType":{},"MultiAZ":{"type":"boolean"},"State":{},"RecurringCharges":{"shape":"S3o"}},"wrapper":true},"S3o":{"type":"list","member":{"locationName":"RecurringCharge","type":"structure","members":{"RecurringChargeAmount":{"type":"double"},"RecurringChargeFrequency":{}},"wrapper":true}},"S3z":{"type":"structure","members":{"DBParameterGroupName":{}}}}}; -/***/ }), - -/***/ 5035: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(1727); - -// utils is a library of generic helper functions non-specific to axios - -var toString = Object.prototype.toString; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Array, otherwise false - */ -function isArray(val) { - return toString.call(val) === '[object Array]'; -} - -/** - * Determine if a value is undefined - * - * @param {Object} val The value to test - * @returns {boolean} True if the value is undefined, otherwise false - */ -function isUndefined(val) { - return typeof val === 'undefined'; -} - -/** - * Determine if a value is a Buffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -function isArrayBuffer(val) { - return toString.call(val) === '[object ArrayBuffer]'; -} - -/** - * Determine if a value is a FormData - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an FormData, otherwise false - */ -function isFormData(val) { - return (typeof FormData !== 'undefined') && (val instanceof FormData); -} - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - var result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a String, otherwise false - */ -function isString(val) { - return typeof val === 'string'; -} - -/** - * Determine if a value is a Number - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Number, otherwise false - */ -function isNumber(val) { - return typeof val === 'number'; -} - -/** - * Determine if a value is an Object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Object, otherwise false - */ -function isObject(val) { - return val !== null && typeof val === 'object'; -} - -/** - * Determine if a value is a plain Object - * - * @param {Object} val The value to test - * @return {boolean} True if value is a plain Object, otherwise false - */ -function isPlainObject(val) { - if (toString.call(val) !== '[object Object]') { - return false; - } - - var prototype = Object.getPrototypeOf(val); - return prototype === null || prototype === Object.prototype; -} - -/** - * Determine if a value is a Date - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Date, otherwise false - */ -function isDate(val) { - return toString.call(val) === '[object Date]'; -} - -/** - * Determine if a value is a File - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false - */ -function isFile(val) { - return toString.call(val) === '[object File]'; -} - -/** - * Determine if a value is a Blob - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Blob, otherwise false - */ -function isBlob(val) { - return toString.call(val) === '[object Blob]'; -} - -/** - * Determine if a value is a Function - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -function isFunction(val) { - return toString.call(val) === '[object Function]'; -} - -/** - * Determine if a value is a Stream - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Stream, otherwise false - */ -function isStream(val) { - return isObject(val) && isFunction(val.pipe); -} - -/** - * Determine if a value is a URLSearchParams object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -function isURLSearchParams(val) { - return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; -} - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * @returns {String} The String freed of excess whitespace - */ -function trim(str) { - return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); -} - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - */ -function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || - navigator.product === 'NativeScript' || - navigator.product === 'NS')) { - return false; - } - return ( - typeof window !== 'undefined' && - typeof document !== 'undefined' - ); -} - -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - */ -function forEach(obj, fn) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); - } - } - } -} - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - var result = {}; - function assignValue(val, key) { - if (isPlainObject(result[key]) && isPlainObject(val)) { - result[key] = merge(result[key], val); - } else if (isPlainObject(val)) { - result[key] = merge({}, val); - } else if (isArray(val)) { - result[key] = val.slice(); - } else { - result[key] = val; - } - } - - for (var i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * @return {Object} The resulting value of object a - */ -function extend(a, b, thisArg) { - forEach(b, function assignValue(val, key) { - if (thisArg && typeof val === 'function') { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }); - return a; -} - -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * @return {string} content value without BOM - */ -function stripBOM(content) { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -module.exports = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isObject: isObject, - isPlainObject: isPlainObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isStandardBrowserEnv: isStandardBrowserEnv, - forEach: forEach, - merge: merge, - extend: extend, - trim: trim, - stripBOM: stripBOM -}; - - /***/ }), /***/ 5040: @@ -26044,145 +23167,6 @@ module.exports = {"version":2,"waiters":{"InstanceProfileExists":{"delay":1,"ope module.exports = require("domain"); -/***/ }), - -/***/ 5247: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const os = __webpack_require__(2087); -const hasFlag = __webpack_require__(1364); - -const env = process.env; - -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - forceColor = false; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = true; -} -if ('FORCE_COLOR' in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(stream) { - if (forceColor === false) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (stream && !stream.isTTY && forceColor !== true) { - return 0; - } - - const min = forceColor ? 1 : 0; - - if (process.platform === 'win32') { - // Node.js 7.5.0 is the first version of Node.js to include a patch to - // libuv that enables 256 color output on Windows. Anything earlier and it - // won't work. However, here we target Node.js 8 at minimum as it is an LTS - // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows - // release that supports 256 colors. Windows 10 build 14931 is the first release - // that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(process.versions.node.split('.')[0]) >= 8 && - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - if (env.TERM === 'dumb') { - return min; - } - - return min; -} - -function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel(process.stdout), - stderr: getSupportLevel(process.stderr) -}; - - /***/ }), /***/ 5252: @@ -26570,36 +23554,6 @@ module.exports = AWS.Signers.V3Https; module.exports = {"version":"2.0","metadata":{"apiVersion":"2015-10-01","endpointPrefix":"gamelift","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon GameLift","serviceId":"GameLift","signatureVersion":"v4","targetPrefix":"GameLift","uid":"gamelift-2015-10-01"},"operations":{"AcceptMatch":{"input":{"type":"structure","required":["TicketId","PlayerIds","AcceptanceType"],"members":{"TicketId":{},"PlayerIds":{"shape":"S3"},"AcceptanceType":{}}},"output":{"type":"structure","members":{}}},"ClaimGameServer":{"input":{"type":"structure","required":["GameServerGroupName"],"members":{"GameServerGroupName":{},"GameServerId":{},"GameServerData":{}}},"output":{"type":"structure","members":{"GameServer":{"shape":"Sc"}}}},"CreateAlias":{"input":{"type":"structure","required":["Name","RoutingStrategy"],"members":{"Name":{},"Description":{},"RoutingStrategy":{"shape":"Sm"},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"Alias":{"shape":"Sv"}}}},"CreateBuild":{"input":{"type":"structure","members":{"Name":{},"Version":{},"StorageLocation":{"shape":"Sz"},"OperatingSystem":{},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"Build":{"shape":"S13"},"UploadCredentials":{"shape":"S18"},"StorageLocation":{"shape":"Sz"}}}},"CreateFleet":{"input":{"type":"structure","required":["Name","EC2InstanceType"],"members":{"Name":{},"Description":{},"BuildId":{},"ScriptId":{},"ServerLaunchPath":{},"ServerLaunchParameters":{},"LogPaths":{"shape":"S3"},"EC2InstanceType":{},"EC2InboundPermissions":{"shape":"S1d"},"NewGameSessionProtectionPolicy":{},"RuntimeConfiguration":{"shape":"S1j"},"ResourceCreationLimitPolicy":{"shape":"S1p"},"MetricGroups":{"shape":"S1r"},"PeerVpcAwsAccountId":{},"PeerVpcId":{},"FleetType":{},"InstanceRoleArn":{},"CertificateConfiguration":{"shape":"S1u"},"Locations":{"shape":"S1w"},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"FleetAttributes":{"shape":"S20"},"LocationStates":{"shape":"S27"}}}},"CreateFleetLocations":{"input":{"type":"structure","required":["FleetId","Locations"],"members":{"FleetId":{},"Locations":{"shape":"S1w"}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"LocationStates":{"shape":"S27"}}}},"CreateGameServerGroup":{"input":{"type":"structure","required":["GameServerGroupName","RoleArn","MinSize","MaxSize","LaunchTemplate","InstanceDefinitions"],"members":{"GameServerGroupName":{},"RoleArn":{},"MinSize":{"type":"integer"},"MaxSize":{"type":"integer"},"LaunchTemplate":{"type":"structure","members":{"LaunchTemplateId":{},"LaunchTemplateName":{},"Version":{}}},"InstanceDefinitions":{"shape":"S2i"},"AutoScalingPolicy":{"type":"structure","required":["TargetTrackingConfiguration"],"members":{"EstimatedInstanceWarmup":{"type":"integer"},"TargetTrackingConfiguration":{"type":"structure","required":["TargetValue"],"members":{"TargetValue":{"type":"double"}}}}},"BalancingStrategy":{},"GameServerProtectionPolicy":{},"VpcSubnets":{"type":"list","member":{}},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"GameServerGroup":{"shape":"S2u"}}}},"CreateGameSession":{"input":{"type":"structure","required":["MaximumPlayerSessionCount"],"members":{"FleetId":{},"AliasId":{},"MaximumPlayerSessionCount":{"type":"integer"},"Name":{},"GameProperties":{"shape":"S31"},"CreatorId":{},"GameSessionId":{},"IdempotencyToken":{},"GameSessionData":{},"Location":{}}},"output":{"type":"structure","members":{"GameSession":{"shape":"S38"}}}},"CreateGameSessionQueue":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"TimeoutInSeconds":{"type":"integer"},"PlayerLatencyPolicies":{"shape":"S3h"},"Destinations":{"shape":"S3j"},"FilterConfiguration":{"shape":"S3m"},"PriorityConfiguration":{"shape":"S3o"},"CustomEventData":{},"NotificationTarget":{},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"GameSessionQueue":{"shape":"S3u"}}}},"CreateMatchmakingConfiguration":{"input":{"type":"structure","required":["Name","RequestTimeoutSeconds","AcceptanceRequired","RuleSetName"],"members":{"Name":{},"Description":{},"GameSessionQueueArns":{"shape":"S3x"},"RequestTimeoutSeconds":{"type":"integer"},"AcceptanceTimeoutSeconds":{"type":"integer"},"AcceptanceRequired":{"type":"boolean"},"RuleSetName":{},"NotificationTarget":{},"AdditionalPlayerCount":{"type":"integer"},"CustomEventData":{},"GameProperties":{"shape":"S31"},"GameSessionData":{},"BackfillMode":{},"FlexMatchMode":{},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"Configuration":{"shape":"S48"}}}},"CreateMatchmakingRuleSet":{"input":{"type":"structure","required":["Name","RuleSetBody"],"members":{"Name":{},"RuleSetBody":{},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","required":["RuleSet"],"members":{"RuleSet":{"shape":"S4e"}}}},"CreatePlayerSession":{"input":{"type":"structure","required":["GameSessionId","PlayerId"],"members":{"GameSessionId":{},"PlayerId":{},"PlayerData":{}}},"output":{"type":"structure","members":{"PlayerSession":{"shape":"S4i"}}}},"CreatePlayerSessions":{"input":{"type":"structure","required":["GameSessionId","PlayerIds"],"members":{"GameSessionId":{},"PlayerIds":{"type":"list","member":{}},"PlayerDataMap":{"type":"map","key":{},"value":{}}}},"output":{"type":"structure","members":{"PlayerSessions":{"shape":"S4p"}}}},"CreateScript":{"input":{"type":"structure","members":{"Name":{},"Version":{},"StorageLocation":{"shape":"Sz"},"ZipFile":{"type":"blob"},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{"Script":{"shape":"S4t"}}}},"CreateVpcPeeringAuthorization":{"input":{"type":"structure","required":["GameLiftAwsAccountId","PeerVpcId"],"members":{"GameLiftAwsAccountId":{},"PeerVpcId":{}}},"output":{"type":"structure","members":{"VpcPeeringAuthorization":{"shape":"S4w"}}}},"CreateVpcPeeringConnection":{"input":{"type":"structure","required":["FleetId","PeerVpcAwsAccountId","PeerVpcId"],"members":{"FleetId":{},"PeerVpcAwsAccountId":{},"PeerVpcId":{}}},"output":{"type":"structure","members":{}}},"DeleteAlias":{"input":{"type":"structure","required":["AliasId"],"members":{"AliasId":{}}}},"DeleteBuild":{"input":{"type":"structure","required":["BuildId"],"members":{"BuildId":{}}}},"DeleteFleet":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{}}}},"DeleteFleetLocations":{"input":{"type":"structure","required":["FleetId","Locations"],"members":{"FleetId":{},"Locations":{"shape":"S3n"}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"LocationStates":{"shape":"S27"}}}},"DeleteGameServerGroup":{"input":{"type":"structure","required":["GameServerGroupName"],"members":{"GameServerGroupName":{},"DeleteOption":{}}},"output":{"type":"structure","members":{"GameServerGroup":{"shape":"S2u"}}}},"DeleteGameSessionQueue":{"input":{"type":"structure","required":["Name"],"members":{"Name":{}}},"output":{"type":"structure","members":{}}},"DeleteMatchmakingConfiguration":{"input":{"type":"structure","required":["Name"],"members":{"Name":{}}},"output":{"type":"structure","members":{}}},"DeleteMatchmakingRuleSet":{"input":{"type":"structure","required":["Name"],"members":{"Name":{}}},"output":{"type":"structure","members":{}}},"DeleteScalingPolicy":{"input":{"type":"structure","required":["Name","FleetId"],"members":{"Name":{},"FleetId":{}}}},"DeleteScript":{"input":{"type":"structure","required":["ScriptId"],"members":{"ScriptId":{}}}},"DeleteVpcPeeringAuthorization":{"input":{"type":"structure","required":["GameLiftAwsAccountId","PeerVpcId"],"members":{"GameLiftAwsAccountId":{},"PeerVpcId":{}}},"output":{"type":"structure","members":{}}},"DeleteVpcPeeringConnection":{"input":{"type":"structure","required":["FleetId","VpcPeeringConnectionId"],"members":{"FleetId":{},"VpcPeeringConnectionId":{}}},"output":{"type":"structure","members":{}}},"DeregisterGameServer":{"input":{"type":"structure","required":["GameServerGroupName","GameServerId"],"members":{"GameServerGroupName":{},"GameServerId":{}}}},"DescribeAlias":{"input":{"type":"structure","required":["AliasId"],"members":{"AliasId":{}}},"output":{"type":"structure","members":{"Alias":{"shape":"Sv"}}}},"DescribeBuild":{"input":{"type":"structure","required":["BuildId"],"members":{"BuildId":{}}},"output":{"type":"structure","members":{"Build":{"shape":"S13"}}}},"DescribeEC2InstanceLimits":{"input":{"type":"structure","members":{"EC2InstanceType":{},"Location":{}}},"output":{"type":"structure","members":{"EC2InstanceLimits":{"type":"list","member":{"type":"structure","members":{"EC2InstanceType":{},"CurrentInstances":{"type":"integer"},"InstanceLimit":{"type":"integer"},"Location":{}}}}}}},"DescribeFleetAttributes":{"input":{"type":"structure","members":{"FleetIds":{"shape":"S5v"},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"FleetAttributes":{"type":"list","member":{"shape":"S20"}},"NextToken":{}}}},"DescribeFleetCapacity":{"input":{"type":"structure","members":{"FleetIds":{"shape":"S5v"},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"FleetCapacity":{"type":"list","member":{"shape":"S61"}},"NextToken":{}}}},"DescribeFleetEvents":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Events":{"type":"list","member":{"type":"structure","members":{"EventId":{},"ResourceId":{},"EventCode":{},"Message":{},"EventTime":{"type":"timestamp"},"PreSignedLogUrl":{}}}},"NextToken":{}}}},"DescribeFleetLocationAttributes":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"Locations":{"shape":"S3n"},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"LocationAttributes":{"type":"list","member":{"type":"structure","members":{"LocationState":{"shape":"S28"},"StoppedActions":{"shape":"S25"},"UpdateStatus":{}}}},"NextToken":{}}}},"DescribeFleetLocationCapacity":{"input":{"type":"structure","required":["FleetId","Location"],"members":{"FleetId":{},"Location":{}}},"output":{"type":"structure","members":{"FleetCapacity":{"shape":"S61"}}}},"DescribeFleetLocationUtilization":{"input":{"type":"structure","required":["FleetId","Location"],"members":{"FleetId":{},"Location":{}}},"output":{"type":"structure","members":{"FleetUtilization":{"shape":"S6h"}}}},"DescribeFleetPortSettings":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"Location":{}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"InboundPermissions":{"shape":"S1d"},"UpdateStatus":{},"Location":{}}}},"DescribeFleetUtilization":{"input":{"type":"structure","members":{"FleetIds":{"shape":"S5v"},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"FleetUtilization":{"type":"list","member":{"shape":"S6h"}},"NextToken":{}}}},"DescribeGameServer":{"input":{"type":"structure","required":["GameServerGroupName","GameServerId"],"members":{"GameServerGroupName":{},"GameServerId":{}}},"output":{"type":"structure","members":{"GameServer":{"shape":"Sc"}}}},"DescribeGameServerGroup":{"input":{"type":"structure","required":["GameServerGroupName"],"members":{"GameServerGroupName":{}}},"output":{"type":"structure","members":{"GameServerGroup":{"shape":"S2u"}}}},"DescribeGameServerInstances":{"input":{"type":"structure","required":["GameServerGroupName"],"members":{"GameServerGroupName":{},"InstanceIds":{"type":"list","member":{}},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameServerInstances":{"type":"list","member":{"type":"structure","members":{"GameServerGroupName":{},"GameServerGroupArn":{},"InstanceId":{},"InstanceStatus":{}}}},"NextToken":{}}}},"DescribeGameSessionDetails":{"input":{"type":"structure","members":{"FleetId":{},"GameSessionId":{},"AliasId":{},"Location":{},"StatusFilter":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameSessionDetails":{"type":"list","member":{"type":"structure","members":{"GameSession":{"shape":"S38"},"ProtectionPolicy":{}}}},"NextToken":{}}}},"DescribeGameSessionPlacement":{"input":{"type":"structure","required":["PlacementId"],"members":{"PlacementId":{}}},"output":{"type":"structure","members":{"GameSessionPlacement":{"shape":"S73"}}}},"DescribeGameSessionQueues":{"input":{"type":"structure","members":{"Names":{"type":"list","member":{}},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameSessionQueues":{"type":"list","member":{"shape":"S3u"}},"NextToken":{}}}},"DescribeGameSessions":{"input":{"type":"structure","members":{"FleetId":{},"GameSessionId":{},"AliasId":{},"Location":{},"StatusFilter":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameSessions":{"shape":"S7g"},"NextToken":{}}}},"DescribeInstances":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"InstanceId":{},"Limit":{"type":"integer"},"NextToken":{},"Location":{}}},"output":{"type":"structure","members":{"Instances":{"type":"list","member":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"InstanceId":{},"IpAddress":{},"DnsName":{},"OperatingSystem":{},"Type":{},"Status":{},"CreationTime":{"type":"timestamp"},"Location":{}}}},"NextToken":{}}}},"DescribeMatchmaking":{"input":{"type":"structure","required":["TicketIds"],"members":{"TicketIds":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"TicketList":{"type":"list","member":{"shape":"S7r"}}}}},"DescribeMatchmakingConfigurations":{"input":{"type":"structure","members":{"Names":{"type":"list","member":{}},"RuleSetName":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Configurations":{"type":"list","member":{"shape":"S48"}},"NextToken":{}}}},"DescribeMatchmakingRuleSets":{"input":{"type":"structure","members":{"Names":{"type":"list","member":{}},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","required":["RuleSets"],"members":{"RuleSets":{"type":"list","member":{"shape":"S4e"}},"NextToken":{}}}},"DescribePlayerSessions":{"input":{"type":"structure","members":{"GameSessionId":{},"PlayerId":{},"PlayerSessionId":{},"PlayerSessionStatusFilter":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"PlayerSessions":{"shape":"S4p"},"NextToken":{}}}},"DescribeRuntimeConfiguration":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{}}},"output":{"type":"structure","members":{"RuntimeConfiguration":{"shape":"S1j"}}}},"DescribeScalingPolicies":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"StatusFilter":{},"Limit":{"type":"integer"},"NextToken":{},"Location":{}}},"output":{"type":"structure","members":{"ScalingPolicies":{"type":"list","member":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"Name":{},"Status":{},"ScalingAdjustment":{"type":"integer"},"ScalingAdjustmentType":{},"ComparisonOperator":{},"Threshold":{"type":"double"},"EvaluationPeriods":{"type":"integer"},"MetricName":{},"PolicyType":{},"TargetConfiguration":{"shape":"S8s"},"UpdateStatus":{},"Location":{}}}},"NextToken":{}}}},"DescribeScript":{"input":{"type":"structure","required":["ScriptId"],"members":{"ScriptId":{}}},"output":{"type":"structure","members":{"Script":{"shape":"S4t"}}}},"DescribeVpcPeeringAuthorizations":{"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"VpcPeeringAuthorizations":{"type":"list","member":{"shape":"S4w"}}}}},"DescribeVpcPeeringConnections":{"input":{"type":"structure","members":{"FleetId":{}}},"output":{"type":"structure","members":{"VpcPeeringConnections":{"type":"list","member":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"IpV4CidrBlock":{},"VpcPeeringConnectionId":{},"Status":{"type":"structure","members":{"Code":{},"Message":{}}},"PeerVpcId":{},"GameLiftVpcId":{}}}}}}},"GetGameSessionLogUrl":{"input":{"type":"structure","required":["GameSessionId"],"members":{"GameSessionId":{}}},"output":{"type":"structure","members":{"PreSignedUrl":{}}}},"GetInstanceAccess":{"input":{"type":"structure","required":["FleetId","InstanceId"],"members":{"FleetId":{},"InstanceId":{}}},"output":{"type":"structure","members":{"InstanceAccess":{"type":"structure","members":{"FleetId":{},"InstanceId":{},"IpAddress":{},"OperatingSystem":{},"Credentials":{"type":"structure","members":{"UserName":{},"Secret":{}},"sensitive":true}}}}}},"ListAliases":{"input":{"type":"structure","members":{"RoutingStrategyType":{},"Name":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Aliases":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListBuilds":{"input":{"type":"structure","members":{"Status":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Builds":{"type":"list","member":{"shape":"S13"}},"NextToken":{}}}},"ListFleets":{"input":{"type":"structure","members":{"BuildId":{},"ScriptId":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"FleetIds":{"type":"list","member":{}},"NextToken":{}}}},"ListGameServerGroups":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameServerGroups":{"type":"list","member":{"shape":"S2u"}},"NextToken":{}}}},"ListGameServers":{"input":{"type":"structure","required":["GameServerGroupName"],"members":{"GameServerGroupName":{},"SortOrder":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameServers":{"type":"list","member":{"shape":"Sc"}},"NextToken":{}}}},"ListScripts":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Scripts":{"type":"list","member":{"shape":"S4t"}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceARN"],"members":{"ResourceARN":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sq"}}}},"PutScalingPolicy":{"input":{"type":"structure","required":["Name","FleetId","MetricName"],"members":{"Name":{},"FleetId":{},"ScalingAdjustment":{"type":"integer"},"ScalingAdjustmentType":{},"Threshold":{"type":"double"},"ComparisonOperator":{},"EvaluationPeriods":{"type":"integer"},"MetricName":{},"PolicyType":{},"TargetConfiguration":{"shape":"S8s"}}},"output":{"type":"structure","members":{"Name":{}}}},"RegisterGameServer":{"input":{"type":"structure","required":["GameServerGroupName","GameServerId","InstanceId"],"members":{"GameServerGroupName":{},"GameServerId":{},"InstanceId":{},"ConnectionInfo":{},"GameServerData":{}}},"output":{"type":"structure","members":{"GameServer":{"shape":"Sc"}}}},"RequestUploadCredentials":{"input":{"type":"structure","required":["BuildId"],"members":{"BuildId":{}}},"output":{"type":"structure","members":{"UploadCredentials":{"shape":"S18"},"StorageLocation":{"shape":"Sz"}}}},"ResolveAlias":{"input":{"type":"structure","required":["AliasId"],"members":{"AliasId":{}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{}}}},"ResumeGameServerGroup":{"input":{"type":"structure","required":["GameServerGroupName","ResumeActions"],"members":{"GameServerGroupName":{},"ResumeActions":{"shape":"S2x"}}},"output":{"type":"structure","members":{"GameServerGroup":{"shape":"S2u"}}}},"SearchGameSessions":{"input":{"type":"structure","members":{"FleetId":{},"AliasId":{},"Location":{},"FilterExpression":{},"SortExpression":{},"Limit":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"GameSessions":{"shape":"S7g"},"NextToken":{}}}},"StartFleetActions":{"input":{"type":"structure","required":["FleetId","Actions"],"members":{"FleetId":{},"Actions":{"shape":"S25"},"Location":{}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{}}}},"StartGameSessionPlacement":{"input":{"type":"structure","required":["PlacementId","GameSessionQueueName","MaximumPlayerSessionCount"],"members":{"PlacementId":{},"GameSessionQueueName":{},"GameProperties":{"shape":"S31"},"MaximumPlayerSessionCount":{"type":"integer"},"GameSessionName":{},"PlayerLatencies":{"shape":"S75"},"DesiredPlayerSessions":{"type":"list","member":{"type":"structure","members":{"PlayerId":{},"PlayerData":{}}}},"GameSessionData":{}}},"output":{"type":"structure","members":{"GameSessionPlacement":{"shape":"S73"}}}},"StartMatchBackfill":{"input":{"type":"structure","required":["ConfigurationName","Players"],"members":{"TicketId":{},"ConfigurationName":{},"GameSessionArn":{},"Players":{"shape":"S7u"}}},"output":{"type":"structure","members":{"MatchmakingTicket":{"shape":"S7r"}}}},"StartMatchmaking":{"input":{"type":"structure","required":["ConfigurationName","Players"],"members":{"TicketId":{},"ConfigurationName":{},"Players":{"shape":"S7u"}}},"output":{"type":"structure","members":{"MatchmakingTicket":{"shape":"S7r"}}}},"StopFleetActions":{"input":{"type":"structure","required":["FleetId","Actions"],"members":{"FleetId":{},"Actions":{"shape":"S25"},"Location":{}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{}}}},"StopGameSessionPlacement":{"input":{"type":"structure","required":["PlacementId"],"members":{"PlacementId":{}}},"output":{"type":"structure","members":{"GameSessionPlacement":{"shape":"S73"}}}},"StopMatchmaking":{"input":{"type":"structure","required":["TicketId"],"members":{"TicketId":{}}},"output":{"type":"structure","members":{}}},"SuspendGameServerGroup":{"input":{"type":"structure","required":["GameServerGroupName","SuspendActions"],"members":{"GameServerGroupName":{},"SuspendActions":{"shape":"S2x"}}},"output":{"type":"structure","members":{"GameServerGroup":{"shape":"S2u"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceARN","Tags"],"members":{"ResourceARN":{},"Tags":{"shape":"Sq"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"input":{"type":"structure","required":["ResourceARN","TagKeys"],"members":{"ResourceARN":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateAlias":{"input":{"type":"structure","required":["AliasId"],"members":{"AliasId":{},"Name":{},"Description":{},"RoutingStrategy":{"shape":"Sm"}}},"output":{"type":"structure","members":{"Alias":{"shape":"Sv"}}}},"UpdateBuild":{"input":{"type":"structure","required":["BuildId"],"members":{"BuildId":{},"Name":{},"Version":{}}},"output":{"type":"structure","members":{"Build":{"shape":"S13"}}}},"UpdateFleetAttributes":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"Name":{},"Description":{},"NewGameSessionProtectionPolicy":{},"ResourceCreationLimitPolicy":{"shape":"S1p"},"MetricGroups":{"shape":"S1r"}}},"output":{"type":"structure","members":{"FleetId":{}}}},"UpdateFleetCapacity":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"DesiredInstances":{"type":"integer"},"MinSize":{"type":"integer"},"MaxSize":{"type":"integer"},"Location":{}}},"output":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"Location":{}}}},"UpdateFleetPortSettings":{"input":{"type":"structure","required":["FleetId"],"members":{"FleetId":{},"InboundPermissionAuthorizations":{"shape":"S1d"},"InboundPermissionRevocations":{"shape":"S1d"}}},"output":{"type":"structure","members":{"FleetId":{}}}},"UpdateGameServer":{"input":{"type":"structure","required":["GameServerGroupName","GameServerId"],"members":{"GameServerGroupName":{},"GameServerId":{},"GameServerData":{},"UtilizationStatus":{},"HealthCheck":{}}},"output":{"type":"structure","members":{"GameServer":{"shape":"Sc"}}}},"UpdateGameServerGroup":{"input":{"type":"structure","required":["GameServerGroupName"],"members":{"GameServerGroupName":{},"RoleArn":{},"InstanceDefinitions":{"shape":"S2i"},"GameServerProtectionPolicy":{},"BalancingStrategy":{}}},"output":{"type":"structure","members":{"GameServerGroup":{"shape":"S2u"}}}},"UpdateGameSession":{"input":{"type":"structure","required":["GameSessionId"],"members":{"GameSessionId":{},"MaximumPlayerSessionCount":{"type":"integer"},"Name":{},"PlayerSessionCreationPolicy":{},"ProtectionPolicy":{}}},"output":{"type":"structure","members":{"GameSession":{"shape":"S38"}}}},"UpdateGameSessionQueue":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"TimeoutInSeconds":{"type":"integer"},"PlayerLatencyPolicies":{"shape":"S3h"},"Destinations":{"shape":"S3j"},"FilterConfiguration":{"shape":"S3m"},"PriorityConfiguration":{"shape":"S3o"},"CustomEventData":{},"NotificationTarget":{}}},"output":{"type":"structure","members":{"GameSessionQueue":{"shape":"S3u"}}}},"UpdateMatchmakingConfiguration":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Description":{},"GameSessionQueueArns":{"shape":"S3x"},"RequestTimeoutSeconds":{"type":"integer"},"AcceptanceTimeoutSeconds":{"type":"integer"},"AcceptanceRequired":{"type":"boolean"},"RuleSetName":{},"NotificationTarget":{},"AdditionalPlayerCount":{"type":"integer"},"CustomEventData":{},"GameProperties":{"shape":"S31"},"GameSessionData":{},"BackfillMode":{},"FlexMatchMode":{}}},"output":{"type":"structure","members":{"Configuration":{"shape":"S48"}}}},"UpdateRuntimeConfiguration":{"input":{"type":"structure","required":["FleetId","RuntimeConfiguration"],"members":{"FleetId":{},"RuntimeConfiguration":{"shape":"S1j"}}},"output":{"type":"structure","members":{"RuntimeConfiguration":{"shape":"S1j"}}}},"UpdateScript":{"input":{"type":"structure","required":["ScriptId"],"members":{"ScriptId":{},"Name":{},"Version":{},"StorageLocation":{"shape":"Sz"},"ZipFile":{"type":"blob"}}},"output":{"type":"structure","members":{"Script":{"shape":"S4t"}}}},"ValidateMatchmakingRuleSet":{"input":{"type":"structure","required":["RuleSetBody"],"members":{"RuleSetBody":{}}},"output":{"type":"structure","members":{"Valid":{"type":"boolean"}}}}},"shapes":{"S3":{"type":"list","member":{}},"Sc":{"type":"structure","members":{"GameServerGroupName":{},"GameServerGroupArn":{},"GameServerId":{},"InstanceId":{},"ConnectionInfo":{},"GameServerData":{},"ClaimStatus":{},"UtilizationStatus":{},"RegistrationTime":{"type":"timestamp"},"LastClaimTime":{"type":"timestamp"},"LastHealthCheckTime":{"type":"timestamp"}}},"Sm":{"type":"structure","members":{"Type":{},"FleetId":{},"Message":{}}},"Sq":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sv":{"type":"structure","members":{"AliasId":{},"Name":{},"AliasArn":{},"Description":{},"RoutingStrategy":{"shape":"Sm"},"CreationTime":{"type":"timestamp"},"LastUpdatedTime":{"type":"timestamp"}}},"Sz":{"type":"structure","members":{"Bucket":{},"Key":{},"RoleArn":{},"ObjectVersion":{}}},"S13":{"type":"structure","members":{"BuildId":{},"BuildArn":{},"Name":{},"Version":{},"Status":{},"SizeOnDisk":{"type":"long"},"OperatingSystem":{},"CreationTime":{"type":"timestamp"}}},"S18":{"type":"structure","members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{}},"sensitive":true},"S1d":{"type":"list","member":{"type":"structure","required":["FromPort","ToPort","IpRange","Protocol"],"members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"},"IpRange":{},"Protocol":{}}}},"S1j":{"type":"structure","members":{"ServerProcesses":{"type":"list","member":{"type":"structure","required":["LaunchPath","ConcurrentExecutions"],"members":{"LaunchPath":{},"Parameters":{},"ConcurrentExecutions":{"type":"integer"}}}},"MaxConcurrentGameSessionActivations":{"type":"integer"},"GameSessionActivationTimeoutSeconds":{"type":"integer"}}},"S1p":{"type":"structure","members":{"NewGameSessionsPerCreator":{"type":"integer"},"PolicyPeriodInMinutes":{"type":"integer"}}},"S1r":{"type":"list","member":{}},"S1u":{"type":"structure","required":["CertificateType"],"members":{"CertificateType":{}}},"S1w":{"type":"list","member":{"type":"structure","members":{"Location":{}}}},"S20":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"FleetType":{},"InstanceType":{},"Description":{},"Name":{},"CreationTime":{"type":"timestamp"},"TerminationTime":{"type":"timestamp"},"Status":{},"BuildId":{},"BuildArn":{},"ScriptId":{},"ScriptArn":{},"ServerLaunchPath":{},"ServerLaunchParameters":{},"LogPaths":{"shape":"S3"},"NewGameSessionProtectionPolicy":{},"OperatingSystem":{},"ResourceCreationLimitPolicy":{"shape":"S1p"},"MetricGroups":{"shape":"S1r"},"StoppedActions":{"shape":"S25"},"InstanceRoleArn":{},"CertificateConfiguration":{"shape":"S1u"}}},"S25":{"type":"list","member":{}},"S27":{"type":"list","member":{"shape":"S28"}},"S28":{"type":"structure","members":{"Location":{},"Status":{}}},"S2i":{"type":"list","member":{"type":"structure","required":["InstanceType"],"members":{"InstanceType":{},"WeightedCapacity":{}}}},"S2u":{"type":"structure","members":{"GameServerGroupName":{},"GameServerGroupArn":{},"RoleArn":{},"InstanceDefinitions":{"shape":"S2i"},"BalancingStrategy":{},"GameServerProtectionPolicy":{},"AutoScalingGroupArn":{},"Status":{},"StatusReason":{},"SuspendedActions":{"shape":"S2x"},"CreationTime":{"type":"timestamp"},"LastUpdatedTime":{"type":"timestamp"}}},"S2x":{"type":"list","member":{}},"S31":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"S38":{"type":"structure","members":{"GameSessionId":{},"Name":{},"FleetId":{},"FleetArn":{},"CreationTime":{"type":"timestamp"},"TerminationTime":{"type":"timestamp"},"CurrentPlayerSessionCount":{"type":"integer"},"MaximumPlayerSessionCount":{"type":"integer"},"Status":{},"StatusReason":{},"GameProperties":{"shape":"S31"},"IpAddress":{},"DnsName":{},"Port":{"type":"integer"},"PlayerSessionCreationPolicy":{},"CreatorId":{},"GameSessionData":{},"MatchmakerData":{},"Location":{}}},"S3h":{"type":"list","member":{"type":"structure","members":{"MaximumIndividualPlayerLatencyMilliseconds":{"type":"integer"},"PolicyDurationSeconds":{"type":"integer"}}}},"S3j":{"type":"list","member":{"type":"structure","members":{"DestinationArn":{}}}},"S3m":{"type":"structure","members":{"AllowedLocations":{"shape":"S3n"}}},"S3n":{"type":"list","member":{}},"S3o":{"type":"structure","members":{"PriorityOrder":{"type":"list","member":{}},"LocationOrder":{"shape":"S3n"}}},"S3u":{"type":"structure","members":{"Name":{},"GameSessionQueueArn":{},"TimeoutInSeconds":{"type":"integer"},"PlayerLatencyPolicies":{"shape":"S3h"},"Destinations":{"shape":"S3j"},"FilterConfiguration":{"shape":"S3m"},"PriorityConfiguration":{"shape":"S3o"},"CustomEventData":{},"NotificationTarget":{}}},"S3x":{"type":"list","member":{}},"S48":{"type":"structure","members":{"Name":{},"ConfigurationArn":{},"Description":{},"GameSessionQueueArns":{"shape":"S3x"},"RequestTimeoutSeconds":{"type":"integer"},"AcceptanceTimeoutSeconds":{"type":"integer"},"AcceptanceRequired":{"type":"boolean"},"RuleSetName":{},"RuleSetArn":{},"NotificationTarget":{},"AdditionalPlayerCount":{"type":"integer"},"CustomEventData":{},"CreationTime":{"type":"timestamp"},"GameProperties":{"shape":"S31"},"GameSessionData":{},"BackfillMode":{},"FlexMatchMode":{}}},"S4e":{"type":"structure","required":["RuleSetBody"],"members":{"RuleSetName":{},"RuleSetArn":{},"RuleSetBody":{},"CreationTime":{"type":"timestamp"}}},"S4i":{"type":"structure","members":{"PlayerSessionId":{},"PlayerId":{},"GameSessionId":{},"FleetId":{},"FleetArn":{},"CreationTime":{"type":"timestamp"},"TerminationTime":{"type":"timestamp"},"Status":{},"IpAddress":{},"DnsName":{},"Port":{"type":"integer"},"PlayerData":{}}},"S4p":{"type":"list","member":{"shape":"S4i"}},"S4t":{"type":"structure","members":{"ScriptId":{},"ScriptArn":{},"Name":{},"Version":{},"SizeOnDisk":{"type":"long"},"CreationTime":{"type":"timestamp"},"StorageLocation":{"shape":"Sz"}}},"S4w":{"type":"structure","members":{"GameLiftAwsAccountId":{},"PeerVpcAwsAccountId":{},"PeerVpcId":{},"CreationTime":{"type":"timestamp"},"ExpirationTime":{"type":"timestamp"}}},"S5v":{"type":"list","member":{}},"S61":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"InstanceType":{},"InstanceCounts":{"type":"structure","members":{"DESIRED":{"type":"integer"},"MINIMUM":{"type":"integer"},"MAXIMUM":{"type":"integer"},"PENDING":{"type":"integer"},"ACTIVE":{"type":"integer"},"IDLE":{"type":"integer"},"TERMINATING":{"type":"integer"}}},"Location":{}}},"S6h":{"type":"structure","members":{"FleetId":{},"FleetArn":{},"ActiveServerProcessCount":{"type":"integer"},"ActiveGameSessionCount":{"type":"integer"},"CurrentPlayerSessionCount":{"type":"integer"},"MaximumPlayerSessionCount":{"type":"integer"},"Location":{}}},"S73":{"type":"structure","members":{"PlacementId":{},"GameSessionQueueName":{},"Status":{},"GameProperties":{"shape":"S31"},"MaximumPlayerSessionCount":{"type":"integer"},"GameSessionName":{},"GameSessionId":{},"GameSessionArn":{},"GameSessionRegion":{},"PlayerLatencies":{"shape":"S75"},"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"},"IpAddress":{},"DnsName":{},"Port":{"type":"integer"},"PlacedPlayerSessions":{"type":"list","member":{"type":"structure","members":{"PlayerId":{},"PlayerSessionId":{}}}},"GameSessionData":{},"MatchmakerData":{}}},"S75":{"type":"list","member":{"type":"structure","members":{"PlayerId":{},"RegionIdentifier":{},"LatencyInMilliseconds":{"type":"float"}}}},"S7g":{"type":"list","member":{"shape":"S38"}},"S7r":{"type":"structure","members":{"TicketId":{},"ConfigurationName":{},"ConfigurationArn":{},"Status":{},"StatusReason":{},"StatusMessage":{},"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"},"Players":{"shape":"S7u"},"GameSessionConnectionInfo":{"type":"structure","members":{"GameSessionArn":{},"IpAddress":{},"DnsName":{},"Port":{"type":"integer"},"MatchedPlayerSessions":{"type":"list","member":{"type":"structure","members":{"PlayerId":{},"PlayerSessionId":{}}}}}},"EstimatedWaitTime":{"type":"integer"}}},"S7u":{"type":"list","member":{"type":"structure","members":{"PlayerId":{},"PlayerAttributes":{"type":"map","key":{},"value":{"type":"structure","members":{"S":{},"N":{"type":"double"},"SL":{"shape":"S3"},"SDM":{"type":"map","key":{},"value":{"type":"double"}}}}},"Team":{},"LatencyInMs":{"type":"map","key":{},"value":{"type":"integer"}}}}},"S8s":{"type":"structure","required":["TargetValue"],"members":{"TargetValue":{"type":"double"}}}}}; -/***/ }), - -/***/ 5589: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var defaults = __webpack_require__(6774); - -/** - * Transform the data for a request or a response - * - * @param {Object|String} data The data to be transformed - * @param {Array} headers The headers for the request or response - * @param {Array|Function} fns A single function or Array of functions - * @returns {*} The resulting transformed data - */ -module.exports = function transformData(data, headers, fns) { - var context = this || defaults; - /*eslint no-param-reassign:0*/ - utils.forEach(fns, function transform(fn) { - data = fn.call(context, data, headers); - }); - - return data; -}; - - /***/ }), /***/ 5594: @@ -26815,19 +23769,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2018-06-26","endpoin module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-11-28","endpointPrefix":"guardduty","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"Amazon GuardDuty","serviceId":"GuardDuty","signatureVersion":"v4","signingName":"guardduty","uid":"guardduty-2017-11-28"},"operations":{"AcceptInvitation":{"http":{"requestUri":"/detector/{detectorId}/master","responseCode":200},"input":{"type":"structure","required":["DetectorId","MasterId","InvitationId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"MasterId":{"locationName":"masterId"},"InvitationId":{"locationName":"invitationId"}}},"output":{"type":"structure","members":{}}},"ArchiveFindings":{"http":{"requestUri":"/detector/{detectorId}/findings/archive","responseCode":200},"input":{"type":"structure","required":["DetectorId","FindingIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingIds":{"shape":"S6","locationName":"findingIds"}}},"output":{"type":"structure","members":{}}},"CreateDetector":{"http":{"requestUri":"/detector","responseCode":200},"input":{"type":"structure","required":["Enable"],"members":{"Enable":{"locationName":"enable","type":"boolean"},"ClientToken":{"idempotencyToken":true,"locationName":"clientToken"},"FindingPublishingFrequency":{"locationName":"findingPublishingFrequency"},"DataSources":{"shape":"Sd","locationName":"dataSources"},"Tags":{"shape":"Sf","locationName":"tags"}}},"output":{"type":"structure","members":{"DetectorId":{"locationName":"detectorId"}}}},"CreateFilter":{"http":{"requestUri":"/detector/{detectorId}/filter","responseCode":200},"input":{"type":"structure","required":["DetectorId","Name","FindingCriteria"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"Name":{"locationName":"name"},"Description":{"locationName":"description"},"Action":{"locationName":"action"},"Rank":{"locationName":"rank","type":"integer"},"FindingCriteria":{"shape":"So","locationName":"findingCriteria"},"ClientToken":{"idempotencyToken":true,"locationName":"clientToken"},"Tags":{"shape":"Sf","locationName":"tags"}}},"output":{"type":"structure","required":["Name"],"members":{"Name":{"locationName":"name"}}}},"CreateIPSet":{"http":{"requestUri":"/detector/{detectorId}/ipset","responseCode":200},"input":{"type":"structure","required":["DetectorId","Name","Format","Location","Activate"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"Name":{"locationName":"name"},"Format":{"locationName":"format"},"Location":{"locationName":"location"},"Activate":{"locationName":"activate","type":"boolean"},"ClientToken":{"idempotencyToken":true,"locationName":"clientToken"},"Tags":{"shape":"Sf","locationName":"tags"}}},"output":{"type":"structure","required":["IpSetId"],"members":{"IpSetId":{"locationName":"ipSetId"}}}},"CreateMembers":{"http":{"requestUri":"/detector/{detectorId}/member","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountDetails"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountDetails":{"locationName":"accountDetails","type":"list","member":{"type":"structure","required":["AccountId","Email"],"members":{"AccountId":{"locationName":"accountId"},"Email":{"locationName":"email"}}}}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"CreatePublishingDestination":{"http":{"requestUri":"/detector/{detectorId}/publishingDestination","responseCode":200},"input":{"type":"structure","required":["DetectorId","DestinationType","DestinationProperties"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"DestinationType":{"locationName":"destinationType"},"DestinationProperties":{"shape":"S1d","locationName":"destinationProperties"},"ClientToken":{"idempotencyToken":true,"locationName":"clientToken"}}},"output":{"type":"structure","required":["DestinationId"],"members":{"DestinationId":{"locationName":"destinationId"}}}},"CreateSampleFindings":{"http":{"requestUri":"/detector/{detectorId}/findings/create","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingTypes":{"locationName":"findingTypes","type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"CreateThreatIntelSet":{"http":{"requestUri":"/detector/{detectorId}/threatintelset","responseCode":200},"input":{"type":"structure","required":["DetectorId","Name","Format","Location","Activate"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"Name":{"locationName":"name"},"Format":{"locationName":"format"},"Location":{"locationName":"location"},"Activate":{"locationName":"activate","type":"boolean"},"ClientToken":{"idempotencyToken":true,"locationName":"clientToken"},"Tags":{"shape":"Sf","locationName":"tags"}}},"output":{"type":"structure","required":["ThreatIntelSetId"],"members":{"ThreatIntelSetId":{"locationName":"threatIntelSetId"}}}},"DeclineInvitations":{"http":{"requestUri":"/invitation/decline","responseCode":200},"input":{"type":"structure","required":["AccountIds"],"members":{"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"DeleteDetector":{"http":{"method":"DELETE","requestUri":"/detector/{detectorId}","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"}}},"output":{"type":"structure","members":{}}},"DeleteFilter":{"http":{"method":"DELETE","requestUri":"/detector/{detectorId}/filter/{filterName}","responseCode":200},"input":{"type":"structure","required":["DetectorId","FilterName"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FilterName":{"location":"uri","locationName":"filterName"}}},"output":{"type":"structure","members":{}}},"DeleteIPSet":{"http":{"method":"DELETE","requestUri":"/detector/{detectorId}/ipset/{ipSetId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","IpSetId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"IpSetId":{"location":"uri","locationName":"ipSetId"}}},"output":{"type":"structure","members":{}}},"DeleteInvitations":{"http":{"requestUri":"/invitation/delete","responseCode":200},"input":{"type":"structure","required":["AccountIds"],"members":{"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"DeleteMembers":{"http":{"requestUri":"/detector/{detectorId}/member/delete","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"DeletePublishingDestination":{"http":{"method":"DELETE","requestUri":"/detector/{detectorId}/publishingDestination/{destinationId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","DestinationId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"DestinationId":{"location":"uri","locationName":"destinationId"}}},"output":{"type":"structure","members":{}}},"DeleteThreatIntelSet":{"http":{"method":"DELETE","requestUri":"/detector/{detectorId}/threatintelset/{threatIntelSetId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","ThreatIntelSetId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"ThreatIntelSetId":{"location":"uri","locationName":"threatIntelSetId"}}},"output":{"type":"structure","members":{}}},"DescribeOrganizationConfiguration":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/admin","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"}}},"output":{"type":"structure","required":["AutoEnable","MemberAccountLimitReached"],"members":{"AutoEnable":{"locationName":"autoEnable","type":"boolean"},"MemberAccountLimitReached":{"locationName":"memberAccountLimitReached","type":"boolean"},"DataSources":{"locationName":"dataSources","type":"structure","required":["S3Logs"],"members":{"S3Logs":{"locationName":"s3Logs","type":"structure","required":["AutoEnable"],"members":{"AutoEnable":{"locationName":"autoEnable","type":"boolean"}}}}}}}},"DescribePublishingDestination":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/publishingDestination/{destinationId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","DestinationId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"DestinationId":{"location":"uri","locationName":"destinationId"}}},"output":{"type":"structure","required":["DestinationId","DestinationType","Status","PublishingFailureStartTimestamp","DestinationProperties"],"members":{"DestinationId":{"locationName":"destinationId"},"DestinationType":{"locationName":"destinationType"},"Status":{"locationName":"status"},"PublishingFailureStartTimestamp":{"locationName":"publishingFailureStartTimestamp","type":"long"},"DestinationProperties":{"shape":"S1d","locationName":"destinationProperties"}}}},"DisableOrganizationAdminAccount":{"http":{"requestUri":"/admin/disable","responseCode":200},"input":{"type":"structure","required":["AdminAccountId"],"members":{"AdminAccountId":{"locationName":"adminAccountId"}}},"output":{"type":"structure","members":{}}},"DisassociateFromMasterAccount":{"http":{"requestUri":"/detector/{detectorId}/master/disassociate","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"}}},"output":{"type":"structure","members":{}}},"DisassociateMembers":{"http":{"requestUri":"/detector/{detectorId}/member/disassociate","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"EnableOrganizationAdminAccount":{"http":{"requestUri":"/admin/enable","responseCode":200},"input":{"type":"structure","required":["AdminAccountId"],"members":{"AdminAccountId":{"locationName":"adminAccountId"}}},"output":{"type":"structure","members":{}}},"GetDetector":{"http":{"method":"GET","requestUri":"/detector/{detectorId}","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"}}},"output":{"type":"structure","required":["ServiceRole","Status"],"members":{"CreatedAt":{"locationName":"createdAt"},"FindingPublishingFrequency":{"locationName":"findingPublishingFrequency"},"ServiceRole":{"locationName":"serviceRole"},"Status":{"locationName":"status"},"UpdatedAt":{"locationName":"updatedAt"},"DataSources":{"shape":"S2l","locationName":"dataSources"},"Tags":{"shape":"Sf","locationName":"tags"}}}},"GetFilter":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/filter/{filterName}","responseCode":200},"input":{"type":"structure","required":["DetectorId","FilterName"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FilterName":{"location":"uri","locationName":"filterName"}}},"output":{"type":"structure","required":["Name","Action","FindingCriteria"],"members":{"Name":{"locationName":"name"},"Description":{"locationName":"description"},"Action":{"locationName":"action"},"Rank":{"locationName":"rank","type":"integer"},"FindingCriteria":{"shape":"So","locationName":"findingCriteria"},"Tags":{"shape":"Sf","locationName":"tags"}}}},"GetFindings":{"http":{"requestUri":"/detector/{detectorId}/findings/get","responseCode":200},"input":{"type":"structure","required":["DetectorId","FindingIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingIds":{"shape":"S6","locationName":"findingIds"},"SortCriteria":{"shape":"S2u","locationName":"sortCriteria"}}},"output":{"type":"structure","required":["Findings"],"members":{"Findings":{"locationName":"findings","type":"list","member":{"type":"structure","required":["AccountId","Arn","CreatedAt","Id","Region","Resource","SchemaVersion","Severity","Type","UpdatedAt"],"members":{"AccountId":{"locationName":"accountId"},"Arn":{"locationName":"arn"},"Confidence":{"locationName":"confidence","type":"double"},"CreatedAt":{"locationName":"createdAt"},"Description":{"locationName":"description"},"Id":{"locationName":"id"},"Partition":{"locationName":"partition"},"Region":{"locationName":"region"},"Resource":{"locationName":"resource","type":"structure","members":{"AccessKeyDetails":{"locationName":"accessKeyDetails","type":"structure","members":{"AccessKeyId":{"locationName":"accessKeyId"},"PrincipalId":{"locationName":"principalId"},"UserName":{"locationName":"userName"},"UserType":{"locationName":"userType"}}},"S3BucketDetails":{"locationName":"s3BucketDetails","type":"list","member":{"type":"structure","members":{"Arn":{"locationName":"arn"},"Name":{"locationName":"name"},"Type":{"locationName":"type"},"CreatedAt":{"locationName":"createdAt","type":"timestamp"},"Owner":{"locationName":"owner","type":"structure","members":{"Id":{"locationName":"id"}}},"Tags":{"shape":"S36","locationName":"tags"},"DefaultServerSideEncryption":{"locationName":"defaultServerSideEncryption","type":"structure","members":{"EncryptionType":{"locationName":"encryptionType"},"KmsMasterKeyArn":{"locationName":"kmsMasterKeyArn"}}},"PublicAccess":{"locationName":"publicAccess","type":"structure","members":{"PermissionConfiguration":{"locationName":"permissionConfiguration","type":"structure","members":{"BucketLevelPermissions":{"locationName":"bucketLevelPermissions","type":"structure","members":{"AccessControlList":{"locationName":"accessControlList","type":"structure","members":{"AllowsPublicReadAccess":{"locationName":"allowsPublicReadAccess","type":"boolean"},"AllowsPublicWriteAccess":{"locationName":"allowsPublicWriteAccess","type":"boolean"}}},"BucketPolicy":{"locationName":"bucketPolicy","type":"structure","members":{"AllowsPublicReadAccess":{"locationName":"allowsPublicReadAccess","type":"boolean"},"AllowsPublicWriteAccess":{"locationName":"allowsPublicWriteAccess","type":"boolean"}}},"BlockPublicAccess":{"shape":"S3e","locationName":"blockPublicAccess"}}},"AccountLevelPermissions":{"locationName":"accountLevelPermissions","type":"structure","members":{"BlockPublicAccess":{"shape":"S3e","locationName":"blockPublicAccess"}}}}},"EffectivePermission":{"locationName":"effectivePermission"}}}}}},"InstanceDetails":{"locationName":"instanceDetails","type":"structure","members":{"AvailabilityZone":{"locationName":"availabilityZone"},"IamInstanceProfile":{"locationName":"iamInstanceProfile","type":"structure","members":{"Arn":{"locationName":"arn"},"Id":{"locationName":"id"}}},"ImageDescription":{"locationName":"imageDescription"},"ImageId":{"locationName":"imageId"},"InstanceId":{"locationName":"instanceId"},"InstanceState":{"locationName":"instanceState"},"InstanceType":{"locationName":"instanceType"},"OutpostArn":{"locationName":"outpostArn"},"LaunchTime":{"locationName":"launchTime"},"NetworkInterfaces":{"locationName":"networkInterfaces","type":"list","member":{"type":"structure","members":{"Ipv6Addresses":{"locationName":"ipv6Addresses","type":"list","member":{}},"NetworkInterfaceId":{"locationName":"networkInterfaceId"},"PrivateDnsName":{"locationName":"privateDnsName"},"PrivateIpAddress":{"locationName":"privateIpAddress"},"PrivateIpAddresses":{"locationName":"privateIpAddresses","type":"list","member":{"type":"structure","members":{"PrivateDnsName":{"locationName":"privateDnsName"},"PrivateIpAddress":{"locationName":"privateIpAddress"}}}},"PublicDnsName":{"locationName":"publicDnsName"},"PublicIp":{"locationName":"publicIp"},"SecurityGroups":{"locationName":"securityGroups","type":"list","member":{"type":"structure","members":{"GroupId":{"locationName":"groupId"},"GroupName":{"locationName":"groupName"}}}},"SubnetId":{"locationName":"subnetId"},"VpcId":{"locationName":"vpcId"}}}},"Platform":{"locationName":"platform"},"ProductCodes":{"locationName":"productCodes","type":"list","member":{"type":"structure","members":{"Code":{"locationName":"code"},"ProductType":{"locationName":"productType"}}}},"Tags":{"shape":"S36","locationName":"tags"}}},"ResourceType":{"locationName":"resourceType"}}},"SchemaVersion":{"locationName":"schemaVersion"},"Service":{"locationName":"service","type":"structure","members":{"Action":{"locationName":"action","type":"structure","members":{"ActionType":{"locationName":"actionType"},"AwsApiCallAction":{"locationName":"awsApiCallAction","type":"structure","members":{"Api":{"locationName":"api"},"CallerType":{"locationName":"callerType"},"DomainDetails":{"locationName":"domainDetails","type":"structure","members":{"Domain":{"locationName":"domain"}}},"ErrorCode":{"locationName":"errorCode"},"RemoteIpDetails":{"shape":"S3v","locationName":"remoteIpDetails"},"ServiceName":{"locationName":"serviceName"}}},"DnsRequestAction":{"locationName":"dnsRequestAction","type":"structure","members":{"Domain":{"locationName":"domain"}}},"NetworkConnectionAction":{"locationName":"networkConnectionAction","type":"structure","members":{"Blocked":{"locationName":"blocked","type":"boolean"},"ConnectionDirection":{"locationName":"connectionDirection"},"LocalPortDetails":{"shape":"S42","locationName":"localPortDetails"},"Protocol":{"locationName":"protocol"},"LocalIpDetails":{"shape":"S43","locationName":"localIpDetails"},"RemoteIpDetails":{"shape":"S3v","locationName":"remoteIpDetails"},"RemotePortDetails":{"locationName":"remotePortDetails","type":"structure","members":{"Port":{"locationName":"port","type":"integer"},"PortName":{"locationName":"portName"}}}}},"PortProbeAction":{"locationName":"portProbeAction","type":"structure","members":{"Blocked":{"locationName":"blocked","type":"boolean"},"PortProbeDetails":{"locationName":"portProbeDetails","type":"list","member":{"type":"structure","members":{"LocalPortDetails":{"shape":"S42","locationName":"localPortDetails"},"LocalIpDetails":{"shape":"S43","locationName":"localIpDetails"},"RemoteIpDetails":{"shape":"S3v","locationName":"remoteIpDetails"}}}}}}}},"Evidence":{"locationName":"evidence","type":"structure","members":{"ThreatIntelligenceDetails":{"locationName":"threatIntelligenceDetails","type":"list","member":{"type":"structure","members":{"ThreatListName":{"locationName":"threatListName"},"ThreatNames":{"locationName":"threatNames","type":"list","member":{}}}}}}},"Archived":{"locationName":"archived","type":"boolean"},"Count":{"locationName":"count","type":"integer"},"DetectorId":{"locationName":"detectorId"},"EventFirstSeen":{"locationName":"eventFirstSeen"},"EventLastSeen":{"locationName":"eventLastSeen"},"ResourceRole":{"locationName":"resourceRole"},"ServiceName":{"locationName":"serviceName"},"UserFeedback":{"locationName":"userFeedback"}}},"Severity":{"locationName":"severity","type":"double"},"Title":{"locationName":"title"},"Type":{"locationName":"type"},"UpdatedAt":{"locationName":"updatedAt"}}}}}}},"GetFindingsStatistics":{"http":{"requestUri":"/detector/{detectorId}/findings/statistics","responseCode":200},"input":{"type":"structure","required":["DetectorId","FindingStatisticTypes"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingStatisticTypes":{"locationName":"findingStatisticTypes","type":"list","member":{}},"FindingCriteria":{"shape":"So","locationName":"findingCriteria"}}},"output":{"type":"structure","required":["FindingStatistics"],"members":{"FindingStatistics":{"locationName":"findingStatistics","type":"structure","members":{"CountBySeverity":{"locationName":"countBySeverity","type":"map","key":{},"value":{"type":"integer"}}}}}}},"GetIPSet":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/ipset/{ipSetId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","IpSetId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"IpSetId":{"location":"uri","locationName":"ipSetId"}}},"output":{"type":"structure","required":["Name","Format","Location","Status"],"members":{"Name":{"locationName":"name"},"Format":{"locationName":"format"},"Location":{"locationName":"location"},"Status":{"locationName":"status"},"Tags":{"shape":"Sf","locationName":"tags"}}}},"GetInvitationsCount":{"http":{"method":"GET","requestUri":"/invitation/count","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"InvitationsCount":{"locationName":"invitationsCount","type":"integer"}}}},"GetMasterAccount":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/master","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"}}},"output":{"type":"structure","required":["Master"],"members":{"Master":{"locationName":"master","type":"structure","members":{"AccountId":{"locationName":"accountId"},"InvitationId":{"locationName":"invitationId"},"RelationshipStatus":{"locationName":"relationshipStatus"},"InvitedAt":{"locationName":"invitedAt"}}}}}},"GetMemberDetectors":{"http":{"requestUri":"/detector/{detectorId}/member/detector/get","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["MemberDataSourceConfigurations","UnprocessedAccounts"],"members":{"MemberDataSourceConfigurations":{"locationName":"members","type":"list","member":{"type":"structure","required":["AccountId","DataSources"],"members":{"AccountId":{"locationName":"accountId"},"DataSources":{"shape":"S2l","locationName":"dataSources"}}}},"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"GetMembers":{"http":{"requestUri":"/detector/{detectorId}/member/get","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["Members","UnprocessedAccounts"],"members":{"Members":{"shape":"S4w","locationName":"members"},"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"GetThreatIntelSet":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/threatintelset/{threatIntelSetId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","ThreatIntelSetId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"ThreatIntelSetId":{"location":"uri","locationName":"threatIntelSetId"}}},"output":{"type":"structure","required":["Name","Format","Location","Status"],"members":{"Name":{"locationName":"name"},"Format":{"locationName":"format"},"Location":{"locationName":"location"},"Status":{"locationName":"status"},"Tags":{"shape":"Sf","locationName":"tags"}}}},"GetUsageStatistics":{"http":{"requestUri":"/detector/{detectorId}/usage/statistics","responseCode":200},"input":{"type":"structure","required":["DetectorId","UsageStatisticType","UsageCriteria"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"UsageStatisticType":{"locationName":"usageStatisticsType"},"UsageCriteria":{"locationName":"usageCriteria","type":"structure","required":["DataSources"],"members":{"AccountIds":{"shape":"S1n","locationName":"accountIds"},"DataSources":{"locationName":"dataSources","type":"list","member":{}},"Resources":{"locationName":"resources","type":"list","member":{}}}},"Unit":{"locationName":"unit"},"MaxResults":{"locationName":"maxResults","type":"integer"},"NextToken":{"locationName":"nextToken"}}},"output":{"type":"structure","members":{"UsageStatistics":{"locationName":"usageStatistics","type":"structure","members":{"SumByAccount":{"locationName":"sumByAccount","type":"list","member":{"type":"structure","members":{"AccountId":{"locationName":"accountId"},"Total":{"shape":"S5c","locationName":"total"}}}},"SumByDataSource":{"locationName":"sumByDataSource","type":"list","member":{"type":"structure","members":{"DataSource":{"locationName":"dataSource"},"Total":{"shape":"S5c","locationName":"total"}}}},"SumByResource":{"shape":"S5f","locationName":"sumByResource"},"TopResources":{"shape":"S5f","locationName":"topResources"}}},"NextToken":{"locationName":"nextToken"}}}},"InviteMembers":{"http":{"requestUri":"/detector/{detectorId}/member/invite","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"},"DisableEmailNotification":{"locationName":"disableEmailNotification","type":"boolean"},"Message":{"locationName":"message"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"ListDetectors":{"http":{"method":"GET","requestUri":"/detector","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["DetectorIds"],"members":{"DetectorIds":{"locationName":"detectorIds","type":"list","member":{}},"NextToken":{"locationName":"nextToken"}}}},"ListFilters":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/filter","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["FilterNames"],"members":{"FilterNames":{"locationName":"filterNames","type":"list","member":{}},"NextToken":{"locationName":"nextToken"}}}},"ListFindings":{"http":{"requestUri":"/detector/{detectorId}/findings","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingCriteria":{"shape":"So","locationName":"findingCriteria"},"SortCriteria":{"shape":"S2u","locationName":"sortCriteria"},"MaxResults":{"locationName":"maxResults","type":"integer"},"NextToken":{"locationName":"nextToken"}}},"output":{"type":"structure","required":["FindingIds"],"members":{"FindingIds":{"shape":"S6","locationName":"findingIds"},"NextToken":{"locationName":"nextToken"}}}},"ListIPSets":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/ipset","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["IpSetIds"],"members":{"IpSetIds":{"locationName":"ipSetIds","type":"list","member":{}},"NextToken":{"locationName":"nextToken"}}}},"ListInvitations":{"http":{"method":"GET","requestUri":"/invitation","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","members":{"Invitations":{"locationName":"invitations","type":"list","member":{"type":"structure","members":{"AccountId":{"locationName":"accountId"},"InvitationId":{"locationName":"invitationId"},"RelationshipStatus":{"locationName":"relationshipStatus"},"InvitedAt":{"locationName":"invitedAt"}}}},"NextToken":{"locationName":"nextToken"}}}},"ListMembers":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/member","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"},"OnlyAssociated":{"location":"querystring","locationName":"onlyAssociated"}}},"output":{"type":"structure","members":{"Members":{"shape":"S4w","locationName":"members"},"NextToken":{"locationName":"nextToken"}}}},"ListOrganizationAdminAccounts":{"http":{"method":"GET","requestUri":"/admin","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","members":{"AdminAccounts":{"locationName":"adminAccounts","type":"list","member":{"type":"structure","members":{"AdminAccountId":{"locationName":"adminAccountId"},"AdminStatus":{"locationName":"adminStatus"}}}},"NextToken":{"locationName":"nextToken"}}}},"ListPublishingDestinations":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/publishingDestination","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["Destinations"],"members":{"Destinations":{"locationName":"destinations","type":"list","member":{"type":"structure","required":["DestinationId","DestinationType","Status"],"members":{"DestinationId":{"locationName":"destinationId"},"DestinationType":{"locationName":"destinationType"},"Status":{"locationName":"status"}}}},"NextToken":{"locationName":"nextToken"}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sf","locationName":"tags"}}}},"ListThreatIntelSets":{"http":{"method":"GET","requestUri":"/detector/{detectorId}/threatintelset","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["ThreatIntelSetIds"],"members":{"ThreatIntelSetIds":{"locationName":"threatIntelSetIds","type":"list","member":{}},"NextToken":{"locationName":"nextToken"}}}},"StartMonitoringMembers":{"http":{"requestUri":"/detector/{detectorId}/member/start","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"StopMonitoringMembers":{"http":{"requestUri":"/detector/{detectorId}/member/stop","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":204},"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{"location":"uri","locationName":"resourceArn"},"Tags":{"shape":"Sf","locationName":"tags"}}},"output":{"type":"structure","members":{}}},"UnarchiveFindings":{"http":{"requestUri":"/detector/{detectorId}/findings/unarchive","responseCode":200},"input":{"type":"structure","required":["DetectorId","FindingIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingIds":{"shape":"S6","locationName":"findingIds"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":204},"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{"location":"uri","locationName":"resourceArn"},"TagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateDetector":{"http":{"requestUri":"/detector/{detectorId}","responseCode":200},"input":{"type":"structure","required":["DetectorId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"Enable":{"locationName":"enable","type":"boolean"},"FindingPublishingFrequency":{"locationName":"findingPublishingFrequency"},"DataSources":{"shape":"Sd","locationName":"dataSources"}}},"output":{"type":"structure","members":{}}},"UpdateFilter":{"http":{"requestUri":"/detector/{detectorId}/filter/{filterName}","responseCode":200},"input":{"type":"structure","required":["DetectorId","FilterName"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FilterName":{"location":"uri","locationName":"filterName"},"Description":{"locationName":"description"},"Action":{"locationName":"action"},"Rank":{"locationName":"rank","type":"integer"},"FindingCriteria":{"shape":"So","locationName":"findingCriteria"}}},"output":{"type":"structure","required":["Name"],"members":{"Name":{"locationName":"name"}}}},"UpdateFindingsFeedback":{"http":{"requestUri":"/detector/{detectorId}/findings/feedback","responseCode":200},"input":{"type":"structure","required":["DetectorId","FindingIds","Feedback"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"FindingIds":{"shape":"S6","locationName":"findingIds"},"Feedback":{"locationName":"feedback"},"Comments":{"locationName":"comments"}}},"output":{"type":"structure","members":{}}},"UpdateIPSet":{"http":{"requestUri":"/detector/{detectorId}/ipset/{ipSetId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","IpSetId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"IpSetId":{"location":"uri","locationName":"ipSetId"},"Name":{"locationName":"name"},"Location":{"locationName":"location"},"Activate":{"locationName":"activate","type":"boolean"}}},"output":{"type":"structure","members":{}}},"UpdateMemberDetectors":{"http":{"requestUri":"/detector/{detectorId}/member/detector/update","responseCode":200},"input":{"type":"structure","required":["DetectorId","AccountIds"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AccountIds":{"shape":"S1n","locationName":"accountIds"},"DataSources":{"shape":"Sd","locationName":"dataSources"}}},"output":{"type":"structure","required":["UnprocessedAccounts"],"members":{"UnprocessedAccounts":{"shape":"S19","locationName":"unprocessedAccounts"}}}},"UpdateOrganizationConfiguration":{"http":{"requestUri":"/detector/{detectorId}/admin","responseCode":200},"input":{"type":"structure","required":["DetectorId","AutoEnable"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"AutoEnable":{"locationName":"autoEnable","type":"boolean"},"DataSources":{"locationName":"dataSources","type":"structure","members":{"S3Logs":{"locationName":"s3Logs","type":"structure","required":["AutoEnable"],"members":{"AutoEnable":{"locationName":"autoEnable","type":"boolean"}}}}}}},"output":{"type":"structure","members":{}}},"UpdatePublishingDestination":{"http":{"requestUri":"/detector/{detectorId}/publishingDestination/{destinationId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","DestinationId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"DestinationId":{"location":"uri","locationName":"destinationId"},"DestinationProperties":{"shape":"S1d","locationName":"destinationProperties"}}},"output":{"type":"structure","members":{}}},"UpdateThreatIntelSet":{"http":{"requestUri":"/detector/{detectorId}/threatintelset/{threatIntelSetId}","responseCode":200},"input":{"type":"structure","required":["DetectorId","ThreatIntelSetId"],"members":{"DetectorId":{"location":"uri","locationName":"detectorId"},"ThreatIntelSetId":{"location":"uri","locationName":"threatIntelSetId"},"Name":{"locationName":"name"},"Location":{"locationName":"location"},"Activate":{"locationName":"activate","type":"boolean"}}},"output":{"type":"structure","members":{}}}},"shapes":{"S6":{"type":"list","member":{}},"Sd":{"type":"structure","members":{"S3Logs":{"locationName":"s3Logs","type":"structure","required":["Enable"],"members":{"Enable":{"locationName":"enable","type":"boolean"}}}}},"Sf":{"type":"map","key":{},"value":{}},"So":{"type":"structure","members":{"Criterion":{"locationName":"criterion","type":"map","key":{},"value":{"type":"structure","members":{"Eq":{"deprecated":true,"locationName":"eq","type":"list","member":{}},"Neq":{"deprecated":true,"locationName":"neq","type":"list","member":{}},"Gt":{"deprecated":true,"locationName":"gt","type":"integer"},"Gte":{"deprecated":true,"locationName":"gte","type":"integer"},"Lt":{"deprecated":true,"locationName":"lt","type":"integer"},"Lte":{"deprecated":true,"locationName":"lte","type":"integer"},"Equals":{"locationName":"equals","type":"list","member":{}},"NotEquals":{"locationName":"notEquals","type":"list","member":{}},"GreaterThan":{"locationName":"greaterThan","type":"long"},"GreaterThanOrEqual":{"locationName":"greaterThanOrEqual","type":"long"},"LessThan":{"locationName":"lessThan","type":"long"},"LessThanOrEqual":{"locationName":"lessThanOrEqual","type":"long"}}}}}},"S19":{"type":"list","member":{"type":"structure","required":["AccountId","Result"],"members":{"AccountId":{"locationName":"accountId"},"Result":{"locationName":"result"}}}},"S1d":{"type":"structure","members":{"DestinationArn":{"locationName":"destinationArn"},"KmsKeyArn":{"locationName":"kmsKeyArn"}}},"S1n":{"type":"list","member":{}},"S2l":{"type":"structure","required":["CloudTrail","DNSLogs","FlowLogs","S3Logs"],"members":{"CloudTrail":{"locationName":"cloudTrail","type":"structure","required":["Status"],"members":{"Status":{"locationName":"status"}}},"DNSLogs":{"locationName":"dnsLogs","type":"structure","required":["Status"],"members":{"Status":{"locationName":"status"}}},"FlowLogs":{"locationName":"flowLogs","type":"structure","required":["Status"],"members":{"Status":{"locationName":"status"}}},"S3Logs":{"locationName":"s3Logs","type":"structure","required":["Status"],"members":{"Status":{"locationName":"status"}}}}},"S2u":{"type":"structure","members":{"AttributeName":{"locationName":"attributeName"},"OrderBy":{"locationName":"orderBy"}}},"S36":{"type":"list","member":{"type":"structure","members":{"Key":{"locationName":"key"},"Value":{"locationName":"value"}}}},"S3e":{"type":"structure","members":{"IgnorePublicAcls":{"locationName":"ignorePublicAcls","type":"boolean"},"RestrictPublicBuckets":{"locationName":"restrictPublicBuckets","type":"boolean"},"BlockPublicAcls":{"locationName":"blockPublicAcls","type":"boolean"},"BlockPublicPolicy":{"locationName":"blockPublicPolicy","type":"boolean"}}},"S3v":{"type":"structure","members":{"City":{"locationName":"city","type":"structure","members":{"CityName":{"locationName":"cityName"}}},"Country":{"locationName":"country","type":"structure","members":{"CountryCode":{"locationName":"countryCode"},"CountryName":{"locationName":"countryName"}}},"GeoLocation":{"locationName":"geoLocation","type":"structure","members":{"Lat":{"locationName":"lat","type":"double"},"Lon":{"locationName":"lon","type":"double"}}},"IpAddressV4":{"locationName":"ipAddressV4"},"Organization":{"locationName":"organization","type":"structure","members":{"Asn":{"locationName":"asn"},"AsnOrg":{"locationName":"asnOrg"},"Isp":{"locationName":"isp"},"Org":{"locationName":"org"}}}}},"S42":{"type":"structure","members":{"Port":{"locationName":"port","type":"integer"},"PortName":{"locationName":"portName"}}},"S43":{"type":"structure","members":{"IpAddressV4":{"locationName":"ipAddressV4"}}},"S4w":{"type":"list","member":{"type":"structure","required":["AccountId","MasterId","Email","RelationshipStatus","UpdatedAt"],"members":{"AccountId":{"locationName":"accountId"},"DetectorId":{"locationName":"detectorId"},"MasterId":{"locationName":"masterId"},"Email":{"locationName":"email"},"RelationshipStatus":{"locationName":"relationshipStatus"},"InvitedAt":{"locationName":"invitedAt"},"UpdatedAt":{"locationName":"updatedAt"}}}},"S5c":{"type":"structure","members":{"Amount":{"locationName":"amount"},"Unit":{"locationName":"unit"}}},"S5f":{"type":"list","member":{"type":"structure","members":{"Resource":{"locationName":"resource"},"Total":{"shape":"S5c","locationName":"total"}}}}}}; -/***/ }), - -/***/ 5732: -/***/ (function(module) { - -"use strict"; - - -module.exports = function isCancel(value) { - return !!(value && value.__CANCEL__); -}; - - /***/ }), /***/ 5735: @@ -27464,34 +24405,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2014-11-06","endpoin module.exports = {"version":2,"waiters":{"NodeAssociated":{"delay":15,"maxAttempts":15,"operation":"DescribeNodeAssociationStatus","description":"Wait until node is associated or disassociated.","acceptors":[{"expected":"SUCCESS","state":"success","matcher":"path","argument":"NodeAssociationStatus"},{"expected":"FAILED","state":"failure","matcher":"path","argument":"NodeAssociationStatus"}]}}}; -/***/ }), - -/***/ 5960: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var isAbsoluteURL = __webpack_require__(4590); -var combineURLs = __webpack_require__(2887); - -/** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * @returns {string} The combined full path - */ -module.exports = function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; -}; - - /***/ }), /***/ 5965: @@ -30342,279 +27255,6 @@ exports.getIDToken = getIDToken; module.exports = {"pagination":{"ListDeploymentJobs":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"deploymentJobs"},"ListFleets":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"fleetDetails"},"ListRobotApplications":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"robotApplicationSummaries"},"ListRobots":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"robots"},"ListSimulationApplications":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"simulationApplicationSummaries"},"ListSimulationJobBatches":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"simulationJobBatchSummaries"},"ListSimulationJobs":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"simulationJobSummaries"},"ListWorldExportJobs":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"worldExportJobSummaries"},"ListWorldGenerationJobs":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"worldGenerationJobSummaries"},"ListWorldTemplates":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"templateSummaries"},"ListWorlds":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"worldSummaries"}}}; -/***/ }), - -/***/ 6486: -/***/ (function(module, __unusedexports, __webpack_require__) { - - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = __webpack_require__(8761); - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * Active `debug` instances. - */ - createDebug.instances = []; - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return match; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.enabled = createDebug.enabled(namespace); - debug.useColors = createDebug.useColors(); - debug.color = selectColor(namespace); - debug.destroy = destroy; - debug.extend = extend; - // Debug.formatArgs = formatArgs; - // debug.rawLog = rawLog; - - // env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - createDebug.instances.push(debug); - - return debug; - } - - function destroy() { - const index = createDebug.instances.indexOf(this); - if (index !== -1) { - createDebug.instances.splice(index, 1); - return true; - } - return false; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - - createDebug.names = []; - createDebug.skips = []; - - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; - - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } - - namespaces = split[i].replace(/\*/g, '.*?'); - - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - - for (i = 0; i < createDebug.instances.length; i++) { - const instance = createDebug.instances[i]; - instance.enabled = createDebug.enabled(instance.namespace); - } - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } - - let i; - let len; - - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - - return false; - } - - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - createDebug.enable(createDebug.load()); - - return createDebug; -} - -module.exports = setup; - - /***/ }), /***/ 6504: @@ -31851,148 +28491,6 @@ Object.defineProperty(apiLoader.services['marketplacecatalog'], '2018-09-17', { module.exports = AWS.MarketplaceCatalog; -/***/ }), - -/***/ 6774: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var normalizeHeaderName = __webpack_require__(411); -var enhanceError = __webpack_require__(392); - -var DEFAULT_CONTENT_TYPE = { - 'Content-Type': 'application/x-www-form-urlencoded' -}; - -function setContentTypeIfUnset(headers, value) { - if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { - headers['Content-Type'] = value; - } -} - -function getDefaultAdapter() { - var adapter; - if (typeof XMLHttpRequest !== 'undefined') { - // For browsers use XHR adapter - adapter = __webpack_require__(8219); - } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { - // For node use HTTP adapter - adapter = __webpack_require__(4670); - } - return adapter; -} - -function stringifySafely(rawValue, parser, encoder) { - if (utils.isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return utils.trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - - return (encoder || JSON.stringify)(rawValue); -} - -var defaults = { - - transitional: { - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false - }, - - adapter: getDefaultAdapter(), - - transformRequest: [function transformRequest(data, headers) { - normalizeHeaderName(headers, 'Accept'); - normalizeHeaderName(headers, 'Content-Type'); - - if (utils.isFormData(data) || - utils.isArrayBuffer(data) || - utils.isBuffer(data) || - utils.isStream(data) || - utils.isFile(data) || - utils.isBlob(data) - ) { - return data; - } - if (utils.isArrayBufferView(data)) { - return data.buffer; - } - if (utils.isURLSearchParams(data)) { - setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); - return data.toString(); - } - if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) { - setContentTypeIfUnset(headers, 'application/json'); - return stringifySafely(data); - } - return data; - }], - - transformResponse: [function transformResponse(data) { - var transitional = this.transitional || defaults.transitional; - var silentJSONParsing = transitional && transitional.silentJSONParsing; - var forcedJSONParsing = transitional && transitional.forcedJSONParsing; - var strictJSONParsing = !silentJSONParsing && this.responseType === 'json'; - - if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) { - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw enhanceError(e, this, 'E_JSON_PARSE'); - } - throw e; - } - } - } - - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - - headers: { - common: { - 'Accept': 'application/json, text/plain, */*' - } - } -}; - -utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { - defaults.headers[method] = {}; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); -}); - -module.exports = defaults; - - /***/ }), /***/ 6793: @@ -33426,25 +29924,6 @@ module.exports = AWS.KinesisAnalyticsV2; module.exports = {"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}; -/***/ }), - -/***/ 7104: -/***/ (function(module) { - -"use strict"; - - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -module.exports = function isAxiosError(payload) { - return (typeof payload === 'object') && (payload.isAxiosError === true); -}; - - /***/ }), /***/ 7106: @@ -35888,133 +32367,6 @@ Object.defineProperty(apiLoader.services['outposts'], '2019-12-03', { module.exports = AWS.Outposts; -/***/ }), - -/***/ 8137: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var Cancel = __webpack_require__(9826); - -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @class - * @param {Function} executor The executor function. - */ -function CancelToken(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - - var resolvePromise; - - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - - var token = this; - - // eslint-disable-next-line func-names - this.promise.then(function(cancel) { - if (!token._listeners) return; - - var i; - var l = token._listeners.length; - - for (i = 0; i < l; i++) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = function(onfulfilled) { - var _resolve; - // eslint-disable-next-line func-names - var promise = new Promise(function(resolve) { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - - return promise; - }; - - executor(function cancel(message) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new Cancel(message); - resolvePromise(token.reason); - }); -} - -/** - * Throws a `Cancel` if cancellation has been requested. - */ -CancelToken.prototype.throwIfRequested = function throwIfRequested() { - if (this.reason) { - throw this.reason; - } -}; - -/** - * Subscribe to the cancel signal - */ - -CancelToken.prototype.subscribe = function subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } -}; - -/** - * Unsubscribe from the cancel signal - */ - -CancelToken.prototype.unsubscribe = function unsubscribe(listener) { - if (!this._listeners) { - return; - } - var index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } -}; - -/** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ -CancelToken.source = function source() { - var cancel; - var token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token: token, - cancel: cancel - }; -}; - -module.exports = CancelToken; - - /***/ }), /***/ 8141: @@ -36378,226 +32730,6 @@ module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-01-11","endpoin module.exports = require("timers"); -/***/ }), - -/***/ 8219: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var settle = __webpack_require__(2564); -var cookies = __webpack_require__(4864); -var buildURL = __webpack_require__(3133); -var buildFullPath = __webpack_require__(5960); -var parseHeaders = __webpack_require__(4631); -var isURLSameOrigin = __webpack_require__(4688); -var createError = __webpack_require__(9026); -var defaults = __webpack_require__(6774); -var Cancel = __webpack_require__(9826); - -module.exports = function xhrAdapter(config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = config.headers; - var responseType = config.responseType; - var onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - - if (utils.isFormData(requestData)) { - delete requestHeaders['Content-Type']; // Let the browser set it - } - - var request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); - } - - var fullPath = buildFullPath(config.baseURL, config.url); - request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; - var responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - - settle(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(createError('Request aborted', config, 'ECONNABORTED', request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(createError('Network Error', config, null, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; - var transitional = config.transitional || defaults.transitional; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(createError( - timeoutErrorMessage, - config, - transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED', - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if (utils.isStandardBrowserEnv()) { - // Add xsrf header - var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? - cookies.read(config.xsrfCookieName) : - undefined; - - if (xsrfValue) { - requestHeaders[config.xsrfHeaderName] = xsrfValue; - } - } - - // Add headers to the request - if ('setRequestHeader' in request) { - utils.forEach(requestHeaders, function setRequestHeader(val, key) { - if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { - // Remove Content-Type if data is undefined - delete requestHeaders[key]; - } else { - // Otherwise add header to the request - request.setRequestHeader(key, val); - } - }); - } - - // Add withCredentials to request if needed - if (!utils.isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', config.onDownloadProgress); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', config.onUploadProgress); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = function(cancel) { - if (!request) { - return; - } - reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel); - request.abort(); - request = null; - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - if (!requestData) { - requestData = null; - } - - // Send the request - request.send(requestData); - }); -}; - - /***/ }), /***/ 8242: @@ -38573,175 +34705,6 @@ module.exports = {"pagination":{"ListDataSetRevisions":{"input_token":"NextToken module.exports = {"pagination":{"GetSavingsPlansCoverage":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"GetSavingsPlansUtilizationDetails":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"},"ListCostCategoryDefinitions":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults"}}}; -/***/ }), - -/***/ 8761: -/***/ (function(module) { - -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} - - /***/ }), /***/ 8764: @@ -39783,32 +35746,6 @@ module.exports = { }).call(this); -/***/ }), - -/***/ 9026: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var enhanceError = __webpack_require__(392); - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The created error. - */ -module.exports = function createError(message, config, code, request, response) { - var error = new Error(message); - return enhanceError(error, config, code, request, response); -}; - - /***/ }), /***/ 9051: @@ -40554,71 +36491,6 @@ module.exports = AWS; module.exports = {"version":"2.0","metadata":{"apiVersion":"2014-06-05","endpointPrefix":"mobileanalytics","serviceFullName":"Amazon Mobile Analytics","serviceId":"Mobile Analytics","signatureVersion":"v4","protocol":"rest-json"},"operations":{"PutEvents":{"http":{"requestUri":"/2014-06-05/events","responseCode":202},"input":{"type":"structure","required":["events","clientContext"],"members":{"events":{"type":"list","member":{"type":"structure","required":["eventType","timestamp"],"members":{"eventType":{},"timestamp":{},"session":{"type":"structure","members":{"id":{},"duration":{"type":"long"},"startTimestamp":{},"stopTimestamp":{}}},"version":{},"attributes":{"type":"map","key":{},"value":{}},"metrics":{"type":"map","key":{},"value":{"type":"double"}}}}},"clientContext":{"location":"header","locationName":"x-amz-Client-Context"},"clientContextEncoding":{"location":"header","locationName":"x-amz-Client-Context-Encoding"}}}}},"shapes":{}}; -/***/ }), - -/***/ 9352: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(5035); -var bind = __webpack_require__(1727); -var Axios = __webpack_require__(1874); -var mergeConfig = __webpack_require__(1825); -var defaults = __webpack_require__(6774); - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * @return {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - var context = new Axios(defaultConfig); - var instance = bind(Axios.prototype.request, context); - - // Copy axios.prototype to instance - utils.extend(instance, Axios.prototype, context); - - // Copy context to instance - utils.extend(instance, context); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance(mergeConfig(defaultConfig, instanceConfig)); - }; - - return instance; -} - -// Create the default instance to be exported -var axios = createInstance(defaults); - -// Expose Axios class to allow class inheritance -axios.Axios = Axios; - -// Expose Cancel & CancelToken -axios.Cancel = __webpack_require__(9826); -axios.CancelToken = __webpack_require__(8137); -axios.isCancel = __webpack_require__(5732); -axios.VERSION = __webpack_require__(2148).version; - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; -axios.spread = __webpack_require__(2825); - -// Expose isAxiosError -axios.isAxiosError = __webpack_require__(7104); - -module.exports = axios; - -// Allow use of default import syntax in TypeScript -module.exports.default = axios; - - /***/ }), /***/ 9370: @@ -42769,33 +38641,6 @@ Object.defineProperty(apiLoader.services['dynamodbstreams'], '2012-08-10', { module.exports = AWS.DynamoDBStreams; -/***/ }), - -/***/ 9826: -/***/ (function(module) { - -"use strict"; - - -/** - * A `Cancel` is an object that is thrown when an operation is canceled. - * - * @class - * @param {string=} message The message. - */ -function Cancel(message) { - this.message = message; -} - -Cancel.prototype.toString = function toString() { - return 'Cancel' + (this.message ? ': ' + this.message : ''); -}; - -Cancel.prototype.__CANCEL__ = true; - -module.exports = Cancel; - - /***/ }), /***/ 9828: @@ -43819,28 +39664,6 @@ Object.defineProperty(apiLoader.services['cloudsearch'], '2013-01-01', { module.exports = AWS.CloudSearch; -/***/ }), - -/***/ 9900: -/***/ (function(module, __unusedexports, __webpack_require__) { - -var debug; - -module.exports = function () { - if (!debug) { - try { - /* eslint global-require: off */ - debug = __webpack_require__(4784)("follow-redirects"); - } - catch (error) { /* */ } - if (typeof debug !== "function") { - debug = function () { /* */ }; - } - } - debug.apply(null, arguments); -}; - - /***/ }), /***/ 9912: diff --git a/index.js b/index.js index 01578d840..229993bb4 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,6 @@ const aws = require('aws-sdk'); const assert = require('assert'); const fs = require('fs'); const path = require('path'); -const axios = require('axios'); // The max time that a GitHub action is allowed to run is 6 hours. // That seems like a reasonable default to use if no role duration is defined. @@ -185,21 +184,6 @@ async function exportAccountId(maskAccountId, region) { return accountId; } -async function getWebIdentityToken() { - const isDefined = i => !!i; - const {ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN} = process.env; - - assert( - [ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN].every(isDefined), - 'Missing required environment value. Are you running in GitHub Actions?' - ); - const { data } = await axios.get(`${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=sigstore`, { - headers: {"Authorization": `bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}`} - } - ); - return data.value; -} - function loadCredentials() { // Force the SDK to re-resolve credentials with the default provider chain. // @@ -303,7 +287,7 @@ async function run() { let sourceAccountId; let webIdentityToken; if(useGitHubOIDCProvider()) { - webIdentityToken = await getWebIdentityToken(); + webIdentityToken = await core.getIDToken('sts.amazonaws.com'); roleDurationSeconds = core.getInput('role-duration-seconds', {required: false}) || DEFAULT_ROLE_DURATION_FOR_OIDC_ROLES; // We don't validate the credentials here because we don't have them yet when using OIDC. } else { @@ -331,13 +315,11 @@ async function run() { webIdentityToken }); exportCredentials(roleCredentials); - // I don't know a good workaround for this. I'm not sure why we're validating the credentials - // so frequently inside the action. The approach I've taken here is that if the GH OIDC token - // isn't set, then we're in a self-hosted runner and we need to validate the credentials for - // some mysterious reason that wasn't explained by whoever wrote this aciton. - // - // It's gross but it works so ... ¯\_(ツ)_/¯ - if (!process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN) { + // We need to validate the credentials in 2 of our use-cases + // First: self-hosted runners. If the GITHUB_ACTIONS environment variable + // is set to `true` then we are NOT in a self-hosted runner. + // Second: Customer provided credentials manually (IAM User keys stored in GH Secrets) + if (!process.env.GITHUB_ACTIONS || accessKeyId) { await validateCredentials(roleCredentials.accessKeyId); } await exportAccountId(maskAccountId, region); diff --git a/index.test.js b/index.test.js index bf23495c0..860346d27 100644 --- a/index.test.js +++ b/index.test.js @@ -2,10 +2,8 @@ const core = require('@actions/core'); const assert = require('assert'); const aws = require('aws-sdk'); const run = require('./index.js'); -const axios = require('axios'); jest.mock('@actions/core'); -jest.mock("axios"); const FAKE_ACCESS_KEY_ID = 'MY-AWS-ACCESS-KEY-ID'; const FAKE_SECRET_ACCESS_KEY = 'MY-AWS-SECRET-ACCESS-KEY'; @@ -91,6 +89,12 @@ describe('Configure AWS Credentials', () => { .fn() .mockImplementation(mockGetInput(DEFAULT_INPUTS)); + core.getIDToken = jest + .fn() + .mockImplementation(() => { + return "testtoken" + }); + mockStsCallerIdentity.mockReset(); mockStsCallerIdentity .mockReturnValueOnce({ @@ -569,9 +573,9 @@ describe('Configure AWS Credentials', () => { }); test('only role arn and region provided to use GH OIDC Token', async () => { + process.env.GITHUB_ACTIONS = 'true'; process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN = 'test-token'; - process.env.ACTIONS_ID_TOKEN_REQUEST_URL = 'https://www.example.com/token/endpoint'; - axios.get.mockImplementation(() => Promise.resolve({ data: {value: "testtoken"} })); + core.getInput = jest .fn() .mockImplementation(mockGetInput({'role-to-assume': ROLE_ARN, 'aws-region': FAKE_REGION})); @@ -590,9 +594,8 @@ describe('Configure AWS Credentials', () => { test('GH OIDC With custom role duration', async () => { const CUSTOM_ROLE_DURATION = 1234; + process.env.GITHUB_ACTIONS = 'true'; process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN = 'test-token'; - process.env.ACTIONS_ID_TOKEN_REQUEST_URL = 'https://www.example.com/token/endpoint'; - axios.get.mockImplementation(() => Promise.resolve({ data: {value: "testtoken"} })); core.getInput = jest .fn() .mockImplementation(mockGetInput({'role-to-assume': ROLE_ARN, 'aws-region': FAKE_REGION, 'role-duration-seconds': CUSTOM_ROLE_DURATION}));