nl_tokens: The repository must already exist
pl_tokens: 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 . <mask> ) || { } ; } catch ( e ) { if ( e . code !== 'RepositoryPolicyNotFoundException' ) { throw e ; } return { } ; } }