@aws-sdk/client-ecr-public 3.477.0 → 3.481.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +18 -41
  2. package/dist-cjs/commands/BatchDeleteImageCommand.js +18 -41
  3. package/dist-cjs/commands/CompleteLayerUploadCommand.js +18 -41
  4. package/dist-cjs/commands/CreateRepositoryCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteRepositoryCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeImageTagsCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeImagesCommand.js +18 -41
  9. package/dist-cjs/commands/DescribeRegistriesCommand.js +18 -41
  10. package/dist-cjs/commands/DescribeRepositoriesCommand.js +18 -41
  11. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +18 -41
  12. package/dist-cjs/commands/GetRegistryCatalogDataCommand.js +18 -41
  13. package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js +18 -41
  14. package/dist-cjs/commands/GetRepositoryPolicyCommand.js +18 -41
  15. package/dist-cjs/commands/InitiateLayerUploadCommand.js +18 -41
  16. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  17. package/dist-cjs/commands/PutImageCommand.js +18 -41
  18. package/dist-cjs/commands/PutRegistryCatalogDataCommand.js +18 -41
  19. package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js +18 -41
  20. package/dist-cjs/commands/SetRepositoryPolicyCommand.js +18 -41
  21. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  22. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  23. package/dist-cjs/commands/UploadLayerPartCommand.js +18 -41
  24. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  25. package/dist-cjs/pagination/DescribeImageTagsPaginator.js +2 -24
  26. package/dist-cjs/pagination/DescribeImagesPaginator.js +2 -24
  27. package/dist-cjs/pagination/DescribeRegistriesPaginator.js +2 -24
  28. package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +2 -24
  29. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +18 -41
  30. package/dist-es/commands/BatchDeleteImageCommand.js +18 -41
  31. package/dist-es/commands/CompleteLayerUploadCommand.js +18 -41
  32. package/dist-es/commands/CreateRepositoryCommand.js +18 -41
  33. package/dist-es/commands/DeleteRepositoryCommand.js +18 -41
  34. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +18 -41
  35. package/dist-es/commands/DescribeImageTagsCommand.js +18 -41
  36. package/dist-es/commands/DescribeImagesCommand.js +18 -41
  37. package/dist-es/commands/DescribeRegistriesCommand.js +18 -41
  38. package/dist-es/commands/DescribeRepositoriesCommand.js +18 -41
  39. package/dist-es/commands/GetAuthorizationTokenCommand.js +18 -41
  40. package/dist-es/commands/GetRegistryCatalogDataCommand.js +18 -41
  41. package/dist-es/commands/GetRepositoryCatalogDataCommand.js +18 -41
  42. package/dist-es/commands/GetRepositoryPolicyCommand.js +18 -41
  43. package/dist-es/commands/InitiateLayerUploadCommand.js +18 -41
  44. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  45. package/dist-es/commands/PutImageCommand.js +18 -41
  46. package/dist-es/commands/PutRegistryCatalogDataCommand.js +18 -41
  47. package/dist-es/commands/PutRepositoryCatalogDataCommand.js +18 -41
  48. package/dist-es/commands/SetRepositoryPolicyCommand.js +18 -41
  49. package/dist-es/commands/TagResourceCommand.js +18 -41
  50. package/dist-es/commands/UntagResourceCommand.js +18 -41
  51. package/dist-es/commands/UploadLayerPartCommand.js +18 -41
  52. package/dist-es/endpoint/EndpointParameters.js +6 -0
  53. package/dist-es/pagination/DescribeImageTagsPaginator.js +2 -23
  54. package/dist-es/pagination/DescribeImagesPaginator.js +2 -23
  55. package/dist-es/pagination/DescribeRegistriesPaginator.js +2 -23
  56. package/dist-es/pagination/DescribeRepositoriesPaginator.js +2 -23
  57. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +6 -21
  58. package/dist-types/commands/BatchDeleteImageCommand.d.ts +6 -21
  59. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +6 -21
  60. package/dist-types/commands/CreateRepositoryCommand.d.ts +6 -21
  61. package/dist-types/commands/DeleteRepositoryCommand.d.ts +6 -21
  62. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +6 -21
  63. package/dist-types/commands/DescribeImageTagsCommand.d.ts +6 -21
  64. package/dist-types/commands/DescribeImagesCommand.d.ts +6 -21
  65. package/dist-types/commands/DescribeRegistriesCommand.d.ts +6 -21
  66. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +6 -21
  67. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +6 -21
  68. package/dist-types/commands/GetRegistryCatalogDataCommand.d.ts +6 -21
  69. package/dist-types/commands/GetRepositoryCatalogDataCommand.d.ts +6 -21
  70. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +6 -21
  71. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +6 -21
  72. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  73. package/dist-types/commands/PutImageCommand.d.ts +6 -21
  74. package/dist-types/commands/PutRegistryCatalogDataCommand.d.ts +6 -21
  75. package/dist-types/commands/PutRepositoryCatalogDataCommand.d.ts +6 -21
  76. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +6 -21
  77. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  78. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  79. package/dist-types/commands/UploadLayerPartCommand.d.ts +6 -21
  80. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  81. package/dist-types/pagination/DescribeImageTagsPaginator.d.ts +1 -1
  82. package/dist-types/pagination/DescribeImagesPaginator.d.ts +1 -1
  83. package/dist-types/pagination/DescribeRegistriesPaginator.d.ts +1 -1
  84. package/dist-types/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/DescribeImageTagsCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +14 -23
  93. package/dist-types/ts3.4/commands/DescribeRegistriesCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +12 -24
  95. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/GetRegistryCatalogDataCommand.d.ts +12 -24
  97. package/dist-types/ts3.4/commands/GetRepositoryCatalogDataCommand.d.ts +12 -24
  98. package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/PutRegistryCatalogDataCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/PutRepositoryCatalogDataCommand.d.ts +12 -24
  104. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  109. package/dist-types/ts3.4/pagination/DescribeImageTagsPaginator.d.ts +3 -3
  110. package/dist-types/ts3.4/pagination/DescribeImagesPaginator.d.ts +3 -3
  111. package/dist-types/ts3.4/pagination/DescribeRegistriesPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +3 -3
  113. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ECRPUBLICClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SpencerFrontendService",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SpencerFrontendService", "TagResource", {})
