in dask-fargate/cdk.out/asset.a65ac4beaa2b5a7b20eebf3b7c5c1c886b71428afa377e02dab0d10ab3be57e7/handler.js [17:27]
async function getAdopter(name) {
try {
const policyResponse = await ecr.getRepositoryPolicy({ repositoryName: name }).promise();
const policy = JSON.parse(policyResponse.policyText);
// Search the policy for an adopter marker
return (policy.Statement || []).find((x) => x.Action === markerStatement.Action) || {};
} catch (e) {
if (e.code !== 'RepositoryPolicyNotFoundException') { throw e; }
return {};
}
}