@aws-sdk/client-ecr 3.34.0 → 3.37.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 → dist-cjs}/ECR.js +1 -13
- package/dist-cjs/ECRClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/BatchCheckLayerAvailabilityCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/BatchDeleteImageCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/BatchGetImageCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/CompleteLayerUploadCommand.js +2 -35
- package/{dist/cjs → dist-cjs}/commands/CreateRepositoryCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DeleteLifecyclePolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteRegistryPolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteRepositoryCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DeleteRepositoryPolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeImageReplicationStatusCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeImageScanFindingsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeImagesCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/DescribeRegistryCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeRepositoriesCommand.js +2 -27
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetDownloadUrlForLayerCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/GetLifecyclePolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetLifecyclePolicyPreviewCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetRegistryPolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetRepositoryPolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/InitiateLayerUploadCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/ListImagesCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutImageCommand.js +2 -35
- package/{dist/cjs → dist-cjs}/commands/PutImageScanningConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutImageTagMutabilityCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/PutLifecyclePolicyCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/PutRegistryPolicyCommand.js +2 -29
- package/dist-cjs/commands/PutReplicationConfigurationCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/SetRepositoryPolicyCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/StartImageScanCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/StartLifecyclePolicyPreviewCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UploadLayerPartCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/endpoints.js +5 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -382
- package/{dist/cjs → dist-cjs}/pagination/DescribeImageScanFindingsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/DescribeImagesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/DescribeRepositoriesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetLifecyclePolicyPreviewPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListImagesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/cjs → dist-cjs}/waiters/waitForImageScanComplete.js +4 -14
- package/{dist/cjs → dist-cjs}/waiters/waitForLifecyclePolicyPreviewComplete.js +4 -14
- package/{dist/es → dist-es}/ECR.js +1 -2
- package/{dist/es → dist-es}/ECRClient.js +1 -2
- package/{dist/es → dist-es}/commands/BatchCheckLayerAvailabilityCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchDeleteImageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchGetImageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CompleteLayerUploadCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateRepositoryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteLifecyclePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteRegistryPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteRepositoryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteRepositoryPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeImageReplicationStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeImageScanFindingsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeImagesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeRegistryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeRepositoriesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAuthorizationTokenCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetDownloadUrlForLayerCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetLifecyclePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetLifecyclePolicyPreviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetRegistryPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetRepositoryPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/InitiateLayerUploadCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListImagesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutImageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutImageScanningConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutImageTagMutabilityCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutLifecyclePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutRegistryPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutReplicationConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/SetRepositoryPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartImageScanCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartLifecyclePolicyPreviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UploadLayerPartCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +5 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/pagination/DescribeImageScanFindingsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/DescribeImagesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/DescribeRepositoriesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetLifecyclePolicyPreviewPaginator.js +1 -2
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListImagesPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForImageScanComplete.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForLifecyclePolicyPreviewComplete.js +1 -2
- package/{dist/types → dist-types}/ECR.d.ts +2 -2
- package/{dist/types → dist-types}/ECRClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchDeleteImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchGetImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CompleteLayerUploadCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRegistryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeImageReplicationStatusCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeImageScanFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeImagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRegistryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRepositoriesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAuthorizationTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDownloadUrlForLayerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetLifecyclePolicyPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRegistryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/InitiateLayerUploadCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListImagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutImageScanningConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutImageTagMutabilityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRegistryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutReplicationConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartImageScanCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartLifecyclePolicyPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UploadLayerPartCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeImageScanFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeImagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListImagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ECR.d.ts +38 -218
- package/{dist/types → dist-types}/ts3.4/ECRClient.d.ts +32 -105
- package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetImageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRepositoriesCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +4 -23
- package/{dist/types → dist-types}/ts3.4/commands/GetRegistryPolicyCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListImagesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/PutImageCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartImageScanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1545 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeImageScanFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeImagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListImagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/waiters/waitForImageScanComplete.d.ts +4 -11
- package/{dist/types → dist-types}/ts3.4/waiters/waitForLifecyclePolicyPreviewComplete.d.ts +4 -11
- package/{dist/types → dist-types}/waiters/waitForImageScanComplete.d.ts +2 -2
- package/{dist/types → dist-types}/waiters/waitForLifecyclePolicyPreviewComplete.d.ts +2 -2
- package/package.json +46 -43
- package/ECR.ts +0 -1380
- package/ECRClient.ts +0 -405
- package/commands/BatchCheckLayerAvailabilityCommand.ts +0 -106
- package/commands/BatchDeleteImageCommand.ts +0 -99
- package/commands/BatchGetImageCommand.ts +0 -97
- package/commands/CompleteLayerUploadCommand.ts +0 -102
- package/commands/CreateRepositoryCommand.ts +0 -95
- package/commands/DeleteLifecyclePolicyCommand.ts +0 -94
- package/commands/DeleteRegistryPolicyCommand.ts +0 -94
- package/commands/DeleteRepositoryCommand.ts +0 -96
- package/commands/DeleteRepositoryPolicyCommand.ts +0 -94
- package/commands/DescribeImageReplicationStatusCommand.ts +0 -102
- package/commands/DescribeImageScanFindingsCommand.ts +0 -97
- package/commands/DescribeImagesCommand.ts +0 -100
- package/commands/DescribeRegistryCommand.ts +0 -96
- package/commands/DescribeRepositoriesCommand.ts +0 -94
- package/commands/GetAuthorizationTokenCommand.ts +0 -101
- package/commands/GetDownloadUrlForLayerCommand.ts +0 -101
- package/commands/GetLifecyclePolicyCommand.ts +0 -94
- package/commands/GetLifecyclePolicyPreviewCommand.ts +0 -98
- package/commands/GetRegistryPolicyCommand.ts +0 -94
- package/commands/GetRepositoryPolicyCommand.ts +0 -94
- package/commands/InitiateLayerUploadCommand.ts +0 -101
- package/commands/ListImagesCommand.ts +0 -100
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/PutImageCommand.ts +0 -95
- package/commands/PutImageScanningConfigurationCommand.ts +0 -99
- package/commands/PutImageTagMutabilityCommand.ts +0 -96
- package/commands/PutLifecyclePolicyCommand.ts +0 -96
- package/commands/PutRegistryPolicyCommand.ts +0 -96
- package/commands/PutReplicationConfigurationCommand.ts +0 -109
- package/commands/SetRepositoryPolicyCommand.ts +0 -96
- package/commands/StartImageScanCommand.ts +0 -97
- package/commands/StartLifecyclePolicyPreviewCommand.ts +0 -100
- package/commands/TagResourceCommand.ts +0 -95
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UploadLayerPartCommand.ts +0 -101
- package/dist/cjs/ECR.js.map +0 -1
- package/dist/cjs/ECRClient.js +0 -52
- package/dist/cjs/ECRClient.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/BatchGetImageCommand.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/DeleteLifecyclePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRegistryPolicyCommand.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/DescribeImageReplicationStatusCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeImageScanFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeImagesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRegistryCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist/cjs/commands/GetAuthorizationTokenCommand.js +0 -68
- package/dist/cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js.map +0 -1
- package/dist/cjs/commands/GetLifecyclePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js.map +0 -1
- package/dist/cjs/commands/GetRegistryPolicyCommand.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/ListImagesCommand.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/PutImageScanningConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/PutImageTagMutabilityCommand.js.map +0 -1
- package/dist/cjs/commands/PutLifecyclePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutRegistryPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutReplicationConfigurationCommand.js +0 -71
- package/dist/cjs/commands/PutReplicationConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/StartImageScanCommand.js.map +0 -1
- package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.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/package.json +0 -92
- package/dist/cjs/pagination/DescribeImageScanFindingsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetLifecyclePolicyPreviewPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListImagesPaginator.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/cjs/waiters/waitForImageScanComplete.js.map +0 -1
- package/dist/cjs/waiters/waitForLifecyclePolicyPreviewComplete.js.map +0 -1
- package/dist/es/ECR.js.map +0 -1
- package/dist/es/ECRClient.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/BatchGetImageCommand.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/DeleteLifecyclePolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteRegistryPolicyCommand.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/DescribeImageReplicationStatusCommand.js.map +0 -1
- package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +0 -1
- package/dist/es/commands/DescribeImagesCommand.js.map +0 -1
- package/dist/es/commands/DescribeRegistryCommand.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/GetDownloadUrlForLayerCommand.js.map +0 -1
- package/dist/es/commands/GetLifecyclePolicyCommand.js.map +0 -1
- package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +0 -1
- package/dist/es/commands/GetRegistryPolicyCommand.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/ListImagesCommand.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/PutImageScanningConfigurationCommand.js.map +0 -1
- package/dist/es/commands/PutImageTagMutabilityCommand.js.map +0 -1
- package/dist/es/commands/PutLifecyclePolicyCommand.js.map +0 -1
- package/dist/es/commands/PutRegistryPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutReplicationConfigurationCommand.js.map +0 -1
- package/dist/es/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist/es/commands/StartImageScanCommand.js.map +0 -1
- package/dist/es/commands/StartLifecyclePolicyPreviewCommand.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 +0 -47
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -92
- package/dist/es/pagination/DescribeImageScanFindingsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListImagesPaginator.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/dist/es/waiters/waitForImageScanComplete.js.map +0 -1
- package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js.map +0 -1
- package/dist/types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/BatchDeleteImageCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/BatchGetImageCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/CreateRepositoryCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteRepositoryCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeImagesCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/DescribeRegistryCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/ListImagesCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/PutImageCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +0 -45
- package/dist/types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/StartImageScanCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UploadLayerPartCommand.d.ts +0 -42
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2779
- package/endpoints.ts +0 -229
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3463
- package/pagination/DescribeImageScanFindingsPaginator.ts +0 -58
- package/pagination/DescribeImagesPaginator.ts +0 -58
- package/pagination/DescribeRepositoriesPaginator.ts +0 -58
- package/pagination/GetLifecyclePolicyPreviewPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListImagesPaginator.ts +0 -54
- package/protocols/Aws_json1_1.ts +0 -5862
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
- package/waiters/waitForImageScanComplete.ts +0 -57
- package/waiters/waitForLifecyclePolicyPreviewComplete.ts +0 -57
package/runtimeConfig.browser.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import packageInfo from "./package.json";
|
|
2
|
-
|
|
3
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
-
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
|
-
import { ECRClientConfig } from "./ECRClient";
|
|
12
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export const getRuntimeConfig = (config: ECRClientConfig) => {
|
|
18
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
19
|
-
return {
|
|
20
|
-
...clientSharedValues,
|
|
21
|
-
...config,
|
|
22
|
-
runtime: "browser",
|
|
23
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
-
credentialDefaultProvider:
|
|
27
|
-
config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
-
defaultUserAgentProvider:
|
|
29
|
-
config?.defaultUserAgentProvider ??
|
|
30
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
32
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
33
|
-
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
|
|
34
|
-
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
|
|
35
|
-
sha256: config?.sha256 ?? Sha256,
|
|
36
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
37
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
-
};
|
|
40
|
-
};
|
package/runtimeConfig.native.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
import { ECRClientConfig } from "./ECRClient";
|
|
3
|
-
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export const getRuntimeConfig = (config: ECRClientConfig) => {
|
|
9
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
10
|
-
return {
|
|
11
|
-
...browserDefaults,
|
|
12
|
-
...config,
|
|
13
|
-
runtime: "react-native",
|
|
14
|
-
sha256: config?.sha256 ?? Sha256,
|
|
15
|
-
};
|
|
16
|
-
};
|
package/runtimeConfig.shared.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
3
|
-
import { parseUrl } from "@aws-sdk/url-parser";
|
|
4
|
-
import { ECRClientConfig } from "./ECRClient";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export const getRuntimeConfig = (config: ECRClientConfig) => ({
|
|
10
|
-
apiVersion: "2015-09-21",
|
|
11
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
-
logger: config?.logger ?? ({} as __Logger),
|
|
13
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
14
|
-
serviceId: config?.serviceId ?? "ECR",
|
|
15
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
16
|
-
});
|
package/runtimeConfig.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import packageInfo from "./package.json";
|
|
2
|
-
|
|
3
|
-
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
|
-
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
|
-
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
import { ECRClientConfig } from "./ECRClient";
|
|
15
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
16
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
export const getRuntimeConfig = (config: ECRClientConfig) => {
|
|
22
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
23
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
24
|
-
return {
|
|
25
|
-
...clientSharedValues,
|
|
26
|
-
...config,
|
|
27
|
-
runtime: "node",
|
|
28
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
29
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
30
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
33
|
-
defaultUserAgentProvider:
|
|
34
|
-
config?.defaultUserAgentProvider ??
|
|
35
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
37
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
38
|
-
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
|
|
39
|
-
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
40
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
41
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
42
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
43
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
44
|
-
};
|
|
45
|
-
};
|
package/tsconfig.es.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
8
|
-
"outDir": "dist/es"
|
|
9
|
-
}
|
|
10
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"alwaysStrict": true,
|
|
4
|
-
"target": "ES2018",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"downlevelIteration": true,
|
|
9
|
-
"importHelpers": true,
|
|
10
|
-
"noEmitHelpers": true,
|
|
11
|
-
"incremental": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"outDir": "dist/cjs",
|
|
15
|
-
"removeComments": true
|
|
16
|
-
},
|
|
17
|
-
"typedocOptions": {
|
|
18
|
-
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
19
|
-
"excludeNotExported": true,
|
|
20
|
-
"excludePrivate": true,
|
|
21
|
-
"hideGenerator": true,
|
|
22
|
-
"ignoreCompilerErrors": true,
|
|
23
|
-
"includeDeclarations": true,
|
|
24
|
-
"stripInternal": true,
|
|
25
|
-
"readme": "README.md",
|
|
26
|
-
"mode": "file",
|
|
27
|
-
"out": "docs",
|
|
28
|
-
"theme": "minimal",
|
|
29
|
-
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
30
|
-
}
|
|
31
|
-
}
|
package/tsconfig.types.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ECRClient } from "../ECRClient";
|
|
2
|
-
import {
|
|
3
|
-
DescribeImageScanFindingsCommand,
|
|
4
|
-
DescribeImageScanFindingsCommandInput,
|
|
5
|
-
} from "../commands/DescribeImageScanFindingsCommand";
|
|
6
|
-
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "@aws-sdk/util-waiter";
|
|
7
|
-
|
|
8
|
-
const checkState = async (client: ECRClient, input: DescribeImageScanFindingsCommandInput): Promise<WaiterResult> => {
|
|
9
|
-
let reason;
|
|
10
|
-
try {
|
|
11
|
-
let result: any = await client.send(new DescribeImageScanFindingsCommand(input));
|
|
12
|
-
reason = result;
|
|
13
|
-
try {
|
|
14
|
-
let returnComparator = () => {
|
|
15
|
-
return result.imageScanStatus.status;
|
|
16
|
-
};
|
|
17
|
-
if (returnComparator() === "COMPLETE") {
|
|
18
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
19
|
-
}
|
|
20
|
-
} catch (e) {}
|
|
21
|
-
try {
|
|
22
|
-
let returnComparator = () => {
|
|
23
|
-
return result.imageScanStatus.status;
|
|
24
|
-
};
|
|
25
|
-
if (returnComparator() === "FAILED") {
|
|
26
|
-
return { state: WaiterState.FAILURE, reason };
|
|
27
|
-
}
|
|
28
|
-
} catch (e) {}
|
|
29
|
-
} catch (exception) {
|
|
30
|
-
reason = exception;
|
|
31
|
-
}
|
|
32
|
-
return { state: WaiterState.RETRY, reason };
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Wait until an image scan is complete and findings can be accessed
|
|
36
|
-
* @deprecated Use waitUntilImageScanComplete instead. waitForImageScanComplete does not throw error in non-success cases.
|
|
37
|
-
*/
|
|
38
|
-
export const waitForImageScanComplete = async (
|
|
39
|
-
params: WaiterConfiguration<ECRClient>,
|
|
40
|
-
input: DescribeImageScanFindingsCommandInput
|
|
41
|
-
): Promise<WaiterResult> => {
|
|
42
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
43
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Wait until an image scan is complete and findings can be accessed
|
|
47
|
-
* @param params - Waiter configuration options.
|
|
48
|
-
* @param input - The input to DescribeImageScanFindingsCommand for polling.
|
|
49
|
-
*/
|
|
50
|
-
export const waitUntilImageScanComplete = async (
|
|
51
|
-
params: WaiterConfiguration<ECRClient>,
|
|
52
|
-
input: DescribeImageScanFindingsCommandInput
|
|
53
|
-
): Promise<WaiterResult> => {
|
|
54
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
55
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
56
|
-
return checkExceptions(result);
|
|
57
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ECRClient } from "../ECRClient";
|
|
2
|
-
import {
|
|
3
|
-
GetLifecyclePolicyPreviewCommand,
|
|
4
|
-
GetLifecyclePolicyPreviewCommandInput,
|
|
5
|
-
} from "../commands/GetLifecyclePolicyPreviewCommand";
|
|
6
|
-
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "@aws-sdk/util-waiter";
|
|
7
|
-
|
|
8
|
-
const checkState = async (client: ECRClient, input: GetLifecyclePolicyPreviewCommandInput): Promise<WaiterResult> => {
|
|
9
|
-
let reason;
|
|
10
|
-
try {
|
|
11
|
-
let result: any = await client.send(new GetLifecyclePolicyPreviewCommand(input));
|
|
12
|
-
reason = result;
|
|
13
|
-
try {
|
|
14
|
-
let returnComparator = () => {
|
|
15
|
-
return result.status;
|
|
16
|
-
};
|
|
17
|
-
if (returnComparator() === "COMPLETE") {
|
|
18
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
19
|
-
}
|
|
20
|
-
} catch (e) {}
|
|
21
|
-
try {
|
|
22
|
-
let returnComparator = () => {
|
|
23
|
-
return result.status;
|
|
24
|
-
};
|
|
25
|
-
if (returnComparator() === "FAILED") {
|
|
26
|
-
return { state: WaiterState.FAILURE, reason };
|
|
27
|
-
}
|
|
28
|
-
} catch (e) {}
|
|
29
|
-
} catch (exception) {
|
|
30
|
-
reason = exception;
|
|
31
|
-
}
|
|
32
|
-
return { state: WaiterState.RETRY, reason };
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Wait until a lifecycle policy preview request is complete and results can be accessed
|
|
36
|
-
* @deprecated Use waitUntilLifecyclePolicyPreviewComplete instead. waitForLifecyclePolicyPreviewComplete does not throw error in non-success cases.
|
|
37
|
-
*/
|
|
38
|
-
export const waitForLifecyclePolicyPreviewComplete = async (
|
|
39
|
-
params: WaiterConfiguration<ECRClient>,
|
|
40
|
-
input: GetLifecyclePolicyPreviewCommandInput
|
|
41
|
-
): Promise<WaiterResult> => {
|
|
42
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
43
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Wait until a lifecycle policy preview request is complete and results can be accessed
|
|
47
|
-
* @param params - Waiter configuration options.
|
|
48
|
-
* @param input - The input to GetLifecyclePolicyPreviewCommand for polling.
|
|
49
|
-
*/
|
|
50
|
-
export const waitUntilLifecyclePolicyPreviewComplete = async (
|
|
51
|
-
params: WaiterConfiguration<ECRClient>,
|
|
52
|
-
input: GetLifecyclePolicyPreviewCommandInput
|
|
53
|
-
): Promise<WaiterResult> => {
|
|
54
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
55
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
56
|
-
return checkExceptions(result);
|
|
57
|
-
};
|