コード例 #1
0
        public LambdaInvocationRequest(string functionName, LambdaInvocationType invocationType, string payloadFilePath)
        {
            if (string.IsNullOrWhiteSpace(functionName))
            {
                throw new InvalidOperationException($"The function name cannot be empty");
            }

            FunctionName    = functionName;
            InvocationType  = invocationType;
            PayloadFilePath = payloadFilePath;
        }
コード例 #2
0
        public InvocationType Convert(LambdaInvocationType invocationType)
        {
            switch (invocationType)
            {
            case LambdaInvocationType.Event:
                return(InvocationType.Event);

            case LambdaInvocationType.RequestResponse:
                return(InvocationType.RequestResponse);
            }
            throw new NotImplementedException($"The invocation type '{invocationType.ToString("G")}' is not currently supported.");
        }