diff --git a/packages/add-glacier-checksum-headers-browser/package.json b/packages/add-glacier-checksum-headers-browser/package.json index 742d15049ad2..681dad894dd9 100644 --- a/packages/add-glacier-checksum-headers-browser/package.json +++ b/packages/add-glacier-checksum-headers-browser/package.json @@ -33,7 +33,7 @@ "karma-jasmine": "^1.1.1", "karma-typescript": "3.0.8", "puppeteer": "^1.0.0", - "typescript": "^2.3", + "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/add-glacier-checksum-headers-browser/src/index.spec.ts b/packages/add-glacier-checksum-headers-browser/src/index.spec.ts index 66ef341218e3..05020825bcc5 100644 --- a/packages/add-glacier-checksum-headers-browser/src/index.spec.ts +++ b/packages/add-glacier-checksum-headers-browser/src/index.spec.ts @@ -18,7 +18,7 @@ describe('addChecksumHeaders', () => { const mockNextHandler = jasmine.createSpy('nextHandler', () => Promise.resolve()); - const composedHandler: BuildHandler = addChecksumHeaders( + const composedHandler: BuildHandler = addChecksumHeaders( Sha256, fromUtf8, )(mockNextHandler); @@ -96,89 +96,6 @@ describe('addChecksumHeaders', () => { expect(request.headers['x-amz-sha256-tree-hash']).toBe('fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9'); }); - it('will calculate sha256 hashes when request body is a stream', async () => { - const mockStream = new (ReadableStream as any)({ - start(controller: any) { - const totalSize = 5767168; // 5.5 MiB - let readSize = 0; - function generateData(size: number) { - setTimeout(() => { - const data = new Uint8Array(size); - controller.enqueue(data); - - readSize += data.byteLength; - - if (readSize < totalSize) { - generateData( - Math.min(1048576, totalSize - readSize) - ); - } else { - controller.close(); - } - }, 1); - } - generateData(1048576) - } - }); - - await composedHandler({ - input: {}, - request: { - ...minimalRequest, - headers: {}, - body: mockStream - } - }); - - expect(mockNextHandler.calls.count()).toBe(1); - const {request} = mockNextHandler.calls.allArgs()[0][0]; - expect(request.headers['x-amz-content-sha256']).toBe('733cf513448ce6b20ad1bc5e50eb27c06aefae0c320713a5dd99f4e51bc1ca60'); - expect(request.headers['x-amz-sha256-tree-hash']).toBe('a3a82dbe3644dd6046be472f2e3ec1f8ef47f8f3adb86d0de4de7a254f255455'); - }); - - it('will set a ReadableStream request body to a collected stream', async () => { - const expectedRequestBody = new Uint8Array(5767168); - - const mockStream = new (ReadableStream as any)({ - start(controller: any) { - const totalSize = 5767168; // 5.5 MiB - let readSize = 0; - function generateData(size: number) { - setTimeout(() => { - const data = new Uint8Array(size); - controller.enqueue(data); - - readSize += data.byteLength; - - if (readSize < totalSize) { - generateData( - Math.min(1048576, totalSize - readSize) - ); - } else { - controller.close(); - } - }, 1); - } - generateData(1048576) - } - }); - - await composedHandler({ - input: {}, - request: { - ...minimalRequest, - headers: {}, - body: mockStream - } - }); - - expect(mockNextHandler.calls.count()).toBe(1); - const {request} = mockNextHandler.calls.allArgs()[0][0]; - expect(request.body).toEqual(expectedRequestBody); - expect(request.headers['x-amz-content-sha256']).toBe('733cf513448ce6b20ad1bc5e50eb27c06aefae0c320713a5dd99f4e51bc1ca60'); - expect(request.headers['x-amz-sha256-tree-hash']).toBe('a3a82dbe3644dd6046be472f2e3ec1f8ef47f8f3adb86d0de4de7a254f255455'); - }); - it('will calculate sha256 hashes when request body is a blob', async () => { const data = new Uint8Array(5767168); const blob = new Blob([ diff --git a/packages/add-glacier-checksum-headers-browser/src/index.ts b/packages/add-glacier-checksum-headers-browser/src/index.ts index 2730c044605d..933d1a991a1a 100644 --- a/packages/add-glacier-checksum-headers-browser/src/index.ts +++ b/packages/add-glacier-checksum-headers-browser/src/index.ts @@ -3,7 +3,8 @@ import { BuildHandlerArguments, Decoder, HandlerExecutionContext, - HashConstructor + HashConstructor, + Hash } from '@aws/types'; import {blobReader} from '@aws/chunked-blob-reader'; import {isArrayBuffer} from '@aws/is-array-buffer'; @@ -11,96 +12,67 @@ import {toHex} from '@aws/util-hex-encoding'; import {TreeHash} from '@aws/sha256-tree-hash'; import {streamCollector} from '@aws/stream-collector-browser'; +const MiB = 1024 * 1024; + export function addChecksumHeaders( Sha256: HashConstructor, fromUtf8: Decoder, ) { - return (next: BuildHandler) => { - return async(args: BuildHandlerArguments) => { - const request = args.request; - - const hasTreeHash = !!request.headers['x-amz-sha256-tree-hash']; - const hasContentHash = !!request.headers['x-amz-content-sha256']; - - let body = request.body; - if (body) { - const treeHash = !hasTreeHash ? new TreeHash(Sha256, fromUtf8) : null; - const contentHash = !hasContentHash ? new Sha256() : null; - const MiB = 1048576; + return (next: BuildHandler) => async ({ + request: { body, headers, ...requestRest }, + ...rest, + }: BuildHandlerArguments) => { + if (body) { + const treeHash = !('x-amz-sha256-tree-hash' in headers) + ? new TreeHash(Sha256, fromUtf8) + : null; + const contentHash = !('x-amz-content-sha256' in headers) + ? new Sha256() + : null; - let buffer: Uint8Array|undefined; - - if (typeof ReadableStream !== 'undefined' && body instanceof ReadableStream) { - // since the body was consumed, reset the body - body = buffer = await streamCollector(body); - } else { - buffer = await convertToUint8Array(body, fromUtf8); - } + if ( + typeof body === 'string' || + ArrayBuffer.isView(body) || + isArrayBuffer(body) + ) { + contentHash && contentHash.update(body); + treeHash && treeHash.update(body); + } else if (isBlob(body)) { + await blobReader( + body, + (chunk) => { + treeHash && treeHash.update(chunk); + contentHash && contentHash.update(chunk); + }, + MiB + ); + } - // working with a Uint8Array - if (buffer) { - contentHash && contentHash.update(buffer); - if (treeHash) { - for (let i = 0; i < buffer.length; i += MiB) { - treeHash.update( - buffer.subarray( - i, - Math.min(i + MiB, buffer.byteLength) - ) - ); - } + for (const [headerName, hash] of >[ + ['x-amz-content-sha256', contentHash], + ['x-amz-sha256-tree-hash', treeHash], + ]) { + if (hash) { + headers = { + ...headers, + [headerName]: toHex(await hash.digest()), } - } else if (typeof body.size === 'number') { - await blobReader( - body, - (chunk) => { - treeHash && treeHash.update(chunk); - contentHash && contentHash.update(chunk); - }, - MiB - ); - } - - if (contentHash) { - request.headers['x-amz-content-sha256'] = toHex(await contentHash.digest()); - } - if (treeHash) { - request.headers['x-amz-sha256-tree-hash'] = toHex(await treeHash.digest()); } } - - return next({ - ...args, - request: { - ...request, - body - } - }); } - } -} - -function convertToUint8Array( - data: string|ArrayBuffer|ArrayBufferView, - fromUtf8: Decoder -): Uint8Array|undefined { - if (typeof data === 'string') { - return fromUtf8(data); - } - if (ArrayBuffer.isView(data)) { - return new Uint8Array( - data.buffer, - data.byteOffset, - data.byteLength - ); + return next({ + ...rest, + request: { + ...requestRest, + headers, + body, + } + }); } +} - if (isArrayBuffer(data)) { - return new Uint8Array( - data, - 0, - data.byteLength - ); - } -} \ No newline at end of file +function isBlob(arg: any): arg is Blob { + return Boolean(arg) + && Object.prototype.toString.call(arg) === '[object Blob]'; +} diff --git a/packages/add-glacier-checksum-headers-node/package.json b/packages/add-glacier-checksum-headers-node/package.json index 70a1d1fe98c5..e9af7ee2c40e 100644 --- a/packages/add-glacier-checksum-headers-node/package.json +++ b/packages/add-glacier-checksum-headers-node/package.json @@ -27,7 +27,7 @@ "@aws/util-utf8-node": "^0.0.1", "@types/node": "*", "@types/jest": "^20.0.2", - "typescript": "^2.3", + "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/add-glacier-checksum-headers-node/src/index.ts b/packages/add-glacier-checksum-headers-node/src/index.ts index e3c0ede0c148..4e084f475652 100644 --- a/packages/add-glacier-checksum-headers-node/src/index.ts +++ b/packages/add-glacier-checksum-headers-node/src/index.ts @@ -1,103 +1,85 @@ -import {createReadStream} from 'fs'; +import { createReadStream, ReadStream } from 'fs'; +import { Readable } from 'stream'; import { BuildHandler, BuildHandlerArguments, Decoder, HandlerExecutionContext, + Hash, HashConstructor } from '@aws/types'; -import {streamReader} from '@aws/chunked-stream-reader-node'; -import {isArrayBuffer} from '@aws/is-array-buffer'; -import {toHex} from '@aws/util-hex-encoding'; -import {TreeHash} from '@aws/sha256-tree-hash'; +import { streamReader } from '@aws/chunked-stream-reader-node'; +import { isArrayBuffer } from '@aws/is-array-buffer'; +import { toHex } from '@aws/util-hex-encoding'; +import { TreeHash } from '@aws/sha256-tree-hash'; export function addChecksumHeaders( Sha256: HashConstructor, fromUtf8: Decoder, ) { - return (next: BuildHandler) => { - return async(args: BuildHandlerArguments) => { - const request = args.request; + return (next: BuildHandler) => async ({ + request: { body, headers, ...requestRest }, + ...rest, + }: BuildHandlerArguments) => { + if (body) { + const treeHash = !('x-amz-sha256-tree-hash' in headers) + ? new TreeHash(Sha256, fromUtf8) + : null; + const contentHash = !('x-amz-content-sha256' in headers) + ? new Sha256() + : null; - const hasTreeHash = !!request.headers['x-amz-sha256-tree-hash']; - const hasContentHash = !!request.headers['x-amz-content-sha256']; - - const body = request.body; - if (body) { - const treeHash = !hasTreeHash ? new TreeHash(Sha256, fromUtf8) : null; - const contentHash = !hasContentHash ? new Sha256() : null; - const MiB = 1048576; - - const buffer = convertToUint8Array(body, fromUtf8); - - if (buffer) { - contentHash && contentHash.update(buffer); - if (treeHash) { - for (let i = 0; i < buffer.length; i += MiB) { - treeHash.update( - buffer.subarray( - i, - Math.min(i + MiB, buffer.byteLength) - ) - ); - } - } - } else { - // eventually we'll want to support rewindable streams as well - if (typeof body.path !== 'string') { - throw new Error( - 'Unable to calculate checksums for non-file streams.' - ); - } - const bodyTee = createReadStream(body.path, { - start: body.start, - end: body.end - }); - - await streamReader( - bodyTee, - (chunk) => { - treeHash && treeHash.update(chunk); - contentHash && contentHash.update(chunk); - }, - MiB + if ( + typeof body === 'string' || + ArrayBuffer.isView(body) || + isArrayBuffer(body) + ) { + contentHash && contentHash.update(body); + treeHash && treeHash.update(body); + } else { + // eventually we'll want to support rewindable streams as well + if (!isReadStream(body)) { + throw new Error( + 'Unable to calculate checksums for non-file streams.' ); } + const bodyTee = createReadStream(body.path, { + start: (body as any).start, + end: (body as any).end + }); - if (contentHash) { - request.headers['x-amz-content-sha256'] = toHex(await contentHash.digest()); - } - if (treeHash) { - request.headers['x-amz-sha256-tree-hash'] = toHex(await treeHash.digest()); - } + await streamReader( + bodyTee, + (chunk) => { + treeHash && treeHash.update(chunk); + contentHash && contentHash.update(chunk); + } + ); } - return next(args); + for (const [headerName, hash] of >[ + ['x-amz-content-sha256', contentHash], + ['x-amz-sha256-tree-hash', treeHash], + ]) { + if (hash) { + headers = { + ...headers, + [headerName]: toHex(await hash.digest()), + } + } + } } + + return next({ + ...rest, + request: { + ...requestRest, + headers, + } + }); } } -function convertToUint8Array( - data: string|ArrayBuffer|ArrayBufferView, - fromUtf8: Decoder -): Uint8Array|undefined { - if (typeof data === 'string') { - return fromUtf8(data); - } - - if (ArrayBuffer.isView(data)) { - return new Uint8Array( - data.buffer, - data.byteOffset, - data.byteLength - ); - } - - if (isArrayBuffer(data)) { - return new Uint8Array( - data, - 0, - data.byteLength - ); - } -} \ No newline at end of file +function isReadStream(stream: Readable): stream is ReadStream { + return typeof (stream as ReadStream).path === 'string'; +} diff --git a/packages/add-glacier-checksum-headers-universal/package.json b/packages/add-glacier-checksum-headers-universal/package.json index 6f46c4eac5de..4e8abf280d64 100644 --- a/packages/add-glacier-checksum-headers-universal/package.json +++ b/packages/add-glacier-checksum-headers-universal/package.json @@ -23,7 +23,8 @@ }, "devDependencies": { "@types/jest": "^20.0.2", + "@types/node": "^8.0", "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/add-glacier-checksum-headers-universal/src/index.ts b/packages/add-glacier-checksum-headers-universal/src/index.ts index 3c379d1f95f0..9004c8e99602 100644 --- a/packages/add-glacier-checksum-headers-universal/src/index.ts +++ b/packages/add-glacier-checksum-headers-universal/src/index.ts @@ -1,4 +1,5 @@ -import {isNode} from '@aws/is-node'; +import { Readable } from 'stream'; +import { isNode } from '@aws/is-node'; import { addChecksumHeaders as browserAddChecksumHeaders } from '@aws/add-glacier-checksum-headers-browser'; @@ -8,16 +9,16 @@ import { import { BuildMiddleware, HashConstructor, - Decoder + Decoder, } from '@aws/types'; export function addChecksumHeaders( Sha256: HashConstructor, fromUtf8: Decoder -): BuildMiddleware { +): BuildMiddleware { if (isNode()) { return nodeAddChecksumHeaders(Sha256, fromUtf8); } return browserAddChecksumHeaders(Sha256, fromUtf8); -} \ No newline at end of file +} diff --git a/packages/add-glacier-checksum-headers-universal/tsconfig.json b/packages/add-glacier-checksum-headers-universal/tsconfig.json index db392661f423..c3676d46ce91 100644 --- a/packages/add-glacier-checksum-headers-universal/tsconfig.json +++ b/packages/add-glacier-checksum-headers-universal/tsconfig.json @@ -9,6 +9,7 @@ "importHelpers": true, "noEmitHelpers": true, "lib": [ + "dom", "es5", "es2015.promise", "es2015.collection", @@ -18,4 +19,4 @@ "rootDir": "./src", "outDir": "./build" } -} \ No newline at end of file +} diff --git a/packages/sha256-blob-browser/.gitignore b/packages/apply-body-checksum-middleware/.gitignore similarity index 100% rename from packages/sha256-blob-browser/.gitignore rename to packages/apply-body-checksum-middleware/.gitignore diff --git a/packages/sha256-blob-browser/.npmignore b/packages/apply-body-checksum-middleware/.npmignore similarity index 100% rename from packages/sha256-blob-browser/.npmignore rename to packages/apply-body-checksum-middleware/.npmignore diff --git a/packages/apply-body-checksum-middleware/LICENSE b/packages/apply-body-checksum-middleware/LICENSE new file mode 100644 index 000000000000..980a15ac24ee --- /dev/null +++ b/packages/apply-body-checksum-middleware/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/apply-body-checksum-middleware/README.md b/packages/apply-body-checksum-middleware/README.md new file mode 100644 index 000000000000..b1a19e32d6de --- /dev/null +++ b/packages/apply-body-checksum-middleware/README.md @@ -0,0 +1,4 @@ +# apply-body-checksum-middleware + +This package provides AWS SDK for JavaScript middleware that applies a checksum +of the request body as a header. diff --git a/packages/apply-body-checksum-middleware/package.json b/packages/apply-body-checksum-middleware/package.json new file mode 100644 index 000000000000..88e2d01a6d97 --- /dev/null +++ b/packages/apply-body-checksum-middleware/package.json @@ -0,0 +1,27 @@ +{ + "name": "@aws/apply-body-checksum-middleware", + "version": "0.0.1", + "scripts": { + "prepublishOnly": "tsc", + "pretest": "tsc -p tsconfig.test.json", + "test": "jest --coverage --mapCoverage" + }, + "main": "./build/index.js", + "types": "./build/index.d.ts", + "author": { + "name": "AWS SDK for JavaScript Team", + "email": "aws-sdk-js@amazon.com", + "url": "https://aws.amazon.com/javascript/" + }, + "license": "Apache-2.0", + "dependencies": { + "@aws/is-array-buffer": "^0.0.1", + "@aws/types": "^0.0.1", + "tslib": "^1.8.0" + }, + "devDependencies": { + "@types/jest": "^20.0.2", + "typescript": "^2.6", + "jest": "^20.0.4" + } +} diff --git a/packages/apply-body-checksum-middleware/src/index.spec.ts b/packages/apply-body-checksum-middleware/src/index.spec.ts new file mode 100644 index 000000000000..6098b5b610b9 --- /dev/null +++ b/packages/apply-body-checksum-middleware/src/index.spec.ts @@ -0,0 +1,161 @@ +import { applyBodyChecksumMiddleware } from './'; +import { BuildHandler, HashConstructor, HttpRequest } from '@aws/types'; + +describe('applyChecksumMiddleware', () => { + const mockEncoder = jest.fn(() => 'encoded'); + const mockHashUpdate = jest.fn(() => {}); + const mockHashDigest = jest.fn(() => new Uint8Array(0)); + const MockHash: HashConstructor = class {} as any; + MockHash.prototype.update = mockHashUpdate + MockHash.prototype.digest = mockHashDigest; + + const next = jest.fn(() => Promise.resolve({})); + + class ExoticStream {} + + const request: HttpRequest = { + method: 'REPORT', + headers: { + 'Content-Length': '10', + Range: 'bytes=0-1000', + }, + protocol: 'https:', + hostname: 'example.com', + path: '/' + } + + beforeEach(() => { + mockEncoder.mockClear(); + mockHashUpdate.mockClear(); + mockHashDigest.mockClear(); + next.mockClear(); + }); + + for (const body of [ + 'body', + new ArrayBuffer(10), + new Uint8Array(10), + void 0 + ]) { + it( + 'should calculate the body hash using the supplied hash constructor, encode the result using the supplied encoder, and set the encoded hash to the provided header', + async () => { + await applyBodyChecksumMiddleware( + 'checksumHeader', + MockHash, + mockEncoder, + )(next, {} as any)({ + request: {...request, body}, + input: {} + }); + + expect(next.mock.calls).toEqual([[{ + input: {}, + request: { + ...request, + body, + headers: { + ...request.headers, + checksumHeader: 'encoded', + } + } + }]]); + expect(mockHashUpdate.mock.calls).toEqual([[body || '']]); + } + ); + + it( + 'should do nothing if a case-insenitive match for the desired header has already been set', + async () => { + await applyBodyChecksumMiddleware( + 'checksumHeader', + MockHash, + mockEncoder + )(next, {} as any)({ + request: { + ...request, + body, + headers: { + ...request.headers, + cHeCkSuMhEaDeR: 'foo' + } + }, + input: {} + }); + + expect(next.mock.calls).toEqual([[{ + input: {}, + request: { + ...request, + body, + headers: { + ...request.headers, + cHeCkSuMhEaDeR: 'foo', + } + } + }]]); + + expect(mockHashUpdate.mock.calls.length).toBe(0); + expect(mockHashDigest.mock.calls.length).toBe(0); + expect(mockEncoder.mock.calls.length).toBe(0); + } + ) + } + + it( + 'should throw if a streaming body is encounterd and no stream hasher was provided', + async () => { + const handler = applyBodyChecksumMiddleware( + 'checksumHeader', + MockHash, + mockEncoder + )(next, {} as any); + + await expect(handler(({ + request: { + ...request, + body: new ExoticStream + }, + input: {} + }))).rejects.toBeInstanceOf(Error); + + expect(mockHashUpdate.mock.calls.length).toBe(0); + expect(mockHashDigest.mock.calls.length).toBe(0); + expect(mockEncoder.mock.calls.length).toBe(0); + } + ); + + it( + 'should use the supplied stream hasher to calculate the hash of a streaming body', + async () => { + await applyBodyChecksumMiddleware( + 'checksumHeader', + MockHash, + mockEncoder, + async (stream: ExoticStream) => new Uint8Array(5) + )(next, {} as any)({ + request: { + ...request, + body: new ExoticStream + }, + input: {} + }); + + expect(next.mock.calls).toEqual([[{ + input: {}, + request: { + ...request, + body: new ExoticStream, + headers: { + ...request.headers, + checksumHeader: 'encoded', + } + }, + }]]); + + expect(mockHashDigest.mock.calls.length).toBe(0); + expect(mockEncoder.mock.calls.length).toBe(1); + expect(mockEncoder.mock.calls).toEqual([[new Uint8Array(5)]]); + } + ); +}); diff --git a/packages/apply-body-checksum-middleware/src/index.ts b/packages/apply-body-checksum-middleware/src/index.ts new file mode 100644 index 000000000000..e0784451d495 --- /dev/null +++ b/packages/apply-body-checksum-middleware/src/index.ts @@ -0,0 +1,71 @@ +import { isArrayBuffer } from '@aws/is-array-buffer'; +import { + BuildHandler, + BuildHandlerArguments, + BuildMiddleware, + Encoder, + Hash, + HeaderBag, + StreamCollector, + StreamHasher, +} from '@aws/types'; + +export function applyBodyChecksumMiddleware( + headerName: string, + hashCtor: {new (): Hash}, + encoder: Encoder, + streamHasher: StreamHasher = throwOnStream +): BuildMiddleware { + return ( + next: BuildHandler + ): BuildHandler => async ( + { request, ...rest }: BuildHandlerArguments + ): Promise => { + const { body, headers } = request; + if (!hasHeader(headerName, headers)) { + let digest: Promise; + + if ( + body === undefined || + typeof body === 'string' || + ArrayBuffer.isView(body) || + isArrayBuffer(body) + ) { + const hash = new hashCtor(); + hash.update(body || ''); + digest = hash.digest(); + } else { + digest = streamHasher(hashCtor, body); + } + + request = { + ...request, + headers: { + ...headers, + [headerName]: encoder(await digest), + } + } + } + + return next({ ...rest, request }); + }; +} + +function hasHeader(soughtHeader: string, headers: HeaderBag): boolean { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + + return false; +} + +function throwOnStream(stream: any): never { + throw new Error( + `applyBodyChecksumMiddleware encountered a request with a streaming body of type ${ + Object.prototype.toString.call(stream) + }, but no stream hasher function was provided` + ); +} diff --git a/packages/apply-body-checksum-middleware/tsconfig.json b/packages/apply-body-checksum-middleware/tsconfig.json new file mode 100644 index 000000000000..d223dda5184d --- /dev/null +++ b/packages/apply-body-checksum-middleware/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "declaration": true, + "strict": true, + "sourceMap": true, + "downlevelIteration": true, + "importHelpers": true, + "noEmitHelpers": true, + "lib": [ + "es5", + "es2015.promise", + "es2015.collection", + "es2015.iterable", + "es2015.symbol.wellknown" + ], + "rootDir": "./src", + "outDir": "./build" + } +} diff --git a/packages/sha256-blob-browser/tsconfig.test.json b/packages/apply-body-checksum-middleware/tsconfig.test.json similarity index 100% rename from packages/sha256-blob-browser/tsconfig.test.json rename to packages/apply-body-checksum-middleware/tsconfig.test.json diff --git a/packages/chunked-blob-reader/package.json b/packages/chunked-blob-reader/package.json index 025aabfba957..65687b75775c 100644 --- a/packages/chunked-blob-reader/package.json +++ b/packages/chunked-blob-reader/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@types/jest": "^20.0.2", - "typescript": "^2.3", + "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/chunked-stream-reader-node/package.json b/packages/chunked-stream-reader-node/package.json index a493f3f250b1..bf55ce34fad6 100644 --- a/packages/chunked-stream-reader-node/package.json +++ b/packages/chunked-stream-reader-node/package.json @@ -20,7 +20,7 @@ "devDependencies": { "@types/node": "*", "@types/jest": "^20.0.2", - "typescript": "^2.3", + "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/chunked-stream-reader-node/src/index.ts b/packages/chunked-stream-reader-node/src/index.ts index bb5aef82b279..06e0ea368b40 100644 --- a/packages/chunked-stream-reader-node/src/index.ts +++ b/packages/chunked-stream-reader-node/src/index.ts @@ -48,4 +48,4 @@ function mergeUint8Arrays( result.set(a); result.set(b, a.byteLength); return result; -} \ No newline at end of file +} diff --git a/packages/crypto-sha256-universal/package.json b/packages/crypto-sha256-universal/package.json index b0169614cbad..c89e1663581b 100644 --- a/packages/crypto-sha256-universal/package.json +++ b/packages/crypto-sha256-universal/package.json @@ -29,6 +29,7 @@ "main": "./build/index.js", "types": "./build/index.d.ts", "browser": { - "@aws/hash-node": false + "@aws/hash-node": false, + "crypto": false } } diff --git a/packages/crypto-sha256-universal/src/index.spec.ts b/packages/crypto-sha256-universal/src/index.spec.ts index af907579f300..8b0d15ca9a94 100644 --- a/packages/crypto-sha256-universal/src/index.spec.ts +++ b/packages/crypto-sha256-universal/src/index.spec.ts @@ -1,5 +1,4 @@ import {Sha256} from './'; -import {Sha256 as BrowserSha256} from '@aws/crypto-sha256-browser'; import {Hash} from '@aws/hash-node'; describe('Sha256', () => { diff --git a/packages/crypto-sha256-universal/src/nodeUsage.spec.ts b/packages/crypto-sha256-universal/src/nodeUsage.spec.ts index 852cda1da4e3..102cc83a5dff 100644 --- a/packages/crypto-sha256-universal/src/nodeUsage.spec.ts +++ b/packages/crypto-sha256-universal/src/nodeUsage.spec.ts @@ -1,5 +1,4 @@ import {Sha256} from './'; -import {Sha256 as BrowserSha256} from '@aws/crypto-sha256-browser'; import {Hash} from '@aws/hash-node'; jest.mock('crypto', () => { diff --git a/packages/fetch-http-handler/src/fetch-http-handler.spec.ts b/packages/fetch-http-handler/src/fetch-http-handler.spec.ts index 8307dca2d357..cbef8903f5db 100644 --- a/packages/fetch-http-handler/src/fetch-http-handler.spec.ts +++ b/packages/fetch-http-handler/src/fetch-http-handler.spec.ts @@ -43,7 +43,7 @@ describe('httpHandler', () => { ]; }) }, - arrayBuffer: jest.fn(() => Promise.resolve()) + blob: jest.fn(() => Promise.resolve()) } const mockFetch = jest.fn(() => { return Promise.resolve(mockResponse); @@ -55,6 +55,7 @@ describe('httpHandler', () => { let response = await fetchHttpHandler.handle({} as any, {}); expect(mockFetch.mock.calls.length).toBe(1); + expect(mockResponse.blob.mock.calls.length).toBe(1); }); it('properly constructs url', async () => { @@ -67,7 +68,7 @@ describe('httpHandler', () => { ]; }) }, - arrayBuffer: jest.fn(() => Promise.resolve()) + blob: jest.fn(() => Promise.resolve()) } const mockFetch = jest.fn(() => { return Promise.resolve(mockResponse); @@ -94,42 +95,6 @@ describe('httpHandler', () => { ); }); - it('prefers response body if it is available', async () => { - let mockResponse = { - headers: { - entries: jest.fn(() => { - return [ - ['foo', 'bar'], - ['bizz', 'bazz'] - ]; - }) - }, - arrayBuffer: jest.fn(() => Promise.resolve()), - body: 'test' - } - const mockFetch = jest.fn(() => { - return Promise.resolve(mockResponse); - }); - - (global as any).fetch = mockFetch; - - let httpRequest = { - headers: {}, - hostname: 'foo.amazonaws.com', - method: 'GET', - path: '/test/?bar=baz', - protocol: 'https:', - port: 443, - }; - const fetchHttpHandler = new FetchHttpHandler(); - - let response = await fetchHttpHandler.handle(httpRequest, {}); - - expect(mockFetch.mock.calls.length).toBe(1); - expect(mockResponse.arrayBuffer.mock.calls.length).toBe(0); - expect(response.body).toBe('test'); - }); - it('will not make request if already aborted', async () => { let mockResponse = { headers: { @@ -140,7 +105,7 @@ describe('httpHandler', () => { ]; }) }, - arrayBuffer: jest.fn(() => Promise.resolve()), + blob: jest.fn(() => Promise.resolve()), body: 'test' }; const mockFetch = jest.fn(() => { @@ -169,7 +134,7 @@ describe('httpHandler', () => { ]; }) }, - arrayBuffer: jest.fn(() => Promise.resolve()), + blob: jest.fn(() => Promise.resolve()), body: 'test' }; const mockFetch = jest.fn(() => { @@ -199,7 +164,7 @@ describe('httpHandler', () => { ]; }) }, - arrayBuffer: jest.fn(() => Promise.resolve()), + blob: jest.fn(() => Promise.resolve()), body: 'test' }; const mockFetch = jest.fn(() => { diff --git a/packages/fetch-http-handler/src/fetch-http-handler.ts b/packages/fetch-http-handler/src/fetch-http-handler.ts index c21be9246056..1bcb160a58aa 100644 --- a/packages/fetch-http-handler/src/fetch-http-handler.ts +++ b/packages/fetch-http-handler/src/fetch-http-handler.ts @@ -14,7 +14,7 @@ import {escapeUri} from '@aws/util-uri-escape'; declare var AbortController: any; -export class FetchHttpHandler implements HttpHandler { +export class FetchHttpHandler implements HttpHandler { constructor(private readonly httpOptions: BrowserHttpOptions = {}) {} destroy(): void { @@ -23,9 +23,9 @@ export class FetchHttpHandler implements HttpHandler, + request: HttpRequest, options: HttpHandlerOptions - ): Promise> { + ): Promise> { const abortSignal = options && options.abortSignal; const requestTimeoutInMs = this.httpOptions.requestTimeout; @@ -47,10 +47,7 @@ export class FetchHttpHandler implements HttpHandler = { + return response.blob().then>(body => ({ headers: transformedHeaders, - statusCode: response.status - }; - - if (response.body) { - httpResponse.body = response.body; - return httpResponse; - } else { - return response.arrayBuffer() - .then(buffer => { - httpResponse.body = new Uint8Array(buffer); - return httpResponse; - }); - } + statusCode: response.status, + body, + })); }), requestTimeout(requestTimeoutInMs), ]; diff --git a/packages/sha256-stream-node/.gitignore b/packages/hash-blob-browser/.gitignore similarity index 100% rename from packages/sha256-stream-node/.gitignore rename to packages/hash-blob-browser/.gitignore diff --git a/packages/sha256-stream-node/.npmignore b/packages/hash-blob-browser/.npmignore similarity index 100% rename from packages/sha256-stream-node/.npmignore rename to packages/hash-blob-browser/.npmignore diff --git a/packages/sha256-blob-browser/LICENSE b/packages/hash-blob-browser/LICENSE similarity index 100% rename from packages/sha256-blob-browser/LICENSE rename to packages/hash-blob-browser/LICENSE diff --git a/packages/sha256-blob-browser/README.md b/packages/hash-blob-browser/README.md similarity index 100% rename from packages/sha256-blob-browser/README.md rename to packages/hash-blob-browser/README.md diff --git a/packages/sha256-blob-browser/karma.conf.js b/packages/hash-blob-browser/karma.conf.js similarity index 100% rename from packages/sha256-blob-browser/karma.conf.js rename to packages/hash-blob-browser/karma.conf.js diff --git a/packages/sha256-blob-browser/package.json b/packages/hash-blob-browser/package.json similarity index 93% rename from packages/sha256-blob-browser/package.json rename to packages/hash-blob-browser/package.json index 784273401fff..b2ce9f9e0b26 100644 --- a/packages/sha256-blob-browser/package.json +++ b/packages/hash-blob-browser/package.json @@ -1,5 +1,5 @@ { - "name": "@aws/sha256-blob-browser", + "name": "@aws/hash-blob-browser", "version": "0.0.1", "scripts": { "prepublishOnly": "tsc", @@ -30,6 +30,6 @@ "karma-jasmine": "^1.1.1", "karma-typescript": "3.0.8", "puppeteer": "^1.0.0", - "typescript": "^2.3" + "typescript": "^2.6" } -} \ No newline at end of file +} diff --git a/packages/sha256-blob-browser/src/index.spec.ts b/packages/hash-blob-browser/src/index.spec.ts similarity index 100% rename from packages/sha256-blob-browser/src/index.spec.ts rename to packages/hash-blob-browser/src/index.spec.ts diff --git a/packages/sha256-blob-browser/src/index.ts b/packages/hash-blob-browser/src/index.ts similarity index 58% rename from packages/sha256-blob-browser/src/index.ts rename to packages/hash-blob-browser/src/index.ts index d6751afe69a9..4b612db774a6 100644 --- a/packages/sha256-blob-browser/src/index.ts +++ b/packages/hash-blob-browser/src/index.ts @@ -1,15 +1,16 @@ import { Hash, - HashConstructor + HashConstructor, + StreamHasher, } from '@aws/types'; import {blobReader} from '@aws/chunked-blob-reader'; -export async function calculateSha256( - Sha256: HashConstructor, +export const calculateSha256: StreamHasher = async function calculateSha256( + hashCtor: HashConstructor, blob: Blob ): Promise { - const hash = new Sha256(); + const hash = new hashCtor(); await blobReader( blob, @@ -19,4 +20,4 @@ export async function calculateSha256( ); return hash.digest(); -} \ No newline at end of file +} diff --git a/packages/sha256-blob-browser/tsconfig.json b/packages/hash-blob-browser/tsconfig.json similarity index 100% rename from packages/sha256-blob-browser/tsconfig.json rename to packages/hash-blob-browser/tsconfig.json diff --git a/packages/sha256-stream-node/tsconfig.test.json b/packages/hash-blob-browser/tsconfig.test.json similarity index 100% rename from packages/sha256-stream-node/tsconfig.test.json rename to packages/hash-blob-browser/tsconfig.test.json diff --git a/packages/hash-node/src/index.ts b/packages/hash-node/src/index.ts index adf30b023ff9..3c7433592490 100644 --- a/packages/hash-node/src/index.ts +++ b/packages/hash-node/src/index.ts @@ -6,7 +6,6 @@ import { createHmac, Hash as NodeHash, Hmac, - } from "crypto"; export class Hash implements IHash { diff --git a/packages/hash-stream-node/.gitignore b/packages/hash-stream-node/.gitignore new file mode 100644 index 000000000000..444bd8d9ce0e --- /dev/null +++ b/packages/hash-stream-node/.gitignore @@ -0,0 +1,7 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +*.tgz +*.log +package-lock.json \ No newline at end of file diff --git a/packages/hash-stream-node/.npmignore b/packages/hash-stream-node/.npmignore new file mode 100644 index 000000000000..9a0c63c0881b --- /dev/null +++ b/packages/hash-stream-node/.npmignore @@ -0,0 +1,12 @@ +/src/ +/coverage/ +/docs/ +tsconfig.test.json + +*.spec.js +*.spec.d.ts +*.spec.js.map + +*.fixture.js +*.fixture.d.ts +*.fixture.js.map \ No newline at end of file diff --git a/packages/sha256-stream-node/LICENSE b/packages/hash-stream-node/LICENSE similarity index 100% rename from packages/sha256-stream-node/LICENSE rename to packages/hash-stream-node/LICENSE diff --git a/packages/hash-stream-node/README.md b/packages/hash-stream-node/README.md new file mode 100644 index 000000000000..29c1686cd2c1 --- /dev/null +++ b/packages/hash-stream-node/README.md @@ -0,0 +1,5 @@ +# hash-stream-node + +A utility for calculating the hash of Node.JS readable streams. This package is +currently only compatible with file streams, as no other stream type can be +replayed. diff --git a/packages/sha256-stream-node/package.json b/packages/hash-stream-node/package.json similarity index 85% rename from packages/sha256-stream-node/package.json rename to packages/hash-stream-node/package.json index bd5088d205d8..9ca88db4a2d8 100644 --- a/packages/sha256-stream-node/package.json +++ b/packages/hash-stream-node/package.json @@ -1,10 +1,10 @@ { - "name": "@aws/sha256-stream-node", + "name": "@aws/hash-stream-node", "version": "0.0.1", "scripts": { "prepublishOnly": "tsc", "pretest": "tsc -p tsconfig.test.json", - "test": "karma start karma.conf.js" + "test": "jest" }, "main": "./build/index.js", "types": "./build/index.d.ts", @@ -23,7 +23,7 @@ "@aws/util-hex-encoding": "^0.0.1", "@types/node": "*", "@types/jest": "^20.0.2", - "typescript": "^2.3", + "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/sha256-stream-node/src/hash-calculator.spec.ts b/packages/hash-stream-node/src/hash-calculator.spec.ts similarity index 100% rename from packages/sha256-stream-node/src/hash-calculator.spec.ts rename to packages/hash-stream-node/src/hash-calculator.spec.ts diff --git a/packages/sha256-stream-node/src/hash-calculator.ts b/packages/hash-stream-node/src/hash-calculator.ts similarity index 100% rename from packages/sha256-stream-node/src/hash-calculator.ts rename to packages/hash-stream-node/src/hash-calculator.ts diff --git a/packages/sha256-stream-node/src/index.spec.ts b/packages/hash-stream-node/src/index.spec.ts similarity index 100% rename from packages/sha256-stream-node/src/index.spec.ts rename to packages/hash-stream-node/src/index.spec.ts diff --git a/packages/sha256-stream-node/src/index.ts b/packages/hash-stream-node/src/index.ts similarity index 58% rename from packages/sha256-stream-node/src/index.ts rename to packages/hash-stream-node/src/index.ts index df999e40273f..d6ba03c505bb 100644 --- a/packages/sha256-stream-node/src/index.ts +++ b/packages/hash-stream-node/src/index.ts @@ -1,27 +1,30 @@ import { Hash, - HashConstructor + HashConstructor, + StreamHasher, } from '@aws/types'; -import {ReadStream, createReadStream} from 'fs'; -import {HashCalculator} from './hash-calculator'; +import { HashCalculator } from './hash-calculator'; +import { createReadStream, ReadStream } from 'fs'; +import { Readable } from 'stream'; -export function calculateSha256( - Sha256: HashConstructor, - fileStream: ReadStream +export const calculateSha256: StreamHasher = function calculateSha256( + hashCtor: HashConstructor, + fileStream: Readable ): Promise { return new Promise((resolve, reject) => { - if (typeof fileStream.path !== 'string') { + if (!isReadStream(fileStream)) { reject(new Error( - 'Unable to calculate SHA256 for non-file streams.' + 'Unable to calculate hash for non-file streams.' )); return; } + const fileStreamTee = createReadStream(fileStream.path, { start: (fileStream as any).start, end: (fileStream as any).end }); - const hash = new Sha256(); + const hash = new hashCtor(); const hashCalculator = new HashCalculator(hash); fileStreamTee.pipe(hashCalculator); @@ -35,4 +38,8 @@ export function calculateSha256( hash.digest().then(resolve).catch(reject); }); }); -} \ No newline at end of file +} + +function isReadStream(stream: Readable): stream is ReadStream { + return typeof (stream as ReadStream).path === 'string'; +} diff --git a/packages/sha256-stream-node/tsconfig.json b/packages/hash-stream-node/tsconfig.json similarity index 100% rename from packages/sha256-stream-node/tsconfig.json rename to packages/hash-stream-node/tsconfig.json diff --git a/packages/hash-stream-node/tsconfig.test.json b/packages/hash-stream-node/tsconfig.test.json new file mode 100644 index 000000000000..777e8f4df8ca --- /dev/null +++ b/packages/hash-stream-node/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "sourceMap": false, + "inlineSourceMap": true, + "inlineSources": true, + "rootDir": "./src", + "outDir": "./build" + } +} \ No newline at end of file diff --git a/packages/md5-universal/.gitignore b/packages/md5-universal/.gitignore new file mode 100644 index 000000000000..444bd8d9ce0e --- /dev/null +++ b/packages/md5-universal/.gitignore @@ -0,0 +1,7 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +*.tgz +*.log +package-lock.json \ No newline at end of file diff --git a/packages/md5-universal/.npmignore b/packages/md5-universal/.npmignore new file mode 100644 index 000000000000..9a0c63c0881b --- /dev/null +++ b/packages/md5-universal/.npmignore @@ -0,0 +1,12 @@ +/src/ +/coverage/ +/docs/ +tsconfig.test.json + +*.spec.js +*.spec.d.ts +*.spec.js.map + +*.fixture.js +*.fixture.d.ts +*.fixture.js.map \ No newline at end of file diff --git a/packages/md5-universal/LICENSE b/packages/md5-universal/LICENSE new file mode 100644 index 000000000000..ad410e113021 --- /dev/null +++ b/packages/md5-universal/LICENSE @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/packages/md5-universal/README.md b/packages/md5-universal/README.md new file mode 100644 index 000000000000..fe19a25229e5 --- /dev/null +++ b/packages/md5-universal/README.md @@ -0,0 +1 @@ +# md5-universal \ No newline at end of file diff --git a/packages/md5-universal/package.json b/packages/md5-universal/package.json new file mode 100644 index 000000000000..ca1b02a82503 --- /dev/null +++ b/packages/md5-universal/package.json @@ -0,0 +1,33 @@ +{ + "name": "@aws/md5-universal", + "version": "0.0.1", + "scripts": { + "prepublishOnly": "tsc", + "pretest": "tsc -p tsconfig.test.json", + "test": "jest" + }, + "main": "./build/index.js", + "types": "./build/index.d.ts", + "author": { + "name": "AWS SDK for JavaScript Team", + "email": "aws-sdk-js@amazon.com", + "url": "https://aws.amazon.com/javascript/" + }, + "license": "Apache-2.0", + "browser": { + "@aws/hash-node": false, + "crypto": false + }, + "dependencies": { + "@aws/hash-node": "^0.0.1", + "@aws/md5-js": "^0.0.1", + "@aws/types": "^0.0.1", + "tslib": "^1.8.0" + }, + "devDependencies": { + "@types/jest": "^20.0.2", + "@types/node": "^8.0.34", + "typescript": "^2.6", + "jest": "^20.0.4" + } +} diff --git a/packages/md5-universal/src/browserUsage.spec.ts b/packages/md5-universal/src/browserUsage.spec.ts new file mode 100644 index 000000000000..3d78a8415ff6 --- /dev/null +++ b/packages/md5-universal/src/browserUsage.spec.ts @@ -0,0 +1,17 @@ +import {Md5} from './'; +import {Md5 as BrowserMd5} from '@aws/md5-js'; +import {Hash} from '@aws/hash-node'; + +describe('implementation selection', () => { + it( + 'should use the browser implementation when the crypto module is not defined', + () => { + jest.mock('crypto', () => { + throw new Error('Crypto module is not defined'); + }); + + const md5 = new Md5(); + expect((md5 as any).hash).toBeInstanceOf(BrowserMd5); + } + ); +}); diff --git a/packages/md5-universal/src/index.spec.ts b/packages/md5-universal/src/index.spec.ts new file mode 100644 index 000000000000..5744c1d09f03 --- /dev/null +++ b/packages/md5-universal/src/index.spec.ts @@ -0,0 +1,19 @@ +import {Md5} from './'; + +describe('Md5', () => { + it('should proxy method calls to underlying implementation', () => { + const md5 = new Md5(); + const hashMock = { + update: jest.fn(), + digest: jest.fn(), + }; + (md5 as any).hash = hashMock; + + md5.update('foo', 'utf8'); + expect(hashMock.update.mock.calls.length).toBe(1); + expect(hashMock.update.mock.calls[0]).toEqual(['foo', 'utf8']); + + md5.digest(); + expect(hashMock.digest.mock.calls.length).toBe(1); + }); +}); diff --git a/packages/md5-universal/src/index.ts b/packages/md5-universal/src/index.ts new file mode 100644 index 000000000000..6e8e96dd4dd9 --- /dev/null +++ b/packages/md5-universal/src/index.ts @@ -0,0 +1,32 @@ +import {Md5 as BrowserMd5} from '@aws/md5-js'; +import {Hash as NodeHash} from '@aws/hash-node'; +import {Hash, SourceData} from '@aws/types'; + +export class Md5 implements Hash { + private readonly hash: Hash; + + constructor() { + if (supportsCryptoModule()) { + this.hash = new NodeHash('md5'); + } else { + this.hash = new BrowserMd5(); + } + } + + update(data: SourceData, encoding?: 'utf8' | 'ascii' | 'latin1'): void { + this.hash.update(data, encoding); + } + + digest(): Promise { + return this.hash.digest(); + } +} + +function supportsCryptoModule(): boolean { + try { + require('crypto'); + return true; + } catch { + return false; + } +} diff --git a/packages/md5-universal/src/nodeUsage.spec.ts b/packages/md5-universal/src/nodeUsage.spec.ts new file mode 100644 index 000000000000..afd51b6b9042 --- /dev/null +++ b/packages/md5-universal/src/nodeUsage.spec.ts @@ -0,0 +1,18 @@ +import {Md5} from './'; +import {Hash} from '@aws/hash-node'; + +jest.mock('crypto', () => { + return { + createHash: jest.fn() + }; +}); + +describe('implementation selection', () => { + it( + 'should use the node implementation when the crypto module is defined', + () => { + const md5 = new Md5(); + expect((md5 as any).hash).toBeInstanceOf(Hash); + } + ); +}); diff --git a/packages/md5-universal/tsconfig.json b/packages/md5-universal/tsconfig.json new file mode 100644 index 000000000000..db392661f423 --- /dev/null +++ b/packages/md5-universal/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "declaration": true, + "strict": true, + "sourceMap": true, + "downlevelIteration": true, + "importHelpers": true, + "noEmitHelpers": true, + "lib": [ + "es5", + "es2015.promise", + "es2015.collection", + "es2015.iterable", + "es2015.symbol.wellknown" + ], + "rootDir": "./src", + "outDir": "./build" + } +} \ No newline at end of file diff --git a/packages/md5-universal/tsconfig.test.json b/packages/md5-universal/tsconfig.test.json new file mode 100644 index 000000000000..777e8f4df8ca --- /dev/null +++ b/packages/md5-universal/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "sourceMap": false, + "inlineSourceMap": true, + "inlineSources": true, + "rootDir": "./src", + "outDir": "./build" + } +} \ No newline at end of file diff --git a/packages/middleware-sdk-glacier/package.json b/packages/middleware-sdk-glacier/package.json index d915ab1c624b..e2a197e1fab2 100644 --- a/packages/middleware-sdk-glacier/package.json +++ b/packages/middleware-sdk-glacier/package.json @@ -21,7 +21,7 @@ "@aws/util-utf8-node": "^0.0.1", "@types/jest": "^20.0.2", "jest": "^20.0.4", - "typescript": "^2.3" + "typescript": "^2.6" }, "dependencies": { "@aws/middleware-header-default": "^0.0.1", diff --git a/packages/sdk-codecommit-browser/CodeCommitClient.ts b/packages/sdk-codecommit-browser/CodeCommitClient.ts index fb5efd54d292..242590cc6514 100644 --- a/packages/sdk-codecommit-browser/CodeCommitClient.ts +++ b/packages/sdk-codecommit-browser/CodeCommitClient.ts @@ -28,7 +28,7 @@ export class CodeCommitClient { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< InputTypesUnion, OutputTypesUnion, - ReadableStream + Blob >(); constructor(configuration: CodeCommitConfiguration) { @@ -75,19 +75,19 @@ export class CodeCommitClient { send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion - >(command: __aws_types.Command): Promise; + >(command: __aws_types.Command): Promise; send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion >( - command: __aws_types.Command, + command: __aws_types.Command, cb: (err: any, data?: OutputType) => void ): void; send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion >( - command: __aws_types.Command, + command: __aws_types.Command, cb?: (err: any, data?: OutputType) => void ): Promise|void { const handler = command.resolveMiddleware( diff --git a/packages/sdk-codecommit-browser/CodeCommitConfiguration.ts b/packages/sdk-codecommit-browser/CodeCommitConfiguration.ts index b0e4e3ceafbb..dba21674acac 100644 --- a/packages/sdk-codecommit-browser/CodeCommitConfiguration.ts +++ b/packages/sdk-codecommit-browser/CodeCommitConfiguration.ts @@ -50,12 +50,12 @@ export interface CodeCommitConfiguration { /** * The handler to use as the core of the client's middleware stack */ - handler?: __aws_types.Terminalware; + handler?: __aws_types.Terminalware; /** * The HTTP handler to use */ - httpHandler?: __aws_types.HttpHandler; + httpHandler?: __aws_types.HttpHandler; /** * The maximum number of redirects to follow for a service request. Set to `0` to disable retries. @@ -83,7 +83,7 @@ export interface CodeCommitConfiguration { retryDecider?: __aws_types.RetryDecider; /** - * A constructor that can calculate a SHA-256 HMAC + * A constructor for a class implementing the @aws/types.Hash interface that computes the SHA-256 HMAC or checksum of a string or binary buffer */ sha256?: __aws_types.HashConstructor; @@ -105,7 +105,7 @@ export interface CodeCommitConfiguration { /** * A function that converts a stream into an array of bytes. */ - streamCollector?: __aws_types.StreamCollector; + streamCollector?: __aws_types.StreamCollector; /** * The function that will be used to convert strings into HTTP endpoints @@ -137,12 +137,12 @@ export interface CodeCommitResolvableConfiguration extends CodeCommitConfigurati /** * The parser to use when converting HTTP responses to SDK output types */ - parser: __aws_types.ResponseParser; + parser: __aws_types.ResponseParser; /** * The serializer to use when converting SDK input to HTTP requests */ - serializer: __aws_types.Provider<__aws_types.RequestSerializer>; + serializer: __aws_types.Provider<__aws_types.RequestSerializer>; } export interface CodeCommitResolvedConfiguration extends CodeCommitConfiguration { @@ -160,19 +160,19 @@ export interface CodeCommitResolvedConfiguration extends CodeCommitConfiguration endpointProvider: any; - handler: __aws_types.Terminalware; + handler: __aws_types.Terminalware; - httpHandler: __aws_types.HttpHandler; + httpHandler: __aws_types.HttpHandler; maxRedirects: number; maxRetries: number; - parser: __aws_types.ResponseParser; + parser: __aws_types.ResponseParser; region: __aws_types.Provider; - serializer: __aws_types.Provider<__aws_types.RequestSerializer>; + serializer: __aws_types.Provider<__aws_types.RequestSerializer>; sha256: __aws_types.HashConstructor; @@ -182,7 +182,7 @@ export interface CodeCommitResolvedConfiguration extends CodeCommitConfiguration sslEnabled: boolean; - streamCollector: __aws_types.StreamCollector; + streamCollector: __aws_types.StreamCollector; urlParser: __aws_types.UrlParser; @@ -301,7 +301,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< } ) => { const promisified = configuration.endpoint() - .then(endpoint => new __aws_protocol_json_rpc.JsonRpcSerializer( + .then(endpoint => new __aws_protocol_json_rpc.JsonRpcSerializer( endpoint, new __aws_json_builder.JsonBuilder( configuration.base64Encoder, @@ -311,7 +311,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< return () => promisified; }, apply: ( - serializerProvider: __aws_types.Provider<__aws_types.RequestSerializer>, + serializerProvider: __aws_types.Provider<__aws_types.RequestSerializer>, configuration: object, middlewareStack: __aws_types.MiddlewareStack ): void => { @@ -330,7 +330,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< defaultProvider: ( configuration: { base64Decoder: __aws_types.Decoder, - streamCollector: __aws_types.StreamCollector, + streamCollector: __aws_types.StreamCollector, utf8Encoder: __aws_types.Encoder } ) => new __aws_protocol_json_rpc.JsonRpcParser( @@ -354,10 +354,10 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< required: false, defaultProvider: ( configuration: { - httpHandler: __aws_types.HttpHandler, - parser: __aws_types.ResponseParser, + httpHandler: __aws_types.HttpHandler, + parser: __aws_types.ResponseParser, } - ) => __aws_core_handler.coreHandler( + ) => __aws_core_handler.coreHandler( configuration.httpHandler, configuration.parser ) diff --git a/packages/sdk-codecommit-browser/commands/BatchGetRepositoriesCommand.ts b/packages/sdk-codecommit-browser/commands/BatchGetRepositoriesCommand.ts index 581df8486918..4f4a2c984c2b 100644 --- a/packages/sdk-codecommit-browser/commands/BatchGetRepositoriesCommand.ts +++ b/packages/sdk-codecommit-browser/commands/BatchGetRepositoriesCommand.ts @@ -13,18 +13,18 @@ export class BatchGetRepositoriesCommand implements __aws_types.Command< OutputTypesUnion, BatchGetRepositoriesOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< BatchGetRepositoriesInput, BatchGetRepositoriesOutput, - ReadableStream + Blob >(); constructor(readonly input: BatchGetRepositoriesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/CreateBranchCommand.ts b/packages/sdk-codecommit-browser/commands/CreateBranchCommand.ts index 9e0d13a1de4b..9367e6ef4233 100644 --- a/packages/sdk-codecommit-browser/commands/CreateBranchCommand.ts +++ b/packages/sdk-codecommit-browser/commands/CreateBranchCommand.ts @@ -13,18 +13,18 @@ export class CreateBranchCommand implements __aws_types.Command< OutputTypesUnion, CreateBranchOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CreateBranchInput, CreateBranchOutput, - ReadableStream + Blob >(); constructor(readonly input: CreateBranchInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/CreatePullRequestCommand.ts b/packages/sdk-codecommit-browser/commands/CreatePullRequestCommand.ts index 7a43b0e3edd4..d5a556d7d59b 100644 --- a/packages/sdk-codecommit-browser/commands/CreatePullRequestCommand.ts +++ b/packages/sdk-codecommit-browser/commands/CreatePullRequestCommand.ts @@ -13,18 +13,18 @@ export class CreatePullRequestCommand implements __aws_types.Command< OutputTypesUnion, CreatePullRequestOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CreatePullRequestInput, CreatePullRequestOutput, - ReadableStream + Blob >(); constructor(readonly input: CreatePullRequestInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/CreateRepositoryCommand.ts b/packages/sdk-codecommit-browser/commands/CreateRepositoryCommand.ts index e8211aaaece8..5d6a1ca00eb4 100644 --- a/packages/sdk-codecommit-browser/commands/CreateRepositoryCommand.ts +++ b/packages/sdk-codecommit-browser/commands/CreateRepositoryCommand.ts @@ -13,18 +13,18 @@ export class CreateRepositoryCommand implements __aws_types.Command< OutputTypesUnion, CreateRepositoryOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CreateRepositoryInput, CreateRepositoryOutput, - ReadableStream + Blob >(); constructor(readonly input: CreateRepositoryInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/DeleteBranchCommand.ts b/packages/sdk-codecommit-browser/commands/DeleteBranchCommand.ts index 621a40dbe25c..8bd1a3b0248e 100644 --- a/packages/sdk-codecommit-browser/commands/DeleteBranchCommand.ts +++ b/packages/sdk-codecommit-browser/commands/DeleteBranchCommand.ts @@ -13,18 +13,18 @@ export class DeleteBranchCommand implements __aws_types.Command< OutputTypesUnion, DeleteBranchOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteBranchInput, DeleteBranchOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteBranchInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/DeleteCommentContentCommand.ts b/packages/sdk-codecommit-browser/commands/DeleteCommentContentCommand.ts index 3f15405cc17c..cadf5f60ce9f 100644 --- a/packages/sdk-codecommit-browser/commands/DeleteCommentContentCommand.ts +++ b/packages/sdk-codecommit-browser/commands/DeleteCommentContentCommand.ts @@ -13,18 +13,18 @@ export class DeleteCommentContentCommand implements __aws_types.Command< OutputTypesUnion, DeleteCommentContentOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteCommentContentInput, DeleteCommentContentOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteCommentContentInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/DeleteRepositoryCommand.ts b/packages/sdk-codecommit-browser/commands/DeleteRepositoryCommand.ts index 0ffdd89cc380..cf748c1b7b95 100644 --- a/packages/sdk-codecommit-browser/commands/DeleteRepositoryCommand.ts +++ b/packages/sdk-codecommit-browser/commands/DeleteRepositoryCommand.ts @@ -13,18 +13,18 @@ export class DeleteRepositoryCommand implements __aws_types.Command< OutputTypesUnion, DeleteRepositoryOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteRepositoryInput, DeleteRepositoryOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteRepositoryInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/DescribePullRequestEventsCommand.ts b/packages/sdk-codecommit-browser/commands/DescribePullRequestEventsCommand.ts index b74b84d24139..31990d8ee737 100644 --- a/packages/sdk-codecommit-browser/commands/DescribePullRequestEventsCommand.ts +++ b/packages/sdk-codecommit-browser/commands/DescribePullRequestEventsCommand.ts @@ -13,18 +13,18 @@ export class DescribePullRequestEventsCommand implements __aws_types.Command< OutputTypesUnion, DescribePullRequestEventsOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DescribePullRequestEventsInput, DescribePullRequestEventsOutput, - ReadableStream + Blob >(); constructor(readonly input: DescribePullRequestEventsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetBlobCommand.ts b/packages/sdk-codecommit-browser/commands/GetBlobCommand.ts index 17112a5d91f6..e6be041520ee 100644 --- a/packages/sdk-codecommit-browser/commands/GetBlobCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetBlobCommand.ts @@ -13,18 +13,18 @@ export class GetBlobCommand implements __aws_types.Command< OutputTypesUnion, GetBlobOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetBlobInput, GetBlobOutput, - ReadableStream + Blob >(); constructor(readonly input: GetBlobInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetBranchCommand.ts b/packages/sdk-codecommit-browser/commands/GetBranchCommand.ts index a664353a058c..149ea82a5f0d 100644 --- a/packages/sdk-codecommit-browser/commands/GetBranchCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetBranchCommand.ts @@ -13,18 +13,18 @@ export class GetBranchCommand implements __aws_types.Command< OutputTypesUnion, GetBranchOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetBranchInput, GetBranchOutput, - ReadableStream + Blob >(); constructor(readonly input: GetBranchInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetCommentCommand.ts b/packages/sdk-codecommit-browser/commands/GetCommentCommand.ts index 489253947bf4..81f253eadd9a 100644 --- a/packages/sdk-codecommit-browser/commands/GetCommentCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetCommentCommand.ts @@ -13,18 +13,18 @@ export class GetCommentCommand implements __aws_types.Command< OutputTypesUnion, GetCommentOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetCommentInput, GetCommentOutput, - ReadableStream + Blob >(); constructor(readonly input: GetCommentInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetCommentsForComparedCommitCommand.ts b/packages/sdk-codecommit-browser/commands/GetCommentsForComparedCommitCommand.ts index 40a4d054337d..dfcc8fdeff1a 100644 --- a/packages/sdk-codecommit-browser/commands/GetCommentsForComparedCommitCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetCommentsForComparedCommitCommand.ts @@ -13,18 +13,18 @@ export class GetCommentsForComparedCommitCommand implements __aws_types.Command< OutputTypesUnion, GetCommentsForComparedCommitOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetCommentsForComparedCommitInput, GetCommentsForComparedCommitOutput, - ReadableStream + Blob >(); constructor(readonly input: GetCommentsForComparedCommitInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetCommentsForPullRequestCommand.ts b/packages/sdk-codecommit-browser/commands/GetCommentsForPullRequestCommand.ts index adcaeb2e1980..5d656fb8d676 100644 --- a/packages/sdk-codecommit-browser/commands/GetCommentsForPullRequestCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetCommentsForPullRequestCommand.ts @@ -13,18 +13,18 @@ export class GetCommentsForPullRequestCommand implements __aws_types.Command< OutputTypesUnion, GetCommentsForPullRequestOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetCommentsForPullRequestInput, GetCommentsForPullRequestOutput, - ReadableStream + Blob >(); constructor(readonly input: GetCommentsForPullRequestInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetCommitCommand.ts b/packages/sdk-codecommit-browser/commands/GetCommitCommand.ts index e3df1dc6eaae..6f285782d558 100644 --- a/packages/sdk-codecommit-browser/commands/GetCommitCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetCommitCommand.ts @@ -13,18 +13,18 @@ export class GetCommitCommand implements __aws_types.Command< OutputTypesUnion, GetCommitOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetCommitInput, GetCommitOutput, - ReadableStream + Blob >(); constructor(readonly input: GetCommitInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetDifferencesCommand.ts b/packages/sdk-codecommit-browser/commands/GetDifferencesCommand.ts index 8eac8a2eb63c..1f071ee957c0 100644 --- a/packages/sdk-codecommit-browser/commands/GetDifferencesCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetDifferencesCommand.ts @@ -13,18 +13,18 @@ export class GetDifferencesCommand implements __aws_types.Command< OutputTypesUnion, GetDifferencesOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetDifferencesInput, GetDifferencesOutput, - ReadableStream + Blob >(); constructor(readonly input: GetDifferencesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetMergeConflictsCommand.ts b/packages/sdk-codecommit-browser/commands/GetMergeConflictsCommand.ts index 52ef9574def4..f76506e98c65 100644 --- a/packages/sdk-codecommit-browser/commands/GetMergeConflictsCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetMergeConflictsCommand.ts @@ -13,18 +13,18 @@ export class GetMergeConflictsCommand implements __aws_types.Command< OutputTypesUnion, GetMergeConflictsOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetMergeConflictsInput, GetMergeConflictsOutput, - ReadableStream + Blob >(); constructor(readonly input: GetMergeConflictsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetPullRequestCommand.ts b/packages/sdk-codecommit-browser/commands/GetPullRequestCommand.ts index 973793ba3767..783ac5d1be92 100644 --- a/packages/sdk-codecommit-browser/commands/GetPullRequestCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetPullRequestCommand.ts @@ -13,18 +13,18 @@ export class GetPullRequestCommand implements __aws_types.Command< OutputTypesUnion, GetPullRequestOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetPullRequestInput, GetPullRequestOutput, - ReadableStream + Blob >(); constructor(readonly input: GetPullRequestInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetRepositoryCommand.ts b/packages/sdk-codecommit-browser/commands/GetRepositoryCommand.ts index 6b893496d45a..8a3c4ec12e8a 100644 --- a/packages/sdk-codecommit-browser/commands/GetRepositoryCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetRepositoryCommand.ts @@ -13,18 +13,18 @@ export class GetRepositoryCommand implements __aws_types.Command< OutputTypesUnion, GetRepositoryOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetRepositoryInput, GetRepositoryOutput, - ReadableStream + Blob >(); constructor(readonly input: GetRepositoryInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/GetRepositoryTriggersCommand.ts b/packages/sdk-codecommit-browser/commands/GetRepositoryTriggersCommand.ts index d154b729d657..6fdb9fc00764 100644 --- a/packages/sdk-codecommit-browser/commands/GetRepositoryTriggersCommand.ts +++ b/packages/sdk-codecommit-browser/commands/GetRepositoryTriggersCommand.ts @@ -13,18 +13,18 @@ export class GetRepositoryTriggersCommand implements __aws_types.Command< OutputTypesUnion, GetRepositoryTriggersOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetRepositoryTriggersInput, GetRepositoryTriggersOutput, - ReadableStream + Blob >(); constructor(readonly input: GetRepositoryTriggersInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/ListBranchesCommand.ts b/packages/sdk-codecommit-browser/commands/ListBranchesCommand.ts index 32debb5cb395..1ce56553fb42 100644 --- a/packages/sdk-codecommit-browser/commands/ListBranchesCommand.ts +++ b/packages/sdk-codecommit-browser/commands/ListBranchesCommand.ts @@ -13,18 +13,18 @@ export class ListBranchesCommand implements __aws_types.Command< OutputTypesUnion, ListBranchesOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListBranchesInput, ListBranchesOutput, - ReadableStream + Blob >(); constructor(readonly input: ListBranchesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/ListPullRequestsCommand.ts b/packages/sdk-codecommit-browser/commands/ListPullRequestsCommand.ts index 238af027e011..22bbe175c61d 100644 --- a/packages/sdk-codecommit-browser/commands/ListPullRequestsCommand.ts +++ b/packages/sdk-codecommit-browser/commands/ListPullRequestsCommand.ts @@ -13,18 +13,18 @@ export class ListPullRequestsCommand implements __aws_types.Command< OutputTypesUnion, ListPullRequestsOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListPullRequestsInput, ListPullRequestsOutput, - ReadableStream + Blob >(); constructor(readonly input: ListPullRequestsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/ListRepositoriesCommand.ts b/packages/sdk-codecommit-browser/commands/ListRepositoriesCommand.ts index e4f750d90869..da2421160fd6 100644 --- a/packages/sdk-codecommit-browser/commands/ListRepositoriesCommand.ts +++ b/packages/sdk-codecommit-browser/commands/ListRepositoriesCommand.ts @@ -13,18 +13,18 @@ export class ListRepositoriesCommand implements __aws_types.Command< OutputTypesUnion, ListRepositoriesOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListRepositoriesInput, ListRepositoriesOutput, - ReadableStream + Blob >(); constructor(readonly input: ListRepositoriesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/MergePullRequestByFastForwardCommand.ts b/packages/sdk-codecommit-browser/commands/MergePullRequestByFastForwardCommand.ts index 762de708f249..563262747ec3 100644 --- a/packages/sdk-codecommit-browser/commands/MergePullRequestByFastForwardCommand.ts +++ b/packages/sdk-codecommit-browser/commands/MergePullRequestByFastForwardCommand.ts @@ -13,18 +13,18 @@ export class MergePullRequestByFastForwardCommand implements __aws_types.Command OutputTypesUnion, MergePullRequestByFastForwardOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< MergePullRequestByFastForwardInput, MergePullRequestByFastForwardOutput, - ReadableStream + Blob >(); constructor(readonly input: MergePullRequestByFastForwardInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/PostCommentForComparedCommitCommand.ts b/packages/sdk-codecommit-browser/commands/PostCommentForComparedCommitCommand.ts index 8ebff276d4f0..aa8c5330f5bc 100644 --- a/packages/sdk-codecommit-browser/commands/PostCommentForComparedCommitCommand.ts +++ b/packages/sdk-codecommit-browser/commands/PostCommentForComparedCommitCommand.ts @@ -13,18 +13,18 @@ export class PostCommentForComparedCommitCommand implements __aws_types.Command< OutputTypesUnion, PostCommentForComparedCommitOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< PostCommentForComparedCommitInput, PostCommentForComparedCommitOutput, - ReadableStream + Blob >(); constructor(readonly input: PostCommentForComparedCommitInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/PostCommentForPullRequestCommand.ts b/packages/sdk-codecommit-browser/commands/PostCommentForPullRequestCommand.ts index 7741d394f3b3..9f2acf4a8f50 100644 --- a/packages/sdk-codecommit-browser/commands/PostCommentForPullRequestCommand.ts +++ b/packages/sdk-codecommit-browser/commands/PostCommentForPullRequestCommand.ts @@ -13,18 +13,18 @@ export class PostCommentForPullRequestCommand implements __aws_types.Command< OutputTypesUnion, PostCommentForPullRequestOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< PostCommentForPullRequestInput, PostCommentForPullRequestOutput, - ReadableStream + Blob >(); constructor(readonly input: PostCommentForPullRequestInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/PostCommentReplyCommand.ts b/packages/sdk-codecommit-browser/commands/PostCommentReplyCommand.ts index 8055e8c32234..70f80b1bb4b2 100644 --- a/packages/sdk-codecommit-browser/commands/PostCommentReplyCommand.ts +++ b/packages/sdk-codecommit-browser/commands/PostCommentReplyCommand.ts @@ -13,18 +13,18 @@ export class PostCommentReplyCommand implements __aws_types.Command< OutputTypesUnion, PostCommentReplyOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< PostCommentReplyInput, PostCommentReplyOutput, - ReadableStream + Blob >(); constructor(readonly input: PostCommentReplyInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/PutRepositoryTriggersCommand.ts b/packages/sdk-codecommit-browser/commands/PutRepositoryTriggersCommand.ts index 39e18514efeb..48fad6334792 100644 --- a/packages/sdk-codecommit-browser/commands/PutRepositoryTriggersCommand.ts +++ b/packages/sdk-codecommit-browser/commands/PutRepositoryTriggersCommand.ts @@ -13,18 +13,18 @@ export class PutRepositoryTriggersCommand implements __aws_types.Command< OutputTypesUnion, PutRepositoryTriggersOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< PutRepositoryTriggersInput, PutRepositoryTriggersOutput, - ReadableStream + Blob >(); constructor(readonly input: PutRepositoryTriggersInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/TestRepositoryTriggersCommand.ts b/packages/sdk-codecommit-browser/commands/TestRepositoryTriggersCommand.ts index 0505083255c4..2ac9e1bf4458 100644 --- a/packages/sdk-codecommit-browser/commands/TestRepositoryTriggersCommand.ts +++ b/packages/sdk-codecommit-browser/commands/TestRepositoryTriggersCommand.ts @@ -13,18 +13,18 @@ export class TestRepositoryTriggersCommand implements __aws_types.Command< OutputTypesUnion, TestRepositoryTriggersOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< TestRepositoryTriggersInput, TestRepositoryTriggersOutput, - ReadableStream + Blob >(); constructor(readonly input: TestRepositoryTriggersInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdateCommentCommand.ts b/packages/sdk-codecommit-browser/commands/UpdateCommentCommand.ts index a6454273a0f1..1e883b5715d4 100644 --- a/packages/sdk-codecommit-browser/commands/UpdateCommentCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdateCommentCommand.ts @@ -13,18 +13,18 @@ export class UpdateCommentCommand implements __aws_types.Command< OutputTypesUnion, UpdateCommentOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdateCommentInput, UpdateCommentOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdateCommentInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdateDefaultBranchCommand.ts b/packages/sdk-codecommit-browser/commands/UpdateDefaultBranchCommand.ts index a405a82274a2..c852a6b99d89 100644 --- a/packages/sdk-codecommit-browser/commands/UpdateDefaultBranchCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdateDefaultBranchCommand.ts @@ -13,18 +13,18 @@ export class UpdateDefaultBranchCommand implements __aws_types.Command< OutputTypesUnion, UpdateDefaultBranchOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdateDefaultBranchInput, UpdateDefaultBranchOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdateDefaultBranchInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdatePullRequestDescriptionCommand.ts b/packages/sdk-codecommit-browser/commands/UpdatePullRequestDescriptionCommand.ts index df94479529a8..5637f806e687 100644 --- a/packages/sdk-codecommit-browser/commands/UpdatePullRequestDescriptionCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdatePullRequestDescriptionCommand.ts @@ -13,18 +13,18 @@ export class UpdatePullRequestDescriptionCommand implements __aws_types.Command< OutputTypesUnion, UpdatePullRequestDescriptionOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdatePullRequestDescriptionInput, UpdatePullRequestDescriptionOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdatePullRequestDescriptionInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdatePullRequestStatusCommand.ts b/packages/sdk-codecommit-browser/commands/UpdatePullRequestStatusCommand.ts index c89e6819bd35..131eb6cc0086 100644 --- a/packages/sdk-codecommit-browser/commands/UpdatePullRequestStatusCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdatePullRequestStatusCommand.ts @@ -13,18 +13,18 @@ export class UpdatePullRequestStatusCommand implements __aws_types.Command< OutputTypesUnion, UpdatePullRequestStatusOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdatePullRequestStatusInput, UpdatePullRequestStatusOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdatePullRequestStatusInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdatePullRequestTitleCommand.ts b/packages/sdk-codecommit-browser/commands/UpdatePullRequestTitleCommand.ts index e94b76698f6c..041e30e4e036 100644 --- a/packages/sdk-codecommit-browser/commands/UpdatePullRequestTitleCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdatePullRequestTitleCommand.ts @@ -13,18 +13,18 @@ export class UpdatePullRequestTitleCommand implements __aws_types.Command< OutputTypesUnion, UpdatePullRequestTitleOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdatePullRequestTitleInput, UpdatePullRequestTitleOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdatePullRequestTitleInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdateRepositoryDescriptionCommand.ts b/packages/sdk-codecommit-browser/commands/UpdateRepositoryDescriptionCommand.ts index 17d18fe02c27..505ec0bba684 100644 --- a/packages/sdk-codecommit-browser/commands/UpdateRepositoryDescriptionCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdateRepositoryDescriptionCommand.ts @@ -13,18 +13,18 @@ export class UpdateRepositoryDescriptionCommand implements __aws_types.Command< OutputTypesUnion, UpdateRepositoryDescriptionOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdateRepositoryDescriptionInput, UpdateRepositoryDescriptionOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdateRepositoryDescriptionInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/commands/UpdateRepositoryNameCommand.ts b/packages/sdk-codecommit-browser/commands/UpdateRepositoryNameCommand.ts index 85e0cc5a0158..ad3bf0590ccb 100644 --- a/packages/sdk-codecommit-browser/commands/UpdateRepositoryNameCommand.ts +++ b/packages/sdk-codecommit-browser/commands/UpdateRepositoryNameCommand.ts @@ -13,18 +13,18 @@ export class UpdateRepositoryNameCommand implements __aws_types.Command< OutputTypesUnion, UpdateRepositoryNameOutput, CodeCommitResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdateRepositoryNameInput, UpdateRepositoryNameOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdateRepositoryNameInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CodeCommitResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-codecommit-browser/types/ActorDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/ActorDoesNotExistException.ts index b9ce6293e278..5853c514d560 100644 --- a/packages/sdk-codecommit-browser/types/ActorDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/ActorDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified Amazon Resource Name (ARN) does not exist in the AWS account.

diff --git a/packages/sdk-codecommit-browser/types/AuthorDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/AuthorDoesNotExistException.ts index fcd5333f864a..0718539b1749 100644 --- a/packages/sdk-codecommit-browser/types/AuthorDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/AuthorDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified Amazon Resource Name (ARN) does not exist in the AWS account.

diff --git a/packages/sdk-codecommit-browser/types/BatchGetRepositoriesInput.ts b/packages/sdk-codecommit-browser/types/BatchGetRepositoriesInput.ts index 460372b54088..fe75466e9905 100644 --- a/packages/sdk-codecommit-browser/types/BatchGetRepositoriesInput.ts +++ b/packages/sdk-codecommit-browser/types/BatchGetRepositoriesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a batch get repositories operation.

@@ -10,23 +11,19 @@ export interface BatchGetRepositoriesInput { repositoryNames: Array|Iterable; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/BatchGetRepositoriesOutput.ts b/packages/sdk-codecommit-browser/types/BatchGetRepositoriesOutput.ts index 4524cbb91302..ddc03122ce5d 100644 --- a/packages/sdk-codecommit-browser/types/BatchGetRepositoriesOutput.ts +++ b/packages/sdk-codecommit-browser/types/BatchGetRepositoriesOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRepositoryMetadata} from './_RepositoryMetadata'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a batch get repositories operation.

@@ -16,8 +16,7 @@ export interface BatchGetRepositoriesOutput { repositoriesNotFound?: Array; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/BeforeCommitIdAndAfterCommitIdAreSameException.ts b/packages/sdk-codecommit-browser/types/BeforeCommitIdAndAfterCommitIdAreSameException.ts index f1620dd4e004..41468799e37d 100644 --- a/packages/sdk-codecommit-browser/types/BeforeCommitIdAndAfterCommitIdAreSameException.ts +++ b/packages/sdk-codecommit-browser/types/BeforeCommitIdAndAfterCommitIdAreSameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The before commit ID and the after commit ID are the same, which is not valid. The before commit ID and the after commit ID must be different commit IDs.

diff --git a/packages/sdk-codecommit-browser/types/BlobIdDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/BlobIdDoesNotExistException.ts index 3b918ec3c420..895aa34a3543 100644 --- a/packages/sdk-codecommit-browser/types/BlobIdDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/BlobIdDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified blob does not exist.

diff --git a/packages/sdk-codecommit-browser/types/BlobIdRequiredException.ts b/packages/sdk-codecommit-browser/types/BlobIdRequiredException.ts index f36c8a8d94a9..94d9167b85c7 100644 --- a/packages/sdk-codecommit-browser/types/BlobIdRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/BlobIdRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A blob ID is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/BranchDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/BranchDoesNotExistException.ts index 9e49595ffa26..ffc75d0e2936 100644 --- a/packages/sdk-codecommit-browser/types/BranchDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/BranchDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified branch does not exist.

diff --git a/packages/sdk-codecommit-browser/types/BranchNameExistsException.ts b/packages/sdk-codecommit-browser/types/BranchNameExistsException.ts index e586c3058164..f516ed02e4b3 100644 --- a/packages/sdk-codecommit-browser/types/BranchNameExistsException.ts +++ b/packages/sdk-codecommit-browser/types/BranchNameExistsException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified branch name already exists.

diff --git a/packages/sdk-codecommit-browser/types/BranchNameRequiredException.ts b/packages/sdk-codecommit-browser/types/BranchNameRequiredException.ts index 50e73d497582..675abcb7d669 100644 --- a/packages/sdk-codecommit-browser/types/BranchNameRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/BranchNameRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A branch name is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/ClientRequestTokenRequiredException.ts b/packages/sdk-codecommit-browser/types/ClientRequestTokenRequiredException.ts index d0ec5afbc22d..ac885b552320 100644 --- a/packages/sdk-codecommit-browser/types/ClientRequestTokenRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/ClientRequestTokenRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A client request token is required. A client request token is an unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.

diff --git a/packages/sdk-codecommit-browser/types/CommentContentRequiredException.ts b/packages/sdk-codecommit-browser/types/CommentContentRequiredException.ts index dfb89875c03e..fc0cb5c8c1d6 100644 --- a/packages/sdk-codecommit-browser/types/CommentContentRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/CommentContentRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The comment is empty. You must provide some content for a comment. The content cannot be null.

diff --git a/packages/sdk-codecommit-browser/types/CommentContentSizeLimitExceededException.ts b/packages/sdk-codecommit-browser/types/CommentContentSizeLimitExceededException.ts index 54be59977ae5..54a84249c383 100644 --- a/packages/sdk-codecommit-browser/types/CommentContentSizeLimitExceededException.ts +++ b/packages/sdk-codecommit-browser/types/CommentContentSizeLimitExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The comment is too large. Comments are limited to 1,000 characters.

diff --git a/packages/sdk-codecommit-browser/types/CommentDeletedException.ts b/packages/sdk-codecommit-browser/types/CommentDeletedException.ts index 7d144ad72094..9117f6a0ff79 100644 --- a/packages/sdk-codecommit-browser/types/CommentDeletedException.ts +++ b/packages/sdk-codecommit-browser/types/CommentDeletedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

This comment has already been deleted. You cannot edit or delete a deleted comment.

diff --git a/packages/sdk-codecommit-browser/types/CommentDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/CommentDoesNotExistException.ts index df88d0c9340c..6e7f475b8b0c 100644 --- a/packages/sdk-codecommit-browser/types/CommentDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/CommentDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

No comment exists with the provided ID. Verify that you have provided the correct ID, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/CommentIdRequiredException.ts b/packages/sdk-codecommit-browser/types/CommentIdRequiredException.ts index 1137efad27cf..f92df0f8389d 100644 --- a/packages/sdk-codecommit-browser/types/CommentIdRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/CommentIdRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The comment ID is missing or null. A comment ID is required.

diff --git a/packages/sdk-codecommit-browser/types/CommentNotCreatedByCallerException.ts b/packages/sdk-codecommit-browser/types/CommentNotCreatedByCallerException.ts index 8bdcef922464..6213e9a080e2 100644 --- a/packages/sdk-codecommit-browser/types/CommentNotCreatedByCallerException.ts +++ b/packages/sdk-codecommit-browser/types/CommentNotCreatedByCallerException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

You cannot modify or delete this comment. Only comment authors can modify or delete their comments.

diff --git a/packages/sdk-codecommit-browser/types/CommitDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/CommitDoesNotExistException.ts index e0e4eff41a3e..93c8591d60a4 100644 --- a/packages/sdk-codecommit-browser/types/CommitDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/CommitDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

diff --git a/packages/sdk-codecommit-browser/types/CommitIdDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/CommitIdDoesNotExistException.ts index 268dc409179d..4ee5d8f4ae88 100644 --- a/packages/sdk-codecommit-browser/types/CommitIdDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/CommitIdDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified commit ID does not exist.

diff --git a/packages/sdk-codecommit-browser/types/CommitIdRequiredException.ts b/packages/sdk-codecommit-browser/types/CommitIdRequiredException.ts index a97730b8446b..aa4e0fa1d0c6 100644 --- a/packages/sdk-codecommit-browser/types/CommitIdRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/CommitIdRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A commit ID was not specified.

diff --git a/packages/sdk-codecommit-browser/types/CommitRequiredException.ts b/packages/sdk-codecommit-browser/types/CommitRequiredException.ts index 6a99c61754a9..eaac30cd78f9 100644 --- a/packages/sdk-codecommit-browser/types/CommitRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/CommitRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A commit was not specified.

diff --git a/packages/sdk-codecommit-browser/types/CreateBranchInput.ts b/packages/sdk-codecommit-browser/types/CreateBranchInput.ts index 5feb23989900..0f1aa8e8649c 100644 --- a/packages/sdk-codecommit-browser/types/CreateBranchInput.ts +++ b/packages/sdk-codecommit-browser/types/CreateBranchInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a create branch operation.

@@ -20,23 +21,19 @@ export interface CreateBranchInput { commitId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/CreateBranchOutput.ts b/packages/sdk-codecommit-browser/types/CreateBranchOutput.ts index 0c5a9c8543c1..01a86df7d56f 100644 --- a/packages/sdk-codecommit-browser/types/CreateBranchOutput.ts +++ b/packages/sdk-codecommit-browser/types/CreateBranchOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * CreateBranchOutput shape */ export interface CreateBranchOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/CreatePullRequestInput.ts b/packages/sdk-codecommit-browser/types/CreatePullRequestInput.ts index 73f357e4db6e..2173be5dd0ef 100644 --- a/packages/sdk-codecommit-browser/types/CreatePullRequestInput.ts +++ b/packages/sdk-codecommit-browser/types/CreatePullRequestInput.ts @@ -1,5 +1,6 @@ import {_Target} from './_Target'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * CreatePullRequestInput shape @@ -26,23 +27,19 @@ export interface CreatePullRequestInput { clientRequestToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/CreatePullRequestOutput.ts b/packages/sdk-codecommit-browser/types/CreatePullRequestOutput.ts index cdb39f3ddcbb..ce0670a03533 100644 --- a/packages/sdk-codecommit-browser/types/CreatePullRequestOutput.ts +++ b/packages/sdk-codecommit-browser/types/CreatePullRequestOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequest} from './_PullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * CreatePullRequestOutput shape @@ -11,8 +11,7 @@ export interface CreatePullRequestOutput { pullRequest: _UnmarshalledPullRequest; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/CreateRepositoryInput.ts b/packages/sdk-codecommit-browser/types/CreateRepositoryInput.ts index 0c36dbc81083..5337575825a4 100644 --- a/packages/sdk-codecommit-browser/types/CreateRepositoryInput.ts +++ b/packages/sdk-codecommit-browser/types/CreateRepositoryInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a create repository operation.

@@ -15,23 +16,19 @@ export interface CreateRepositoryInput { repositoryDescription?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/CreateRepositoryOutput.ts b/packages/sdk-codecommit-browser/types/CreateRepositoryOutput.ts index c3e442d08ccb..f5f606693dfd 100644 --- a/packages/sdk-codecommit-browser/types/CreateRepositoryOutput.ts +++ b/packages/sdk-codecommit-browser/types/CreateRepositoryOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRepositoryMetadata} from './_RepositoryMetadata'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a create repository operation.

@@ -11,8 +11,7 @@ export interface CreateRepositoryOutput { repositoryMetadata?: _UnmarshalledRepositoryMetadata; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/DefaultBranchCannotBeDeletedException.ts b/packages/sdk-codecommit-browser/types/DefaultBranchCannotBeDeletedException.ts index 8f717c0902b4..ecac20b0f2f1 100644 --- a/packages/sdk-codecommit-browser/types/DefaultBranchCannotBeDeletedException.ts +++ b/packages/sdk-codecommit-browser/types/DefaultBranchCannotBeDeletedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified branch is the default branch for the repository, and cannot be deleted. To delete this branch, you must first set another branch as the default branch.

diff --git a/packages/sdk-codecommit-browser/types/DeleteBranchInput.ts b/packages/sdk-codecommit-browser/types/DeleteBranchInput.ts index e475a5403f73..a19cf0bb477d 100644 --- a/packages/sdk-codecommit-browser/types/DeleteBranchInput.ts +++ b/packages/sdk-codecommit-browser/types/DeleteBranchInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a delete branch operation.

@@ -15,23 +16,19 @@ export interface DeleteBranchInput { branchName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/DeleteBranchOutput.ts b/packages/sdk-codecommit-browser/types/DeleteBranchOutput.ts index adbc653f1843..ecbc9f9873ba 100644 --- a/packages/sdk-codecommit-browser/types/DeleteBranchOutput.ts +++ b/packages/sdk-codecommit-browser/types/DeleteBranchOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledBranchInfo} from './_BranchInfo'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a delete branch operation.

@@ -11,8 +11,7 @@ export interface DeleteBranchOutput { deletedBranch?: _UnmarshalledBranchInfo; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/DeleteCommentContentInput.ts b/packages/sdk-codecommit-browser/types/DeleteCommentContentInput.ts index 9f148a199d8f..9073a7f1aaa4 100644 --- a/packages/sdk-codecommit-browser/types/DeleteCommentContentInput.ts +++ b/packages/sdk-codecommit-browser/types/DeleteCommentContentInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteCommentContentInput shape @@ -10,23 +11,19 @@ export interface DeleteCommentContentInput { commentId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/DeleteCommentContentOutput.ts b/packages/sdk-codecommit-browser/types/DeleteCommentContentOutput.ts index 1891cfb398a3..75d20cfe1b4f 100644 --- a/packages/sdk-codecommit-browser/types/DeleteCommentContentOutput.ts +++ b/packages/sdk-codecommit-browser/types/DeleteCommentContentOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledComment} from './_Comment'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteCommentContentOutput shape @@ -11,8 +11,7 @@ export interface DeleteCommentContentOutput { comment?: _UnmarshalledComment; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/DeleteRepositoryInput.ts b/packages/sdk-codecommit-browser/types/DeleteRepositoryInput.ts index 0fed5598b602..7484badacf49 100644 --- a/packages/sdk-codecommit-browser/types/DeleteRepositoryInput.ts +++ b/packages/sdk-codecommit-browser/types/DeleteRepositoryInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a delete repository operation.

@@ -10,23 +11,19 @@ export interface DeleteRepositoryInput { repositoryName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/DeleteRepositoryOutput.ts b/packages/sdk-codecommit-browser/types/DeleteRepositoryOutput.ts index 78d7aee0b5a3..3c9331dde310 100644 --- a/packages/sdk-codecommit-browser/types/DeleteRepositoryOutput.ts +++ b/packages/sdk-codecommit-browser/types/DeleteRepositoryOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a delete repository operation.

@@ -10,8 +10,7 @@ export interface DeleteRepositoryOutput { repositoryId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/DescribePullRequestEventsInput.ts b/packages/sdk-codecommit-browser/types/DescribePullRequestEventsInput.ts index 9d622ecae6a0..4afe9343b3f7 100644 --- a/packages/sdk-codecommit-browser/types/DescribePullRequestEventsInput.ts +++ b/packages/sdk-codecommit-browser/types/DescribePullRequestEventsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DescribePullRequestEventsInput shape @@ -30,23 +31,19 @@ export interface DescribePullRequestEventsInput { maxResults?: number; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/DescribePullRequestEventsOutput.ts b/packages/sdk-codecommit-browser/types/DescribePullRequestEventsOutput.ts index fd9bec34f7fc..62da59f1d34b 100644 --- a/packages/sdk-codecommit-browser/types/DescribePullRequestEventsOutput.ts +++ b/packages/sdk-codecommit-browser/types/DescribePullRequestEventsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequestEvent} from './_PullRequestEvent'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DescribePullRequestEventsOutput shape @@ -16,8 +16,7 @@ export interface DescribePullRequestEventsOutput { nextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/EncryptionIntegrityChecksFailedException.ts b/packages/sdk-codecommit-browser/types/EncryptionIntegrityChecksFailedException.ts index 6eb53758466e..b9a23d2594dd 100644 --- a/packages/sdk-codecommit-browser/types/EncryptionIntegrityChecksFailedException.ts +++ b/packages/sdk-codecommit-browser/types/EncryptionIntegrityChecksFailedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

An encryption integrity check failed.

diff --git a/packages/sdk-codecommit-browser/types/EncryptionKeyAccessDeniedException.ts b/packages/sdk-codecommit-browser/types/EncryptionKeyAccessDeniedException.ts index a957141d2bfd..c0c303c5b8e1 100644 --- a/packages/sdk-codecommit-browser/types/EncryptionKeyAccessDeniedException.ts +++ b/packages/sdk-codecommit-browser/types/EncryptionKeyAccessDeniedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

An encryption key could not be accessed.

diff --git a/packages/sdk-codecommit-browser/types/EncryptionKeyDisabledException.ts b/packages/sdk-codecommit-browser/types/EncryptionKeyDisabledException.ts index a27e42ad3d0b..42c7241888eb 100644 --- a/packages/sdk-codecommit-browser/types/EncryptionKeyDisabledException.ts +++ b/packages/sdk-codecommit-browser/types/EncryptionKeyDisabledException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The encryption key is disabled.

diff --git a/packages/sdk-codecommit-browser/types/EncryptionKeyNotFoundException.ts b/packages/sdk-codecommit-browser/types/EncryptionKeyNotFoundException.ts index fab4b18bf00b..ec497b3bd582 100644 --- a/packages/sdk-codecommit-browser/types/EncryptionKeyNotFoundException.ts +++ b/packages/sdk-codecommit-browser/types/EncryptionKeyNotFoundException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

No encryption key was found.

diff --git a/packages/sdk-codecommit-browser/types/EncryptionKeyUnavailableException.ts b/packages/sdk-codecommit-browser/types/EncryptionKeyUnavailableException.ts index 767babf9f566..00574994dbf4 100644 --- a/packages/sdk-codecommit-browser/types/EncryptionKeyUnavailableException.ts +++ b/packages/sdk-codecommit-browser/types/EncryptionKeyUnavailableException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The encryption key is not available.

diff --git a/packages/sdk-codecommit-browser/types/FileTooLargeException.ts b/packages/sdk-codecommit-browser/types/FileTooLargeException.ts index f273b958826b..158936830f70 100644 --- a/packages/sdk-codecommit-browser/types/FileTooLargeException.ts +++ b/packages/sdk-codecommit-browser/types/FileTooLargeException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified file exceeds the file size limit for AWS CodeCommit. For more information about limits in AWS CodeCommit, see AWS CodeCommit User Guide.

diff --git a/packages/sdk-codecommit-browser/types/GetBlobInput.ts b/packages/sdk-codecommit-browser/types/GetBlobInput.ts index 01d2d339ac94..796cbdf380e2 100644 --- a/packages/sdk-codecommit-browser/types/GetBlobInput.ts +++ b/packages/sdk-codecommit-browser/types/GetBlobInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a get blob operation.

@@ -15,23 +16,19 @@ export interface GetBlobInput { blobId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetBlobOutput.ts b/packages/sdk-codecommit-browser/types/GetBlobOutput.ts index 8ca9cf39b065..ec57e0f9d2c8 100644 --- a/packages/sdk-codecommit-browser/types/GetBlobOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetBlobOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a get blob operation.

@@ -10,8 +10,7 @@ export interface GetBlobOutput { content: Uint8Array; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetBranchInput.ts b/packages/sdk-codecommit-browser/types/GetBranchInput.ts index 59c25f71adf1..aa5af9f255f4 100644 --- a/packages/sdk-codecommit-browser/types/GetBranchInput.ts +++ b/packages/sdk-codecommit-browser/types/GetBranchInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a get branch operation.

@@ -15,23 +16,19 @@ export interface GetBranchInput { branchName?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetBranchOutput.ts b/packages/sdk-codecommit-browser/types/GetBranchOutput.ts index cc5aff667839..b1b690e46a12 100644 --- a/packages/sdk-codecommit-browser/types/GetBranchOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetBranchOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledBranchInfo} from './_BranchInfo'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a get branch operation.

@@ -11,8 +11,7 @@ export interface GetBranchOutput { branch?: _UnmarshalledBranchInfo; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetCommentInput.ts b/packages/sdk-codecommit-browser/types/GetCommentInput.ts index b1d8e50685b6..c7f5fc21237f 100644 --- a/packages/sdk-codecommit-browser/types/GetCommentInput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommentInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetCommentInput shape @@ -10,23 +11,19 @@ export interface GetCommentInput { commentId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetCommentOutput.ts b/packages/sdk-codecommit-browser/types/GetCommentOutput.ts index c18e3e550c24..74d3604f223a 100644 --- a/packages/sdk-codecommit-browser/types/GetCommentOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommentOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledComment} from './_Comment'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetCommentOutput shape @@ -11,8 +11,7 @@ export interface GetCommentOutput { comment?: _UnmarshalledComment; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitInput.ts b/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitInput.ts index 76cc99340493..05945f238cf3 100644 --- a/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitInput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetCommentsForComparedCommitInput shape @@ -30,23 +31,19 @@ export interface GetCommentsForComparedCommitInput { maxResults?: number; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitOutput.ts b/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitOutput.ts index a6b3f30c80fb..92223e8e6886 100644 --- a/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommentsForComparedCommitOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCommentsForComparedCommit} from './_CommentsForComparedCommit'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetCommentsForComparedCommitOutput shape @@ -16,8 +16,7 @@ export interface GetCommentsForComparedCommitOutput { nextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestInput.ts b/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestInput.ts index dbce30913348..bbc413fe4db9 100644 --- a/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestInput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetCommentsForPullRequestInput shape @@ -35,23 +36,19 @@ export interface GetCommentsForPullRequestInput { maxResults?: number; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestOutput.ts b/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestOutput.ts index 1d882600806f..770630f84d61 100644 --- a/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommentsForPullRequestOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCommentsForPullRequest} from './_CommentsForPullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetCommentsForPullRequestOutput shape @@ -16,8 +16,7 @@ export interface GetCommentsForPullRequestOutput { nextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetCommitInput.ts b/packages/sdk-codecommit-browser/types/GetCommitInput.ts index 6995f6617414..e1ca21b55574 100644 --- a/packages/sdk-codecommit-browser/types/GetCommitInput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommitInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a get commit operation.

@@ -15,23 +16,19 @@ export interface GetCommitInput { commitId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetCommitOutput.ts b/packages/sdk-codecommit-browser/types/GetCommitOutput.ts index e5e081fc9cd1..e7b010637539 100644 --- a/packages/sdk-codecommit-browser/types/GetCommitOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetCommitOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCommit} from './_Commit'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a get commit operation.

@@ -11,8 +11,7 @@ export interface GetCommitOutput { commit: _UnmarshalledCommit; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetDifferencesInput.ts b/packages/sdk-codecommit-browser/types/GetDifferencesInput.ts index 211d94480df6..38be0c70213e 100644 --- a/packages/sdk-codecommit-browser/types/GetDifferencesInput.ts +++ b/packages/sdk-codecommit-browser/types/GetDifferencesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetDifferencesInput shape @@ -40,23 +41,19 @@ export interface GetDifferencesInput { NextToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetDifferencesOutput.ts b/packages/sdk-codecommit-browser/types/GetDifferencesOutput.ts index 1eccf868269e..93c836ac9714 100644 --- a/packages/sdk-codecommit-browser/types/GetDifferencesOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetDifferencesOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledDifference} from './_Difference'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetDifferencesOutput shape @@ -16,8 +16,7 @@ export interface GetDifferencesOutput { NextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetMergeConflictsInput.ts b/packages/sdk-codecommit-browser/types/GetMergeConflictsInput.ts index f24644ddf7fb..d16333a61625 100644 --- a/packages/sdk-codecommit-browser/types/GetMergeConflictsInput.ts +++ b/packages/sdk-codecommit-browser/types/GetMergeConflictsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetMergeConflictsInput shape @@ -25,23 +26,19 @@ export interface GetMergeConflictsInput { mergeOption: 'FAST_FORWARD_MERGE'|string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetMergeConflictsOutput.ts b/packages/sdk-codecommit-browser/types/GetMergeConflictsOutput.ts index f02fff408ef0..50db9a03b628 100644 --- a/packages/sdk-codecommit-browser/types/GetMergeConflictsOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetMergeConflictsOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetMergeConflictsOutput shape @@ -20,8 +20,7 @@ export interface GetMergeConflictsOutput { sourceCommitId: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetPullRequestInput.ts b/packages/sdk-codecommit-browser/types/GetPullRequestInput.ts index c38b4235cbd4..f2ba050c2921 100644 --- a/packages/sdk-codecommit-browser/types/GetPullRequestInput.ts +++ b/packages/sdk-codecommit-browser/types/GetPullRequestInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetPullRequestInput shape @@ -10,23 +11,19 @@ export interface GetPullRequestInput { pullRequestId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetPullRequestOutput.ts b/packages/sdk-codecommit-browser/types/GetPullRequestOutput.ts index 7a9955617c5c..3d3db4a0f0a4 100644 --- a/packages/sdk-codecommit-browser/types/GetPullRequestOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetPullRequestOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequest} from './_PullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * GetPullRequestOutput shape @@ -11,8 +11,7 @@ export interface GetPullRequestOutput { pullRequest: _UnmarshalledPullRequest; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetRepositoryInput.ts b/packages/sdk-codecommit-browser/types/GetRepositoryInput.ts index 8fe72edb984a..891a016264c1 100644 --- a/packages/sdk-codecommit-browser/types/GetRepositoryInput.ts +++ b/packages/sdk-codecommit-browser/types/GetRepositoryInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a get repository operation.

@@ -10,23 +11,19 @@ export interface GetRepositoryInput { repositoryName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetRepositoryOutput.ts b/packages/sdk-codecommit-browser/types/GetRepositoryOutput.ts index 8464756c2070..051dfffa6e19 100644 --- a/packages/sdk-codecommit-browser/types/GetRepositoryOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetRepositoryOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRepositoryMetadata} from './_RepositoryMetadata'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a get repository operation.

@@ -11,8 +11,7 @@ export interface GetRepositoryOutput { repositoryMetadata?: _UnmarshalledRepositoryMetadata; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/GetRepositoryTriggersInput.ts b/packages/sdk-codecommit-browser/types/GetRepositoryTriggersInput.ts index 349b9da9551b..42c02795821b 100644 --- a/packages/sdk-codecommit-browser/types/GetRepositoryTriggersInput.ts +++ b/packages/sdk-codecommit-browser/types/GetRepositoryTriggersInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a get repository triggers operation.

@@ -10,23 +11,19 @@ export interface GetRepositoryTriggersInput { repositoryName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/GetRepositoryTriggersOutput.ts b/packages/sdk-codecommit-browser/types/GetRepositoryTriggersOutput.ts index 8896a72558d5..8149b74255c1 100644 --- a/packages/sdk-codecommit-browser/types/GetRepositoryTriggersOutput.ts +++ b/packages/sdk-codecommit-browser/types/GetRepositoryTriggersOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRepositoryTrigger} from './_RepositoryTrigger'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a get repository triggers operation.

@@ -16,8 +16,7 @@ export interface GetRepositoryTriggersOutput { triggers?: Array<_UnmarshalledRepositoryTrigger>; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/IdempotencyParameterMismatchException.ts b/packages/sdk-codecommit-browser/types/IdempotencyParameterMismatchException.ts index 759b7e9932e8..b706ac375fe3 100644 --- a/packages/sdk-codecommit-browser/types/IdempotencyParameterMismatchException.ts +++ b/packages/sdk-codecommit-browser/types/IdempotencyParameterMismatchException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The client request token is not valid. Either the token is not in a valid format, or the token has been used in a previous request and cannot be re-used.

diff --git a/packages/sdk-codecommit-browser/types/InvalidActorArnException.ts b/packages/sdk-codecommit-browser/types/InvalidActorArnException.ts index 9921cf794327..86a13ccbd54e 100644 --- a/packages/sdk-codecommit-browser/types/InvalidActorArnException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidActorArnException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the user who initiated the change for the pull request, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/InvalidAuthorArnException.ts b/packages/sdk-codecommit-browser/types/InvalidAuthorArnException.ts index e1c92cb8a6c2..9c51ad93211a 100644 --- a/packages/sdk-codecommit-browser/types/InvalidAuthorArnException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidAuthorArnException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/InvalidBlobIdException.ts b/packages/sdk-codecommit-browser/types/InvalidBlobIdException.ts index 3d5cc1b39ebf..e98f4701338b 100644 --- a/packages/sdk-codecommit-browser/types/InvalidBlobIdException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidBlobIdException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified blob is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidBranchNameException.ts b/packages/sdk-codecommit-browser/types/InvalidBranchNameException.ts index 8ac1e42254a5..866c88ef6f22 100644 --- a/packages/sdk-codecommit-browser/types/InvalidBranchNameException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidBranchNameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified reference name is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidClientRequestTokenException.ts b/packages/sdk-codecommit-browser/types/InvalidClientRequestTokenException.ts index 3090cda3ea2c..ba9b40adca9d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidClientRequestTokenException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidClientRequestTokenException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The client request token is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidCommentIdException.ts b/packages/sdk-codecommit-browser/types/InvalidCommentIdException.ts index e94fc3dbcca9..2a7e12fc1ee2 100644 --- a/packages/sdk-codecommit-browser/types/InvalidCommentIdException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidCommentIdException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The comment ID is not in a valid format. Make sure that you have provided the full comment ID.

diff --git a/packages/sdk-codecommit-browser/types/InvalidCommitException.ts b/packages/sdk-codecommit-browser/types/InvalidCommitException.ts index 019cf383ae8b..5c161eb93dc6 100644 --- a/packages/sdk-codecommit-browser/types/InvalidCommitException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidCommitException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified commit is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidCommitIdException.ts b/packages/sdk-codecommit-browser/types/InvalidCommitIdException.ts index d3287fc30075..0835136faf2d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidCommitIdException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidCommitIdException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified commit ID is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidContinuationTokenException.ts b/packages/sdk-codecommit-browser/types/InvalidContinuationTokenException.ts index 7259e6858b0c..66e17968901d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidContinuationTokenException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidContinuationTokenException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified continuation token is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidDescriptionException.ts b/packages/sdk-codecommit-browser/types/InvalidDescriptionException.ts index 46dc19f43e4b..2a44789b028d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidDescriptionException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidDescriptionException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request description is not valid. Descriptions are limited to 1,000 characters in length.

diff --git a/packages/sdk-codecommit-browser/types/InvalidDestinationCommitSpecifierException.ts b/packages/sdk-codecommit-browser/types/InvalidDestinationCommitSpecifierException.ts index 63b5e41cbc80..0b037ae0b40b 100644 --- a/packages/sdk-codecommit-browser/types/InvalidDestinationCommitSpecifierException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidDestinationCommitSpecifierException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The destination commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.

diff --git a/packages/sdk-codecommit-browser/types/InvalidFileLocationException.ts b/packages/sdk-codecommit-browser/types/InvalidFileLocationException.ts index f182cf8e354f..4083a1bece67 100644 --- a/packages/sdk-codecommit-browser/types/InvalidFileLocationException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidFileLocationException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The location of the file is not valid. Make sure that you include the extension of the file as well as the file name.

diff --git a/packages/sdk-codecommit-browser/types/InvalidFilePositionException.ts b/packages/sdk-codecommit-browser/types/InvalidFilePositionException.ts index 300ff4f222cf..a0336edbcb4a 100644 --- a/packages/sdk-codecommit-browser/types/InvalidFilePositionException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidFilePositionException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The position is not valid. Make sure that the line number exists in the version of the file you want to comment on.

diff --git a/packages/sdk-codecommit-browser/types/InvalidMaxResultsException.ts b/packages/sdk-codecommit-browser/types/InvalidMaxResultsException.ts index 0eba0b0327b0..5fbeddbaeb57 100644 --- a/packages/sdk-codecommit-browser/types/InvalidMaxResultsException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidMaxResultsException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified number of maximum results is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidMergeOptionException.ts b/packages/sdk-codecommit-browser/types/InvalidMergeOptionException.ts index 2803e1a5d8ab..de96e7a3aeba 100644 --- a/packages/sdk-codecommit-browser/types/InvalidMergeOptionException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidMergeOptionException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified merge option is not valid. The only valid value is FAST_FORWARD_MERGE.

diff --git a/packages/sdk-codecommit-browser/types/InvalidOrderException.ts b/packages/sdk-codecommit-browser/types/InvalidOrderException.ts index 5ef0946b4c92..e5cc3a5fad8d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidOrderException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidOrderException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified sort order is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidPathException.ts b/packages/sdk-codecommit-browser/types/InvalidPathException.ts index 70341e2d51c0..ebd07fa14b0c 100644 --- a/packages/sdk-codecommit-browser/types/InvalidPathException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidPathException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified path is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidPullRequestEventTypeException.ts b/packages/sdk-codecommit-browser/types/InvalidPullRequestEventTypeException.ts index e8cf9bbedf4a..bca9d5aa1dd8 100644 --- a/packages/sdk-codecommit-browser/types/InvalidPullRequestEventTypeException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidPullRequestEventTypeException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request event type is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidPullRequestIdException.ts b/packages/sdk-codecommit-browser/types/InvalidPullRequestIdException.ts index 486ba51a3d97..a73f2a20ff7d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidPullRequestIdException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidPullRequestIdException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request is in the specified repository, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusException.ts b/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusException.ts index aefd504e6776..706e9c1e6eb6 100644 --- a/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request status is not valid. The only valid values are OPEN and CLOSED.

diff --git a/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusUpdateException.ts b/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusUpdateException.ts index 9a534fb3bf61..869a66389b6d 100644 --- a/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusUpdateException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidPullRequestStatusUpdateException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request status update is not valid. The only valid update is from OPEN to CLOSED.

diff --git a/packages/sdk-codecommit-browser/types/InvalidReferenceNameException.ts b/packages/sdk-codecommit-browser/types/InvalidReferenceNameException.ts index f31805a267d6..ffc549a9b580 100644 --- a/packages/sdk-codecommit-browser/types/InvalidReferenceNameException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidReferenceNameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified reference name format is not valid. Reference names must conform to the Git references format, for example refs/heads/master. For more information, see Git Internals - Git References or consult your Git documentation.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRelativeFileVersionEnumException.ts b/packages/sdk-codecommit-browser/types/InvalidRelativeFileVersionEnumException.ts index 78f1e2f508a4..97e50f9a9c4b 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRelativeFileVersionEnumException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRelativeFileVersionEnumException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Either the enum is not in a valid format, or the specified file version enum is not valid in respect to the current file version.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryDescriptionException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryDescriptionException.ts index beb85a643d66..2b393b39a511 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryDescriptionException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryDescriptionException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified repository description is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryNameException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryNameException.ts index 95c825646bf2..80f0aabe9537 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryNameException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryNameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

At least one specified repository name is not valid.

This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerBranchNameException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerBranchNameException.ts index 1d205366041d..38e5336af829 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerBranchNameException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerBranchNameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

One or more branch names specified for the trigger is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerCustomDataException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerCustomDataException.ts index b584ecb6df30..16f60990b0f9 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerCustomDataException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerCustomDataException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The custom data provided for the trigger is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerDestinationArnException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerDestinationArnException.ts index 00159fabde28..f76e6e8f3830 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerDestinationArnException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerDestinationArnException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerEventsException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerEventsException.ts index e43af6ab7c59..1c6eeafe02f4 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerEventsException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerEventsException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerNameException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerNameException.ts index 4ca47bfeae87..b2ca240f1ae9 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerNameException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerNameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The name of the trigger is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerRegionException.ts b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerRegionException.ts index ad0adfa5f5f4..c057e8274933 100644 --- a/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerRegionException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidRepositoryTriggerRegionException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The region for the trigger target does not match the region for the repository. Triggers must be created in the same region as the target for the trigger.

diff --git a/packages/sdk-codecommit-browser/types/InvalidSortByException.ts b/packages/sdk-codecommit-browser/types/InvalidSortByException.ts index 7b3633ebf322..c8fcf0af9cd8 100644 --- a/packages/sdk-codecommit-browser/types/InvalidSortByException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidSortByException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified sort by value is not valid.

diff --git a/packages/sdk-codecommit-browser/types/InvalidSourceCommitSpecifierException.ts b/packages/sdk-codecommit-browser/types/InvalidSourceCommitSpecifierException.ts index edc4d1663990..3b0607e22ea8 100644 --- a/packages/sdk-codecommit-browser/types/InvalidSourceCommitSpecifierException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidSourceCommitSpecifierException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The source commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.

diff --git a/packages/sdk-codecommit-browser/types/InvalidTargetException.ts b/packages/sdk-codecommit-browser/types/InvalidTargetException.ts index 1bfab3d90bd6..525c4e08e6b4 100644 --- a/packages/sdk-codecommit-browser/types/InvalidTargetException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidTargetException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The target for the pull request is not valid. A target must contain the full values for the repository name, source branch, and destination branch for the pull request.

diff --git a/packages/sdk-codecommit-browser/types/InvalidTargetsException.ts b/packages/sdk-codecommit-browser/types/InvalidTargetsException.ts index 61f7c226e2a8..fbe88b704246 100644 --- a/packages/sdk-codecommit-browser/types/InvalidTargetsException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidTargetsException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The targets for the pull request is not valid or not in a valid format. Targets are a list of target objects. Each target object must contain the full values for the repository name, source branch, and destination branch for a pull request.

diff --git a/packages/sdk-codecommit-browser/types/InvalidTitleException.ts b/packages/sdk-codecommit-browser/types/InvalidTitleException.ts index 692a2d6f63ea..4f65de5d8fb0 100644 --- a/packages/sdk-codecommit-browser/types/InvalidTitleException.ts +++ b/packages/sdk-codecommit-browser/types/InvalidTitleException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.

diff --git a/packages/sdk-codecommit-browser/types/ListBranchesInput.ts b/packages/sdk-codecommit-browser/types/ListBranchesInput.ts index 6b79b574241f..e058c5834264 100644 --- a/packages/sdk-codecommit-browser/types/ListBranchesInput.ts +++ b/packages/sdk-codecommit-browser/types/ListBranchesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a list branches operation.

@@ -15,23 +16,19 @@ export interface ListBranchesInput { nextToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/ListBranchesOutput.ts b/packages/sdk-codecommit-browser/types/ListBranchesOutput.ts index 85eb177d75dd..0224ff5664d1 100644 --- a/packages/sdk-codecommit-browser/types/ListBranchesOutput.ts +++ b/packages/sdk-codecommit-browser/types/ListBranchesOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a list branches operation.

@@ -15,8 +15,7 @@ export interface ListBranchesOutput { nextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/ListPullRequestsInput.ts b/packages/sdk-codecommit-browser/types/ListPullRequestsInput.ts index bbeb02104904..535040fe1279 100644 --- a/packages/sdk-codecommit-browser/types/ListPullRequestsInput.ts +++ b/packages/sdk-codecommit-browser/types/ListPullRequestsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * ListPullRequestsInput shape @@ -30,23 +31,19 @@ export interface ListPullRequestsInput { maxResults?: number; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/ListPullRequestsOutput.ts b/packages/sdk-codecommit-browser/types/ListPullRequestsOutput.ts index acc45aa9477c..df382e92ed88 100644 --- a/packages/sdk-codecommit-browser/types/ListPullRequestsOutput.ts +++ b/packages/sdk-codecommit-browser/types/ListPullRequestsOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * ListPullRequestsOutput shape @@ -15,8 +15,7 @@ export interface ListPullRequestsOutput { nextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/ListRepositoriesInput.ts b/packages/sdk-codecommit-browser/types/ListRepositoriesInput.ts index 2b1ee1de982e..ede1380f99d5 100644 --- a/packages/sdk-codecommit-browser/types/ListRepositoriesInput.ts +++ b/packages/sdk-codecommit-browser/types/ListRepositoriesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a list repositories operation.

@@ -20,23 +21,19 @@ export interface ListRepositoriesInput { order?: 'ascending'|'descending'|string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/ListRepositoriesOutput.ts b/packages/sdk-codecommit-browser/types/ListRepositoriesOutput.ts index 8a9e76b760a0..66a9c7d593e5 100644 --- a/packages/sdk-codecommit-browser/types/ListRepositoriesOutput.ts +++ b/packages/sdk-codecommit-browser/types/ListRepositoriesOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRepositoryNameIdPair} from './_RepositoryNameIdPair'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a list repositories operation.

@@ -16,8 +16,7 @@ export interface ListRepositoriesOutput { nextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/ManualMergeRequiredException.ts b/packages/sdk-codecommit-browser/types/ManualMergeRequiredException.ts index 98378626805b..631b12047f71 100644 --- a/packages/sdk-codecommit-browser/types/ManualMergeRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/ManualMergeRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request cannot be merged automatically into the destination branch. You must manually merge the branches and resolve any conflicts.

diff --git a/packages/sdk-codecommit-browser/types/MaximumBranchesExceededException.ts b/packages/sdk-codecommit-browser/types/MaximumBranchesExceededException.ts index 2db8ab2dbc7c..0a1588e85aa5 100644 --- a/packages/sdk-codecommit-browser/types/MaximumBranchesExceededException.ts +++ b/packages/sdk-codecommit-browser/types/MaximumBranchesExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The number of branches for the trigger was exceeded.

diff --git a/packages/sdk-codecommit-browser/types/MaximumOpenPullRequestsExceededException.ts b/packages/sdk-codecommit-browser/types/MaximumOpenPullRequestsExceededException.ts index 90650f8b4ec4..c1f9e3fc13ff 100644 --- a/packages/sdk-codecommit-browser/types/MaximumOpenPullRequestsExceededException.ts +++ b/packages/sdk-codecommit-browser/types/MaximumOpenPullRequestsExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

You cannot create the pull request because the repository has too many open pull requests. The maximum number of open pull requests for a repository is 1,000. Close one or more open pull requests, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/MaximumRepositoryNamesExceededException.ts b/packages/sdk-codecommit-browser/types/MaximumRepositoryNamesExceededException.ts index e15a234ac5df..570062fd4313 100644 --- a/packages/sdk-codecommit-browser/types/MaximumRepositoryNamesExceededException.ts +++ b/packages/sdk-codecommit-browser/types/MaximumRepositoryNamesExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The maximum number of allowed repository names was exceeded. Currently, this number is 25.

diff --git a/packages/sdk-codecommit-browser/types/MaximumRepositoryTriggersExceededException.ts b/packages/sdk-codecommit-browser/types/MaximumRepositoryTriggersExceededException.ts index 851c5d46ce6a..f3198d23ab9a 100644 --- a/packages/sdk-codecommit-browser/types/MaximumRepositoryTriggersExceededException.ts +++ b/packages/sdk-codecommit-browser/types/MaximumRepositoryTriggersExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The number of triggers allowed for the repository was exceeded.

diff --git a/packages/sdk-codecommit-browser/types/MergeOptionRequiredException.ts b/packages/sdk-codecommit-browser/types/MergeOptionRequiredException.ts index eb1db3835f2e..cd720c216441 100644 --- a/packages/sdk-codecommit-browser/types/MergeOptionRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/MergeOptionRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A merge option or stategy is required, and none was provided.

diff --git a/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardInput.ts b/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardInput.ts index a3c8d1553e50..26a89da3b808 100644 --- a/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardInput.ts +++ b/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * MergePullRequestByFastForwardInput shape @@ -20,23 +21,19 @@ export interface MergePullRequestByFastForwardInput { sourceCommitId?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardOutput.ts b/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardOutput.ts index f23bd1cb1cb1..a7f28af3c82e 100644 --- a/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardOutput.ts +++ b/packages/sdk-codecommit-browser/types/MergePullRequestByFastForwardOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequest} from './_PullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * MergePullRequestByFastForwardOutput shape @@ -11,8 +11,7 @@ export interface MergePullRequestByFastForwardOutput { pullRequest?: _UnmarshalledPullRequest; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/MultipleRepositoriesInPullRequestException.ts b/packages/sdk-codecommit-browser/types/MultipleRepositoriesInPullRequestException.ts index 3d54a5b2d47d..85c933b32b2d 100644 --- a/packages/sdk-codecommit-browser/types/MultipleRepositoriesInPullRequestException.ts +++ b/packages/sdk-codecommit-browser/types/MultipleRepositoriesInPullRequestException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

You cannot include more than one repository in a pull request. Make sure you have specified only one repository name in your request, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/PathDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/PathDoesNotExistException.ts index 8eaf46aacfaa..38d8558fef54 100644 --- a/packages/sdk-codecommit-browser/types/PathDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/PathDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified path does not exist.

diff --git a/packages/sdk-codecommit-browser/types/PathRequiredException.ts b/packages/sdk-codecommit-browser/types/PathRequiredException.ts index f5ee368990cc..8f9004340488 100644 --- a/packages/sdk-codecommit-browser/types/PathRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/PathRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The filePath for a location cannot be empty or null.

diff --git a/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitInput.ts b/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitInput.ts index b7983192f4b7..c5b3458aa8c8 100644 --- a/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitInput.ts +++ b/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitInput.ts @@ -1,5 +1,6 @@ import {_Location} from './_Location'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PostCommentForComparedCommitInput shape @@ -36,23 +37,19 @@ export interface PostCommentForComparedCommitInput { clientRequestToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitOutput.ts b/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitOutput.ts index 333fc10176ce..af7f53f43027 100644 --- a/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitOutput.ts +++ b/packages/sdk-codecommit-browser/types/PostCommentForComparedCommitOutput.ts @@ -1,6 +1,6 @@ import {_UnmarshalledLocation} from './_Location'; import {_UnmarshalledComment} from './_Comment'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PostCommentForComparedCommitOutput shape @@ -42,8 +42,7 @@ export interface PostCommentForComparedCommitOutput { comment?: _UnmarshalledComment; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/PostCommentForPullRequestInput.ts b/packages/sdk-codecommit-browser/types/PostCommentForPullRequestInput.ts index b179fb94378d..6bf8fd7d8bec 100644 --- a/packages/sdk-codecommit-browser/types/PostCommentForPullRequestInput.ts +++ b/packages/sdk-codecommit-browser/types/PostCommentForPullRequestInput.ts @@ -1,5 +1,6 @@ import {_Location} from './_Location'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PostCommentForPullRequestInput shape @@ -41,23 +42,19 @@ export interface PostCommentForPullRequestInput { clientRequestToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/PostCommentForPullRequestOutput.ts b/packages/sdk-codecommit-browser/types/PostCommentForPullRequestOutput.ts index 453377815d1b..c6d3d1a75b38 100644 --- a/packages/sdk-codecommit-browser/types/PostCommentForPullRequestOutput.ts +++ b/packages/sdk-codecommit-browser/types/PostCommentForPullRequestOutput.ts @@ -1,6 +1,6 @@ import {_UnmarshalledLocation} from './_Location'; import {_UnmarshalledComment} from './_Comment'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PostCommentForPullRequestOutput shape @@ -47,8 +47,7 @@ export interface PostCommentForPullRequestOutput { comment?: _UnmarshalledComment; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/PostCommentReplyInput.ts b/packages/sdk-codecommit-browser/types/PostCommentReplyInput.ts index ccc9a10e6150..2ddb2bf61408 100644 --- a/packages/sdk-codecommit-browser/types/PostCommentReplyInput.ts +++ b/packages/sdk-codecommit-browser/types/PostCommentReplyInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PostCommentReplyInput shape @@ -20,23 +21,19 @@ export interface PostCommentReplyInput { content: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/PostCommentReplyOutput.ts b/packages/sdk-codecommit-browser/types/PostCommentReplyOutput.ts index ecf8d529ab66..bc9e509a8fc7 100644 --- a/packages/sdk-codecommit-browser/types/PostCommentReplyOutput.ts +++ b/packages/sdk-codecommit-browser/types/PostCommentReplyOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledComment} from './_Comment'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PostCommentReplyOutput shape @@ -11,8 +11,7 @@ export interface PostCommentReplyOutput { comment?: _UnmarshalledComment; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/PullRequestAlreadyClosedException.ts b/packages/sdk-codecommit-browser/types/PullRequestAlreadyClosedException.ts index b6551f24cb20..1d2d2bc329ee 100644 --- a/packages/sdk-codecommit-browser/types/PullRequestAlreadyClosedException.ts +++ b/packages/sdk-codecommit-browser/types/PullRequestAlreadyClosedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request status cannot be updated because it is already closed.

diff --git a/packages/sdk-codecommit-browser/types/PullRequestDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/PullRequestDoesNotExistException.ts index c3270f2eaec1..99a4be19f02c 100644 --- a/packages/sdk-codecommit-browser/types/PullRequestDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/PullRequestDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The pull request ID could not be found. Make sure that you have specified the correct repository name and pull request ID, and then try again.

diff --git a/packages/sdk-codecommit-browser/types/PullRequestIdRequiredException.ts b/packages/sdk-codecommit-browser/types/PullRequestIdRequiredException.ts index 9f84ed117c9c..6349247937ff 100644 --- a/packages/sdk-codecommit-browser/types/PullRequestIdRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/PullRequestIdRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A pull request ID is required, but none was provided.

diff --git a/packages/sdk-codecommit-browser/types/PullRequestStatusRequiredException.ts b/packages/sdk-codecommit-browser/types/PullRequestStatusRequiredException.ts index 62ab4201b440..e188889e3d23 100644 --- a/packages/sdk-codecommit-browser/types/PullRequestStatusRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/PullRequestStatusRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A pull request status is required, but none was provided.

diff --git a/packages/sdk-codecommit-browser/types/PutRepositoryTriggersInput.ts b/packages/sdk-codecommit-browser/types/PutRepositoryTriggersInput.ts index f84511576956..5ea18bc1f2ad 100644 --- a/packages/sdk-codecommit-browser/types/PutRepositoryTriggersInput.ts +++ b/packages/sdk-codecommit-browser/types/PutRepositoryTriggersInput.ts @@ -1,5 +1,6 @@ import {_RepositoryTrigger} from './_RepositoryTrigger'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input ofa put repository triggers operation.

@@ -16,23 +17,19 @@ export interface PutRepositoryTriggersInput { triggers: Array<_RepositoryTrigger>|Iterable<_RepositoryTrigger>; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/PutRepositoryTriggersOutput.ts b/packages/sdk-codecommit-browser/types/PutRepositoryTriggersOutput.ts index ecaf5e426377..5d589381312f 100644 --- a/packages/sdk-codecommit-browser/types/PutRepositoryTriggersOutput.ts +++ b/packages/sdk-codecommit-browser/types/PutRepositoryTriggersOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a put repository triggers operation.

@@ -10,8 +10,7 @@ export interface PutRepositoryTriggersOutput { configurationId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/ReferenceDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/ReferenceDoesNotExistException.ts index c4b62b142ef6..87d708e6d1ce 100644 --- a/packages/sdk-codecommit-browser/types/ReferenceDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/ReferenceDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified reference does not exist. You must provide a full commit ID.

diff --git a/packages/sdk-codecommit-browser/types/ReferenceNameRequiredException.ts b/packages/sdk-codecommit-browser/types/ReferenceNameRequiredException.ts index 5af6655a2e98..7961d33ec507 100644 --- a/packages/sdk-codecommit-browser/types/ReferenceNameRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/ReferenceNameRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A reference name is required, but none was provided.

diff --git a/packages/sdk-codecommit-browser/types/ReferenceTypeNotSupportedException.ts b/packages/sdk-codecommit-browser/types/ReferenceTypeNotSupportedException.ts index 393f7a8116d7..1c449b2eafae 100644 --- a/packages/sdk-codecommit-browser/types/ReferenceTypeNotSupportedException.ts +++ b/packages/sdk-codecommit-browser/types/ReferenceTypeNotSupportedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified reference is not a supported type.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryDoesNotExistException.ts b/packages/sdk-codecommit-browser/types/RepositoryDoesNotExistException.ts index 533b8a5659e2..a982876bb7c1 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryDoesNotExistException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryDoesNotExistException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified repository does not exist.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryLimitExceededException.ts b/packages/sdk-codecommit-browser/types/RepositoryLimitExceededException.ts index 8b5074ccbb48..f4aa61511ae9 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryLimitExceededException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryLimitExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A repository resource limit was exceeded.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryNameExistsException.ts b/packages/sdk-codecommit-browser/types/RepositoryNameExistsException.ts index 2d0a596a0f10..6a4b5db01e84 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryNameExistsException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryNameExistsException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The specified repository name already exists.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryNameRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryNameRequiredException.ts index 495f9b347374..6c98dfd2f48f 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryNameRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryNameRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A repository name is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryNamesRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryNamesRequiredException.ts index 2eb92f22dbcd..46dee9a914e6 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryNamesRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryNamesRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A repository names object is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryNotAssociatedWithPullRequestException.ts b/packages/sdk-codecommit-browser/types/RepositoryNotAssociatedWithPullRequestException.ts index b785287d5936..afe7992da16e 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryNotAssociatedWithPullRequestException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryNotAssociatedWithPullRequestException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The repository does not contain any pull requests with that pull request ID. Check to make sure you have provided the correct repository name for the pull request.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryTriggerBranchNameListRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryTriggerBranchNameListRequiredException.ts index 3bedccd3ef23..23c71006fd92 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryTriggerBranchNameListRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryTriggerBranchNameListRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

At least one branch name is required but was not specified in the trigger configuration.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryTriggerDestinationArnRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryTriggerDestinationArnRequiredException.ts index 410fec3c595f..3c0c751a83b1 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryTriggerDestinationArnRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryTriggerDestinationArnRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A destination ARN for the target service for the trigger is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryTriggerEventsListRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryTriggerEventsListRequiredException.ts index 6d97394967c2..1a5d57d98ad8 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryTriggerEventsListRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryTriggerEventsListRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

At least one event for the trigger is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryTriggerNameRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryTriggerNameRequiredException.ts index 45a62bad8117..d160f4c1fa15 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryTriggerNameRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryTriggerNameRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A name for the trigger is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/RepositoryTriggersListRequiredException.ts b/packages/sdk-codecommit-browser/types/RepositoryTriggersListRequiredException.ts index 9210d8385547..af23b1d7f7cd 100644 --- a/packages/sdk-codecommit-browser/types/RepositoryTriggersListRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/RepositoryTriggersListRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The list of triggers for the repository is required but was not specified.

diff --git a/packages/sdk-codecommit-browser/types/SourceAndDestinationAreSameException.ts b/packages/sdk-codecommit-browser/types/SourceAndDestinationAreSameException.ts index cb704da10e90..1d015244739d 100644 --- a/packages/sdk-codecommit-browser/types/SourceAndDestinationAreSameException.ts +++ b/packages/sdk-codecommit-browser/types/SourceAndDestinationAreSameException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The source branch and the destination branch for the pull request are the same. You must specify different branches for the source and destination.

diff --git a/packages/sdk-codecommit-browser/types/TargetRequiredException.ts b/packages/sdk-codecommit-browser/types/TargetRequiredException.ts index 71a9416cdfab..e0a7387cadf2 100644 --- a/packages/sdk-codecommit-browser/types/TargetRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/TargetRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A pull request target is required. It cannot be empty or null. A pull request target must contain the full values for the repository name, source branch, and destination branch for the pull request.

diff --git a/packages/sdk-codecommit-browser/types/TargetsRequiredException.ts b/packages/sdk-codecommit-browser/types/TargetsRequiredException.ts index c902864f7f32..397709294084 100644 --- a/packages/sdk-codecommit-browser/types/TargetsRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/TargetsRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

An array of target objects is required. It cannot be empty or null.

diff --git a/packages/sdk-codecommit-browser/types/TestRepositoryTriggersInput.ts b/packages/sdk-codecommit-browser/types/TestRepositoryTriggersInput.ts index 014b20622097..dfca57991095 100644 --- a/packages/sdk-codecommit-browser/types/TestRepositoryTriggersInput.ts +++ b/packages/sdk-codecommit-browser/types/TestRepositoryTriggersInput.ts @@ -1,5 +1,6 @@ import {_RepositoryTrigger} from './_RepositoryTrigger'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of a test repository triggers operation.

@@ -16,23 +17,19 @@ export interface TestRepositoryTriggersInput { triggers: Array<_RepositoryTrigger>|Iterable<_RepositoryTrigger>; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/TestRepositoryTriggersOutput.ts b/packages/sdk-codecommit-browser/types/TestRepositoryTriggersOutput.ts index c560ae591220..72c793eea856 100644 --- a/packages/sdk-codecommit-browser/types/TestRepositoryTriggersOutput.ts +++ b/packages/sdk-codecommit-browser/types/TestRepositoryTriggersOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRepositoryTriggerExecutionFailure} from './_RepositoryTriggerExecutionFailure'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the output of a test repository triggers operation.

@@ -16,8 +16,7 @@ export interface TestRepositoryTriggersOutput { failedExecutions?: Array<_UnmarshalledRepositoryTriggerExecutionFailure>; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/TipOfSourceReferenceIsDifferentException.ts b/packages/sdk-codecommit-browser/types/TipOfSourceReferenceIsDifferentException.ts index 3205f49cae23..5579180a6584 100644 --- a/packages/sdk-codecommit-browser/types/TipOfSourceReferenceIsDifferentException.ts +++ b/packages/sdk-codecommit-browser/types/TipOfSourceReferenceIsDifferentException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The tip of the source branch in the destination repository does not match the tip of the source branch specified in your request. The pull request might have been updated. Make sure that you have the latest changes.

diff --git a/packages/sdk-codecommit-browser/types/TipsDivergenceExceededException.ts b/packages/sdk-codecommit-browser/types/TipsDivergenceExceededException.ts index 81fdefb59add..4223bca96d60 100644 --- a/packages/sdk-codecommit-browser/types/TipsDivergenceExceededException.ts +++ b/packages/sdk-codecommit-browser/types/TipsDivergenceExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The divergence between the tips of the provided commit specifiers is too great to determine whether there might be any merge conflicts. Locally compare the specifiers using git diff or a diff tool.

diff --git a/packages/sdk-codecommit-browser/types/TitleRequiredException.ts b/packages/sdk-codecommit-browser/types/TitleRequiredException.ts index 4b30b4f7b4c9..da6cf65587df 100644 --- a/packages/sdk-codecommit-browser/types/TitleRequiredException.ts +++ b/packages/sdk-codecommit-browser/types/TitleRequiredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

A pull request title is required. It cannot be empty or null.

diff --git a/packages/sdk-codecommit-browser/types/UpdateCommentInput.ts b/packages/sdk-codecommit-browser/types/UpdateCommentInput.ts index 48be8fd14d6d..bc2a4e71af75 100644 --- a/packages/sdk-codecommit-browser/types/UpdateCommentInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateCommentInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdateCommentInput shape @@ -15,23 +16,19 @@ export interface UpdateCommentInput { content: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdateCommentOutput.ts b/packages/sdk-codecommit-browser/types/UpdateCommentOutput.ts index 32b391f24016..4c4e12f37792 100644 --- a/packages/sdk-codecommit-browser/types/UpdateCommentOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateCommentOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledComment} from './_Comment'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdateCommentOutput shape @@ -11,8 +11,7 @@ export interface UpdateCommentOutput { comment?: _UnmarshalledComment; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/UpdateDefaultBranchInput.ts b/packages/sdk-codecommit-browser/types/UpdateDefaultBranchInput.ts index e1d28cb89ad2..26e49abd1f1c 100644 --- a/packages/sdk-codecommit-browser/types/UpdateDefaultBranchInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateDefaultBranchInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of an update default branch operation.

@@ -15,23 +16,19 @@ export interface UpdateDefaultBranchInput { defaultBranchName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdateDefaultBranchOutput.ts b/packages/sdk-codecommit-browser/types/UpdateDefaultBranchOutput.ts index d2e757aa66b4..e08e923adfff 100644 --- a/packages/sdk-codecommit-browser/types/UpdateDefaultBranchOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateDefaultBranchOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdateDefaultBranchOutput shape */ export interface UpdateDefaultBranchOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionInput.ts b/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionInput.ts index 73b4a0af06ee..06210261fbb8 100644 --- a/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdatePullRequestDescriptionInput shape @@ -15,23 +16,19 @@ export interface UpdatePullRequestDescriptionInput { description: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionOutput.ts b/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionOutput.ts index 4dfa841bc631..9e66c7ddde3e 100644 --- a/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdatePullRequestDescriptionOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequest} from './_PullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdatePullRequestDescriptionOutput shape @@ -11,8 +11,7 @@ export interface UpdatePullRequestDescriptionOutput { pullRequest: _UnmarshalledPullRequest; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusInput.ts b/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusInput.ts index b18b2adc98e0..96d5c5d29a56 100644 --- a/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdatePullRequestStatusInput shape @@ -15,23 +16,19 @@ export interface UpdatePullRequestStatusInput { pullRequestStatus: 'OPEN'|'CLOSED'|string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusOutput.ts b/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusOutput.ts index 0759d7040e52..a2a2accaddec 100644 --- a/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdatePullRequestStatusOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequest} from './_PullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdatePullRequestStatusOutput shape @@ -11,8 +11,7 @@ export interface UpdatePullRequestStatusOutput { pullRequest: _UnmarshalledPullRequest; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleInput.ts b/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleInput.ts index 1845376b5fad..1683f0d53261 100644 --- a/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdatePullRequestTitleInput shape @@ -15,23 +16,19 @@ export interface UpdatePullRequestTitleInput { title: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleOutput.ts b/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleOutput.ts index 6d902e44f183..a0cef6d21a92 100644 --- a/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdatePullRequestTitleOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPullRequest} from './_PullRequest'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdatePullRequestTitleOutput shape @@ -11,8 +11,7 @@ export interface UpdatePullRequestTitleOutput { pullRequest: _UnmarshalledPullRequest; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionInput.ts b/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionInput.ts index d28e15c5e8f6..75fca15b8d22 100644 --- a/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of an update repository description operation.

@@ -15,23 +16,19 @@ export interface UpdateRepositoryDescriptionInput { repositoryDescription?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionOutput.ts b/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionOutput.ts index 18d28774e278..e753b5025651 100644 --- a/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateRepositoryDescriptionOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdateRepositoryDescriptionOutput shape */ export interface UpdateRepositoryDescriptionOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-codecommit-browser/types/UpdateRepositoryNameInput.ts b/packages/sdk-codecommit-browser/types/UpdateRepositoryNameInput.ts index 8f898623ebc7..c2b8e51380d7 100644 --- a/packages/sdk-codecommit-browser/types/UpdateRepositoryNameInput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateRepositoryNameInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Represents the input of an update repository description operation.

@@ -15,23 +16,19 @@ export interface UpdateRepositoryNameInput { newName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-codecommit-browser/types/UpdateRepositoryNameOutput.ts b/packages/sdk-codecommit-browser/types/UpdateRepositoryNameOutput.ts index 823d4200f19d..f2dc70351d03 100644 --- a/packages/sdk-codecommit-browser/types/UpdateRepositoryNameOutput.ts +++ b/packages/sdk-codecommit-browser/types/UpdateRepositoryNameOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UpdateRepositoryNameOutput shape */ export interface UpdateRepositoryNameOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/CognitoIdentityClient.ts b/packages/sdk-cognito-identity-browser/CognitoIdentityClient.ts index 6f10aef99ac0..ed17014914a0 100644 --- a/packages/sdk-cognito-identity-browser/CognitoIdentityClient.ts +++ b/packages/sdk-cognito-identity-browser/CognitoIdentityClient.ts @@ -28,7 +28,7 @@ export class CognitoIdentityClient { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< InputTypesUnion, OutputTypesUnion, - ReadableStream + Blob >(); constructor(configuration: CognitoIdentityConfiguration) { @@ -75,19 +75,19 @@ export class CognitoIdentityClient { send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion - >(command: __aws_types.Command): Promise; + >(command: __aws_types.Command): Promise; send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion >( - command: __aws_types.Command, + command: __aws_types.Command, cb: (err: any, data?: OutputType) => void ): void; send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion >( - command: __aws_types.Command, + command: __aws_types.Command, cb?: (err: any, data?: OutputType) => void ): Promise|void { const handler = command.resolveMiddleware( diff --git a/packages/sdk-cognito-identity-browser/CognitoIdentityConfiguration.ts b/packages/sdk-cognito-identity-browser/CognitoIdentityConfiguration.ts index f782d1e7c51c..ec7a274dd1c9 100644 --- a/packages/sdk-cognito-identity-browser/CognitoIdentityConfiguration.ts +++ b/packages/sdk-cognito-identity-browser/CognitoIdentityConfiguration.ts @@ -50,12 +50,12 @@ export interface CognitoIdentityConfiguration { /** * The handler to use as the core of the client's middleware stack */ - handler?: __aws_types.Terminalware; + handler?: __aws_types.Terminalware; /** * The HTTP handler to use */ - httpHandler?: __aws_types.HttpHandler; + httpHandler?: __aws_types.HttpHandler; /** * The maximum number of redirects to follow for a service request. Set to `0` to disable retries. @@ -83,7 +83,7 @@ export interface CognitoIdentityConfiguration { retryDecider?: __aws_types.RetryDecider; /** - * A constructor that can calculate a SHA-256 HMAC + * A constructor for a class implementing the @aws/types.Hash interface that computes the SHA-256 HMAC or checksum of a string or binary buffer */ sha256?: __aws_types.HashConstructor; @@ -105,7 +105,7 @@ export interface CognitoIdentityConfiguration { /** * A function that converts a stream into an array of bytes. */ - streamCollector?: __aws_types.StreamCollector; + streamCollector?: __aws_types.StreamCollector; /** * The function that will be used to convert strings into HTTP endpoints @@ -137,12 +137,12 @@ export interface CognitoIdentityResolvableConfiguration extends CognitoIdentityC /** * The parser to use when converting HTTP responses to SDK output types */ - parser: __aws_types.ResponseParser; + parser: __aws_types.ResponseParser; /** * The serializer to use when converting SDK input to HTTP requests */ - serializer: __aws_types.Provider<__aws_types.RequestSerializer>; + serializer: __aws_types.Provider<__aws_types.RequestSerializer>; } export interface CognitoIdentityResolvedConfiguration extends CognitoIdentityConfiguration { @@ -160,19 +160,19 @@ export interface CognitoIdentityResolvedConfiguration extends CognitoIdentityCon endpointProvider: any; - handler: __aws_types.Terminalware; + handler: __aws_types.Terminalware; - httpHandler: __aws_types.HttpHandler; + httpHandler: __aws_types.HttpHandler; maxRedirects: number; maxRetries: number; - parser: __aws_types.ResponseParser; + parser: __aws_types.ResponseParser; region: __aws_types.Provider; - serializer: __aws_types.Provider<__aws_types.RequestSerializer>; + serializer: __aws_types.Provider<__aws_types.RequestSerializer>; sha256: __aws_types.HashConstructor; @@ -182,7 +182,7 @@ export interface CognitoIdentityResolvedConfiguration extends CognitoIdentityCon sslEnabled: boolean; - streamCollector: __aws_types.StreamCollector; + streamCollector: __aws_types.StreamCollector; urlParser: __aws_types.UrlParser; @@ -301,7 +301,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< } ) => { const promisified = configuration.endpoint() - .then(endpoint => new __aws_protocol_json_rpc.JsonRpcSerializer( + .then(endpoint => new __aws_protocol_json_rpc.JsonRpcSerializer( endpoint, new __aws_json_builder.JsonBuilder( configuration.base64Encoder, @@ -311,7 +311,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< return () => promisified; }, apply: ( - serializerProvider: __aws_types.Provider<__aws_types.RequestSerializer>, + serializerProvider: __aws_types.Provider<__aws_types.RequestSerializer>, configuration: object, middlewareStack: __aws_types.MiddlewareStack ): void => { @@ -330,7 +330,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< defaultProvider: ( configuration: { base64Decoder: __aws_types.Decoder, - streamCollector: __aws_types.StreamCollector, + streamCollector: __aws_types.StreamCollector, utf8Encoder: __aws_types.Encoder } ) => new __aws_protocol_json_rpc.JsonRpcParser( @@ -354,10 +354,10 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< required: false, defaultProvider: ( configuration: { - httpHandler: __aws_types.HttpHandler, - parser: __aws_types.ResponseParser, + httpHandler: __aws_types.HttpHandler, + parser: __aws_types.ResponseParser, } - ) => __aws_core_handler.coreHandler( + ) => __aws_core_handler.coreHandler( configuration.httpHandler, configuration.parser ) diff --git a/packages/sdk-cognito-identity-browser/commands/CreateIdentityPoolCommand.ts b/packages/sdk-cognito-identity-browser/commands/CreateIdentityPoolCommand.ts index cd7eefc9549b..9d6ade5c24cd 100644 --- a/packages/sdk-cognito-identity-browser/commands/CreateIdentityPoolCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/CreateIdentityPoolCommand.ts @@ -13,18 +13,18 @@ export class CreateIdentityPoolCommand implements __aws_types.Command< OutputTypesUnion, CreateIdentityPoolOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CreateIdentityPoolInput, CreateIdentityPoolOutput, - ReadableStream + Blob >(); constructor(readonly input: CreateIdentityPoolInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/DeleteIdentitiesCommand.ts b/packages/sdk-cognito-identity-browser/commands/DeleteIdentitiesCommand.ts index 9baada44f249..924879df3943 100644 --- a/packages/sdk-cognito-identity-browser/commands/DeleteIdentitiesCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/DeleteIdentitiesCommand.ts @@ -13,18 +13,18 @@ export class DeleteIdentitiesCommand implements __aws_types.Command< OutputTypesUnion, DeleteIdentitiesOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteIdentitiesInput, DeleteIdentitiesOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteIdentitiesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/DeleteIdentityPoolCommand.ts b/packages/sdk-cognito-identity-browser/commands/DeleteIdentityPoolCommand.ts index 7d5c1d6badcd..22db2e6a4cbe 100644 --- a/packages/sdk-cognito-identity-browser/commands/DeleteIdentityPoolCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/DeleteIdentityPoolCommand.ts @@ -13,18 +13,18 @@ export class DeleteIdentityPoolCommand implements __aws_types.Command< OutputTypesUnion, DeleteIdentityPoolOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteIdentityPoolInput, DeleteIdentityPoolOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteIdentityPoolInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/DescribeIdentityCommand.ts b/packages/sdk-cognito-identity-browser/commands/DescribeIdentityCommand.ts index 85bfffef95a9..967087b5be65 100644 --- a/packages/sdk-cognito-identity-browser/commands/DescribeIdentityCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/DescribeIdentityCommand.ts @@ -13,18 +13,18 @@ export class DescribeIdentityCommand implements __aws_types.Command< OutputTypesUnion, DescribeIdentityOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DescribeIdentityInput, DescribeIdentityOutput, - ReadableStream + Blob >(); constructor(readonly input: DescribeIdentityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/DescribeIdentityPoolCommand.ts b/packages/sdk-cognito-identity-browser/commands/DescribeIdentityPoolCommand.ts index e7fc1f9ccdc9..7e60fcec144f 100644 --- a/packages/sdk-cognito-identity-browser/commands/DescribeIdentityPoolCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/DescribeIdentityPoolCommand.ts @@ -13,18 +13,18 @@ export class DescribeIdentityPoolCommand implements __aws_types.Command< OutputTypesUnion, DescribeIdentityPoolOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DescribeIdentityPoolInput, DescribeIdentityPoolOutput, - ReadableStream + Blob >(); constructor(readonly input: DescribeIdentityPoolInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/GetCredentialsForIdentityCommand.ts b/packages/sdk-cognito-identity-browser/commands/GetCredentialsForIdentityCommand.ts index 1c3ad6a0820b..1f08805ee99a 100644 --- a/packages/sdk-cognito-identity-browser/commands/GetCredentialsForIdentityCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/GetCredentialsForIdentityCommand.ts @@ -13,18 +13,18 @@ export class GetCredentialsForIdentityCommand implements __aws_types.Command< OutputTypesUnion, GetCredentialsForIdentityOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, - ReadableStream + Blob >(); constructor(readonly input: GetCredentialsForIdentityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/GetIdCommand.ts b/packages/sdk-cognito-identity-browser/commands/GetIdCommand.ts index 2b6663a97669..b349e771722f 100644 --- a/packages/sdk-cognito-identity-browser/commands/GetIdCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/GetIdCommand.ts @@ -13,18 +13,18 @@ export class GetIdCommand implements __aws_types.Command< OutputTypesUnion, GetIdOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetIdInput, GetIdOutput, - ReadableStream + Blob >(); constructor(readonly input: GetIdInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/GetIdentityPoolRolesCommand.ts b/packages/sdk-cognito-identity-browser/commands/GetIdentityPoolRolesCommand.ts index eecf3c671644..344954f72db5 100644 --- a/packages/sdk-cognito-identity-browser/commands/GetIdentityPoolRolesCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/GetIdentityPoolRolesCommand.ts @@ -13,18 +13,18 @@ export class GetIdentityPoolRolesCommand implements __aws_types.Command< OutputTypesUnion, GetIdentityPoolRolesOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetIdentityPoolRolesInput, GetIdentityPoolRolesOutput, - ReadableStream + Blob >(); constructor(readonly input: GetIdentityPoolRolesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenCommand.ts b/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenCommand.ts index cf44e3cc4800..be95215f5198 100644 --- a/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenCommand.ts @@ -13,18 +13,18 @@ export class GetOpenIdTokenCommand implements __aws_types.Command< OutputTypesUnion, GetOpenIdTokenOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetOpenIdTokenInput, GetOpenIdTokenOutput, - ReadableStream + Blob >(); constructor(readonly input: GetOpenIdTokenInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts b/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts index 543760ed32b8..d3b04dd9905a 100644 --- a/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts @@ -13,18 +13,18 @@ export class GetOpenIdTokenForDeveloperIdentityCommand implements __aws_types.Co OutputTypesUnion, GetOpenIdTokenForDeveloperIdentityOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetOpenIdTokenForDeveloperIdentityInput, GetOpenIdTokenForDeveloperIdentityOutput, - ReadableStream + Blob >(); constructor(readonly input: GetOpenIdTokenForDeveloperIdentityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/ListIdentitiesCommand.ts b/packages/sdk-cognito-identity-browser/commands/ListIdentitiesCommand.ts index b0aa0d802181..54307b876e07 100644 --- a/packages/sdk-cognito-identity-browser/commands/ListIdentitiesCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/ListIdentitiesCommand.ts @@ -13,18 +13,18 @@ export class ListIdentitiesCommand implements __aws_types.Command< OutputTypesUnion, ListIdentitiesOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListIdentitiesInput, ListIdentitiesOutput, - ReadableStream + Blob >(); constructor(readonly input: ListIdentitiesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/ListIdentityPoolsCommand.ts b/packages/sdk-cognito-identity-browser/commands/ListIdentityPoolsCommand.ts index ea2f6a8083f6..7c98dfc011ee 100644 --- a/packages/sdk-cognito-identity-browser/commands/ListIdentityPoolsCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/ListIdentityPoolsCommand.ts @@ -13,18 +13,18 @@ export class ListIdentityPoolsCommand implements __aws_types.Command< OutputTypesUnion, ListIdentityPoolsOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListIdentityPoolsInput, ListIdentityPoolsOutput, - ReadableStream + Blob >(); constructor(readonly input: ListIdentityPoolsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/LookupDeveloperIdentityCommand.ts b/packages/sdk-cognito-identity-browser/commands/LookupDeveloperIdentityCommand.ts index 52432ef8a727..6c59e7dec1fc 100644 --- a/packages/sdk-cognito-identity-browser/commands/LookupDeveloperIdentityCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/LookupDeveloperIdentityCommand.ts @@ -13,18 +13,18 @@ export class LookupDeveloperIdentityCommand implements __aws_types.Command< OutputTypesUnion, LookupDeveloperIdentityOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< LookupDeveloperIdentityInput, LookupDeveloperIdentityOutput, - ReadableStream + Blob >(); constructor(readonly input: LookupDeveloperIdentityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/MergeDeveloperIdentitiesCommand.ts b/packages/sdk-cognito-identity-browser/commands/MergeDeveloperIdentitiesCommand.ts index bd903548a07e..644b486b10d0 100644 --- a/packages/sdk-cognito-identity-browser/commands/MergeDeveloperIdentitiesCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/MergeDeveloperIdentitiesCommand.ts @@ -13,18 +13,18 @@ export class MergeDeveloperIdentitiesCommand implements __aws_types.Command< OutputTypesUnion, MergeDeveloperIdentitiesOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< MergeDeveloperIdentitiesInput, MergeDeveloperIdentitiesOutput, - ReadableStream + Blob >(); constructor(readonly input: MergeDeveloperIdentitiesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/SetIdentityPoolRolesCommand.ts b/packages/sdk-cognito-identity-browser/commands/SetIdentityPoolRolesCommand.ts index 057231415a06..5f8c9994eea8 100644 --- a/packages/sdk-cognito-identity-browser/commands/SetIdentityPoolRolesCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/SetIdentityPoolRolesCommand.ts @@ -13,18 +13,18 @@ export class SetIdentityPoolRolesCommand implements __aws_types.Command< OutputTypesUnion, SetIdentityPoolRolesOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< SetIdentityPoolRolesInput, SetIdentityPoolRolesOutput, - ReadableStream + Blob >(); constructor(readonly input: SetIdentityPoolRolesInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/UnlinkDeveloperIdentityCommand.ts b/packages/sdk-cognito-identity-browser/commands/UnlinkDeveloperIdentityCommand.ts index 810a53f49384..a11e879207c1 100644 --- a/packages/sdk-cognito-identity-browser/commands/UnlinkDeveloperIdentityCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/UnlinkDeveloperIdentityCommand.ts @@ -13,18 +13,18 @@ export class UnlinkDeveloperIdentityCommand implements __aws_types.Command< OutputTypesUnion, UnlinkDeveloperIdentityOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UnlinkDeveloperIdentityInput, UnlinkDeveloperIdentityOutput, - ReadableStream + Blob >(); constructor(readonly input: UnlinkDeveloperIdentityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/UnlinkIdentityCommand.ts b/packages/sdk-cognito-identity-browser/commands/UnlinkIdentityCommand.ts index 187e9a205c1b..31d34d4069f5 100644 --- a/packages/sdk-cognito-identity-browser/commands/UnlinkIdentityCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/UnlinkIdentityCommand.ts @@ -13,18 +13,18 @@ export class UnlinkIdentityCommand implements __aws_types.Command< OutputTypesUnion, UnlinkIdentityOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UnlinkIdentityInput, UnlinkIdentityOutput, - ReadableStream + Blob >(); constructor(readonly input: UnlinkIdentityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/commands/UpdateIdentityPoolCommand.ts b/packages/sdk-cognito-identity-browser/commands/UpdateIdentityPoolCommand.ts index 70e1cf9c2fe0..cae5b1c81a3f 100644 --- a/packages/sdk-cognito-identity-browser/commands/UpdateIdentityPoolCommand.ts +++ b/packages/sdk-cognito-identity-browser/commands/UpdateIdentityPoolCommand.ts @@ -13,18 +13,18 @@ export class UpdateIdentityPoolCommand implements __aws_types.Command< OutputTypesUnion, UpdateIdentityPoolOutput, CognitoIdentityResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UpdateIdentityPoolInput, UpdateIdentityPoolOutput, - ReadableStream + Blob >(); constructor(readonly input: UpdateIdentityPoolInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: CognitoIdentityResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-cognito-identity-browser/types/ConcurrentModificationException.ts b/packages/sdk-cognito-identity-browser/types/ConcurrentModificationException.ts index 0285fdf18ee4..586f82e1ca4c 100644 --- a/packages/sdk-cognito-identity-browser/types/ConcurrentModificationException.ts +++ b/packages/sdk-cognito-identity-browser/types/ConcurrentModificationException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown if there are parallel requests to modify a resource.

diff --git a/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolInput.ts b/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolInput.ts index 646a2a6d7695..99f27bea9e52 100644 --- a/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolInput.ts +++ b/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolInput.ts @@ -1,5 +1,6 @@ import {_CognitoIdentityProvider} from './_CognitoIdentityProvider'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the CreateIdentityPool action.

@@ -41,23 +42,19 @@ export interface CreateIdentityPoolInput { SamlProviderARNs?: Array|Iterable; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolOutput.ts b/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolOutput.ts index 423108403921..75bfdd0a4b67 100644 --- a/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/CreateIdentityPoolOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCognitoIdentityProvider} from './_CognitoIdentityProvider'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

An object representing an Amazon Cognito identity pool.

@@ -46,8 +46,7 @@ export interface CreateIdentityPoolOutput { SamlProviderARNs?: Array; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesInput.ts b/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesInput.ts index 1bb6315254bb..c0d33b7180e5 100644 --- a/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesInput.ts +++ b/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the DeleteIdentities action.

@@ -10,23 +11,19 @@ export interface DeleteIdentitiesInput { IdentityIdsToDelete: Array|Iterable; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesOutput.ts b/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesOutput.ts index 86b5f9997f92..f9b36e4457e2 100644 --- a/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/DeleteIdentitiesOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledUnprocessedIdentityId} from './_UnprocessedIdentityId'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful DeleteIdentities operation.

@@ -11,8 +11,7 @@ export interface DeleteIdentitiesOutput { UnprocessedIdentityIds?: Array<_UnmarshalledUnprocessedIdentityId>; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolInput.ts b/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolInput.ts index 632b475ee6dd..30e76d7214d5 100644 --- a/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolInput.ts +++ b/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the DeleteIdentityPool action.

@@ -10,23 +11,19 @@ export interface DeleteIdentityPoolInput { IdentityPoolId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolOutput.ts b/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolOutput.ts index e2931c1c0add..f16e350a7dfe 100644 --- a/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/DeleteIdentityPoolOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteIdentityPoolOutput shape */ export interface DeleteIdentityPoolOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/DescribeIdentityInput.ts b/packages/sdk-cognito-identity-browser/types/DescribeIdentityInput.ts index 69d43bf9c94a..bc23b7aa7ea9 100644 --- a/packages/sdk-cognito-identity-browser/types/DescribeIdentityInput.ts +++ b/packages/sdk-cognito-identity-browser/types/DescribeIdentityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the DescribeIdentity action.

@@ -10,23 +11,19 @@ export interface DescribeIdentityInput { IdentityId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/DescribeIdentityOutput.ts b/packages/sdk-cognito-identity-browser/types/DescribeIdentityOutput.ts index 420816252aaf..446d516d92f4 100644 --- a/packages/sdk-cognito-identity-browser/types/DescribeIdentityOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/DescribeIdentityOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

A description of the identity.

@@ -25,8 +25,7 @@ export interface DescribeIdentityOutput { LastModifiedDate?: Date; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolInput.ts b/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolInput.ts index cf7afe511775..e9644da12de6 100644 --- a/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolInput.ts +++ b/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the DescribeIdentityPool action.

@@ -10,23 +11,19 @@ export interface DescribeIdentityPoolInput { IdentityPoolId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolOutput.ts b/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolOutput.ts index 4855f0bd607b..3823b5053cf4 100644 --- a/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/DescribeIdentityPoolOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCognitoIdentityProvider} from './_CognitoIdentityProvider'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

An object representing an Amazon Cognito identity pool.

@@ -46,8 +46,7 @@ export interface DescribeIdentityPoolOutput { SamlProviderARNs?: Array; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/DeveloperUserAlreadyRegisteredException.ts b/packages/sdk-cognito-identity-browser/types/DeveloperUserAlreadyRegisteredException.ts index b9fe29e6a937..cdfe3cb76205 100644 --- a/packages/sdk-cognito-identity-browser/types/DeveloperUserAlreadyRegisteredException.ts +++ b/packages/sdk-cognito-identity-browser/types/DeveloperUserAlreadyRegisteredException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

The provided developer user identifier is already registered with Cognito under a different identity ID.

diff --git a/packages/sdk-cognito-identity-browser/types/ExternalServiceException.ts b/packages/sdk-cognito-identity-browser/types/ExternalServiceException.ts index b2c9ccf7bd39..0e11f8a93130 100644 --- a/packages/sdk-cognito-identity-browser/types/ExternalServiceException.ts +++ b/packages/sdk-cognito-identity-browser/types/ExternalServiceException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

An exception thrown when a dependent service such as Facebook or Twitter is not responding

diff --git a/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityInput.ts b/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityInput.ts index 27aa78fe6eda..7f66679b1a5b 100644 --- a/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityInput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the GetCredentialsForIdentity action.

@@ -20,23 +21,19 @@ export interface GetCredentialsForIdentityInput { CustomRoleArn?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityOutput.ts b/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityOutput.ts index 71a1952eb273..7bb39616778a 100644 --- a/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetCredentialsForIdentityOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCredentials} from './_Credentials'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful GetCredentialsForIdentity operation.

@@ -16,8 +16,7 @@ export interface GetCredentialsForIdentityOutput { Credentials?: _UnmarshalledCredentials; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/GetIdInput.ts b/packages/sdk-cognito-identity-browser/types/GetIdInput.ts index f9429c7e8d19..0081037541af 100644 --- a/packages/sdk-cognito-identity-browser/types/GetIdInput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetIdInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the GetId action.

@@ -20,23 +21,19 @@ export interface GetIdInput { Logins?: {[key: string]: string}|Iterable<[string, string]>; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/GetIdOutput.ts b/packages/sdk-cognito-identity-browser/types/GetIdOutput.ts index 193bb12e555c..a8f780828ad5 100644 --- a/packages/sdk-cognito-identity-browser/types/GetIdOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetIdOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a GetId request.

@@ -10,8 +10,7 @@ export interface GetIdOutput { IdentityId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesInput.ts b/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesInput.ts index b2f3503f58ed..78850d185cb2 100644 --- a/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesInput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the GetIdentityPoolRoles action.

@@ -10,23 +11,19 @@ export interface GetIdentityPoolRolesInput { IdentityPoolId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesOutput.ts b/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesOutput.ts index 84b284d652c2..6a73c1ec411c 100644 --- a/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetIdentityPoolRolesOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledRoleMapping} from './_RoleMapping'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful GetIdentityPoolRoles operation.

@@ -21,8 +21,7 @@ export interface GetIdentityPoolRolesOutput { RoleMappings?: {[key: string]: _UnmarshalledRoleMapping}; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityInput.ts b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityInput.ts index 8af370d3b0f8..a8486627d7bf 100644 --- a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityInput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the GetOpenIdTokenForDeveloperIdentity action.

@@ -25,23 +26,19 @@ export interface GetOpenIdTokenForDeveloperIdentityInput { TokenDuration?: number; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityOutput.ts b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityOutput.ts index ec3f12a8f469..0e4677d3747d 100644 --- a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenForDeveloperIdentityOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful GetOpenIdTokenForDeveloperIdentity request.

@@ -15,8 +15,7 @@ export interface GetOpenIdTokenForDeveloperIdentityOutput { Token?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenInput.ts b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenInput.ts index 3e5e6f7717c4..28e26199409e 100644 --- a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenInput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the GetOpenIdToken action.

@@ -15,23 +16,19 @@ export interface GetOpenIdTokenInput { Logins?: {[key: string]: string}|Iterable<[string, string]>; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenOutput.ts b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenOutput.ts index d2698b1e03b9..97f290198759 100644 --- a/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/GetOpenIdTokenOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful GetOpenIdToken request.

@@ -15,8 +15,7 @@ export interface GetOpenIdTokenOutput { Token?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/InternalErrorException.ts b/packages/sdk-cognito-identity-browser/types/InternalErrorException.ts index aec4e9560727..30e8bb5cae4a 100644 --- a/packages/sdk-cognito-identity-browser/types/InternalErrorException.ts +++ b/packages/sdk-cognito-identity-browser/types/InternalErrorException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown when the service encounters an error during processing the request.

diff --git a/packages/sdk-cognito-identity-browser/types/InvalidIdentityPoolConfigurationException.ts b/packages/sdk-cognito-identity-browser/types/InvalidIdentityPoolConfigurationException.ts index 37308b190c33..1b0e62d13608 100644 --- a/packages/sdk-cognito-identity-browser/types/InvalidIdentityPoolConfigurationException.ts +++ b/packages/sdk-cognito-identity-browser/types/InvalidIdentityPoolConfigurationException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.

diff --git a/packages/sdk-cognito-identity-browser/types/InvalidParameterException.ts b/packages/sdk-cognito-identity-browser/types/InvalidParameterException.ts index a57c22918ff3..e5572b66b139 100644 --- a/packages/sdk-cognito-identity-browser/types/InvalidParameterException.ts +++ b/packages/sdk-cognito-identity-browser/types/InvalidParameterException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown for missing or bad input parameter(s).

diff --git a/packages/sdk-cognito-identity-browser/types/LimitExceededException.ts b/packages/sdk-cognito-identity-browser/types/LimitExceededException.ts index 9e04410b82bd..3cc03ed66823 100644 --- a/packages/sdk-cognito-identity-browser/types/LimitExceededException.ts +++ b/packages/sdk-cognito-identity-browser/types/LimitExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown when the total number of user pools has exceeded a preset limit.

diff --git a/packages/sdk-cognito-identity-browser/types/ListIdentitiesInput.ts b/packages/sdk-cognito-identity-browser/types/ListIdentitiesInput.ts index aa9cfffa7262..86c9002edf23 100644 --- a/packages/sdk-cognito-identity-browser/types/ListIdentitiesInput.ts +++ b/packages/sdk-cognito-identity-browser/types/ListIdentitiesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the ListIdentities action.

@@ -25,23 +26,19 @@ export interface ListIdentitiesInput { HideDisabled?: boolean; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/ListIdentitiesOutput.ts b/packages/sdk-cognito-identity-browser/types/ListIdentitiesOutput.ts index 3d2c67d6a3ae..bafe246894ce 100644 --- a/packages/sdk-cognito-identity-browser/types/ListIdentitiesOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/ListIdentitiesOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledIdentityDescription} from './_IdentityDescription'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The response to a ListIdentities request.

@@ -21,8 +21,7 @@ export interface ListIdentitiesOutput { NextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsInput.ts b/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsInput.ts index 2698478a4a9a..f2bd867a95eb 100644 --- a/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsInput.ts +++ b/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the ListIdentityPools action.

@@ -15,23 +16,19 @@ export interface ListIdentityPoolsInput { NextToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsOutput.ts b/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsOutput.ts index 06fc94101c7a..02171d520376 100644 --- a/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/ListIdentityPoolsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledIdentityPoolShortDescription} from './_IdentityPoolShortDescription'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The result of a successful ListIdentityPools action.

@@ -16,8 +16,7 @@ export interface ListIdentityPoolsOutput { NextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityInput.ts b/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityInput.ts index f8c55e1b9c35..75c62fa59435 100644 --- a/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityInput.ts +++ b/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the LookupDeveloperIdentityInput action.

@@ -30,23 +31,19 @@ export interface LookupDeveloperIdentityInput { NextToken?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityOutput.ts b/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityOutput.ts index c2975f226dea..26c60a9b15f5 100644 --- a/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/LookupDeveloperIdentityOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful LookupDeveloperIdentity action.

@@ -20,8 +20,7 @@ export interface LookupDeveloperIdentityOutput { NextToken?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesInput.ts b/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesInput.ts index e1437f3afab1..87ab12cebab2 100644 --- a/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesInput.ts +++ b/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the MergeDeveloperIdentities action.

@@ -25,23 +26,19 @@ export interface MergeDeveloperIdentitiesInput { IdentityPoolId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesOutput.ts b/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesOutput.ts index 30a51a3f3163..fc99111fa706 100644 --- a/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/MergeDeveloperIdentitiesOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Returned in response to a successful MergeDeveloperIdentities action.

@@ -10,8 +10,7 @@ export interface MergeDeveloperIdentitiesOutput { IdentityId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/NotAuthorizedException.ts b/packages/sdk-cognito-identity-browser/types/NotAuthorizedException.ts index 794345d62181..037572faf0c6 100644 --- a/packages/sdk-cognito-identity-browser/types/NotAuthorizedException.ts +++ b/packages/sdk-cognito-identity-browser/types/NotAuthorizedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown when a user is not authorized to access the requested resource.

diff --git a/packages/sdk-cognito-identity-browser/types/ResourceConflictException.ts b/packages/sdk-cognito-identity-browser/types/ResourceConflictException.ts index f5938eb780b3..405651629a92 100644 --- a/packages/sdk-cognito-identity-browser/types/ResourceConflictException.ts +++ b/packages/sdk-cognito-identity-browser/types/ResourceConflictException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown when a user tries to use a login which is already linked to another account.

diff --git a/packages/sdk-cognito-identity-browser/types/ResourceNotFoundException.ts b/packages/sdk-cognito-identity-browser/types/ResourceNotFoundException.ts index 3f46657db8c4..8476cb2e8a09 100644 --- a/packages/sdk-cognito-identity-browser/types/ResourceNotFoundException.ts +++ b/packages/sdk-cognito-identity-browser/types/ResourceNotFoundException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown when the requested resource (for example, a dataset or record) does not exist.

diff --git a/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesInput.ts b/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesInput.ts index 2e5755993804..4ca03b336dc8 100644 --- a/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesInput.ts +++ b/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesInput.ts @@ -1,5 +1,6 @@ import {_RoleMapping} from './_RoleMapping'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the SetIdentityPoolRoles action.

@@ -21,23 +22,19 @@ export interface SetIdentityPoolRolesInput { RoleMappings?: {[key: string]: _RoleMapping}|Iterable<[string, _RoleMapping]>; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesOutput.ts b/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesOutput.ts index 5ac2c3c9276c..e527ec156865 100644 --- a/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/SetIdentityPoolRolesOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * SetIdentityPoolRolesOutput shape */ export interface SetIdentityPoolRolesOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/TooManyRequestsException.ts b/packages/sdk-cognito-identity-browser/types/TooManyRequestsException.ts index 7d36760a1f22..c54094be0985 100644 --- a/packages/sdk-cognito-identity-browser/types/TooManyRequestsException.ts +++ b/packages/sdk-cognito-identity-browser/types/TooManyRequestsException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Thrown when a request is throttled.

diff --git a/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityInput.ts b/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityInput.ts index 525a5a4d0445..01991858f846 100644 --- a/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityInput.ts +++ b/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the UnlinkDeveloperIdentity action.

@@ -25,23 +26,19 @@ export interface UnlinkDeveloperIdentityInput { DeveloperUserIdentifier: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityOutput.ts b/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityOutput.ts index 67b9adc0ea34..ea41e6dfd9da 100644 --- a/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/UnlinkDeveloperIdentityOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UnlinkDeveloperIdentityOutput shape */ export interface UnlinkDeveloperIdentityOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/UnlinkIdentityInput.ts b/packages/sdk-cognito-identity-browser/types/UnlinkIdentityInput.ts index 52e5b6a0728e..a387815008a6 100644 --- a/packages/sdk-cognito-identity-browser/types/UnlinkIdentityInput.ts +++ b/packages/sdk-cognito-identity-browser/types/UnlinkIdentityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input to the UnlinkIdentity action.

@@ -20,23 +21,19 @@ export interface UnlinkIdentityInput { LoginsToRemove: Array|Iterable; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/UnlinkIdentityOutput.ts b/packages/sdk-cognito-identity-browser/types/UnlinkIdentityOutput.ts index f2045f7ae3c0..c9f63add505d 100644 --- a/packages/sdk-cognito-identity-browser/types/UnlinkIdentityOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/UnlinkIdentityOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * UnlinkIdentityOutput shape */ export interface UnlinkIdentityOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolInput.ts b/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolInput.ts index 562b6b88f05d..f329f6dd0cca 100644 --- a/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolInput.ts +++ b/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolInput.ts @@ -1,5 +1,6 @@ import {_CognitoIdentityProvider} from './_CognitoIdentityProvider'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

An object representing an Amazon Cognito identity pool.

@@ -46,23 +47,19 @@ export interface UpdateIdentityPoolInput { SamlProviderARNs?: Array|Iterable; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolOutput.ts b/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolOutput.ts index 6d02dda6fdfc..6c690988e13e 100644 --- a/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolOutput.ts +++ b/packages/sdk-cognito-identity-browser/types/UpdateIdentityPoolOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledCognitoIdentityProvider} from './_CognitoIdentityProvider'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

An object representing an Amazon Cognito identity pool.

@@ -46,8 +46,7 @@ export interface UpdateIdentityPoolOutput { SamlProviderARNs?: Array; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/.gitignore b/packages/sdk-glacier-browser/.gitignore new file mode 100644 index 000000000000..8da67f270663 --- /dev/null +++ b/packages/sdk-glacier-browser/.gitignore @@ -0,0 +1,11 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +*.tgz +*.log +package-lock.json + +*.d.ts +*.js +*.js.map \ No newline at end of file diff --git a/packages/sdk-glacier-browser/.npmignore b/packages/sdk-glacier-browser/.npmignore new file mode 100644 index 000000000000..c63a94e488a0 --- /dev/null +++ b/packages/sdk-glacier-browser/.npmignore @@ -0,0 +1,4 @@ +/coverage/ +/docs/ +*.ts +tsconfig.test.json \ No newline at end of file diff --git a/packages/sdk-glacier-browser/GlacierClient.ts b/packages/sdk-glacier-browser/GlacierClient.ts index bed9de80016d..02a87509adee 100644 --- a/packages/sdk-glacier-browser/GlacierClient.ts +++ b/packages/sdk-glacier-browser/GlacierClient.ts @@ -31,7 +31,7 @@ export class GlacierClient { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< InputTypesUnion, OutputTypesUnion, - ReadableStream + Blob >(); constructor(configuration: GlacierConfiguration) { @@ -110,19 +110,19 @@ export class GlacierClient { send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion - >(command: __aws_types.Command): Promise; + >(command: __aws_types.Command): Promise; send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion >( - command: __aws_types.Command, + command: __aws_types.Command, cb: (err: any, data?: OutputType) => void ): void; send< InputType extends InputTypesUnion, OutputType extends OutputTypesUnion >( - command: __aws_types.Command, + command: __aws_types.Command, cb?: (err: any, data?: OutputType) => void ): Promise|void { const handler = command.resolveMiddleware( diff --git a/packages/sdk-glacier-browser/GlacierConfiguration.ts b/packages/sdk-glacier-browser/GlacierConfiguration.ts index 9ae8b1664755..d8ad90c3d477 100644 --- a/packages/sdk-glacier-browser/GlacierConfiguration.ts +++ b/packages/sdk-glacier-browser/GlacierConfiguration.ts @@ -50,12 +50,12 @@ export interface GlacierConfiguration { /** * The handler to use as the core of the client's middleware stack */ - handler?: __aws_types.Terminalware; + handler?: __aws_types.Terminalware; /** * The HTTP handler to use */ - httpHandler?: __aws_types.HttpHandler; + httpHandler?: __aws_types.HttpHandler; /** * The maximum number of redirects to follow for a service request. Set to `0` to disable retries. @@ -83,7 +83,7 @@ export interface GlacierConfiguration { retryDecider?: __aws_types.RetryDecider; /** - * A constructor that can calculate a SHA-256 HMAC + * A constructor for a class implementing the @aws/types.Hash interface that computes the SHA-256 HMAC or checksum of a string or binary buffer */ sha256?: __aws_types.HashConstructor; @@ -105,7 +105,7 @@ export interface GlacierConfiguration { /** * A function that converts a stream into an array of bytes. */ - streamCollector?: __aws_types.StreamCollector; + streamCollector?: __aws_types.StreamCollector; /** * The function that will be used to convert strings into HTTP endpoints @@ -137,12 +137,12 @@ export interface GlacierResolvableConfiguration extends GlacierConfiguration { /** * The parser to use when converting HTTP responses to SDK output types */ - parser: __aws_types.ResponseParser; + parser: __aws_types.ResponseParser; /** * The serializer to use when converting SDK input to HTTP requests */ - serializer: __aws_types.Provider<__aws_types.RequestSerializer>; + serializer: __aws_types.Provider<__aws_types.RequestSerializer>; } export interface GlacierResolvedConfiguration extends GlacierConfiguration { @@ -160,19 +160,19 @@ export interface GlacierResolvedConfiguration extends GlacierConfiguration { endpointProvider: any; - handler: __aws_types.Terminalware; + handler: __aws_types.Terminalware; - httpHandler: __aws_types.HttpHandler; + httpHandler: __aws_types.HttpHandler; maxRedirects: number; maxRetries: number; - parser: __aws_types.ResponseParser; + parser: __aws_types.ResponseParser; region: __aws_types.Provider; - serializer: __aws_types.Provider<__aws_types.RequestSerializer>; + serializer: __aws_types.Provider<__aws_types.RequestSerializer>; sha256: __aws_types.HashConstructor; @@ -182,7 +182,7 @@ export interface GlacierResolvedConfiguration extends GlacierConfiguration { sslEnabled: boolean; - streamCollector: __aws_types.StreamCollector; + streamCollector: __aws_types.StreamCollector; urlParser: __aws_types.UrlParser; @@ -301,7 +301,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< } ) => { const promisified = configuration.endpoint() - .then(endpoint => new __aws_protocol_rest.RestSerializer( + .then(endpoint => new __aws_protocol_rest.RestSerializer( endpoint, new __aws_json_builder.JsonBuilder( configuration.base64Encoder, @@ -313,7 +313,7 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< return () => promisified; }, apply: ( - serializerProvider: __aws_types.Provider<__aws_types.RequestSerializer>, + serializerProvider: __aws_types.Provider<__aws_types.RequestSerializer>, configuration: object, middlewareStack: __aws_types.MiddlewareStack ): void => { @@ -332,10 +332,10 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< defaultProvider: ( configuration: { base64Decoder: __aws_types.Decoder, - streamCollector: __aws_types.StreamCollector, + streamCollector: __aws_types.StreamCollector, utf8Encoder: __aws_types.Encoder } - ) => new __aws_protocol_rest.RestParser( + ) => new __aws_protocol_rest.RestParser( new __aws_json_parser.JsonParser( configuration.base64Decoder ), @@ -358,10 +358,10 @@ export const configurationProperties: __aws_types.ConfigurationDefinition< required: false, defaultProvider: ( configuration: { - httpHandler: __aws_types.HttpHandler, - parser: __aws_types.ResponseParser, + httpHandler: __aws_types.HttpHandler, + parser: __aws_types.ResponseParser, } - ) => __aws_core_handler.coreHandler( + ) => __aws_core_handler.coreHandler( configuration.httpHandler, configuration.parser ) diff --git a/packages/sdk-glacier-browser/README.md b/packages/sdk-glacier-browser/README.md index 2e695811b1a8..bdd4ddc70c61 100644 --- a/packages/sdk-glacier-browser/README.md +++ b/packages/sdk-glacier-browser/README.md @@ -1,3 +1,3 @@ -# sdk-glacier-browser +# @aws/sdk-glacier-browser Browser SDK for Amazon Glacier \ No newline at end of file diff --git a/packages/sdk-glacier-browser/commands/AbortMultipartUploadCommand.ts b/packages/sdk-glacier-browser/commands/AbortMultipartUploadCommand.ts index ce7520354369..5c3278921135 100644 --- a/packages/sdk-glacier-browser/commands/AbortMultipartUploadCommand.ts +++ b/packages/sdk-glacier-browser/commands/AbortMultipartUploadCommand.ts @@ -13,18 +13,18 @@ export class AbortMultipartUploadCommand implements __aws_types.Command< OutputTypesUnion, AbortMultipartUploadOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< AbortMultipartUploadInput, AbortMultipartUploadOutput, - ReadableStream + Blob >(); constructor(readonly input: AbortMultipartUploadInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/AbortVaultLockCommand.ts b/packages/sdk-glacier-browser/commands/AbortVaultLockCommand.ts index 1a7da1e0b86c..8810691bb436 100644 --- a/packages/sdk-glacier-browser/commands/AbortVaultLockCommand.ts +++ b/packages/sdk-glacier-browser/commands/AbortVaultLockCommand.ts @@ -13,18 +13,18 @@ export class AbortVaultLockCommand implements __aws_types.Command< OutputTypesUnion, AbortVaultLockOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< AbortVaultLockInput, AbortVaultLockOutput, - ReadableStream + Blob >(); constructor(readonly input: AbortVaultLockInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/AddTagsToVaultCommand.ts b/packages/sdk-glacier-browser/commands/AddTagsToVaultCommand.ts index 786be1b0ceed..3f63c35a818b 100644 --- a/packages/sdk-glacier-browser/commands/AddTagsToVaultCommand.ts +++ b/packages/sdk-glacier-browser/commands/AddTagsToVaultCommand.ts @@ -13,18 +13,18 @@ export class AddTagsToVaultCommand implements __aws_types.Command< OutputTypesUnion, AddTagsToVaultOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< AddTagsToVaultInput, AddTagsToVaultOutput, - ReadableStream + Blob >(); constructor(readonly input: AddTagsToVaultInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/CompleteMultipartUploadCommand.ts b/packages/sdk-glacier-browser/commands/CompleteMultipartUploadCommand.ts index 318b66b1dfca..2d1d421d7ff3 100644 --- a/packages/sdk-glacier-browser/commands/CompleteMultipartUploadCommand.ts +++ b/packages/sdk-glacier-browser/commands/CompleteMultipartUploadCommand.ts @@ -13,18 +13,18 @@ export class CompleteMultipartUploadCommand implements __aws_types.Command< OutputTypesUnion, CompleteMultipartUploadOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CompleteMultipartUploadInput, CompleteMultipartUploadOutput, - ReadableStream + Blob >(); constructor(readonly input: CompleteMultipartUploadInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/CompleteVaultLockCommand.ts b/packages/sdk-glacier-browser/commands/CompleteVaultLockCommand.ts index db85a7bee2ba..d0c1e67776e6 100644 --- a/packages/sdk-glacier-browser/commands/CompleteVaultLockCommand.ts +++ b/packages/sdk-glacier-browser/commands/CompleteVaultLockCommand.ts @@ -13,18 +13,18 @@ export class CompleteVaultLockCommand implements __aws_types.Command< OutputTypesUnion, CompleteVaultLockOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CompleteVaultLockInput, CompleteVaultLockOutput, - ReadableStream + Blob >(); constructor(readonly input: CompleteVaultLockInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/CreateVaultCommand.ts b/packages/sdk-glacier-browser/commands/CreateVaultCommand.ts index d66a2124332a..9f4b607d4f5d 100644 --- a/packages/sdk-glacier-browser/commands/CreateVaultCommand.ts +++ b/packages/sdk-glacier-browser/commands/CreateVaultCommand.ts @@ -13,18 +13,18 @@ export class CreateVaultCommand implements __aws_types.Command< OutputTypesUnion, CreateVaultOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< CreateVaultInput, CreateVaultOutput, - ReadableStream + Blob >(); constructor(readonly input: CreateVaultInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/DeleteArchiveCommand.ts b/packages/sdk-glacier-browser/commands/DeleteArchiveCommand.ts index 925eb523c60d..5591614fe5f7 100644 --- a/packages/sdk-glacier-browser/commands/DeleteArchiveCommand.ts +++ b/packages/sdk-glacier-browser/commands/DeleteArchiveCommand.ts @@ -13,18 +13,18 @@ export class DeleteArchiveCommand implements __aws_types.Command< OutputTypesUnion, DeleteArchiveOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteArchiveInput, DeleteArchiveOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteArchiveInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/DeleteVaultAccessPolicyCommand.ts b/packages/sdk-glacier-browser/commands/DeleteVaultAccessPolicyCommand.ts index 4028e5efa49c..061833845147 100644 --- a/packages/sdk-glacier-browser/commands/DeleteVaultAccessPolicyCommand.ts +++ b/packages/sdk-glacier-browser/commands/DeleteVaultAccessPolicyCommand.ts @@ -13,18 +13,18 @@ export class DeleteVaultAccessPolicyCommand implements __aws_types.Command< OutputTypesUnion, DeleteVaultAccessPolicyOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteVaultAccessPolicyInput, DeleteVaultAccessPolicyOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteVaultAccessPolicyInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/DeleteVaultCommand.ts b/packages/sdk-glacier-browser/commands/DeleteVaultCommand.ts index a3cc5dcefc77..094d3b9b6c49 100644 --- a/packages/sdk-glacier-browser/commands/DeleteVaultCommand.ts +++ b/packages/sdk-glacier-browser/commands/DeleteVaultCommand.ts @@ -13,18 +13,18 @@ export class DeleteVaultCommand implements __aws_types.Command< OutputTypesUnion, DeleteVaultOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteVaultInput, DeleteVaultOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteVaultInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/DeleteVaultNotificationsCommand.ts b/packages/sdk-glacier-browser/commands/DeleteVaultNotificationsCommand.ts index 077e93adc510..d40d9a907de2 100644 --- a/packages/sdk-glacier-browser/commands/DeleteVaultNotificationsCommand.ts +++ b/packages/sdk-glacier-browser/commands/DeleteVaultNotificationsCommand.ts @@ -13,18 +13,18 @@ export class DeleteVaultNotificationsCommand implements __aws_types.Command< OutputTypesUnion, DeleteVaultNotificationsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DeleteVaultNotificationsInput, DeleteVaultNotificationsOutput, - ReadableStream + Blob >(); constructor(readonly input: DeleteVaultNotificationsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/DescribeJobCommand.ts b/packages/sdk-glacier-browser/commands/DescribeJobCommand.ts index 2bc4cbcdf04a..2b2132b4059d 100644 --- a/packages/sdk-glacier-browser/commands/DescribeJobCommand.ts +++ b/packages/sdk-glacier-browser/commands/DescribeJobCommand.ts @@ -13,18 +13,18 @@ export class DescribeJobCommand implements __aws_types.Command< OutputTypesUnion, DescribeJobOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DescribeJobInput, DescribeJobOutput, - ReadableStream + Blob >(); constructor(readonly input: DescribeJobInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/DescribeVaultCommand.ts b/packages/sdk-glacier-browser/commands/DescribeVaultCommand.ts index 4a236e7e1a72..7f8eaf58abb6 100644 --- a/packages/sdk-glacier-browser/commands/DescribeVaultCommand.ts +++ b/packages/sdk-glacier-browser/commands/DescribeVaultCommand.ts @@ -13,18 +13,18 @@ export class DescribeVaultCommand implements __aws_types.Command< OutputTypesUnion, DescribeVaultOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< DescribeVaultInput, DescribeVaultOutput, - ReadableStream + Blob >(); constructor(readonly input: DescribeVaultInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/GetDataRetrievalPolicyCommand.ts b/packages/sdk-glacier-browser/commands/GetDataRetrievalPolicyCommand.ts index fe0e69ce097c..2c4c88897bd8 100644 --- a/packages/sdk-glacier-browser/commands/GetDataRetrievalPolicyCommand.ts +++ b/packages/sdk-glacier-browser/commands/GetDataRetrievalPolicyCommand.ts @@ -13,18 +13,18 @@ export class GetDataRetrievalPolicyCommand implements __aws_types.Command< OutputTypesUnion, GetDataRetrievalPolicyOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetDataRetrievalPolicyInput, GetDataRetrievalPolicyOutput, - ReadableStream + Blob >(); constructor(readonly input: GetDataRetrievalPolicyInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/GetJobOutputCommand.ts b/packages/sdk-glacier-browser/commands/GetJobOutputCommand.ts index 51d44d029375..23f3896c3b06 100644 --- a/packages/sdk-glacier-browser/commands/GetJobOutputCommand.ts +++ b/packages/sdk-glacier-browser/commands/GetJobOutputCommand.ts @@ -13,18 +13,18 @@ export class GetJobOutputCommand implements __aws_types.Command< OutputTypesUnion, GetJobOutputOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetJobOutputInput, GetJobOutputOutput, - ReadableStream + Blob >(); constructor(readonly input: GetJobOutputInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/GetVaultAccessPolicyCommand.ts b/packages/sdk-glacier-browser/commands/GetVaultAccessPolicyCommand.ts index 3490dd707f3f..85c32a0f5298 100644 --- a/packages/sdk-glacier-browser/commands/GetVaultAccessPolicyCommand.ts +++ b/packages/sdk-glacier-browser/commands/GetVaultAccessPolicyCommand.ts @@ -13,18 +13,18 @@ export class GetVaultAccessPolicyCommand implements __aws_types.Command< OutputTypesUnion, GetVaultAccessPolicyOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetVaultAccessPolicyInput, GetVaultAccessPolicyOutput, - ReadableStream + Blob >(); constructor(readonly input: GetVaultAccessPolicyInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/GetVaultLockCommand.ts b/packages/sdk-glacier-browser/commands/GetVaultLockCommand.ts index 31be6c8f26ec..971d06f7435b 100644 --- a/packages/sdk-glacier-browser/commands/GetVaultLockCommand.ts +++ b/packages/sdk-glacier-browser/commands/GetVaultLockCommand.ts @@ -13,18 +13,18 @@ export class GetVaultLockCommand implements __aws_types.Command< OutputTypesUnion, GetVaultLockOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetVaultLockInput, GetVaultLockOutput, - ReadableStream + Blob >(); constructor(readonly input: GetVaultLockInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/GetVaultNotificationsCommand.ts b/packages/sdk-glacier-browser/commands/GetVaultNotificationsCommand.ts index 9fba59b0dec5..365b81ce88ae 100644 --- a/packages/sdk-glacier-browser/commands/GetVaultNotificationsCommand.ts +++ b/packages/sdk-glacier-browser/commands/GetVaultNotificationsCommand.ts @@ -13,18 +13,18 @@ export class GetVaultNotificationsCommand implements __aws_types.Command< OutputTypesUnion, GetVaultNotificationsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< GetVaultNotificationsInput, GetVaultNotificationsOutput, - ReadableStream + Blob >(); constructor(readonly input: GetVaultNotificationsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/InitiateJobCommand.ts b/packages/sdk-glacier-browser/commands/InitiateJobCommand.ts index 51521f8734f6..503f11876c95 100644 --- a/packages/sdk-glacier-browser/commands/InitiateJobCommand.ts +++ b/packages/sdk-glacier-browser/commands/InitiateJobCommand.ts @@ -13,18 +13,18 @@ export class InitiateJobCommand implements __aws_types.Command< OutputTypesUnion, InitiateJobOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< InitiateJobInput, InitiateJobOutput, - ReadableStream + Blob >(); constructor(readonly input: InitiateJobInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/InitiateMultipartUploadCommand.ts b/packages/sdk-glacier-browser/commands/InitiateMultipartUploadCommand.ts index 422c747b7e9f..7e3a80be4f1e 100644 --- a/packages/sdk-glacier-browser/commands/InitiateMultipartUploadCommand.ts +++ b/packages/sdk-glacier-browser/commands/InitiateMultipartUploadCommand.ts @@ -13,18 +13,18 @@ export class InitiateMultipartUploadCommand implements __aws_types.Command< OutputTypesUnion, InitiateMultipartUploadOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< InitiateMultipartUploadInput, InitiateMultipartUploadOutput, - ReadableStream + Blob >(); constructor(readonly input: InitiateMultipartUploadInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/InitiateVaultLockCommand.ts b/packages/sdk-glacier-browser/commands/InitiateVaultLockCommand.ts index e4ee1448a7f5..a37bbef5680b 100644 --- a/packages/sdk-glacier-browser/commands/InitiateVaultLockCommand.ts +++ b/packages/sdk-glacier-browser/commands/InitiateVaultLockCommand.ts @@ -13,18 +13,18 @@ export class InitiateVaultLockCommand implements __aws_types.Command< OutputTypesUnion, InitiateVaultLockOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< InitiateVaultLockInput, InitiateVaultLockOutput, - ReadableStream + Blob >(); constructor(readonly input: InitiateVaultLockInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/ListJobsCommand.ts b/packages/sdk-glacier-browser/commands/ListJobsCommand.ts index bf6c61561c23..39a10859fcc5 100644 --- a/packages/sdk-glacier-browser/commands/ListJobsCommand.ts +++ b/packages/sdk-glacier-browser/commands/ListJobsCommand.ts @@ -13,18 +13,18 @@ export class ListJobsCommand implements __aws_types.Command< OutputTypesUnion, ListJobsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListJobsInput, ListJobsOutput, - ReadableStream + Blob >(); constructor(readonly input: ListJobsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/ListMultipartUploadsCommand.ts b/packages/sdk-glacier-browser/commands/ListMultipartUploadsCommand.ts index 1c630337513d..7097fbf2dfbd 100644 --- a/packages/sdk-glacier-browser/commands/ListMultipartUploadsCommand.ts +++ b/packages/sdk-glacier-browser/commands/ListMultipartUploadsCommand.ts @@ -13,18 +13,18 @@ export class ListMultipartUploadsCommand implements __aws_types.Command< OutputTypesUnion, ListMultipartUploadsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListMultipartUploadsInput, ListMultipartUploadsOutput, - ReadableStream + Blob >(); constructor(readonly input: ListMultipartUploadsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/ListPartsCommand.ts b/packages/sdk-glacier-browser/commands/ListPartsCommand.ts index 9f033b94acba..93308d582a42 100644 --- a/packages/sdk-glacier-browser/commands/ListPartsCommand.ts +++ b/packages/sdk-glacier-browser/commands/ListPartsCommand.ts @@ -13,18 +13,18 @@ export class ListPartsCommand implements __aws_types.Command< OutputTypesUnion, ListPartsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListPartsInput, ListPartsOutput, - ReadableStream + Blob >(); constructor(readonly input: ListPartsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/ListProvisionedCapacityCommand.ts b/packages/sdk-glacier-browser/commands/ListProvisionedCapacityCommand.ts index 35b9b2a23205..c300a7957070 100644 --- a/packages/sdk-glacier-browser/commands/ListProvisionedCapacityCommand.ts +++ b/packages/sdk-glacier-browser/commands/ListProvisionedCapacityCommand.ts @@ -13,18 +13,18 @@ export class ListProvisionedCapacityCommand implements __aws_types.Command< OutputTypesUnion, ListProvisionedCapacityOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListProvisionedCapacityInput, ListProvisionedCapacityOutput, - ReadableStream + Blob >(); constructor(readonly input: ListProvisionedCapacityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/ListTagsForVaultCommand.ts b/packages/sdk-glacier-browser/commands/ListTagsForVaultCommand.ts index e92ebed091e9..a543161ca933 100644 --- a/packages/sdk-glacier-browser/commands/ListTagsForVaultCommand.ts +++ b/packages/sdk-glacier-browser/commands/ListTagsForVaultCommand.ts @@ -13,18 +13,18 @@ export class ListTagsForVaultCommand implements __aws_types.Command< OutputTypesUnion, ListTagsForVaultOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListTagsForVaultInput, ListTagsForVaultOutput, - ReadableStream + Blob >(); constructor(readonly input: ListTagsForVaultInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/ListVaultsCommand.ts b/packages/sdk-glacier-browser/commands/ListVaultsCommand.ts index 59831ddddfd8..97cb5229cce8 100644 --- a/packages/sdk-glacier-browser/commands/ListVaultsCommand.ts +++ b/packages/sdk-glacier-browser/commands/ListVaultsCommand.ts @@ -13,18 +13,18 @@ export class ListVaultsCommand implements __aws_types.Command< OutputTypesUnion, ListVaultsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< ListVaultsInput, ListVaultsOutput, - ReadableStream + Blob >(); constructor(readonly input: ListVaultsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/PurchaseProvisionedCapacityCommand.ts b/packages/sdk-glacier-browser/commands/PurchaseProvisionedCapacityCommand.ts index 1af6c99ad2ae..6a87d17df543 100644 --- a/packages/sdk-glacier-browser/commands/PurchaseProvisionedCapacityCommand.ts +++ b/packages/sdk-glacier-browser/commands/PurchaseProvisionedCapacityCommand.ts @@ -13,18 +13,18 @@ export class PurchaseProvisionedCapacityCommand implements __aws_types.Command< OutputTypesUnion, PurchaseProvisionedCapacityOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< PurchaseProvisionedCapacityInput, PurchaseProvisionedCapacityOutput, - ReadableStream + Blob >(); constructor(readonly input: PurchaseProvisionedCapacityInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/RemoveTagsFromVaultCommand.ts b/packages/sdk-glacier-browser/commands/RemoveTagsFromVaultCommand.ts index a3bb2caf215f..4e39f41e2057 100644 --- a/packages/sdk-glacier-browser/commands/RemoveTagsFromVaultCommand.ts +++ b/packages/sdk-glacier-browser/commands/RemoveTagsFromVaultCommand.ts @@ -13,18 +13,18 @@ export class RemoveTagsFromVaultCommand implements __aws_types.Command< OutputTypesUnion, RemoveTagsFromVaultOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< RemoveTagsFromVaultInput, RemoveTagsFromVaultOutput, - ReadableStream + Blob >(); constructor(readonly input: RemoveTagsFromVaultInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/SetDataRetrievalPolicyCommand.ts b/packages/sdk-glacier-browser/commands/SetDataRetrievalPolicyCommand.ts index 6684e5f5c453..025a0e0729f3 100644 --- a/packages/sdk-glacier-browser/commands/SetDataRetrievalPolicyCommand.ts +++ b/packages/sdk-glacier-browser/commands/SetDataRetrievalPolicyCommand.ts @@ -13,18 +13,18 @@ export class SetDataRetrievalPolicyCommand implements __aws_types.Command< OutputTypesUnion, SetDataRetrievalPolicyOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< SetDataRetrievalPolicyInput, SetDataRetrievalPolicyOutput, - ReadableStream + Blob >(); constructor(readonly input: SetDataRetrievalPolicyInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/SetVaultAccessPolicyCommand.ts b/packages/sdk-glacier-browser/commands/SetVaultAccessPolicyCommand.ts index 8465ef94a9f4..4d29e76d35d2 100644 --- a/packages/sdk-glacier-browser/commands/SetVaultAccessPolicyCommand.ts +++ b/packages/sdk-glacier-browser/commands/SetVaultAccessPolicyCommand.ts @@ -13,18 +13,18 @@ export class SetVaultAccessPolicyCommand implements __aws_types.Command< OutputTypesUnion, SetVaultAccessPolicyOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< SetVaultAccessPolicyInput, SetVaultAccessPolicyOutput, - ReadableStream + Blob >(); constructor(readonly input: SetVaultAccessPolicyInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/SetVaultNotificationsCommand.ts b/packages/sdk-glacier-browser/commands/SetVaultNotificationsCommand.ts index ad1967c42159..1be0bc50f1fb 100644 --- a/packages/sdk-glacier-browser/commands/SetVaultNotificationsCommand.ts +++ b/packages/sdk-glacier-browser/commands/SetVaultNotificationsCommand.ts @@ -13,18 +13,18 @@ export class SetVaultNotificationsCommand implements __aws_types.Command< OutputTypesUnion, SetVaultNotificationsOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< SetVaultNotificationsInput, SetVaultNotificationsOutput, - ReadableStream + Blob >(); constructor(readonly input: SetVaultNotificationsInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/UploadArchiveCommand.ts b/packages/sdk-glacier-browser/commands/UploadArchiveCommand.ts index abda079679cf..70257cb7ef08 100644 --- a/packages/sdk-glacier-browser/commands/UploadArchiveCommand.ts +++ b/packages/sdk-glacier-browser/commands/UploadArchiveCommand.ts @@ -13,18 +13,18 @@ export class UploadArchiveCommand implements __aws_types.Command< OutputTypesUnion, UploadArchiveOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UploadArchiveInput, UploadArchiveOutput, - ReadableStream + Blob >(); constructor(readonly input: UploadArchiveInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/commands/UploadMultipartPartCommand.ts b/packages/sdk-glacier-browser/commands/UploadMultipartPartCommand.ts index 2b5f040f478a..701b3de22488 100644 --- a/packages/sdk-glacier-browser/commands/UploadMultipartPartCommand.ts +++ b/packages/sdk-glacier-browser/commands/UploadMultipartPartCommand.ts @@ -13,18 +13,18 @@ export class UploadMultipartPartCommand implements __aws_types.Command< OutputTypesUnion, UploadMultipartPartOutput, GlacierResolvedConfiguration, - ReadableStream + Blob > { readonly middlewareStack = new __aws_middleware_stack.MiddlewareStack< UploadMultipartPartInput, UploadMultipartPartOutput, - ReadableStream + Blob >(); constructor(readonly input: UploadMultipartPartInput) {} resolveMiddleware( - clientStack: __aws_middleware_stack.MiddlewareStack, + clientStack: __aws_middleware_stack.MiddlewareStack, configuration: GlacierResolvedConfiguration ): __aws_types.Handler { const {handler} = configuration; diff --git a/packages/sdk-glacier-browser/types/AbortMultipartUploadInput.ts b/packages/sdk-glacier-browser/types/AbortMultipartUploadInput.ts index 6139f6a4d773..785434b3e891 100644 --- a/packages/sdk-glacier-browser/types/AbortMultipartUploadInput.ts +++ b/packages/sdk-glacier-browser/types/AbortMultipartUploadInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to abort a multipart upload identified by the upload ID.

For information about the underlying REST API, see Abort Multipart Upload. For conceptual information, see Working with Archives in Amazon Glacier.

@@ -20,23 +21,19 @@ export interface AbortMultipartUploadInput { uploadId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/AbortMultipartUploadOutput.ts b/packages/sdk-glacier-browser/types/AbortMultipartUploadOutput.ts index 7c4ddb207f92..922b20f9bc50 100644 --- a/packages/sdk-glacier-browser/types/AbortMultipartUploadOutput.ts +++ b/packages/sdk-glacier-browser/types/AbortMultipartUploadOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * AbortMultipartUploadOutput shape */ export interface AbortMultipartUploadOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/AbortVaultLockInput.ts b/packages/sdk-glacier-browser/types/AbortVaultLockInput.ts index 372c98c2f6aa..2a49517c87ab 100644 --- a/packages/sdk-glacier-browser/types/AbortVaultLockInput.ts +++ b/packages/sdk-glacier-browser/types/AbortVaultLockInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input values for AbortVaultLock.

@@ -15,23 +16,19 @@ export interface AbortVaultLockInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/AbortVaultLockOutput.ts b/packages/sdk-glacier-browser/types/AbortVaultLockOutput.ts index e5b9e78512e3..9c38b90a679b 100644 --- a/packages/sdk-glacier-browser/types/AbortVaultLockOutput.ts +++ b/packages/sdk-glacier-browser/types/AbortVaultLockOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * AbortVaultLockOutput shape */ export interface AbortVaultLockOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/AddTagsToVaultInput.ts b/packages/sdk-glacier-browser/types/AddTagsToVaultInput.ts index 10921f3854e5..4919d3d886fc 100644 --- a/packages/sdk-glacier-browser/types/AddTagsToVaultInput.ts +++ b/packages/sdk-glacier-browser/types/AddTagsToVaultInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input values for AddTagsToVault.

@@ -20,23 +21,19 @@ export interface AddTagsToVaultInput { Tags?: {[key: string]: string}|Iterable<[string, string]>; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/AddTagsToVaultOutput.ts b/packages/sdk-glacier-browser/types/AddTagsToVaultOutput.ts index c98714647914..fdc16ef75645 100644 --- a/packages/sdk-glacier-browser/types/AddTagsToVaultOutput.ts +++ b/packages/sdk-glacier-browser/types/AddTagsToVaultOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * AddTagsToVaultOutput shape */ export interface AddTagsToVaultOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/CompleteMultipartUploadInput.ts b/packages/sdk-glacier-browser/types/CompleteMultipartUploadInput.ts index 2031b270c1d0..49d5727eea18 100644 --- a/packages/sdk-glacier-browser/types/CompleteMultipartUploadInput.ts +++ b/packages/sdk-glacier-browser/types/CompleteMultipartUploadInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to complete a multipart upload operation. This informs Amazon Glacier that all the archive parts have been uploaded and Amazon Glacier can now assemble the archive from the uploaded parts. After assembling and saving the archive to the vault, Amazon Glacier returns the URI path of the newly created archive resource.

@@ -30,23 +31,19 @@ export interface CompleteMultipartUploadInput { checksum?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/CompleteMultipartUploadOutput.ts b/packages/sdk-glacier-browser/types/CompleteMultipartUploadOutput.ts index f2a185047021..af154b4bdb11 100644 --- a/packages/sdk-glacier-browser/types/CompleteMultipartUploadOutput.ts +++ b/packages/sdk-glacier-browser/types/CompleteMultipartUploadOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

For information about the underlying REST API, see Upload Archive. For conceptual information, see Working with Archives in Amazon Glacier.

@@ -20,8 +20,7 @@ export interface CompleteMultipartUploadOutput { archiveId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/CompleteVaultLockInput.ts b/packages/sdk-glacier-browser/types/CompleteVaultLockInput.ts index a9c355fee94b..66d0bd354ac3 100644 --- a/packages/sdk-glacier-browser/types/CompleteVaultLockInput.ts +++ b/packages/sdk-glacier-browser/types/CompleteVaultLockInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input values for CompleteVaultLock.

@@ -20,23 +21,19 @@ export interface CompleteVaultLockInput { lockId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/CompleteVaultLockOutput.ts b/packages/sdk-glacier-browser/types/CompleteVaultLockOutput.ts index 224726529ecc..257b9121adee 100644 --- a/packages/sdk-glacier-browser/types/CompleteVaultLockOutput.ts +++ b/packages/sdk-glacier-browser/types/CompleteVaultLockOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * CompleteVaultLockOutput shape */ export interface CompleteVaultLockOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/CreateVaultInput.ts b/packages/sdk-glacier-browser/types/CreateVaultInput.ts index fb2c61c26926..e32940e5eb54 100644 --- a/packages/sdk-glacier-browser/types/CreateVaultInput.ts +++ b/packages/sdk-glacier-browser/types/CreateVaultInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to create a vault.

@@ -15,23 +16,19 @@ export interface CreateVaultInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/CreateVaultOutput.ts b/packages/sdk-glacier-browser/types/CreateVaultOutput.ts index 8b309c0074c0..d3772660f52d 100644 --- a/packages/sdk-glacier-browser/types/CreateVaultOutput.ts +++ b/packages/sdk-glacier-browser/types/CreateVaultOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -10,8 +10,7 @@ export interface CreateVaultOutput { location?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/DeleteArchiveInput.ts b/packages/sdk-glacier-browser/types/DeleteArchiveInput.ts index 70babbb1ffda..34954b964c7d 100644 --- a/packages/sdk-glacier-browser/types/DeleteArchiveInput.ts +++ b/packages/sdk-glacier-browser/types/DeleteArchiveInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for deleting an archive from an Amazon Glacier vault.

@@ -20,23 +21,19 @@ export interface DeleteArchiveInput { archiveId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/DeleteArchiveOutput.ts b/packages/sdk-glacier-browser/types/DeleteArchiveOutput.ts index 5a37d0a42641..85efeba16327 100644 --- a/packages/sdk-glacier-browser/types/DeleteArchiveOutput.ts +++ b/packages/sdk-glacier-browser/types/DeleteArchiveOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteArchiveOutput shape */ export interface DeleteArchiveOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyInput.ts b/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyInput.ts index 2e4630befe18..cfe2ca4ce1f2 100644 --- a/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyInput.ts +++ b/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

DeleteVaultAccessPolicy input.

@@ -15,23 +16,19 @@ export interface DeleteVaultAccessPolicyInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyOutput.ts b/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyOutput.ts index fc6fad242bd6..67c3c7b4926f 100644 --- a/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyOutput.ts +++ b/packages/sdk-glacier-browser/types/DeleteVaultAccessPolicyOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteVaultAccessPolicyOutput shape */ export interface DeleteVaultAccessPolicyOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/DeleteVaultInput.ts b/packages/sdk-glacier-browser/types/DeleteVaultInput.ts index 4b67663e5e39..52931d4c37b5 100644 --- a/packages/sdk-glacier-browser/types/DeleteVaultInput.ts +++ b/packages/sdk-glacier-browser/types/DeleteVaultInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for deleting a vault from Amazon Glacier.

@@ -15,23 +16,19 @@ export interface DeleteVaultInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/DeleteVaultNotificationsInput.ts b/packages/sdk-glacier-browser/types/DeleteVaultNotificationsInput.ts index 0e1efda4bf96..98aaadb1311b 100644 --- a/packages/sdk-glacier-browser/types/DeleteVaultNotificationsInput.ts +++ b/packages/sdk-glacier-browser/types/DeleteVaultNotificationsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for deleting a vault notification configuration from an Amazon Glacier vault.

@@ -15,23 +16,19 @@ export interface DeleteVaultNotificationsInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/DeleteVaultNotificationsOutput.ts b/packages/sdk-glacier-browser/types/DeleteVaultNotificationsOutput.ts index 34306e419c4e..b56d632c8963 100644 --- a/packages/sdk-glacier-browser/types/DeleteVaultNotificationsOutput.ts +++ b/packages/sdk-glacier-browser/types/DeleteVaultNotificationsOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteVaultNotificationsOutput shape */ export interface DeleteVaultNotificationsOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/DeleteVaultOutput.ts b/packages/sdk-glacier-browser/types/DeleteVaultOutput.ts index 834868cb522f..684e99c8817c 100644 --- a/packages/sdk-glacier-browser/types/DeleteVaultOutput.ts +++ b/packages/sdk-glacier-browser/types/DeleteVaultOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * DeleteVaultOutput shape */ export interface DeleteVaultOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/DescribeJobInput.ts b/packages/sdk-glacier-browser/types/DescribeJobInput.ts index 8b80770fdce4..2f996e57eefe 100644 --- a/packages/sdk-glacier-browser/types/DescribeJobInput.ts +++ b/packages/sdk-glacier-browser/types/DescribeJobInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for retrieving a job description.

@@ -20,23 +21,19 @@ export interface DescribeJobInput { jobId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/DescribeJobOutput.ts b/packages/sdk-glacier-browser/types/DescribeJobOutput.ts index 1b2ff1785b5f..fe411c479ac0 100644 --- a/packages/sdk-glacier-browser/types/DescribeJobOutput.ts +++ b/packages/sdk-glacier-browser/types/DescribeJobOutput.ts @@ -1,7 +1,7 @@ import {_UnmarshalledInventoryRetrievalJobDescription} from './_InventoryRetrievalJobDescription'; import {_UnmarshalledSelectParameters} from './_SelectParameters'; import {_UnmarshalledOutputLocation} from './_OutputLocation'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the description of an Amazon Glacier job.

@@ -113,8 +113,7 @@ export interface DescribeJobOutput { OutputLocation?: _UnmarshalledOutputLocation; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/DescribeVaultInput.ts b/packages/sdk-glacier-browser/types/DescribeVaultInput.ts index 6a69c100be1a..7ed0998ccfcb 100644 --- a/packages/sdk-glacier-browser/types/DescribeVaultInput.ts +++ b/packages/sdk-glacier-browser/types/DescribeVaultInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for retrieving metadata for a specific vault in Amazon Glacier.

@@ -15,23 +16,19 @@ export interface DescribeVaultInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/DescribeVaultOutput.ts b/packages/sdk-glacier-browser/types/DescribeVaultOutput.ts index 16e68dde9782..5cf23aa35d0f 100644 --- a/packages/sdk-glacier-browser/types/DescribeVaultOutput.ts +++ b/packages/sdk-glacier-browser/types/DescribeVaultOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -35,8 +35,7 @@ export interface DescribeVaultOutput { SizeInBytes?: number; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyInput.ts b/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyInput.ts index c0d9225b04b0..daa4d9b8fae1 100644 --- a/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyInput.ts +++ b/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input for GetDataRetrievalPolicy.

@@ -10,23 +11,19 @@ export interface GetDataRetrievalPolicyInput { accountId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyOutput.ts b/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyOutput.ts index 954f26302252..438bb2429520 100644 --- a/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyOutput.ts +++ b/packages/sdk-glacier-browser/types/GetDataRetrievalPolicyOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledDataRetrievalPolicy} from './_DataRetrievalPolicy'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to the GetDataRetrievalPolicy request.

@@ -11,8 +11,7 @@ export interface GetDataRetrievalPolicyOutput { Policy?: _UnmarshalledDataRetrievalPolicy; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/GetJobOutputInput.ts b/packages/sdk-glacier-browser/types/GetJobOutputInput.ts index 0a1c05f99e6a..6c672b4f2ae2 100644 --- a/packages/sdk-glacier-browser/types/GetJobOutputInput.ts +++ b/packages/sdk-glacier-browser/types/GetJobOutputInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for downloading output of an Amazon Glacier job.

@@ -25,23 +26,19 @@ export interface GetJobOutputInput { range?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/GetJobOutputOutput.ts b/packages/sdk-glacier-browser/types/GetJobOutputOutput.ts index b29f5fabb833..f80fb8bafb8a 100644 --- a/packages/sdk-glacier-browser/types/GetJobOutputOutput.ts +++ b/packages/sdk-glacier-browser/types/GetJobOutputOutput.ts @@ -1,9 +1,9 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

*/ -export interface GetJobOutputOutput { +export interface GetJobOutputOutput { /** *

The job data, either archive data or inventory data.

*/ @@ -40,8 +40,7 @@ export interface GetJobOutputOutput { archiveDescription?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/GetVaultAccessPolicyInput.ts b/packages/sdk-glacier-browser/types/GetVaultAccessPolicyInput.ts index e0f056a6c2cc..bc702fa1f414 100644 --- a/packages/sdk-glacier-browser/types/GetVaultAccessPolicyInput.ts +++ b/packages/sdk-glacier-browser/types/GetVaultAccessPolicyInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Input for GetVaultAccessPolicy.

@@ -15,23 +16,19 @@ export interface GetVaultAccessPolicyInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/GetVaultAccessPolicyOutput.ts b/packages/sdk-glacier-browser/types/GetVaultAccessPolicyOutput.ts index fdd5f4c42fc3..f671addec408 100644 --- a/packages/sdk-glacier-browser/types/GetVaultAccessPolicyOutput.ts +++ b/packages/sdk-glacier-browser/types/GetVaultAccessPolicyOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledVaultAccessPolicy} from './_VaultAccessPolicy'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Output for GetVaultAccessPolicy.

@@ -11,8 +11,7 @@ export interface GetVaultAccessPolicyOutput { policy?: _UnmarshalledVaultAccessPolicy; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/GetVaultLockInput.ts b/packages/sdk-glacier-browser/types/GetVaultLockInput.ts index c1a5cd0adb18..e85f908eba68 100644 --- a/packages/sdk-glacier-browser/types/GetVaultLockInput.ts +++ b/packages/sdk-glacier-browser/types/GetVaultLockInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input values for GetVaultLock.

@@ -15,23 +16,19 @@ export interface GetVaultLockInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/GetVaultLockOutput.ts b/packages/sdk-glacier-browser/types/GetVaultLockOutput.ts index d7d2da807ab3..2cc1effafa17 100644 --- a/packages/sdk-glacier-browser/types/GetVaultLockOutput.ts +++ b/packages/sdk-glacier-browser/types/GetVaultLockOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -25,8 +25,7 @@ export interface GetVaultLockOutput { CreationDate?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/GetVaultNotificationsInput.ts b/packages/sdk-glacier-browser/types/GetVaultNotificationsInput.ts index 4ce0194bde52..f9fbf0d4d3a9 100644 --- a/packages/sdk-glacier-browser/types/GetVaultNotificationsInput.ts +++ b/packages/sdk-glacier-browser/types/GetVaultNotificationsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for retrieving the notification configuration set on an Amazon Glacier vault.

@@ -15,23 +16,19 @@ export interface GetVaultNotificationsInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/GetVaultNotificationsOutput.ts b/packages/sdk-glacier-browser/types/GetVaultNotificationsOutput.ts index 2b49e95fbd33..fcf24fa46375 100644 --- a/packages/sdk-glacier-browser/types/GetVaultNotificationsOutput.ts +++ b/packages/sdk-glacier-browser/types/GetVaultNotificationsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledVaultNotificationConfig} from './_VaultNotificationConfig'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -11,8 +11,7 @@ export interface GetVaultNotificationsOutput { vaultNotificationConfig?: _UnmarshalledVaultNotificationConfig; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/InitiateJobInput.ts b/packages/sdk-glacier-browser/types/InitiateJobInput.ts index a08c90d6c037..36c4bc11d153 100644 --- a/packages/sdk-glacier-browser/types/InitiateJobInput.ts +++ b/packages/sdk-glacier-browser/types/InitiateJobInput.ts @@ -1,5 +1,6 @@ import {_JobParameters} from './_JobParameters'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for initiating an Amazon Glacier job.

@@ -21,23 +22,19 @@ export interface InitiateJobInput { jobParameters?: _JobParameters; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/InitiateJobOutput.ts b/packages/sdk-glacier-browser/types/InitiateJobOutput.ts index 134e1bb0d60b..5de6e7497c43 100644 --- a/packages/sdk-glacier-browser/types/InitiateJobOutput.ts +++ b/packages/sdk-glacier-browser/types/InitiateJobOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -20,8 +20,7 @@ export interface InitiateJobOutput { jobOutputPath?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/InitiateMultipartUploadInput.ts b/packages/sdk-glacier-browser/types/InitiateMultipartUploadInput.ts index 104259440193..1b79fe9e8600 100644 --- a/packages/sdk-glacier-browser/types/InitiateMultipartUploadInput.ts +++ b/packages/sdk-glacier-browser/types/InitiateMultipartUploadInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for initiating a multipart upload to an Amazon Glacier vault.

@@ -25,23 +26,19 @@ export interface InitiateMultipartUploadInput { partSize?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/InitiateMultipartUploadOutput.ts b/packages/sdk-glacier-browser/types/InitiateMultipartUploadOutput.ts index 4be006152711..849c81cef33b 100644 --- a/packages/sdk-glacier-browser/types/InitiateMultipartUploadOutput.ts +++ b/packages/sdk-glacier-browser/types/InitiateMultipartUploadOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The Amazon Glacier response to your request.

@@ -15,8 +15,7 @@ export interface InitiateMultipartUploadOutput { uploadId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/InitiateVaultLockInput.ts b/packages/sdk-glacier-browser/types/InitiateVaultLockInput.ts index dde572c91a8d..000fc811b8b4 100644 --- a/packages/sdk-glacier-browser/types/InitiateVaultLockInput.ts +++ b/packages/sdk-glacier-browser/types/InitiateVaultLockInput.ts @@ -1,5 +1,6 @@ import {_VaultLockPolicy} from './_VaultLockPolicy'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input values for InitiateVaultLock.

@@ -21,23 +22,19 @@ export interface InitiateVaultLockInput { policy?: _VaultLockPolicy; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/InitiateVaultLockOutput.ts b/packages/sdk-glacier-browser/types/InitiateVaultLockOutput.ts index 7889198d0fd0..8fb79dba8b9e 100644 --- a/packages/sdk-glacier-browser/types/InitiateVaultLockOutput.ts +++ b/packages/sdk-glacier-browser/types/InitiateVaultLockOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -10,8 +10,7 @@ export interface InitiateVaultLockOutput { lockId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/InsufficientCapacityException.ts b/packages/sdk-glacier-browser/types/InsufficientCapacityException.ts index b2ebf6e73aec..49101356a6cf 100644 --- a/packages/sdk-glacier-browser/types/InsufficientCapacityException.ts +++ b/packages/sdk-glacier-browser/types/InsufficientCapacityException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if there is insufficient capacity to process this expedited request. This error only applies to expedited retrievals and not to standard or bulk retrievals.

diff --git a/packages/sdk-glacier-browser/types/InvalidParameterValueException.ts b/packages/sdk-glacier-browser/types/InvalidParameterValueException.ts index e8a338347ed9..a2097e563472 100644 --- a/packages/sdk-glacier-browser/types/InvalidParameterValueException.ts +++ b/packages/sdk-glacier-browser/types/InvalidParameterValueException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if a parameter of the request is incorrectly specified.

diff --git a/packages/sdk-glacier-browser/types/LimitExceededException.ts b/packages/sdk-glacier-browser/types/LimitExceededException.ts index 125a999848d3..ee47188bdcc0 100644 --- a/packages/sdk-glacier-browser/types/LimitExceededException.ts +++ b/packages/sdk-glacier-browser/types/LimitExceededException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if the request results in a vault or account limit being exceeded.

diff --git a/packages/sdk-glacier-browser/types/ListJobsInput.ts b/packages/sdk-glacier-browser/types/ListJobsInput.ts index cf2013d9acb3..3bdfb86424ca 100644 --- a/packages/sdk-glacier-browser/types/ListJobsInput.ts +++ b/packages/sdk-glacier-browser/types/ListJobsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for retrieving a job list for an Amazon Glacier vault.

@@ -35,23 +36,19 @@ export interface ListJobsInput { completed?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/ListJobsOutput.ts b/packages/sdk-glacier-browser/types/ListJobsOutput.ts index 5036d5c602e2..0e14cb0dc3f2 100644 --- a/packages/sdk-glacier-browser/types/ListJobsOutput.ts +++ b/packages/sdk-glacier-browser/types/ListJobsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledGlacierJobDescription} from './_GlacierJobDescription'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -16,8 +16,7 @@ export interface ListJobsOutput { Marker?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/ListMultipartUploadsInput.ts b/packages/sdk-glacier-browser/types/ListMultipartUploadsInput.ts index 49312225ea45..91a43fdfd0c7 100644 --- a/packages/sdk-glacier-browser/types/ListMultipartUploadsInput.ts +++ b/packages/sdk-glacier-browser/types/ListMultipartUploadsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for retrieving list of in-progress multipart uploads for an Amazon Glacier vault.

@@ -25,23 +26,19 @@ export interface ListMultipartUploadsInput { limit?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/ListMultipartUploadsOutput.ts b/packages/sdk-glacier-browser/types/ListMultipartUploadsOutput.ts index 003bd1d36ed0..c407732e1ff9 100644 --- a/packages/sdk-glacier-browser/types/ListMultipartUploadsOutput.ts +++ b/packages/sdk-glacier-browser/types/ListMultipartUploadsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledUploadListElement} from './_UploadListElement'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -16,8 +16,7 @@ export interface ListMultipartUploadsOutput { Marker?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/ListPartsInput.ts b/packages/sdk-glacier-browser/types/ListPartsInput.ts index 42e2c8ba8518..24ac2ba34d2d 100644 --- a/packages/sdk-glacier-browser/types/ListPartsInput.ts +++ b/packages/sdk-glacier-browser/types/ListPartsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options for retrieving a list of parts of an archive that have been uploaded in a specific multipart upload.

@@ -30,23 +31,19 @@ export interface ListPartsInput { limit?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/ListPartsOutput.ts b/packages/sdk-glacier-browser/types/ListPartsOutput.ts index 99b0b1d1c352..931fd85cb983 100644 --- a/packages/sdk-glacier-browser/types/ListPartsOutput.ts +++ b/packages/sdk-glacier-browser/types/ListPartsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledPartListElement} from './_PartListElement'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -41,8 +41,7 @@ export interface ListPartsOutput { Marker?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/ListProvisionedCapacityInput.ts b/packages/sdk-glacier-browser/types/ListProvisionedCapacityInput.ts index 3a3480b73a29..81ad154d9f67 100644 --- a/packages/sdk-glacier-browser/types/ListProvisionedCapacityInput.ts +++ b/packages/sdk-glacier-browser/types/ListProvisionedCapacityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * ListProvisionedCapacityInput shape @@ -10,23 +11,19 @@ export interface ListProvisionedCapacityInput { accountId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/ListProvisionedCapacityOutput.ts b/packages/sdk-glacier-browser/types/ListProvisionedCapacityOutput.ts index c2f9d63c7bf8..44c33c4ff263 100644 --- a/packages/sdk-glacier-browser/types/ListProvisionedCapacityOutput.ts +++ b/packages/sdk-glacier-browser/types/ListProvisionedCapacityOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledProvisionedCapacityDescription} from './_ProvisionedCapacityDescription'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * ListProvisionedCapacityOutput shape @@ -11,8 +11,7 @@ export interface ListProvisionedCapacityOutput { ProvisionedCapacityList?: Array<_UnmarshalledProvisionedCapacityDescription>; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/ListTagsForVaultInput.ts b/packages/sdk-glacier-browser/types/ListTagsForVaultInput.ts index 0b7644f0ce05..e98e377596ed 100644 --- a/packages/sdk-glacier-browser/types/ListTagsForVaultInput.ts +++ b/packages/sdk-glacier-browser/types/ListTagsForVaultInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input value for ListTagsForVaultInput.

@@ -15,23 +16,19 @@ export interface ListTagsForVaultInput { vaultName: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/ListTagsForVaultOutput.ts b/packages/sdk-glacier-browser/types/ListTagsForVaultOutput.ts index d84ffcd2b8de..35c0ec3b7630 100644 --- a/packages/sdk-glacier-browser/types/ListTagsForVaultOutput.ts +++ b/packages/sdk-glacier-browser/types/ListTagsForVaultOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -10,8 +10,7 @@ export interface ListTagsForVaultOutput { Tags?: {[key: string]: string}; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/ListVaultsInput.ts b/packages/sdk-glacier-browser/types/ListVaultsInput.ts index 4d64df750e22..66cf1f6767b0 100644 --- a/packages/sdk-glacier-browser/types/ListVaultsInput.ts +++ b/packages/sdk-glacier-browser/types/ListVaultsInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to retrieve the vault list owned by the calling user's account. The list provides metadata information for each vault.

@@ -20,23 +21,19 @@ export interface ListVaultsInput { limit?: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/ListVaultsOutput.ts b/packages/sdk-glacier-browser/types/ListVaultsOutput.ts index c84e28e35797..e4f14d242824 100644 --- a/packages/sdk-glacier-browser/types/ListVaultsOutput.ts +++ b/packages/sdk-glacier-browser/types/ListVaultsOutput.ts @@ -1,5 +1,5 @@ import {_UnmarshalledDescribeVaultOutput} from './_DescribeVaultOutput'; -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -16,8 +16,7 @@ export interface ListVaultsOutput { Marker?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/MissingParameterValueException.ts b/packages/sdk-glacier-browser/types/MissingParameterValueException.ts index 70104e7ec8ee..b0368be07e06 100644 --- a/packages/sdk-glacier-browser/types/MissingParameterValueException.ts +++ b/packages/sdk-glacier-browser/types/MissingParameterValueException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if a required header or parameter is missing from the request.

diff --git a/packages/sdk-glacier-browser/types/PolicyEnforcedException.ts b/packages/sdk-glacier-browser/types/PolicyEnforcedException.ts index 4cbc18027859..abac7b9510de 100644 --- a/packages/sdk-glacier-browser/types/PolicyEnforcedException.ts +++ b/packages/sdk-glacier-browser/types/PolicyEnforcedException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if a retrieval job would exceed the current data policy's retrieval rate limit. For more information about data retrieval policies,

diff --git a/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityInput.ts b/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityInput.ts index 532d3637ffaf..00f1137fe967 100644 --- a/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityInput.ts +++ b/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PurchaseProvisionedCapacityInput shape @@ -10,23 +11,19 @@ export interface PurchaseProvisionedCapacityInput { accountId: string; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityOutput.ts b/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityOutput.ts index 7c0be9223f92..6a0b70490ab1 100644 --- a/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityOutput.ts +++ b/packages/sdk-glacier-browser/types/PurchaseProvisionedCapacityOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * PurchaseProvisionedCapacityOutput shape @@ -10,8 +10,7 @@ export interface PurchaseProvisionedCapacityOutput { capacityId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/RemoveTagsFromVaultInput.ts b/packages/sdk-glacier-browser/types/RemoveTagsFromVaultInput.ts index d15201aae03f..97c4e5f242c1 100644 --- a/packages/sdk-glacier-browser/types/RemoveTagsFromVaultInput.ts +++ b/packages/sdk-glacier-browser/types/RemoveTagsFromVaultInput.ts @@ -1,4 +1,5 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

The input value for RemoveTagsFromVaultInput.

@@ -20,23 +21,19 @@ export interface RemoveTagsFromVaultInput { TagKeys?: Array|Iterable; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/RemoveTagsFromVaultOutput.ts b/packages/sdk-glacier-browser/types/RemoveTagsFromVaultOutput.ts index 4a3c0474bb23..8c9410a58987 100644 --- a/packages/sdk-glacier-browser/types/RemoveTagsFromVaultOutput.ts +++ b/packages/sdk-glacier-browser/types/RemoveTagsFromVaultOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * RemoveTagsFromVaultOutput shape */ export interface RemoveTagsFromVaultOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/RequestTimeoutException.ts b/packages/sdk-glacier-browser/types/RequestTimeoutException.ts index e490ef245ac1..b23e7bb983d5 100644 --- a/packages/sdk-glacier-browser/types/RequestTimeoutException.ts +++ b/packages/sdk-glacier-browser/types/RequestTimeoutException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if, when uploading an archive, Amazon Glacier times out while receiving the upload.

diff --git a/packages/sdk-glacier-browser/types/ResourceNotFoundException.ts b/packages/sdk-glacier-browser/types/ResourceNotFoundException.ts index fcd21e2db042..371484f30830 100644 --- a/packages/sdk-glacier-browser/types/ResourceNotFoundException.ts +++ b/packages/sdk-glacier-browser/types/ResourceNotFoundException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist.

diff --git a/packages/sdk-glacier-browser/types/ServiceUnavailableException.ts b/packages/sdk-glacier-browser/types/ServiceUnavailableException.ts index 6b2157388438..0d6f8a2e432e 100644 --- a/packages/sdk-glacier-browser/types/ServiceUnavailableException.ts +++ b/packages/sdk-glacier-browser/types/ServiceUnavailableException.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__, ServiceException as __ServiceException__} from '@aws/types'; +import {ServiceException as __ServiceException__} from '@aws/types'; /** *

Returned if the service cannot complete the request.

diff --git a/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyInput.ts b/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyInput.ts index 5a34a2cb7f57..1ac9d9155523 100644 --- a/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyInput.ts +++ b/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyInput.ts @@ -1,5 +1,6 @@ import {_DataRetrievalPolicy} from './_DataRetrievalPolicy'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

SetDataRetrievalPolicy input.

@@ -16,23 +17,19 @@ export interface SetDataRetrievalPolicyInput { Policy?: _DataRetrievalPolicy; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyOutput.ts b/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyOutput.ts index 42270d708c62..17c246db077e 100644 --- a/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyOutput.ts +++ b/packages/sdk-glacier-browser/types/SetDataRetrievalPolicyOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * SetDataRetrievalPolicyOutput shape */ export interface SetDataRetrievalPolicyOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/SetVaultAccessPolicyInput.ts b/packages/sdk-glacier-browser/types/SetVaultAccessPolicyInput.ts index ca9d7d5b85e5..cac0129803a3 100644 --- a/packages/sdk-glacier-browser/types/SetVaultAccessPolicyInput.ts +++ b/packages/sdk-glacier-browser/types/SetVaultAccessPolicyInput.ts @@ -1,5 +1,6 @@ import {_VaultAccessPolicy} from './_VaultAccessPolicy'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

SetVaultAccessPolicy input.

@@ -21,23 +22,19 @@ export interface SetVaultAccessPolicyInput { policy?: _VaultAccessPolicy; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/SetVaultAccessPolicyOutput.ts b/packages/sdk-glacier-browser/types/SetVaultAccessPolicyOutput.ts index 73255de4653d..ff1fe0c102b5 100644 --- a/packages/sdk-glacier-browser/types/SetVaultAccessPolicyOutput.ts +++ b/packages/sdk-glacier-browser/types/SetVaultAccessPolicyOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * SetVaultAccessPolicyOutput shape */ export interface SetVaultAccessPolicyOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/SetVaultNotificationsInput.ts b/packages/sdk-glacier-browser/types/SetVaultNotificationsInput.ts index fafe21e2286a..6594eaf13834 100644 --- a/packages/sdk-glacier-browser/types/SetVaultNotificationsInput.ts +++ b/packages/sdk-glacier-browser/types/SetVaultNotificationsInput.ts @@ -1,5 +1,6 @@ import {_VaultNotificationConfig} from './_VaultNotificationConfig'; -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to configure notifications that will be sent when specific events happen to a vault.

@@ -21,23 +22,19 @@ export interface SetVaultNotificationsInput { vaultNotificationConfig?: _VaultNotificationConfig; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/SetVaultNotificationsOutput.ts b/packages/sdk-glacier-browser/types/SetVaultNotificationsOutput.ts index 55ad50a88d36..c06e37f07d28 100644 --- a/packages/sdk-glacier-browser/types/SetVaultNotificationsOutput.ts +++ b/packages/sdk-glacier-browser/types/SetVaultNotificationsOutput.ts @@ -1,12 +1,11 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** * SetVaultNotificationsOutput shape */ export interface SetVaultNotificationsOutput { /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/UploadArchiveInput.ts b/packages/sdk-glacier-browser/types/UploadArchiveInput.ts index 7c6944f9e9f9..cd0ed46c0104 100644 --- a/packages/sdk-glacier-browser/types/UploadArchiveInput.ts +++ b/packages/sdk-glacier-browser/types/UploadArchiveInput.ts @@ -1,9 +1,10 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to add an archive to a vault.

*/ -export interface UploadArchiveInput { +export interface UploadArchiveInput { /** *

The name of the vault.

*/ @@ -30,23 +31,19 @@ export interface UploadArchiveInput { body?: ArrayBuffer|ArrayBufferView|string|StreamType; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/UploadArchiveOutput.ts b/packages/sdk-glacier-browser/types/UploadArchiveOutput.ts index b93cb89f1e07..60868919dd08 100644 --- a/packages/sdk-glacier-browser/types/UploadArchiveOutput.ts +++ b/packages/sdk-glacier-browser/types/UploadArchiveOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

For information about the underlying REST API, see Upload Archive. For conceptual information, see Working with Archives in Amazon Glacier.

@@ -20,8 +20,7 @@ export interface UploadArchiveOutput { archiveId?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-browser/types/UploadMultipartPartInput.ts b/packages/sdk-glacier-browser/types/UploadMultipartPartInput.ts index 2f3c77ecb4f3..524275728a76 100644 --- a/packages/sdk-glacier-browser/types/UploadMultipartPartInput.ts +++ b/packages/sdk-glacier-browser/types/UploadMultipartPartInput.ts @@ -1,9 +1,10 @@ -import {AbortSignal as __AbortSignal__, BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import {BrowserHttpOptions as __HttpOptions__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Provides options to upload a part of an archive in a multipart upload operation.

*/ -export interface UploadMultipartPartInput { +export interface UploadMultipartPartInput { /** *

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

*/ @@ -35,23 +36,19 @@ export interface UploadMultipartPartInput { body?: ArrayBuffer|ArrayBufferView|string|StreamType; /** - * The maximum number of times this operation should be retried. If set, this - * value will override the `maxRetries` configuration set on the client for - * this command. + * The maximum number of times this operation should be retried. If set, this value will override the `maxRetries` configuration set on the client for this command. */ $maxRetries?: number; /** - * An object that may be queried to determine if the underlying operation - * has been aborted. + * An object that may be queried to determine if the underlying operation has been aborted. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ - $abortSignal?: __AbortSignal__ + $abortSignal?: __aws_types.AbortSignal; /** - * Per-request HTTP configuration options. If set, any options specified will - * override the corresponding HTTP option set on the client for this command. + * Per-request HTTP configuration options. If set, any options specified will override the corresponding HTTP option set on the client for this command. */ - $httpOptions?: __HttpOptions__ + $httpOptions?: __HttpOptions__; } \ No newline at end of file diff --git a/packages/sdk-glacier-browser/types/UploadMultipartPartOutput.ts b/packages/sdk-glacier-browser/types/UploadMultipartPartOutput.ts index c02d30e786e0..0414fb0bf102 100644 --- a/packages/sdk-glacier-browser/types/UploadMultipartPartOutput.ts +++ b/packages/sdk-glacier-browser/types/UploadMultipartPartOutput.ts @@ -1,4 +1,4 @@ -import {ResponseMetadata as __ResponseMetadata__} from '@aws/types'; +import * as __aws_types from '@aws/types'; /** *

Contains the Amazon Glacier response to your request.

@@ -10,8 +10,7 @@ export interface UploadMultipartPartOutput { checksum?: string; /** - * Metadata about the response received, including the HTTP status code, HTTP - * headers, and any request identifiers recognized by the SDK. + * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ - $metadata: __ResponseMetadata__; -} \ No newline at end of file + $metadata: __aws_types.ResponseMetadata; +} diff --git a/packages/sdk-glacier-node/.gitignore b/packages/sdk-glacier-node/.gitignore new file mode 100644 index 000000000000..8da67f270663 --- /dev/null +++ b/packages/sdk-glacier-node/.gitignore @@ -0,0 +1,11 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +*.tgz +*.log +package-lock.json + +*.d.ts +*.js +*.js.map \ No newline at end of file diff --git a/packages/service-types-generator/src/Components/Client/Client.ts b/packages/service-types-generator/src/Components/Client/Client.ts index 6fd0b621df2f..546eb9fcac4c 100644 --- a/packages/service-types-generator/src/Components/Client/Client.ts +++ b/packages/service-types-generator/src/Components/Client/Client.ts @@ -7,6 +7,7 @@ import {packageNameToVariable} from '../../packageNameToVariable'; import {customizationFromMiddleware} from '../helpers/customizationFromMiddleware'; import {dependenciesFromCustomization} from '../helpers/dependenciesFromCustomization'; import {IndentedSection} from '../IndentedSection'; +import { streamType } from '../../streamType'; import { ConfigurationDefinition, CustomizationDefinition, @@ -55,7 +56,7 @@ export class Client { `${this.prefix}ResolvedConfiguration`, `configurationProperties` ); - const commandGenerics = `InputTypesUnion, InputType, OutputTypesUnion, OutputType, ${this.prefix}ResolvedConfiguration, ${this.streamType()}`; + const commandGenerics = `InputTypesUnion, InputType, OutputTypesUnion, OutputType, ${this.prefix}ResolvedConfiguration, ${streamType(this.target)}`; return `${this.imports()} ${configurationImports.toString()} @@ -68,7 +69,7 @@ export class ${this.className} { readonly middlewareStack = new ${packageNameToVariable('@aws/middleware-stack')}.MiddlewareStack< InputTypesUnion, OutputTypesUnion, - ${this.streamType()} + ${streamType(this.target)} >(); constructor(configuration: ${this.prefix}Configuration) { @@ -145,15 +146,4 @@ ${this.customizations.filter(definition => definition.type === 'Middleware') .map(packageName => new FullPackageImport(packageName)) .join('\n'); } - - private streamType(): string { - switch (this.target) { - case 'node': - return `${packageNameToVariable('stream')}.Readable`; - case 'browser': - return 'ReadableStream'; - case 'universal': - return 'Uint8Array'; - } - } } diff --git a/packages/service-types-generator/src/Components/Command/command.ts b/packages/service-types-generator/src/Components/Command/command.ts index a323fd055e90..ca173aa543c7 100644 --- a/packages/service-types-generator/src/Components/Command/command.ts +++ b/packages/service-types-generator/src/Components/Command/command.ts @@ -12,6 +12,7 @@ import {packageNameToVariable} from '../../packageNameToVariable'; import {serviceIdFromMetadata} from '../../serviceIdFromMetadata'; import {customizationFromMiddleware} from '../helpers/customizationFromMiddleware'; import {dependenciesFromCustomization} from '../helpers/dependenciesFromCustomization'; +import { streamType as getStreamType } from '../../streamType'; export class Command { constructor( @@ -32,7 +33,7 @@ export class Command { toString(): string { const inputType = this.getInputType(); const outputType = this.getOutputType(); - const streamType = this.streamType(); + const streamType = getStreamType(this.target); const resolvedConfiguration = `${this.prefix}ResolvedConfiguration`; const typesPackage = packageNameToVariable('@aws/types'); const middlewareStackPackage = packageNameToVariable('@aws/middleware-stack'); @@ -126,15 +127,4 @@ ${this.customizations.filter(definition => definition.type === 'Middleware') private getOutputType() { return `${this.operation.name}Output`; } - - private streamType(): string { - switch (this.target) { - case 'node': - return `${packageNameToVariable('stream')}.Readable`; - case 'browser': - return 'ReadableStream'; - case 'universal': - return 'Uint8Array'; - } - } } diff --git a/packages/service-types-generator/src/Components/IndentedSection.ts b/packages/service-types-generator/src/Components/IndentedSection.ts index 5698318d85ef..12b525b0b5aa 100644 --- a/packages/service-types-generator/src/Components/IndentedSection.ts +++ b/packages/service-types-generator/src/Components/IndentedSection.ts @@ -15,7 +15,7 @@ export class IndentedSection implements Stringable { return ''; } - return (new Array(this.tabs + 1)).join(TAB) + line.trimRight(); + return (new Array(this.tabs + 1)).join(TAB) + line.replace(/\s$/, ''); }) .join('\n'); } diff --git a/packages/service-types-generator/src/Components/Type/Input.spec.ts b/packages/service-types-generator/src/Components/Type/Input.spec.ts index 05a117d05dc6..fb74f16c23b7 100644 --- a/packages/service-types-generator/src/Components/Type/Input.spec.ts +++ b/packages/service-types-generator/src/Components/Type/Input.spec.ts @@ -144,13 +144,13 @@ ${new IndentedSection(INPUT_CONTROL_PROPERTIES.join('\n\n'))} expect(new Input(inputShape, 'node').toString()).toEqual( `${INPUT_TYPES_IMPORT_NODE} -import {Readable} from 'stream'; +import * as _stream from 'stream'; import * as __aws_types from '@aws/types'; /** * ${inputShape.documentation} */ -export interface ${name} { +export interface ${name} { /** * ${StreamingBlob.documentation} */ @@ -185,7 +185,7 @@ import * as __aws_types from '@aws/types'; /** * ${inputShape.documentation} */ -export interface ${name} { +export interface ${name} { /** * ${StreamingBlob.documentation} */ diff --git a/packages/service-types-generator/src/Components/Type/Input.ts b/packages/service-types-generator/src/Components/Type/Input.ts index e0e0febd565e..9f77fe51ccf6 100644 --- a/packages/service-types-generator/src/Components/Type/Input.ts +++ b/packages/service-types-generator/src/Components/Type/Input.ts @@ -2,7 +2,7 @@ import {Import} from "../Import"; import {Structure} from "./Structure"; import {IndentedSection} from "../IndentedSection"; import {hasStreamingBody} from "./helpers"; -import {GENERIC_STREAM_TYPE} from '../../constants'; +import { streamType } from '../../streamType'; import { ParameterSuppressionCustomizationDefinition, RuntimeTarget, @@ -15,6 +15,7 @@ import { INPUT_TYPES_IMPORT_NODE, INPUT_TYPES_IMPORT_UNIVERSAL, } from './constants'; +import { FullPackageImport } from '../Client/FullPackageImport'; export class Input extends Structure { constructor( @@ -32,12 +33,11 @@ export class Input extends Structure { } toString(): string { - const streamType = this.runtime ? ` = ${this.getStreamType()}` : ''; return ` ${this.imports} ${this.docBlock(this.shape.documentation)} -export interface ${this.shape.name}${hasStreamingBody(this.shape) ? `` : ''} { +export interface ${this.shape.name}${hasStreamingBody(this.shape) ? `` : ''} { ${new IndentedSection( [ ...(new Map( @@ -61,37 +61,20 @@ ${new IndentedSection( .join('\n'); } - private environmentImports(): Import[] { - const toImport = []; - + private environmentImports(): Array<{ toString(): string }> { switch (this.runtime) { case 'node': - toImport.push(INPUT_TYPES_IMPORT_NODE); if (hasStreamingBody(this.shape)) { - toImport.push(new Import('stream', 'Readable')); + return [ + INPUT_TYPES_IMPORT_NODE, + new FullPackageImport('stream'), + ] } - break; + return [INPUT_TYPES_IMPORT_NODE]; case 'browser': - toImport.push(INPUT_TYPES_IMPORT_BROWSER); - break; - case 'universal': - toImport.push(INPUT_TYPES_IMPORT_UNIVERSAL); - break; - } - - return toImport; - } - - private getStreamType() { - switch (this.runtime) { - case 'browser': - return 'ReadableStream'; - case 'node': - return 'Readable'; + return [INPUT_TYPES_IMPORT_BROWSER]; case 'universal': - return 'Uint8Array'; - default: - return GENERIC_STREAM_TYPE; + return [INPUT_TYPES_IMPORT_UNIVERSAL]; } } } diff --git a/packages/service-types-generator/src/Components/Type/Output.ts b/packages/service-types-generator/src/Components/Type/Output.ts index 1dd553aa8adc..899897d7c568 100644 --- a/packages/service-types-generator/src/Components/Type/Output.ts +++ b/packages/service-types-generator/src/Components/Type/Output.ts @@ -11,7 +11,7 @@ import { SyntheticParameterCustomizationDefinition, TreeModelStructure, } from '@aws/build-types'; -import { GENERIC_STREAM_TYPE } from '../../constants'; +import { streamType } from '../../streamType'; export class Output extends Structure { constructor( @@ -32,7 +32,7 @@ export class Output extends Structure { return `${this.imports} ${this.docBlock(this.shape.documentation)} -export interface ${this.shape.name}${hasStreamingBody(this.shape) ? `` : ''} { +export interface ${this.shape.name}${hasStreamingBody(this.shape) ? `` : ''} { ${new IndentedSection( [ ...(new Map( @@ -66,17 +66,4 @@ ${new IndentedSection( } return toImport; } - - private getStreamType() { - switch (this.runtime) { - case 'browser': - return 'ReadableStream|Blob'; - case 'node': - return 'Readable'; - case 'universal': - return 'Uint8Array'; - default: - return GENERIC_STREAM_TYPE; - } - } } diff --git a/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/serializerConfigurationProperties.ts b/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/serializerConfigurationProperties.ts index ad30c83ff31c..68c68d0a74c0 100644 --- a/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/serializerConfigurationProperties.ts +++ b/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/serializerConfigurationProperties.ts @@ -377,7 +377,7 @@ function serializerProperty( /** * @internal */ -function streamCollectorProperty( +export function streamCollectorProperty( streamType: string ): ConfigurationPropertyDefinition { return { diff --git a/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/standardConfigurationProperties.ts b/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/standardConfigurationProperties.ts index 941a822517f3..7d7c48ec915f 100644 --- a/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/standardConfigurationProperties.ts +++ b/packages/service-types-generator/src/ServiceCustomizations/customizationsFromModel/standardConfigurationProperties.ts @@ -220,7 +220,7 @@ export const sha256: ConfigurationPropertyDefinition = { type: 'forked', inputType: `${typesPackage}.HashConstructor`, imports: [IMPORTS.types], - documentation: 'A constructor that can calculate a SHA-256 HMAC', + documentation: 'A constructor for a class implementing the @aws/types.Hash interface that computes the SHA-256 HMAC or checksum of a string or binary buffer', browser: { required: false, imports: [IMPORTS['crypto-sha256-browser']], diff --git a/packages/service-types-generator/src/ServiceCustomizations/index.ts b/packages/service-types-generator/src/ServiceCustomizations/index.ts index 8b17acefe001..82d995031479 100644 --- a/packages/service-types-generator/src/ServiceCustomizations/index.ts +++ b/packages/service-types-generator/src/ServiceCustomizations/index.ts @@ -21,10 +21,10 @@ const serviceCustomizations: {[serviceId: string]: CustomizationProvider} = { s3: s3Customizations, }; -export function getServiceCustomizations( +export const getServiceCustomizations: CustomizationProvider = ( model: TreeModel, target: RuntimeTarget -): ServiceCustomizationDefinition { +): ServiceCustomizationDefinition => { const client = customizationsFromModel(model, target); const commands: {[operationName: string]: CustomizationDefinition[]} = {}; const normalizedServiceId = serviceIdFromMetadata(model.metadata) diff --git a/packages/service-types-generator/src/ServiceCustomizations/s3/bodySigning.ts b/packages/service-types-generator/src/ServiceCustomizations/s3/bodySigning.ts new file mode 100644 index 000000000000..92848ed17cb2 --- /dev/null +++ b/packages/service-types-generator/src/ServiceCustomizations/s3/bodySigning.ts @@ -0,0 +1,168 @@ +import { + ConfigCustomizationDefinition, + ConfigurationPropertyDefinition, + CustomizationProvider, + MiddlewareCustomizationDefinition, + ServiceCustomizationDefinition +} from '@aws/build-types'; +import { + packageNameToVariable +} from '../../packageNameToVariable'; +import { IMPORTS } from '../../internalImports'; +import { + base64Encoder, + md5, + sha256, +} from '../customizationsFromModel/standardConfigurationProperties'; + +const md5Checksum: MiddlewareCustomizationDefinition = { + imports: [ + IMPORTS['apply-body-checksum-middleware'], + ], + step: 'build', + priority: 0, + type: 'Middleware', + tags: `{BODY_CHECKSUM: true}`, + expression: +`${packageNameToVariable('@aws/apply-body-checksum-middleware')}.applyBodyChecksumMiddleware( + 'Content-MD5', + configuration.md5, + configuration.base64Encoder, + configuration.streamHasher +)`, + configuration: { + md5, + base64Encoder, + } +}; + +const sha256Checksum: MiddlewareCustomizationDefinition = { + imports: [ + IMPORTS['apply-body-checksum-middleware'], + ], + step: 'build', + priority: 0, + type: 'Middleware', + tags: `{BODY_CHECKSUM: true}`, + expression: +`${packageNameToVariable('@aws/apply-body-checksum-middleware')}.applyBodyChecksumMiddleware( + 'x-amz-content-sha256', + configuration.sha256, + configuration.base64Encoder, + configuration.streamHasher +)`, + configuration: { + sha256, + base64Encoder, + } +}; + +const disableBodySigning: ConfigurationPropertyDefinition = { + type: 'unified', + documentation: 'Whether body signing should be disabled. Body signing can only be disabled when using HTTPS', + inputType: 'boolean', + required: false, + default: { + type: 'provider', + expression: `(configuration: { sslEnabled: boolean }) => configuration.sslEnabled` + } +}; + +/** +* @internal +*/ +export function streamHasherProperty( + streamType: string +): ConfigurationPropertyDefinition { + return { + type: 'forked', + inputType: `${packageNameToVariable('@aws/types')}.StreamCollector<${streamType}>`, + documentation: 'A function that, given a hash constructor and a stream, calculates the hash of the streamed value', + browser: { + required: false, + imports: [ IMPORTS['hash-blob-browser'] ], + default: { + type: 'value', + expression: `${packageNameToVariable('@aws/hash-blob-browser')}.calculateSha256'` + }, + }, + node: { + required: false, + imports: [ IMPORTS['hash-stream-node'] ], + default: { + type: 'value', + expression: `${packageNameToVariable('@aws/hash-stream-node')}.calculateSha256'` + }, + }, + universal: { + required: false, + }, + }; +} + +const disableBodySigningCustomization: ConfigCustomizationDefinition = { + type: 'Configuration', + configuration: { + disableBodySigning, + } +}; + +const unsignedPayload: MiddlewareCustomizationDefinition = { + imports: [ + IMPORTS['sigv4-unsigned-payload-middleware'], + ], + step: 'build', + priority: sha256Checksum.priority + 100, + type: 'Middleware', + tags: `{BODY_CHECKSUM: true, UNSIGNED_PAYLOAD: true}`, + expression: `${packageNameToVariable('@aws/middleware-header-default')}.headerDefault({'x-amz-content-sha256': 'UNSIGNED_PAYLOAD'})`, + conditionExpression: `configuration.disableBodySigning`, + configuration: { + disableBodySigning + } +}; + +export const bodySigningCustomizations: CustomizationProvider = () => { + return { + commands: { + DeleteObjects: [ + md5Checksum, + ], + PutBucketCors: [ + md5Checksum, + ], + PutBucketLifecycle: [ + md5Checksum, + ], + PutBucketLifecycleConfiguration: [ + md5Checksum, + ], + PutBucketPolicy: [ + md5Checksum, + ], + PutBucketTagging: [ + md5Checksum, + ], + PutBucketReplication: [ + md5Checksum, + ], + PutObject: [ + unsignedPayload, + sha256Checksum, + ], + UploadPart: [ + unsignedPayload, + sha256Checksum, + ], + }, + client: [ + { + type: 'Configuration', + configuration: { + disableBodySigning, + streamHasher: streamHasherProperty('Blob'), + } + }, + ], + }; +} diff --git a/packages/service-types-generator/src/ServiceCustomizations/s3/bucketEndpoint.ts b/packages/service-types-generator/src/ServiceCustomizations/s3/bucketEndpoint.ts index c4827e817749..464cd0cef795 100644 --- a/packages/service-types-generator/src/ServiceCustomizations/s3/bucketEndpoint.ts +++ b/packages/service-types-generator/src/ServiceCustomizations/s3/bucketEndpoint.ts @@ -1,5 +1,6 @@ import { CustomizationDefinition, + CustomizationProvider, ConfigurationPropertyDefinition, MiddlewareCustomizationDefinition, ServiceCustomizationDefinition, @@ -131,9 +132,9 @@ const uncustomizedCommands = [ 'ListBuckets', ]; -export function bucketEndpointCustomizations( +export const bucketEndpointCustomizations: CustomizationProvider = ( model: TreeModel -): ServiceCustomizationDefinition { +) => { return { client: [ { diff --git a/packages/service-types-generator/src/ServiceCustomizations/s3/index.ts b/packages/service-types-generator/src/ServiceCustomizations/s3/index.ts index 1d929e6d49a8..f98cf2921b73 100644 --- a/packages/service-types-generator/src/ServiceCustomizations/s3/index.ts +++ b/packages/service-types-generator/src/ServiceCustomizations/s3/index.ts @@ -1,17 +1,27 @@ +import { bodySigningCustomizations } from './bodySigning'; import { bucketEndpointCustomizations } from './bucketEndpoint'; import { locationConstraintCustomization } from './locationConstraint'; import { ssecCustomizations } from './ssec'; -import { ServiceCustomizationDefinition, TreeModel } from '@aws/build-types'; import { model } from '../../shapes.fixture'; +import { + CustomizationProvider, + RuntimeTarget, + ServiceCustomizationDefinition, + TreeModel, +} from '@aws/build-types'; -export function s3Customizations(model: TreeModel): ServiceCustomizationDefinition { +export const s3Customizations: CustomizationProvider = ( + model: TreeModel, + runtime: RuntimeTarget +) => { const s3Customizations: ServiceCustomizationDefinition = { commands: {}, client: [], }; for (const {client, commands} of [ - bucketEndpointCustomizations(model), + bucketEndpointCustomizations(model, runtime), + bodySigningCustomizations(model, runtime), locationConstraintCustomization, ssecCustomizations(model), ]) { diff --git a/packages/service-types-generator/src/internalImports.ts b/packages/service-types-generator/src/internalImports.ts index 4718cd787716..b4a5e46ede96 100644 --- a/packages/service-types-generator/src/internalImports.ts +++ b/packages/service-types-generator/src/internalImports.ts @@ -20,6 +20,10 @@ export const IMPORTS: {[key: string]: Import} = { package: '@aws/add-glacier-checksum-headers-universal', version: '^0.0.1', }, + 'apply-body-checksum-middleware': { + package: '@aws/apply-body-checksum-middleware', + version: '^0.0.1', + }, 'bucket-endpoint-middleware': { package: '@aws/bucket-endpoint-middleware', version: '^0.0.1', @@ -104,10 +108,18 @@ export const IMPORTS: {[key: string]: Import} = { package: '@aws/fetch-http-handler', version: '^0.0.1', }, + 'hash-blob-browser': { + package: '@aws/hash-blob-browser', + version: '^0.0.1', + }, 'hash-node': { package: '@aws/hash-node', version: '^0.0.1', }, + 'hash-stream-node': { + package: '@aws/hash-stream-node', + version: '^0.0.1', + }, 'http-serialization': { package: '@aws/http-serialization', version: '^0.0.1', @@ -148,6 +160,10 @@ export const IMPORTS: {[key: string]: Import} = { package: '@aws/md5-js', version: '^0.0.1', }, + 'md5-universal': { + package: '@aws/md5-universal', + version: '^0.0.1', + }, 'middleware-content-length': { package: '@aws/middleware-content-length', version: '^0.0.1', @@ -256,6 +272,14 @@ export const IMPORTS: {[key: string]: Import} = { package: '@aws/sdk-cognito-identity-browser', version: '^0.0.1', }, + 'sdk-glacier-browser': { + package: '@aws/sdk-glacier-browser', + version: '^0.0.1', + }, + 'sdk-glacier-node': { + package: '@aws/sdk-glacier-node', + version: '^0.0.1', + }, 'sdk-kms-node': { package: '@aws/sdk-kms-node', version: '^0.0.1', @@ -284,14 +308,6 @@ export const IMPORTS: {[key: string]: Import} = { package: '@aws/service-types-generator', version: '^0.0.1', }, - 'sha256-blob-browser': { - package: '@aws/sha256-blob-browser', - version: '^0.0.1', - }, - 'sha256-stream-node': { - package: '@aws/sha256-stream-node', - version: '^0.0.1', - }, 'sha256-tree-hash': { package: '@aws/sha256-tree-hash', version: '^0.0.1', diff --git a/packages/service-types-generator/src/streamType.ts b/packages/service-types-generator/src/streamType.ts index c13916fad6e1..c3c71d343bb8 100644 --- a/packages/service-types-generator/src/streamType.ts +++ b/packages/service-types-generator/src/streamType.ts @@ -6,8 +6,8 @@ export function streamType(target: RuntimeTarget): string { case 'node': return `${packageNameToVariable('stream')}.Readable`; case 'browser': - return 'ReadableStream'; + return 'Blob'; case 'universal': return 'Uint8Array'; } -} \ No newline at end of file +} diff --git a/packages/sha256-stream-node/README.md b/packages/sha256-stream-node/README.md deleted file mode 100644 index 62b455aa91d4..000000000000 --- a/packages/sha256-stream-node/README.md +++ /dev/null @@ -1 +0,0 @@ -# sha256-stream-node \ No newline at end of file diff --git a/packages/sha256-tree-hash/package.json b/packages/sha256-tree-hash/package.json index 109876ce98f2..7bed0f00977a 100644 --- a/packages/sha256-tree-hash/package.json +++ b/packages/sha256-tree-hash/package.json @@ -23,7 +23,7 @@ "@aws/util-hex-encoding": "^0.0.1", "@aws/util-utf8-node": "^0.0.1", "@types/jest": "^20.0.2", - "typescript": "^2.3", + "typescript": "^2.6", "jest": "^20.0.4" } -} \ No newline at end of file +} diff --git a/packages/stream-collector-browser/package.json b/packages/stream-collector-browser/package.json index 4c08a03ddd70..6feb30aed202 100644 --- a/packages/stream-collector-browser/package.json +++ b/packages/stream-collector-browser/package.json @@ -6,7 +6,7 @@ "scripts": { "prepublishOnly": "tsc", "pretest": "tsc -p tsconfig.test.json", - "test": "jest --coverage" + "test": "jest --coverage --mapCoverage" }, "author": { "name": "AWS SDK for JavaScript Team", @@ -24,12 +24,5 @@ "@types/jest": "^20.0.2", "jest": "^20.0.4", "typescript": "^2.6" - }, - "jest": { - "mapCoverage": true, - "coveragePathIgnorePatterns": [ - "/node_modules/", - "/__fixtures__/" - ] } } diff --git a/packages/stream-collector-browser/src/index.spec.ts b/packages/stream-collector-browser/src/index.spec.ts index eab6b6030490..ec794f1c3b3b 100644 --- a/packages/stream-collector-browser/src/index.spec.ts +++ b/packages/stream-collector-browser/src/index.spec.ts @@ -1,65 +1,52 @@ import {streamCollector} from './index'; -class MockReadableStream { - private buffersRead: number = 0; - constructor( - private buffers: Uint8Array[] = [] - ) {} +declare const global: any - getReader = () => { - return { - read: async () => { - if (this.buffersRead >= this.buffers.length) { - return { - done: true - }; - } - return { - done: false, - value: this.buffers[this.buffersRead++] - }; - } - } as ReadableStreamReader; - } +describe('streamCollector', () => { + const ambientFileReader = typeof FileReader !== 'undefined' ? + FileReader : undefined; -} + beforeEach(() => { + const mockFileReader: FileReader = { + readAsArrayBuffer: jest.fn(), + } as any; + global.FileReader = function() { return mockFileReader; } as any; + }); -describe('streamCollector', () => { - it( - 'returns a Uint8Array from a stream', - async () => { - const mockData = [ - Uint8Array.from([102, 111, 111]) - ]; - const expected = new Uint8Array([102, 111, 111]); - const stream = new MockReadableStream(mockData); - const collectedData = await streamCollector(stream); - expect(collectedData).toEqual(expected); - } - ); - - it( - 'returns a Uint8Array containing all data from a stream', - async () => { - const mockData = [ - Uint8Array.from([102, 111, 111]), - Uint8Array.from([98, 97, 114]), - Uint8Array.from([98, 117, 122, 122]) - ]; - const expected = new Uint8Array([102, 111, 111, 98, 97, 114, 98, 117, 122, 122]); - const stream = new MockReadableStream(mockData); - const collectedData = await streamCollector(stream); - expect(collectedData).toEqual(expected); - } - ); + afterEach(() => { + global.FileReader = ambientFileReader as any; + }); + + it('returns a Uint8Array from a blob', async () => { + const dataPromise = streamCollector(new Blob); + + const reader = new FileReader(); + (reader as any).result = Uint8Array.from([0xde, 0xad]).buffer; + reader.onload({} as any); + + expect(await dataPromise).toEqual(Uint8Array.from([0xde, 0xad])); + }); + + it('propagates errors encountered by the file reader', async () => { + const dataPromise = streamCollector(new Blob); + + const reader = new FileReader(); + (reader as any).error = new Error('PANIC'); + reader.onerror({} as any); + + await expect(dataPromise) + .rejects + .toMatchObject(new Error('PANIC')); + }); + + it('rejects the promise when the read is aborted', async () => { + const dataPromise = streamCollector(new Blob); + + const reader = new FileReader(); + reader.onabort({} as any); - it( - 'returns a Uint8Array when stream is empty', - async () => { - const expected = new Uint8Array(0); - const stream = new MockReadableStream(); - const collectedData = await streamCollector(stream); - expect(collectedData).toEqual(expected); - } - ); -}); \ No newline at end of file + await expect(dataPromise) + .rejects + .toMatchObject(new Error('Read aborted')); + }); +}); diff --git a/packages/stream-collector-browser/src/index.ts b/packages/stream-collector-browser/src/index.ts index 448f7c36400c..e62115ee55cc 100644 --- a/packages/stream-collector-browser/src/index.ts +++ b/packages/stream-collector-browser/src/index.ts @@ -1,48 +1,13 @@ -import {StreamCollector} from '@aws/types'; +import { StreamCollector } from '@aws/types'; -export const streamCollector: StreamCollector = function streamCollector( - stream +export const streamCollector: StreamCollector = function streamCollector( + stream: Blob ): Promise { - const reader = stream.getReader(); - const chunks: Uint8Array[] = []; - - return read(reader, chunks) - .then(concatChunks); -} - -function concatChunks(chunks: Uint8Array[]): Uint8Array { - if (chunks.length === 0) { - return new Uint8Array(0); - } else if (chunks.length === 1) { - return chunks[0]; - } - - let size = 0; - const numChunks = chunks.length; - for (let i = 0; i < numChunks; i++) { - size += chunks[i].byteLength; - } - - const payload: Uint8Array = new Uint8Array(size); - let offset = 0; - for (let i = 0; i < numChunks; i++) { - payload.set(chunks[i], offset); - offset += chunks[i].byteLength; - } - return payload; + return new Promise((resolve, reject) => { + const reader = new FileReader; + reader.onload = () => resolve(new Uint8Array(reader.result)); + reader.onabort = () => reject(new Error('Read aborted')); + reader.onerror = () => reject(reader.error); + reader.readAsArrayBuffer(stream); + }); } - -function read( - reader: ReadableStreamReader, - chunks: Uint8Array[] -): Promise { - return reader.read() - .then(({value, done}) => { - if (done) { - return chunks; - } - - chunks.push(value); - return read(reader, chunks); - }); -} \ No newline at end of file diff --git a/packages/types/src/crypto.ts b/packages/types/src/crypto.ts index 3ceae077fde3..db3192a9ce99 100644 --- a/packages/types/src/crypto.ts +++ b/packages/types/src/crypto.ts @@ -32,6 +32,15 @@ export interface HashConstructor { new (secret?: SourceData): Hash; } +/** + * A function that calculates the hash of a data stream. Determining the hash + * will consume the stream, so only replayable streams should be provided to an + * implementation of this interface. + */ +export interface StreamHasher { + (hashCtor: { new (): Hash }, stream: StreamType): Promise; +} + /** * A function that returns a promise fulfilled with bytes from a * cryptographically secure pseudorandom number generator.