"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContainerImage=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),aws_ecr_assets_1=require("../../aws-ecr-assets");class ContainerImage{static fromRegistry(name,props={}){return jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_RepositoryImageProps(props),new repository_1.RepositoryImage(name,props)}static fromEcrRepository(repository,tag="latest"){return jsiiDeprecationWarnings.aws_cdk_lib_aws_ecr_IRepository(repository),new ecr_1.EcrImage(repository,tag)}static fromAsset(directory,props={}){return jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_AssetImageProps(props),new asset_image_1.AssetImage(directory,props)}static fromDockerImageAsset(asset){return jsiiDeprecationWarnings.aws_cdk_lib_aws_ecr_assets_DockerImageAsset(asset),{bind(_scope,containerDefinition){return asset.repository.grantPull(containerDefinition.taskDefinition.obtainExecutionRole()),{imageName:asset.imageUri}}}}static fromTarball(tarballFile){return{bind(scope,containerDefinition){const asset=new aws_ecr_assets_1.TarballImageAsset(scope,"Tarball",{tarballFile});return asset.repository.grantPull(containerDefinition.taskDefinition.obtainExecutionRole()),{imageName:asset.imageUri}}}}}exports.ContainerImage=ContainerImage,_a=JSII_RTTI_SYMBOL_1,ContainerImage[_a]={fqn:"aws-cdk-lib.aws_ecs.ContainerImage",version:"2.13.0"};const asset_image_1=require("./images/asset-image"),ecr_1=require("./images/ecr"),repository_1=require("./images/repository");
//# sourceMappingURL=container-image.js.map
