code: func (c *Container) ShouldPullWithExecutionRole() bool {
  	c.lock.RLock()
  	defer c.lock.RUnlock()
  
  	return c.RegistryAuthentication != nil &&
  		c.RegistryAuthentication.Type == AuthTypeECR &&
  		c.RegistryAuthentication.ECRAuthData != nil &&
  		c.RegistryAuthentication.ECRAuthData.UseExecutionRole
  }
docs: // ShouldPullWithExecutionRole returns whether this container has its own ECR credentials