"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EcrImage=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),container_image_1=require("../container-image");class EcrImage extends container_image_1.ContainerImage{constructor(repository,tagOrDigest){super();this.repository=repository,this.tagOrDigest=tagOrDigest,jsiiDeprecationWarnings.aws_cdk_lib_aws_ecr_IRepository(repository),(tagOrDigest==null?void 0:tagOrDigest.startsWith("sha256:"))?this.imageName=this.repository.repositoryUriForDigest(this.tagOrDigest):this.imageName=this.repository.repositoryUriForTag(this.tagOrDigest)}bind(_scope,containerDefinition){return jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_ContainerDefinition(containerDefinition),this.repository.grantPull(containerDefinition.taskDefinition.obtainExecutionRole()),{imageName:this.imageName}}}exports.EcrImage=EcrImage,_a=JSII_RTTI_SYMBOL_1,EcrImage[_a]={fqn:"aws-cdk-lib.aws_ecs.EcrImage",version:"2.13.0"};
//# sourceMappingURL=ecr.js.map
