public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { /** @var AwsSdk $awsSdk */ $awsSdk = $container->get(AwsSdk::class); return new CloudFrontLink($awsSdk->createCloudFront()); }