19
+ .n("ECRPUBLICClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ECRPUBLICClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SpencerFrontendService",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SpencerFrontendService", "UntagResource", {})
19
+ .n("ECRPUBLICClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UploadLayerPartCommand, se_UploadLayerPartCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UploadLayerPartCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UploadLayerPartCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ECRPUBLICClient";
26
- const commandName = "UploadLayerPartCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SpencerFrontendService",
35
- operation: "UploadLayerPart",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UploadLayerPartCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UploadLayerPartCommand(output, context);
46
- }
7
+ export class UploadLayerPartCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SpencerFrontendService", "UploadLayerPart", {})
19
+ .n("ECRPUBLICClient", "UploadLayerPartCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UploadLayerPartCommand)
22
+ .de(de_UploadLayerPartCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "ecr-public",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeImageTagsCommand, } from "../commands/DescribeImageTagsCommand";
2
3
  import { ECRPUBLICClient } from "../ECRPUBLICClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeImageTagsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeImageTags(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ECRPUBLICClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeImageTags = createPaginator(ECRPUBLICClient, DescribeImageTagsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeImagesCommand, } from "../commands/DescribeImagesCommand";
2
3
  import { ECRPUBLICClient } from "../ECRPUBLICClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeImagesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeImages(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ECRPUBLICClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeImages = createPaginator(ECRPUBLICClient, DescribeImagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeRegistriesCommand, } from "../commands/DescribeRegistriesCommand";
2
3
  import { ECRPUBLICClient } from "../ECRPUBLICClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeRegistriesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeRegistries(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ECRPUBLICClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeRegistries = createPaginator(ECRPUBLICClient, DescribeRegistriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeRepositoriesCommand, } from "../commands/DescribeRepositoriesCommand";
2
3
  import { ECRPUBLICClient } from "../ECRPUBLICClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeRepositoriesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeRepositories(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ECRPUBLICClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeRepositories = createPaginator(ECRPUBLICClient, DescribeRepositoriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { BatchCheckLayerAvailabilityRequest, BatchCheckLayerAvailabilityResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface BatchCheckLayerAvailabilityCommandInput extends BatchCheckLayer
21
20
  */
22
21
  export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLayerAvailabilityResponse, __MetadataBearer {
23
22
  }
23
+ declare const BatchCheckLayerAvailabilityCommand_base: {
24
+ new (input: BatchCheckLayerAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl<BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Checks the availability of one or more image layers that are within a repository in a
@@ -92,23 +95,5 @@ export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLaye
92
95
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
93
96
  *
94
97
  */
95
- export declare class BatchCheckLayerAvailabilityCommand extends $Command<BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput, ECRPUBLICClientResolvedConfig> {
96
- readonly input: BatchCheckLayerAvailabilityCommandInput;
97
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
- /**
99
- * @public
100
- */
101
- constructor(input: BatchCheckLayerAvailabilityCommandInput);
102
- /**
103
- * @internal
104
- */
105
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput>;
106
- /**
107
- * @internal
108
- */
109
- private serialize;
110
- /**
111
- * @internal
112
- */
113
- private deserialize;
98
+ export declare class BatchCheckLayerAvailabilityCommand extends BatchCheckLayerAvailabilityCommand_base {
114
99
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { BatchDeleteImageRequest, BatchDeleteImageResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface BatchDeleteImageCommandInput extends BatchDeleteImageRequest {
21
20
  */
22
21
  export interface BatchDeleteImageCommandOutput extends BatchDeleteImageResponse, __MetadataBearer {
23
22
  }
23
+ declare const BatchDeleteImageCommand_base: {
24
+ new (input: BatchDeleteImageCommandInput): import("@smithy/smithy-client").CommandImpl<BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a list of specified images that are within a repository in a public registry.
@@ -93,23 +96,5 @@ export interface BatchDeleteImageCommandOutput extends BatchDeleteImageResponse,
93
96
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
94
97
  *
95
98
  */
96
- export declare class BatchDeleteImageCommand extends $Command<BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput, ECRPUBLICClientResolvedConfig> {
97
- readonly input: BatchDeleteImageCommandInput;
98
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
- /**
100
- * @public
101
- */
102
- constructor(input: BatchDeleteImageCommandInput);
103
- /**
104
- * @internal
105
- */
106
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput>;
107
- /**
108
- * @internal
109
- */
110
- private serialize;
111
- /**
112
- * @internal
113
- */
114
- private deserialize;
99
+ export declare class BatchDeleteImageCommand extends BatchDeleteImageCommand_base {
115
100
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { CompleteLayerUploadRequest, CompleteLayerUploadResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CompleteLayerUploadCommandInput extends CompleteLayerUploadRequ
21
20
  */
22
21
  export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadResponse, __MetadataBearer {
23
22
  }
23
+ declare const CompleteLayerUploadCommand_base: {
24
+ new (input: CompleteLayerUploadCommandInput): import("@smithy/smithy-client").CommandImpl<CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Informs Amazon ECR that the image layer upload is complete for a specified public registry,
@@ -100,23 +103,5 @@ export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadRes
100
103
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
101
104
  *
102
105
  */
103
- export declare class CompleteLayerUploadCommand extends $Command<CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput, ECRPUBLICClientResolvedConfig> {
104
- readonly input: CompleteLayerUploadCommandInput;
105
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
106
- /**
107
- * @public
108
- */
109
- constructor(input: CompleteLayerUploadCommandInput);
110
- /**
111
- * @internal
112
- */
113
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput>;
114
- /**
115
- * @internal
116
- */
117
- private serialize;
118
- /**
119
- * @internal
120
- */
121
- private deserialize;
106
+ export declare class CompleteLayerUploadCommand extends CompleteLayerUploadCommand_base {
122
107
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { CreateRepositoryRequest, CreateRepositoryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateRepositoryCommandInput extends CreateRepositoryRequest {
21
20
  */
22
21
  export interface CreateRepositoryCommandOutput extends CreateRepositoryResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateRepositoryCommand_base: {
24
+ new (input: CreateRepositoryCommandInput): import("@smithy/smithy-client").CommandImpl<CreateRepositoryCommandInput, CreateRepositoryCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a repository in a public registry. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html">Amazon ECR
@@ -114,23 +117,5 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResponse,
114
117
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
115
118
  *
116
119
  */
117
- export declare class CreateRepositoryCommand extends $Command<CreateRepositoryCommandInput, CreateRepositoryCommandOutput, ECRPUBLICClientResolvedConfig> {
118
- readonly input: CreateRepositoryCommandInput;
119
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
120
- /**
121
- * @public
122
- */
123
- constructor(input: CreateRepositoryCommandInput);
124
- /**
125
- * @internal
126
- */
127
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateRepositoryCommandInput, CreateRepositoryCommandOutput>;
128
- /**
129
- * @internal
130
- */
131
- private serialize;
132
- /**
133
- * @internal
134
- */
135
- private deserialize;
120
+ export declare class CreateRepositoryCommand extends CreateRepositoryCommand_base {
136
121
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { DeleteRepositoryRequest, DeleteRepositoryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteRepositoryCommandInput extends DeleteRepositoryRequest {
21
20
  */
22
21
  export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteRepositoryCommand_base: {
24
+ new (input: DeleteRepositoryCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a repository in a public registry. If the repository contains images, you must
@@ -79,23 +82,5 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse,
79
82
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
80
83
  *
81
84
  */
82
- export declare class DeleteRepositoryCommand extends $Command<DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput, ECRPUBLICClientResolvedConfig> {
83
- readonly input: DeleteRepositoryCommandInput;
84
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
- /**
86
- * @public
87
- */
88
- constructor(input: DeleteRepositoryCommandInput);
89
- /**
90
- * @internal
91
- */
92
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput>;
93
- /**
94
- * @internal
95
- */
96
- private serialize;
97
- /**
98
- * @internal
99
- */
100
- private deserialize;
85
+ export declare class DeleteRepositoryCommand extends DeleteRepositoryCommand_base {
101
86
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { DeleteRepositoryPolicyRequest, DeleteRepositoryPolicyResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteRepositoryPolicyCommandInput extends DeleteRepositoryPoli
21
20
  */
22
21
  export interface DeleteRepositoryPolicyCommandOutput extends DeleteRepositoryPolicyResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteRepositoryPolicyCommand_base: {
24
+ new (input: DeleteRepositoryPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the repository policy that's associated with the specified repository.</p>
@@ -72,23 +75,5 @@ export interface DeleteRepositoryPolicyCommandOutput extends DeleteRepositoryPol
72
75
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
73
76
  *
74
77
  */
75
- export declare class DeleteRepositoryPolicyCommand extends $Command<DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput, ECRPUBLICClientResolvedConfig> {
76
- readonly input: DeleteRepositoryPolicyCommandInput;
77
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
- /**
79
- * @public
80
- */
81
- constructor(input: DeleteRepositoryPolicyCommandInput);
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput>;
86
- /**
87
- * @internal
88
- */
89
- private serialize;
90
- /**
91
- * @internal
92
- */
93
- private deserialize;
78
+ export declare class DeleteRepositoryPolicyCommand extends DeleteRepositoryPolicyCommand_base {
94
79
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
5
4
  import { DescribeImageTagsRequest, DescribeImageTagsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DescribeImageTagsCommandInput extends DescribeImageTagsRequest
21
20
  */
22
21
  export interface DescribeImageTagsCommandOutput extends DescribeImageTagsResponse, __MetadataBearer {
23
22
  }
23
+ declare const DescribeImageTagsCommand_base: {
24
+ new (input: DescribeImageTagsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput, ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns the image tag details for a repository in a public registry.</p>
@@ -81,23 +84,5 @@ export interface DescribeImageTagsCommandOutput extends DescribeImageTagsRespons
81
84
  * <p>Base exception class for all service exceptions from ECRPUBLIC service.</p>
82
85
  *
83
86
  */
84
- export declare class DescribeImageTagsCommand extends $Command<DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput, ECRPUBLICClientResolvedConfig> {
85
- readonly input: DescribeImageTagsCommandInput;
86
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
87
- /**
88
- * @public
89
- */
90
- constructor(input: DescribeImageTagsCommandInput);
91
- /**
92
- * @internal
93
- */
94
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECRPUBLICClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput>;
95
- /**
96
- * @internal
97
- */
98
- private serialize;
99
- /**
100
- * @internal
101
- */
102
- private deserialize;
87
+ export declare class DescribeImageTagsCommand extends DescribeImageTagsCommand_base {
103
88
  }