Exemplo n.º 1
0
        private static Amazon.CDK.AWS.APIGateway.Resource GetApiResource(IResource currentResource, Resource resource)
        {
            if (resource.IsProxy)
            {
                var proxyResourceOptions = new ProxyResourceOptions
                {
                    AnyMethod = false,
                };

                return(currentResource.AddProxy(proxyResourceOptions));
            }

            return(currentResource.AddResource(resource.ResourceName));
        }