repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Core;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
namespace BlueprintBaseName._1;
public class StepFunctionTasks
{
/// <summary... | 45 |
aws-lambda-dotnet | aws | C# | using Xunit;
using Amazon.Lambda.Core;
using Amazon.Lambda.TestUtilities;
namespace BlueprintBaseName._1.Tests;
public class FunctionTest
{
public FunctionTest()
{
}
[Fact]
public void TestGreeting()
{
TestLambdaContext context = new TestLambdaContext();
StepFunctionTasks fun... | 31 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Core;
using Amazon.Lambda.RuntimeSupport;
using Amazon.Lambda.Serialization.SystemTextJson;
// The function handler that will be called for each Lambda event
var handler = (string input, ILambdaContext context) =>
{
return input.ToUpper();
};
// Build the Lambda runtime client passing in the h... | 16 |
aws-lambda-dotnet | aws | C# | using System.Net;
using System.Text;
using System.Text.Json;
using Amazon.Lambda.Core;
using Amazon.Lambda.APIGatewayEvents;
using Amazon.Runtime;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.Model;
using Amazon.ApiGatewayManagementApi;
using Amazon.ApiGatewayManagementApi.Model;
// Assembly attribute to enable ... | 251 |
aws-lambda-dotnet | aws | C# | using Xunit;
using Amazon.Lambda.TestUtilities;
using Amazon.Lambda.APIGatewayEvents;
using Moq;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.Model;
using Amazon.ApiGatewayManagementApi;
using Amazon.ApiGatewayManagementApi.Model;
namespace BlueprintBaseName._1.Tests;
public class FunctionsTest
{
public Fu... | 138 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.IO.Compression;
using System.Text;
using System.Xml;
using Newtonsoft.Json;
namespace Packager
{
public abstract class BaseBlueprintPackager
{
protected string _blueprintRoot;
protected IList<stri... | 59 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Packager
{
public class BlueprintManifest
{
[JsonProperty(PropertyName = "display-name")]
public string DisplayName { get; set; }
[JsonProperty(PropertyN... | 26 |
aws-lambda-dotnet | aws | C# | using System;
using System.IO;
using System.Linq;
namespace Packager
{
public class Program
{
public static void Main(string[] args)
{
ProcessArgs(args, out var updateVersions);
var outputDirectory = GetFullPath(@"../../Deployment/Blueprints");
var bluepr... | 79 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Xml;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Packager
{
public class UpdatePackageReferenceVersions
{
const string MicrosoftAspNetCoreAppVe... | 149 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Text;
using Newtonsoft.Json;
namespace Packager
{
public static class Utilities
{
public static void ZipCode(string sourceDirectory, string zipArchivePath)
{
sourceDirector... | 55 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.IO.Compression;
using System.Text;
using System.Xml;
using Newtonsoft.Json;
namespace Packager
{
public class VSMsbuildBlueprintPackager : BaseBlueprintPackager
{
private static IList<string> ExcludeBluep... | 80 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 56 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 17 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 515 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 48 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJson... | 28 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 147 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 345 |
aws-lambda-dotnet | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 42 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations
{
/// <summary>
/// Indicates that this service parameter will be injected into the Lambda function invocation.
/// </summary>
/// <remarks>
/// Services injected using the FromServices attribute are created within the scope
/// that is created... | 16 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations
{
public interface INamedAttribute
{
string Name { get; set; }
}
} | 7 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations
{
/// <summary>
/// Indicates this method should be exposed as a Lambda function
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class LambdaFunctionAttribute : Attribute
{
/// <summary>
/// The name of the Clo... | 39 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations
{
/// <summary>
/// The deployment package type of the Lambda function. The supported values are Zip or Image. The default value is Zip.
/// For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html">here</a>
/// </... | 12 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations
{
/// <summary>
/// Indicates that the class will be used for registering services that
/// can be injected into Lambda functions.
/// </summary>
/// <remarks>
/// The class should implement a ConfigureServices method that
/// adds one ... | 18 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// Maps this parameter to the HTTP request body
/// </summary>
/// <remarks>
/// If the parameter is a complex type then the request body will be assumed to be JSON and deserialized into the type.
/// </remarks>
[... | 15 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// Maps this parameter to an HTTP header value
/// </summary>
[AttributeUsage(AttributeTargets.Parameter)]
public class FromHeaderAttribute : Attribute, INamedAttribute
{
/// <summary>
/// Name of the ... | 16 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// Maps this parameter to a query string parameter
/// </summary>
[AttributeUsage(AttributeTargets.Parameter)]
public class FromQueryAttribute : Attribute, INamedAttribute
{
/// <summary>
/// Name of t... | 16 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// Maps this parameter to a resource path segment
/// </summary>
[AttributeUsage(AttributeTargets.Parameter)]
public class FromRouteAttribute : Attribute, INamedAttribute
{
/// <summary>
/// Name of th... | 16 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// Configures the Lambda function to be called from an API Gateway HTTP API
/// </summary>
/// <remarks>
/// The HTTP method, HTTP API payload version and resource path are required to be set on the attribute.
/// </r... | 31 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// The <see href="https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.proxy-format">
/// Payload Format Version</see> for an API Gateway HTTP API.
/// <... | 12 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
#if NET6_0_OR_GREATER
using System.Buffers;
using System.Text.Json;
using System.Text.Json.Serialization;
#endif
// This assembly is also used in the source generator which needs the .NET attributes and type infos ... | 507 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// HTTP Method/Verb
/// </summary>
public enum LambdaHttpMethod
{
Any,
Get,
Post,
Put,
Patch,
Head,
Delete,
Options
}
} | 17 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.APIGateway
{
/// <summary>
/// Configures the Lambda function to be called from an API Gateway REST API
/// </summary>
/// <remarks>
/// The HTTP method and resource path are required to be set on the attribute.
/// </remarks>
[AttributeUsag... | 28 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations.SourceGenerator
{
/// <summary>
/// Specifies the format for the CloudFormation template.
/// </summary>
public enum CloudFormationTemplateFormat
{
Json,
Yaml
}
} | 11 |
aws-lambda-dotnet | aws | C# | using System;
using System.IO;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.FileIO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Amazon.Lambda.Annotations.SourceGenerator
{
/// <summary>
/// This class contains utility methods to determine the .NET project's root directory... | 151 |
aws-lambda-dotnet | aws | C# | using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Amazon.Lambda.Annotations.SourceGenerator.Diagnostics;
using Amazon.Lambda.Annotations.SourceGenerator.Extensions;
using Amazon.Lambda.Annotations.SourceGenerator.FileIO;
using Amazon.Lambda.Annotations.SourceGenerator.Mo... | 247 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations.SourceGenerator
{
/// <summary>
/// Contains namespace constants.
/// </summary>
public static class Namespaces
{
public static string Annotations = "Amazon.Lambda.Annotations";
}
} | 10 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.FileIO;
using System;
using System.Xml;
namespace Amazon.Lambda.Annotations.SourceGenerator
{
/// <summary>
/// Utilities for working with project (.csproj) files
/// </summary>
public class ProjectFileHandler
{
private const string OptOutN... | 47 |
aws-lambda-dotnet | aws | C# | using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Amazon.Lambda.Annotations.SourceGenerator
{
public class SemanticModelProvider
{
private readonly GeneratorExecutionContext _context;
public... | 68 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.FileIO;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Amazon.Lambda.Annotations.SourceGenerator
{
internal class SyntaxReceiver : ISyntaxContextReceiver
{
... | 72 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
namespace Amazon.Lambda.Annotations.SourceGenerator
{
/// <summary>
/// Contains fully qualified name constants for various C# types
/// </summary>
public static class TypeFullNames
{
public const string IEnumerable = "System.Collections.IEnumerable";
... | 49 |
aws-lambda-dotnet | aws | C# | using System;
using Microsoft.CodeAnalysis;
using Amazon.Lambda.Annotations.APIGateway;
namespace Amazon.Lambda.Annotations.SourceGenerator.Diagnostics
{
public static class DiagnosticDescriptors
{
/// Generic errors
public static readonly DiagnosticDescriptor UnhandledException = new Diagnosti... | 84 |
aws-lambda-dotnet | aws | C# | using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Diagnostics
{
/// <summary>
/// Wrapper for GeneratorExecutionContext.ReportDiagnostic method
/// because GeneratorExecutionContext is a struct and can't be mocked easily.
/// </summary>
public interface IDiagnosticRe... | 28 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Extensions
{
public static class ParameterListExtension
{
public static bool HasConvertibleParameter(this IList<ParameterMode... | 37 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.SourceGenerator.Extensions
{
public static class StringExtensions
{
public static string ToCamelCase(this string str)
{
if(!string.IsNullOrEmpty(str) && str.Length > 1)
{
return char.ToLowerInvariant(str[0... | 39 |
aws-lambda-dotnet | aws | C# | using System.Linq;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Extensions
{
public static class SymbolHasAttributeExtension
{
/// <summary>
/// Returns true if symbol has an given attribute.
/// </summary>
/// <param name="symbol">Symbol exp... | 55 |
aws-lambda-dotnet | aws | C# | using System;
using System.IO;
using System.Text;
namespace Amazon.Lambda.Annotations.SourceGenerator.FileIO
{
public class DirectoryManager : IDirectoryManager
{
public string GetDirectoryName(string path) => Path.GetDirectoryName(path);
public bool Exists(string path) => Directory.Exists(pat... | 81 |
aws-lambda-dotnet | aws | C# | using System.IO;
namespace Amazon.Lambda.Annotations.SourceGenerator.FileIO
{
public class FileManager : IFileManager
{
public string ReadAllText(string path) => File.ReadAllText(path);
public void WriteAllText(string path, string content) => File.WriteAllText(path, content);
... | 15 |
aws-lambda-dotnet | aws | C# | using System.IO;
namespace Amazon.Lambda.Annotations.SourceGenerator.FileIO
{
public interface IDirectoryManager
{
string GetDirectoryName(string path);
string[] GetFiles(string path, string searchPattern, SearchOption searchOption = SearchOption.TopDirectoryOnly);
bool Exists(string pa... | 12 |
aws-lambda-dotnet | aws | C# | using System.IO;
namespace Amazon.Lambda.Annotations.SourceGenerator.FileIO
{
public interface IFileManager
{
string ReadAllText(string path);
void WriteAllText(string path, string content);
bool Exists(string path);
FileStream Create(string path);
}
} | 12 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
public class AnnotationReport
{
/// <summary>
/// Collection of annotated Lambda functions detected in the project
/// </summary>
public IList<ILambdaFunctionSerializable> LambdaFun... | 28 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// Type of Lambda event
/// <see href="https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-eventsource.html">Supported Lambda events</see>
/// </summary>
public enum EventType... | 15 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.Extensions;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// <see cref="EventType"/> builder.
/// </summary>
public class EventT... | 30 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// Represents generated method model used for generating the code from the template.
/// </summary>
public class GeneratedMethodModel
{
/// <summary>
/// Gets or sets type o... | 30 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.APIGateway;
using Amazon.Lambda.Annotations.SourceGenerator.Extensions;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// <see cref="GeneratedMethodModel... | 232 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
public interface ILambdaFunctionSerializable
{
/// <summary>
/// <para>
/// The name of the method within yo... | 60 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// Represents container class for the Lambda function.
/// </summary>
public class LambdaFunc... | 63 |
aws-lambda-dotnet | aws | C# | using System.Linq;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// <see cref="LambdaFunctionModel"/> builder.
/// </summary>
public static class LambdaFunctionModelBuilder
{
public static LambdaFunctionModel Build(IMethodSymbol la... | 29 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// Represents original method model used for generating the code from the template.
/// </summary... | 134 |
aws-lambda-dotnet | aws | C# | using System.Linq;
using System.Threading.Tasks;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// <see cref="LambdaMethodModel"/> builder.
/// </summary>
public static class La... | 36 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// Represents parameters of the original method used for generating the code from the template.
/// </summary>
public class Pa... | 27 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// <see cref="ParameterModel"/> builder.
... | 32 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// Represents a type.
/// </summary>
public class TypeModel
{
private readonly HashSet<string> _primitiveTypes = new H... | 131 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models
{
/// <summary>
/// <see cref="TypeModel"/> builder.
/// </summary>
public static class TypeModelBuilder
{
public static TypeModel Build(ITypeSymbol ... | 48 |
aws-lambda-dotnet | aws | C# | using System;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// Represents attribute used on a type.
/// </summary>
public class AttributeModel
{
/// <summary>
/// Gets or sets type of the attribute
/// </summary>
public TypeMo... | 30 |
aws-lambda-dotnet | aws | C# | using System;
using Amazon.Lambda.Annotations.APIGateway;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// <see cref="AttributeModel"/> builder.
/// </summary>
public static class AttributeModelBuilder
{
public static At... | 85 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.APIGateway;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// Builder for <see cref="FromHeaderAttribute"/>.
/// </summary>
public class FromHeaderAttributeBuilder
{
public static FromHeade... | 25 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.APIGateway;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// Builder for <see cref="FromQueryAttribute"/>.
/// </summary>
public class FromQueryAttributeBuilder
{
public static FromQueryAt... | 25 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.APIGateway;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// Builder for <see cref="FromRouteAttribute"/>.
/// </summary>
public class FromRouteAttributeBuilder
{
public static FromRouteAt... | 25 |
aws-lambda-dotnet | aws | C# | using System;
using System.Linq;
using Amazon.Lambda.Annotations.APIGateway;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
public static class HttpApiAttributeBuilder
{
public static HttpApiAttribute Build(AttributeData att)
{
... | 28 |
aws-lambda-dotnet | aws | C# | using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// Builder for <see cref="LambdaFunctionAttributeData"/>.
/// </summary>
public static class LambdaFunctionAttributeDataBuilder
{
public static LambdaFunctionAttribute Build(... | 50 |
aws-lambda-dotnet | aws | C# | using System;
using Amazon.Lambda.Annotations.APIGateway;
using Microsoft.CodeAnalysis;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
/// <summary>
/// Builder for <see cref="RestApiAttribute"/>.
/// </summary>
public class RestApiAttributeBuilder
{
public static R... | 27 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.APIGateway;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes
{
public static class TemplateParametersExtension
{
/// <summary>
/// Returns aa <see cref="HashSet{T}"/> of strin... | 49 |
aws-lambda-dotnet | aws | C# | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// --... | 582 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Templates
{
public partial class APIGatewayInvoke
{
private readonly LambdaFunctionModel _model;
public readonly string _parameterSignature;
public APIGatewayInvoke(LambdaFun... | 17 |
aws-lambda-dotnet | aws | C# | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// --... | 1,072 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Templates
{
public partial class APIGatewaySetupParameters
{
private readonly LambdaFunctionModel _model;
public string ParameterSignature { get; set; }
public APIGatewaySetu... | 16 |
aws-lambda-dotnet | aws | C# | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// --... | 425 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Templates
{
public partial class FieldsAndConstructor
{
private readonly LambdaFunctionModel _model;
public FieldsAndConstructor(LambdaFunctionModel model)
{
_mode... | 14 |
aws-lambda-dotnet | aws | C# | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// --... | 459 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Templates
{
public partial class LambdaFunctionTemplate
{
private readonly LambdaFunctionModel _model;
public LambdaFunctionTemplate(LambdaFunctionModel model)
{
_mod... | 14 |
aws-lambda-dotnet | aws | C# | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// --... | 461 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Templates
{
public partial class NoEventMethodBody
{
private readonly LambdaFunctionModel _model;
public NoEventMethodBody(LambdaFunctionModel model)
{
_model = mo... | 14 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using Amazon.Lambda.Annotations.APIGateway;
using Amazon.Lambda.Annotations.SourceGenerator.Models;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
namespace Amazon.Lambda.Annotations.SourceGenerator.Validation
{
public static cl... | 49 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.APIGateway;
using Amazon.Lambda.Annotations.SourceGenerator.Diagnostics;
using Amazon.Lambda.Annotations.SourceGenerator.FileIO;
using Amazon.Lambda.Annotations.SourceGenerator.Models;
using Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes;
using Microsoft.CodeAnalysis;
usi... | 460 |
aws-lambda-dotnet | aws | C# | using Amazon.Lambda.Annotations.SourceGenerator.Models;
namespace Amazon.Lambda.Annotations.SourceGenerator.Writers
{
public interface IAnnotationReportWriter
{
void ApplyReport(AnnotationReport report);
}
} | 9 |
aws-lambda-dotnet | aws | C# | using System.Collections;
using System.Collections.Generic;
namespace Amazon.Lambda.Annotations.SourceGenerator.Writers
{
/// <summary>
/// This interface contains utility methods to manipulate a YAML or JSON blob
/// </summary>
public interface ITemplateWriter
{
/// <summary>
//... | 69 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Amazon.Lambda.Annotations.SourceGenerator.Writers
{
/// <summary>
/// This contains the functionality to manipulate a JSON blob
/// </summary>
public class... | 242 |
aws-lambda-dotnet | aws | C# | using YamlDotNet.RepresentationModel;
namespace Amazon.Lambda.Annotations.SourceGenerator.Writers
{
/// <summary>
/// These enums dictate the deserialized <see cref="YamlNode"/> type during the invocation of YamlWriter.SetToken(..)
/// These token types do not play any roles when using a jsonWriter.
... | 31 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using YamlDotNet.RepresentationModel;
using YamlDotNet.Serialization;
namespace Amazon.Lambda.Annotations.SourceGenerator.Writers
{
/// <summary>
/// This contains the functionality to manipulate a YAML blob
/// </summar... | 287 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.APIGatewayEvents
{
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
#if NETSTANDARD_2_0
using Newtonsoft.Json.Linq;
#else
using System.Text.Json;
#endif
/// <summary>
/// An object representing the expected format of an API Gat... | 159 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.APIGatewayEvents
{
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
/// <summary>
/// An object representing the expected format of an API Gateway custom authorizer response.
/// </summary>
[DataContract]
public class APIGate... | 85 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.APIGatewayEvents
{
using System.Collections.Generic;
/// <summary>
/// An object representing an IAM policy.
/// </summary>
public class APIGatewayCustomAuthorizerPolicy
{
/// <summary>
/// Gets or sets the IAM API version.
/// </summary>
#if N... | 57 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
namespace Amazon.Lambda.APIGatewayEvents
{
/// <summary>
/// For requests coming in to a custom API Gateway authorizer function.
/// </summary>
public class APIGatewayCustomAuthorizerRequest
{
/// <summary>
/// Gets or sets the 'type' property.
... | 62 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.APIGatewayEvents
{
using System.Runtime.Serialization;
/// <summary>
/// An object representing the expected format of an API Gateway authorization response.
/// </summary>
[DataContract]
public class APIGatewayCustomAuthorizerResponse
{
/// <summary>
... | 48 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.APIGatewayEvents
{
using System.Collections.Generic;
using System.Runtime.Serialization;
/// <summary>
/// An object representing the expected format of an API Gateway authorization response.
/// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda... | 41 |
aws-lambda-dotnet | aws | C# | using System.Collections.Generic;
namespace Amazon.Lambda.APIGatewayEvents
{
/// <summary>
/// For requests coming in to a custom API Gateway authorizer function.
/// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html
/// </summary>
public class APIGatew... | 72 |
aws-lambda-dotnet | aws | C# | namespace Amazon.Lambda.APIGatewayEvents
{
using System.Collections.Generic;
using System.Runtime.Serialization;
/// <summary>
/// An object representing the expected format of an API Gateway authorization response.
/// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda... | 32 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.Lambda.APIGatewayEvents
{
/// <summary>
/// For request using using API Gateway HTTP API version 2 payload proxy format
/// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambd... | 345 |
aws-lambda-dotnet | aws | C# | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace Amazon.Lambda.APIGatewayEvents
{
/// <summary>
/// The response object for Lambda functions handling request from API Gateway HTTP API v2 proxy format
/// https://docs.aws.amazon.com/apigate... | 94 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.