@aws-sdk/client-ecr-public 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/ECRPUBLIC.js +0 -10
- package/dist-cjs/ECRPUBLICClient.js +0 -15
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +0 -31
- package/dist-cjs/commands/BatchDeleteImageCommand.js +0 -30
- package/dist-cjs/commands/CompleteLayerUploadCommand.js +0 -32
- package/dist-cjs/commands/CreateRepositoryCommand.js +0 -26
- package/dist-cjs/commands/DeleteRepositoryCommand.js +0 -27
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +0 -25
- package/dist-cjs/commands/DescribeImageTagsCommand.js +0 -25
- package/dist-cjs/commands/DescribeImagesCommand.js +0 -31
- package/dist-cjs/commands/DescribeRegistriesCommand.js +0 -25
- package/dist-cjs/commands/DescribeRepositoriesCommand.js +0 -25
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +0 -29
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js +0 -25
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js +0 -26
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js +0 -25
- package/dist-cjs/commands/InitiateLayerUploadCommand.js +0 -31
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutImageCommand.js +0 -32
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js +0 -25
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js +0 -25
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js +0 -27
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UploadLayerPartCommand.js +0 -31
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -31
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -256
- package/dist-cjs/pagination/DescribeImageTagsPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeImagesPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeRegistriesPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/ECRPUBLIC.js +0 -1
- package/dist-es/ECRPUBLICClient.js +0 -1
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +0 -1
- package/dist-es/commands/BatchDeleteImageCommand.js +0 -1
- package/dist-es/commands/CompleteLayerUploadCommand.js +0 -1
- package/dist-es/commands/CreateRepositoryCommand.js +0 -1
- package/dist-es/commands/DeleteRepositoryCommand.js +0 -1
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeImageTagsCommand.js +0 -1
- package/dist-es/commands/DescribeImagesCommand.js +0 -1
- package/dist-es/commands/DescribeRegistriesCommand.js +0 -1
- package/dist-es/commands/DescribeRepositoriesCommand.js +0 -1
- package/dist-es/commands/GetAuthorizationTokenCommand.js +0 -1
- package/dist-es/commands/GetRegistryCatalogDataCommand.js +0 -1
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js +0 -1
- package/dist-es/commands/GetRepositoryPolicyCommand.js +0 -1
- package/dist-es/commands/InitiateLayerUploadCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutImageCommand.js +0 -1
- package/dist-es/commands/PutRegistryCatalogDataCommand.js +0 -1
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js +0 -1
- package/dist-es/commands/SetRepositoryPolicyCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UploadLayerPartCommand.js +0 -1
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -31
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeImageTagsPaginator.js +0 -1
- package/dist-es/pagination/DescribeImagesPaginator.js +0 -1
- package/dist-es/pagination/DescribeRegistriesPaginator.js +0 -1
- package/dist-es/pagination/DescribeRepositoriesPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/index.d.ts +4 -30
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/ECRPUBLIC.d.ts +24 -134
- package/dist-types/ts3.4/ECRPUBLICClient.d.ts +24 -95
- package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeImageTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeRegistriesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetRegistryCatalogDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetRepositoryCatalogDataCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutImageCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/PutRegistryCatalogDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutRepositoryCatalogDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/index.d.ts +4 -30
- package/dist-types/ts3.4/models/models_0.d.ts +298 -1145
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/ECRPUBLIC.js.map +0 -1
- package/dist-cjs/ECRPUBLICClient.js.map +0 -1
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDeleteImageCommand.js.map +0 -1
- package/dist-cjs/commands/CompleteLayerUploadCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeImageTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeImagesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRegistriesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/InitiateLayerUploadCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutImageCommand.js.map +0 -1
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UploadLayerPartCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeImageTagsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeRegistriesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/ECRPUBLIC.js.map +0 -1
- package/dist-es/ECRPUBLICClient.js.map +0 -1
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
- package/dist-es/commands/BatchDeleteImageCommand.js.map +0 -1
- package/dist-es/commands/CompleteLayerUploadCommand.js.map +0 -1
- package/dist-es/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeImageTagsCommand.js.map +0 -1
- package/dist-es/commands/DescribeImagesCommand.js.map +0 -1
- package/dist-es/commands/DescribeRegistriesCommand.js.map +0 -1
- package/dist-es/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist-es/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist-es/commands/GetRegistryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/GetRepositoryPolicyCommand.js.map +0 -1
- package/dist-es/commands/InitiateLayerUploadCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutImageCommand.js.map +0 -1
- package/dist-es/commands/PutRegistryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UploadLayerPartCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeImageTagsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeRegistriesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ECRPUBLIC.ts +0 -901
- package/src/ECRPUBLICClient.ts +0 -350
- package/src/commands/BatchCheckLayerAvailabilityCommand.ts +0 -106
- package/src/commands/BatchDeleteImageCommand.ts +0 -100
- package/src/commands/CompleteLayerUploadCommand.ts +0 -102
- package/src/commands/CreateRepositoryCommand.ts +0 -96
- package/src/commands/DeleteRepositoryCommand.ts +0 -97
- package/src/commands/DeleteRepositoryPolicyCommand.ts +0 -95
- package/src/commands/DescribeImageTagsCommand.ts +0 -95
- package/src/commands/DescribeImagesCommand.ts +0 -101
- package/src/commands/DescribeRegistriesCommand.ts +0 -95
- package/src/commands/DescribeRepositoriesCommand.ts +0 -95
- package/src/commands/GetAuthorizationTokenCommand.ts +0 -99
- package/src/commands/GetRegistryCatalogDataCommand.ts +0 -95
- package/src/commands/GetRepositoryCatalogDataCommand.ts +0 -96
- package/src/commands/GetRepositoryPolicyCommand.ts +0 -95
- package/src/commands/InitiateLayerUploadCommand.ts +0 -101
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutImageCommand.ts +0 -99
- package/src/commands/PutRegistryCatalogDataCommand.ts +0 -95
- package/src/commands/PutRepositoryCatalogDataCommand.ts +0 -95
- package/src/commands/SetRepositoryPolicyCommand.ts +0 -97
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UploadLayerPartCommand.ts +0 -101
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -31
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2292
- package/src/pagination/DescribeImageTagsPaginator.ts +0 -59
- package/src/pagination/DescribeImagesPaginator.ts +0 -59
- package/src/pagination/DescribeRegistriesPaginator.ts +0 -59
- package/src/pagination/DescribeRepositoriesPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_json1_1.ts +0 -3913
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/ECRPUBLICClient.ts
DELETED
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
BatchCheckLayerAvailabilityCommandInput,
|
|
54
|
-
BatchCheckLayerAvailabilityCommandOutput,
|
|
55
|
-
} from "./commands/BatchCheckLayerAvailabilityCommand";
|
|
56
|
-
import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "./commands/BatchDeleteImageCommand";
|
|
57
|
-
import {
|
|
58
|
-
CompleteLayerUploadCommandInput,
|
|
59
|
-
CompleteLayerUploadCommandOutput,
|
|
60
|
-
} from "./commands/CompleteLayerUploadCommand";
|
|
61
|
-
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
|
|
62
|
-
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
|
|
63
|
-
import {
|
|
64
|
-
DeleteRepositoryPolicyCommandInput,
|
|
65
|
-
DeleteRepositoryPolicyCommandOutput,
|
|
66
|
-
} from "./commands/DeleteRepositoryPolicyCommand";
|
|
67
|
-
import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "./commands/DescribeImagesCommand";
|
|
68
|
-
import { DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput } from "./commands/DescribeImageTagsCommand";
|
|
69
|
-
import { DescribeRegistriesCommandInput, DescribeRegistriesCommandOutput } from "./commands/DescribeRegistriesCommand";
|
|
70
|
-
import {
|
|
71
|
-
DescribeRepositoriesCommandInput,
|
|
72
|
-
DescribeRepositoriesCommandOutput,
|
|
73
|
-
} from "./commands/DescribeRepositoriesCommand";
|
|
74
|
-
import {
|
|
75
|
-
GetAuthorizationTokenCommandInput,
|
|
76
|
-
GetAuthorizationTokenCommandOutput,
|
|
77
|
-
} from "./commands/GetAuthorizationTokenCommand";
|
|
78
|
-
import {
|
|
79
|
-
GetRegistryCatalogDataCommandInput,
|
|
80
|
-
GetRegistryCatalogDataCommandOutput,
|
|
81
|
-
} from "./commands/GetRegistryCatalogDataCommand";
|
|
82
|
-
import {
|
|
83
|
-
GetRepositoryCatalogDataCommandInput,
|
|
84
|
-
GetRepositoryCatalogDataCommandOutput,
|
|
85
|
-
} from "./commands/GetRepositoryCatalogDataCommand";
|
|
86
|
-
import {
|
|
87
|
-
GetRepositoryPolicyCommandInput,
|
|
88
|
-
GetRepositoryPolicyCommandOutput,
|
|
89
|
-
} from "./commands/GetRepositoryPolicyCommand";
|
|
90
|
-
import {
|
|
91
|
-
InitiateLayerUploadCommandInput,
|
|
92
|
-
InitiateLayerUploadCommandOutput,
|
|
93
|
-
} from "./commands/InitiateLayerUploadCommand";
|
|
94
|
-
import {
|
|
95
|
-
ListTagsForResourceCommandInput,
|
|
96
|
-
ListTagsForResourceCommandOutput,
|
|
97
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
98
|
-
import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
|
|
99
|
-
import {
|
|
100
|
-
PutRegistryCatalogDataCommandInput,
|
|
101
|
-
PutRegistryCatalogDataCommandOutput,
|
|
102
|
-
} from "./commands/PutRegistryCatalogDataCommand";
|
|
103
|
-
import {
|
|
104
|
-
PutRepositoryCatalogDataCommandInput,
|
|
105
|
-
PutRepositoryCatalogDataCommandOutput,
|
|
106
|
-
} from "./commands/PutRepositoryCatalogDataCommand";
|
|
107
|
-
import {
|
|
108
|
-
SetRepositoryPolicyCommandInput,
|
|
109
|
-
SetRepositoryPolicyCommandOutput,
|
|
110
|
-
} from "./commands/SetRepositoryPolicyCommand";
|
|
111
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
112
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
113
|
-
import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
|
|
114
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
115
|
-
|
|
116
|
-
export type ServiceInputTypes =
|
|
117
|
-
| BatchCheckLayerAvailabilityCommandInput
|
|
118
|
-
| BatchDeleteImageCommandInput
|
|
119
|
-
| CompleteLayerUploadCommandInput
|
|
120
|
-
| CreateRepositoryCommandInput
|
|
121
|
-
| DeleteRepositoryCommandInput
|
|
122
|
-
| DeleteRepositoryPolicyCommandInput
|
|
123
|
-
| DescribeImageTagsCommandInput
|
|
124
|
-
| DescribeImagesCommandInput
|
|
125
|
-
| DescribeRegistriesCommandInput
|
|
126
|
-
| DescribeRepositoriesCommandInput
|
|
127
|
-
| GetAuthorizationTokenCommandInput
|
|
128
|
-
| GetRegistryCatalogDataCommandInput
|
|
129
|
-
| GetRepositoryCatalogDataCommandInput
|
|
130
|
-
| GetRepositoryPolicyCommandInput
|
|
131
|
-
| InitiateLayerUploadCommandInput
|
|
132
|
-
| ListTagsForResourceCommandInput
|
|
133
|
-
| PutImageCommandInput
|
|
134
|
-
| PutRegistryCatalogDataCommandInput
|
|
135
|
-
| PutRepositoryCatalogDataCommandInput
|
|
136
|
-
| SetRepositoryPolicyCommandInput
|
|
137
|
-
| TagResourceCommandInput
|
|
138
|
-
| UntagResourceCommandInput
|
|
139
|
-
| UploadLayerPartCommandInput;
|
|
140
|
-
|
|
141
|
-
export type ServiceOutputTypes =
|
|
142
|
-
| BatchCheckLayerAvailabilityCommandOutput
|
|
143
|
-
| BatchDeleteImageCommandOutput
|
|
144
|
-
| CompleteLayerUploadCommandOutput
|
|
145
|
-
| CreateRepositoryCommandOutput
|
|
146
|
-
| DeleteRepositoryCommandOutput
|
|
147
|
-
| DeleteRepositoryPolicyCommandOutput
|
|
148
|
-
| DescribeImageTagsCommandOutput
|
|
149
|
-
| DescribeImagesCommandOutput
|
|
150
|
-
| DescribeRegistriesCommandOutput
|
|
151
|
-
| DescribeRepositoriesCommandOutput
|
|
152
|
-
| GetAuthorizationTokenCommandOutput
|
|
153
|
-
| GetRegistryCatalogDataCommandOutput
|
|
154
|
-
| GetRepositoryCatalogDataCommandOutput
|
|
155
|
-
| GetRepositoryPolicyCommandOutput
|
|
156
|
-
| InitiateLayerUploadCommandOutput
|
|
157
|
-
| ListTagsForResourceCommandOutput
|
|
158
|
-
| PutImageCommandOutput
|
|
159
|
-
| PutRegistryCatalogDataCommandOutput
|
|
160
|
-
| PutRepositoryCatalogDataCommandOutput
|
|
161
|
-
| SetRepositoryPolicyCommandOutput
|
|
162
|
-
| TagResourceCommandOutput
|
|
163
|
-
| UntagResourceCommandOutput
|
|
164
|
-
| UploadLayerPartCommandOutput;
|
|
165
|
-
|
|
166
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
167
|
-
/**
|
|
168
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
169
|
-
*/
|
|
170
|
-
requestHandler?: __HttpHandler;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
174
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
175
|
-
* @internal
|
|
176
|
-
*/
|
|
177
|
-
sha256?: __HashConstructor;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
181
|
-
* @internal
|
|
182
|
-
*/
|
|
183
|
-
urlParser?: __UrlParser;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* A function that can calculate the length of a request body.
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* A function that converts a stream into an array of bytes.
|
|
193
|
-
* @internal
|
|
194
|
-
*/
|
|
195
|
-
streamCollector?: __StreamCollector;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
199
|
-
* @internal
|
|
200
|
-
*/
|
|
201
|
-
base64Decoder?: __Decoder;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
205
|
-
* @internal
|
|
206
|
-
*/
|
|
207
|
-
base64Encoder?: __Encoder;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
utf8Decoder?: __Decoder;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
217
|
-
* @internal
|
|
218
|
-
*/
|
|
219
|
-
utf8Encoder?: __Encoder;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* The runtime environment.
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
|
-
runtime?: string;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
229
|
-
* trait of an operation.
|
|
230
|
-
*/
|
|
231
|
-
disableHostPrefix?: boolean;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
235
|
-
*/
|
|
236
|
-
maxAttempts?: number | __Provider<number>;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Specifies which retry algorithm to use.
|
|
240
|
-
*/
|
|
241
|
-
retryMode?: string | __Provider<string>;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Optional logger for logging debug/info/warn/error.
|
|
245
|
-
*/
|
|
246
|
-
logger?: __Logger;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Unique service identifier.
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
serviceId?: string;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* The AWS region to which this client will send requests
|
|
256
|
-
*/
|
|
257
|
-
region?: string | __Provider<string>;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Default credentials provider; Not available in browser runtime.
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
267
|
-
* @internal
|
|
268
|
-
*/
|
|
269
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
273
|
-
* @internal
|
|
274
|
-
*/
|
|
275
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
type ECRPUBLICClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
279
|
-
ClientDefaults &
|
|
280
|
-
RegionInputConfig &
|
|
281
|
-
EndpointsInputConfig &
|
|
282
|
-
RetryInputConfig &
|
|
283
|
-
HostHeaderInputConfig &
|
|
284
|
-
AwsAuthInputConfig &
|
|
285
|
-
UserAgentInputConfig;
|
|
286
|
-
/**
|
|
287
|
-
* The configuration interface of ECRPUBLICClient class constructor that set the region, credentials and other options.
|
|
288
|
-
*/
|
|
289
|
-
export interface ECRPUBLICClientConfig extends ECRPUBLICClientConfigType {}
|
|
290
|
-
|
|
291
|
-
type ECRPUBLICClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
292
|
-
Required<ClientDefaults> &
|
|
293
|
-
RegionResolvedConfig &
|
|
294
|
-
EndpointsResolvedConfig &
|
|
295
|
-
RetryResolvedConfig &
|
|
296
|
-
HostHeaderResolvedConfig &
|
|
297
|
-
AwsAuthResolvedConfig &
|
|
298
|
-
UserAgentResolvedConfig;
|
|
299
|
-
/**
|
|
300
|
-
* The resolved configuration interface of ECRPUBLICClient class. This is resolved and normalized from the {@link ECRPUBLICClientConfig | constructor configuration interface}.
|
|
301
|
-
*/
|
|
302
|
-
export interface ECRPUBLICClientResolvedConfig extends ECRPUBLICClientResolvedConfigType {}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* <fullname>Amazon Elastic Container Registry Public</fullname>
|
|
306
|
-
* <p>Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Amazon ECR provides both
|
|
307
|
-
* public and private registries to host your container images. You can use the familiar
|
|
308
|
-
* Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR provides a
|
|
309
|
-
* secure, scalable, and reliable registry for your Docker or Open Container Initiative (OCI)
|
|
310
|
-
* images. Amazon ECR supports public repositories with this API. For information about the Amazon ECR
|
|
311
|
-
* API for private repositories, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/APIReference/Welcome.html">Amazon Elastic Container Registry API Reference</a>.</p>
|
|
312
|
-
*/
|
|
313
|
-
export class ECRPUBLICClient extends __Client<
|
|
314
|
-
__HttpHandlerOptions,
|
|
315
|
-
ServiceInputTypes,
|
|
316
|
-
ServiceOutputTypes,
|
|
317
|
-
ECRPUBLICClientResolvedConfig
|
|
318
|
-
> {
|
|
319
|
-
/**
|
|
320
|
-
* The resolved configuration of ECRPUBLICClient class. This is resolved and normalized from the {@link ECRPUBLICClientConfig | constructor configuration interface}.
|
|
321
|
-
*/
|
|
322
|
-
readonly config: ECRPUBLICClientResolvedConfig;
|
|
323
|
-
|
|
324
|
-
constructor(configuration: ECRPUBLICClientConfig) {
|
|
325
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
326
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
327
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
328
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
329
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
330
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
331
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
332
|
-
super(_config_6);
|
|
333
|
-
this.config = _config_6;
|
|
334
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
335
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
336
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
337
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
338
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
339
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
344
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
345
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
346
|
-
*/
|
|
347
|
-
destroy(): void {
|
|
348
|
-
super.destroy();
|
|
349
|
-
}
|
|
350
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
|
|
15
|
-
import { BatchCheckLayerAvailabilityRequest, BatchCheckLayerAvailabilityResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1BatchCheckLayerAvailabilityCommand,
|
|
18
|
-
serializeAws_json1_1BatchCheckLayerAvailabilityCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface BatchCheckLayerAvailabilityCommandInput extends BatchCheckLayerAvailabilityRequest {}
|
|
22
|
-
export interface BatchCheckLayerAvailabilityCommandOutput
|
|
23
|
-
extends BatchCheckLayerAvailabilityResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Checks the availability of one or more image layers within a repository in a public
|
|
28
|
-
* registry. When an image is pushed to a repository, each image layer is checked to verify if
|
|
29
|
-
* it has been uploaded before. If it has been uploaded, then the image layer is
|
|
30
|
-
* skipped.</p>
|
|
31
|
-
* <note>
|
|
32
|
-
* <p>This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
|
|
33
|
-
* </note>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { ECRPUBLICClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
|
|
38
|
-
* // const { ECRPUBLICClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
|
|
39
|
-
* const client = new ECRPUBLICClient(config);
|
|
40
|
-
* const command = new BatchCheckLayerAvailabilityCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link BatchCheckLayerAvailabilityCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link BatchCheckLayerAvailabilityCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class BatchCheckLayerAvailabilityCommand extends $Command<
|
|
50
|
-
BatchCheckLayerAvailabilityCommandInput,
|
|
51
|
-
BatchCheckLayerAvailabilityCommandOutput,
|
|
52
|
-
ECRPUBLICClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: BatchCheckLayerAvailabilityCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: ECRPUBLICClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "ECRPUBLICClient";
|
|
77
|
-
const commandName = "BatchCheckLayerAvailabilityCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: BatchCheckLayerAvailabilityRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: BatchCheckLayerAvailabilityResponse.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(input: BatchCheckLayerAvailabilityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_1BatchCheckLayerAvailabilityCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<BatchCheckLayerAvailabilityCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
|
|
15
|
-
import { BatchDeleteImageRequest, BatchDeleteImageResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1BatchDeleteImageCommand,
|
|
18
|
-
serializeAws_json1_1BatchDeleteImageCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface BatchDeleteImageCommandInput extends BatchDeleteImageRequest {}
|
|
22
|
-
export interface BatchDeleteImageCommandOutput extends BatchDeleteImageResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a list of specified images within a repository in a public registry. Images are
|
|
26
|
-
* specified with either an <code>imageTag</code> or <code>imageDigest</code>.</p>
|
|
27
|
-
* <p>You can remove a tag from an image by specifying the image's tag in your request. When
|
|
28
|
-
* you remove the last tag from an image, the image is deleted from your repository.</p>
|
|
29
|
-
* <p>You can completely delete an image (and all of its tags) by specifying the image's
|
|
30
|
-
* digest in your request.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { ECRPUBLICClient, BatchDeleteImageCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
|
|
35
|
-
* // const { ECRPUBLICClient, BatchDeleteImageCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
|
|
36
|
-
* const client = new ECRPUBLICClient(config);
|
|
37
|
-
* const command = new BatchDeleteImageCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link BatchDeleteImageCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link BatchDeleteImageCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class BatchDeleteImageCommand extends $Command<
|
|
47
|
-
BatchDeleteImageCommandInput,
|
|
48
|
-
BatchDeleteImageCommandOutput,
|
|
49
|
-
ECRPUBLICClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: BatchDeleteImageCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: ECRPUBLICClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "ECRPUBLICClient";
|
|
74
|
-
const commandName = "BatchDeleteImageCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: BatchDeleteImageRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: BatchDeleteImageResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: BatchDeleteImageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1BatchDeleteImageCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchDeleteImageCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1BatchDeleteImageCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
|
|
15
|
-
import { CompleteLayerUploadRequest, CompleteLayerUploadResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CompleteLayerUploadCommand,
|
|
18
|
-
serializeAws_json1_1CompleteLayerUploadCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CompleteLayerUploadCommandInput extends CompleteLayerUploadRequest {}
|
|
22
|
-
export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Informs Amazon ECR that the image layer upload has completed for a specified public registry,
|
|
26
|
-
* repository name, and upload ID. You can optionally provide a <code>sha256</code> digest of
|
|
27
|
-
* the image layer for data validation purposes.</p>
|
|
28
|
-
* <p>When an image is pushed, the CompleteLayerUpload API is called once per each new image
|
|
29
|
-
* layer to verify that the upload has completed.</p>
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
|
|
32
|
-
* </note>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { ECRPUBLICClient, CompleteLayerUploadCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
|
|
37
|
-
* // const { ECRPUBLICClient, CompleteLayerUploadCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
|
|
38
|
-
* const client = new ECRPUBLICClient(config);
|
|
39
|
-
* const command = new CompleteLayerUploadCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link CompleteLayerUploadCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link CompleteLayerUploadCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class CompleteLayerUploadCommand extends $Command<
|
|
49
|
-
CompleteLayerUploadCommandInput,
|
|
50
|
-
CompleteLayerUploadCommandOutput,
|
|
51
|
-
ECRPUBLICClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: CompleteLayerUploadCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: ECRPUBLICClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "ECRPUBLICClient";
|
|
76
|
-
const commandName = "CompleteLayerUploadCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: CompleteLayerUploadRequest.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: CompleteLayerUploadResponse.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(input: CompleteLayerUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_json1_1CompleteLayerUploadCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CompleteLayerUploadCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1CompleteLayerUploadCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|