@aws-sdk/client-ecr 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.
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +18 -41
- package/dist-cjs/commands/BatchDeleteImageCommand.js +18 -41
- package/dist-cjs/commands/BatchGetImageCommand.js +18 -41
- package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +18 -41
- package/dist-cjs/commands/CompleteLayerUploadCommand.js +18 -41
- package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +18 -41
- package/dist-cjs/commands/CreateRepositoryCommand.js +18 -41
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +18 -41
- package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +18 -41
- package/dist-cjs/commands/DeleteRegistryPolicyCommand.js +18 -41
- package/dist-cjs/commands/DeleteRepositoryCommand.js +18 -41
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +18 -41
- package/dist-cjs/commands/DescribeImageReplicationStatusCommand.js +18 -41
- package/dist-cjs/commands/DescribeImageScanFindingsCommand.js +18 -41
- package/dist-cjs/commands/DescribeImagesCommand.js +18 -41
- package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +18 -41
- package/dist-cjs/commands/DescribeRegistryCommand.js +18 -41
- package/dist-cjs/commands/DescribeRepositoriesCommand.js +18 -41
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +18 -41
- package/dist-cjs/commands/GetDownloadUrlForLayerCommand.js +18 -41
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +18 -41
- package/dist-cjs/commands/GetLifecyclePolicyPreviewCommand.js +18 -41
- package/dist-cjs/commands/GetRegistryPolicyCommand.js +18 -41
- package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +18 -41
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js +18 -41
- package/dist-cjs/commands/InitiateLayerUploadCommand.js +18 -41
- package/dist-cjs/commands/ListImagesCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/PutImageCommand.js +18 -41
- package/dist-cjs/commands/PutImageScanningConfigurationCommand.js +18 -41
- package/dist-cjs/commands/PutImageTagMutabilityCommand.js +18 -41
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js +18 -41
- package/dist-cjs/commands/PutRegistryPolicyCommand.js +18 -41
- package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +18 -41
- package/dist-cjs/commands/PutReplicationConfigurationCommand.js +18 -41
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js +18 -41
- package/dist-cjs/commands/StartImageScanCommand.js +18 -41
- package/dist-cjs/commands/StartLifecyclePolicyPreviewCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdatePullThroughCacheRuleCommand.js +18 -41
- package/dist-cjs/commands/UploadLayerPartCommand.js +18 -41
- package/dist-cjs/commands/ValidatePullThroughCacheRuleCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeImageScanFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeImagesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePullThroughCacheRulesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +2 -24
- package/dist-cjs/pagination/GetLifecyclePolicyPreviewPaginator.js +2 -24
- package/dist-cjs/pagination/ListImagesPaginator.js +2 -24
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +18 -41
- package/dist-es/commands/BatchDeleteImageCommand.js +18 -41
- package/dist-es/commands/BatchGetImageCommand.js +18 -41
- package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +18 -41
- package/dist-es/commands/CompleteLayerUploadCommand.js +18 -41
- package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +18 -41
- package/dist-es/commands/CreateRepositoryCommand.js +18 -41
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +18 -41
- package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +18 -41
- package/dist-es/commands/DeleteRegistryPolicyCommand.js +18 -41
- package/dist-es/commands/DeleteRepositoryCommand.js +18 -41
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +18 -41
- package/dist-es/commands/DescribeImageReplicationStatusCommand.js +18 -41
- package/dist-es/commands/DescribeImageScanFindingsCommand.js +18 -41
- package/dist-es/commands/DescribeImagesCommand.js +18 -41
- package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +18 -41
- package/dist-es/commands/DescribeRegistryCommand.js +18 -41
- package/dist-es/commands/DescribeRepositoriesCommand.js +18 -41
- package/dist-es/commands/GetAuthorizationTokenCommand.js +18 -41
- package/dist-es/commands/GetDownloadUrlForLayerCommand.js +18 -41
- package/dist-es/commands/GetLifecyclePolicyCommand.js +18 -41
- package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +18 -41
- package/dist-es/commands/GetRegistryPolicyCommand.js +18 -41
- package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +18 -41
- package/dist-es/commands/GetRepositoryPolicyCommand.js +18 -41
- package/dist-es/commands/InitiateLayerUploadCommand.js +18 -41
- package/dist-es/commands/ListImagesCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/PutImageCommand.js +18 -41
- package/dist-es/commands/PutImageScanningConfigurationCommand.js +18 -41
- package/dist-es/commands/PutImageTagMutabilityCommand.js +18 -41
- package/dist-es/commands/PutLifecyclePolicyCommand.js +18 -41
- package/dist-es/commands/PutRegistryPolicyCommand.js +18 -41
- package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +18 -41
- package/dist-es/commands/PutReplicationConfigurationCommand.js +18 -41
- package/dist-es/commands/SetRepositoryPolicyCommand.js +18 -41
- package/dist-es/commands/StartImageScanCommand.js +18 -41
- package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdatePullThroughCacheRuleCommand.js +18 -41
- package/dist-es/commands/UploadLayerPartCommand.js +18 -41
- package/dist-es/commands/ValidatePullThroughCacheRuleCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeImageScanFindingsPaginator.js +2 -23
- package/dist-es/pagination/DescribeImagesPaginator.js +2 -23
- package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +2 -23
- package/dist-es/pagination/DescribeRepositoriesPaginator.js +2 -23
- package/dist-es/pagination/GetLifecyclePolicyPreviewPaginator.js +2 -23
- package/dist-es/pagination/ListImagesPaginator.js +2 -23
- package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +6 -21
- package/dist-types/commands/BatchDeleteImageCommand.d.ts +6 -21
- package/dist-types/commands/BatchGetImageCommand.d.ts +6 -21
- package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/CompleteLayerUploadCommand.d.ts +6 -21
- package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +6 -21
- package/dist-types/commands/CreateRepositoryCommand.d.ts +6 -21
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +6 -21
- package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +6 -21
- package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +6 -21
- package/dist-types/commands/DeleteRepositoryCommand.d.ts +6 -21
- package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +6 -21
- package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +6 -21
- package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +6 -21
- package/dist-types/commands/DescribeImagesCommand.d.ts +6 -21
- package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +6 -21
- package/dist-types/commands/DescribeRegistryCommand.d.ts +6 -21
- package/dist-types/commands/DescribeRepositoriesCommand.d.ts +6 -21
- package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +6 -21
- package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +6 -21
- package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +6 -21
- package/dist-types/commands/GetRegistryPolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +6 -21
- package/dist-types/commands/InitiateLayerUploadCommand.d.ts +6 -21
- package/dist-types/commands/ListImagesCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/PutImageCommand.d.ts +6 -21
- package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +6 -21
- package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +6 -21
- package/dist-types/commands/PutRegistryPolicyCommand.d.ts +6 -21
- package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +6 -21
- package/dist-types/commands/StartImageScanCommand.d.ts +6 -21
- package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdatePullThroughCacheRuleCommand.d.ts +6 -21
- package/dist-types/commands/UploadLayerPartCommand.d.ts +6 -21
- package/dist-types/commands/ValidatePullThroughCacheRuleCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeImageScanFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeImagesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePullThroughCacheRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImagesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/BatchGetImageCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetRegistryPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListImagesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutImageCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StartImageScanCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdatePullThroughCacheRuleCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ValidatePullThroughCacheRuleCommand.d.ts +12 -24
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeImageScanFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeImagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePullThroughCacheRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImagesPaginator.d.ts +3 -3
- 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 {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_SetRepositoryPolicyCommand, se_SetRepositoryPolicyCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class SetRepositoryPolicyCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "SetRepositoryPolicyCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
35
|
-
operation: "SetRepositoryPolicy",
|
|
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_SetRepositoryPolicyCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_SetRepositoryPolicyCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class SetRepositoryPolicyCommand 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("AmazonEC2ContainerRegistry_V20150921", "SetRepositoryPolicy", {})
|
|
19
|
+
.n("ECRClient", "SetRepositoryPolicyCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_SetRepositoryPolicyCommand)
|
|
22
|
+
.de(de_SetRepositoryPolicyCommand)
|
|
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 {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_StartImageScanCommand, se_StartImageScanCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StartImageScanCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "StartImageScanCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
35
|
-
operation: "StartImageScan",
|
|
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_StartImageScanCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StartImageScanCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StartImageScanCommand 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("AmazonEC2ContainerRegistry_V20150921", "StartImageScan", {})
|
|
19
|
+
.n("ECRClient", "StartImageScanCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StartImageScanCommand)
|
|
22
|
+
.de(de_StartImageScanCommand)
|
|
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 {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_StartLifecyclePolicyPreviewCommand, se_StartLifecyclePolicyPreviewCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StartLifecyclePolicyPreviewCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "StartLifecyclePolicyPreviewCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
35
|
-
operation: "StartLifecyclePolicyPreview",
|
|
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_StartLifecyclePolicyPreviewCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StartLifecyclePolicyPreviewCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StartLifecyclePolicyPreviewCommand 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("AmazonEC2ContainerRegistry_V20150921", "StartLifecyclePolicyPreview", {})
|
|
19
|
+
.n("ECRClient", "StartLifecyclePolicyPreviewCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StartLifecyclePolicyPreviewCommand)
|
|
22
|
+
.de(de_StartLifecyclePolicyPreviewCommand)
|
|
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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "TagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
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("AmazonEC2ContainerRegistry_V20150921", "TagResource", {})
|
|
19
|
+
.n("ECRClient", "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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "UntagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
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("AmazonEC2ContainerRegistry_V20150921", "UntagResource", {})
|
|
19
|
+
.n("ECRClient", "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 {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdatePullThroughCacheRuleCommand, se_UpdatePullThroughCacheRuleCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdatePullThroughCacheRuleCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "UpdatePullThroughCacheRuleCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
35
|
-
operation: "UpdatePullThroughCacheRule",
|
|
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_UpdatePullThroughCacheRuleCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdatePullThroughCacheRuleCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdatePullThroughCacheRuleCommand 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("AmazonEC2ContainerRegistry_V20150921", "UpdatePullThroughCacheRule", {})
|
|
19
|
+
.n("ECRClient", "UpdatePullThroughCacheRuleCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdatePullThroughCacheRuleCommand)
|
|
22
|
+
.de(de_UpdatePullThroughCacheRuleCommand)
|
|
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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "UploadLayerPartCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
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("AmazonEC2ContainerRegistry_V20150921", "UploadLayerPart", {})
|
|
19
|
+
.n("ECRClient", "UploadLayerPartCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UploadLayerPartCommand)
|
|
22
|
+
.de(de_UploadLayerPartCommand)
|
|
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 {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ValidatePullThroughCacheRuleCommand, se_ValidatePullThroughCacheRuleCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ValidatePullThroughCacheRuleCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ECRClient";
|
|
26
|
-
const commandName = "ValidatePullThroughCacheRuleCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonEC2ContainerRegistry_V20150921",
|
|
35
|
-
operation: "ValidatePullThroughCacheRule",
|
|
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_ValidatePullThroughCacheRuleCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ValidatePullThroughCacheRuleCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ValidatePullThroughCacheRuleCommand 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("AmazonEC2ContainerRegistry_V20150921", "ValidatePullThroughCacheRule", {})
|
|
19
|
+
.n("ECRClient", "ValidatePullThroughCacheRuleCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ValidatePullThroughCacheRuleCommand)
|
|
22
|
+
.de(de_ValidatePullThroughCacheRuleCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "ecr",
|
|
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 { DescribeImageScanFindingsCommand, } from "../commands/DescribeImageScanFindingsCommand";
|
|
2
3
|
import { ECRClient } from "../ECRClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeImageScanFindingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeImageScanFindings(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 ECRClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ECR | ECRClient");
|
|
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 paginateDescribeImageScanFindings = createPaginator(ECRClient, DescribeImageScanFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeImagesCommand, } from "../commands/DescribeImagesCommand";
|
|
2
3
|
import { ECRClient } from "../ECRClient";
|
|
3
|
-
const
|
|
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 ECRClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ECR | ECRClient");
|
|
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(ECRClient, DescribeImagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribePullThroughCacheRulesCommand, } from "../commands/DescribePullThroughCacheRulesCommand";
|
|
2
3
|
import { ECRClient } from "../ECRClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePullThroughCacheRulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePullThroughCacheRules(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 ECRClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ECR | ECRClient");
|
|
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 paginateDescribePullThroughCacheRules = createPaginator(ECRClient, DescribePullThroughCacheRulesCommand, "nextToken", "nextToken", "maxResults");
|