Skip to content

Commit 69af3e1

Browse files
committed
Turn on syntax highlighting in the README.md files
1 parent 1575d27 commit 69af3e1

File tree

15 files changed

+35
-25
lines changed

15 files changed

+35
-25
lines changed

Libraries/src/Amazon.Lambda.APIGatewayEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ API Gateway events consist of a request that was routed to a Lambda function by
88

99
The following is a sample class and Lambda function that receives Amazon API Gateway event record data as an input, writes some of the record data to CloudWatch Logs, and responds with a 200 status and the same body as the request. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
1010

11-
```
11+
```csharp
1212
public class Function
1313
{
1414
public APIGatewayProxyResponse Handler(APIGatewayProxyRequest apigProxyEvent)

Libraries/src/Amazon.Lambda.CognitoEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This package contains classes that can be used as input types for Lambda functio
66

77
The following is a sample class and Lambda function that receives Amazon Cognito event record data as an input and writes the record data to CloudWatch Logs. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
88

9-
```
9+
```csharp
1010
public class Function
1111
{
1212
public void Handler(CognitoEvent cognitoEvent)

Libraries/src/Amazon.Lambda.ConfigEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This package contains classes that can be used as input types for Lambda functio
66

77
The following is a sample class and Lambda function that receives Amazon Cognito event record data as an input and writes the record data to CloudWatch Logs. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
88

9-
```
9+
```csharp
1010
public class Function
1111
{
1212
public void Handler(ConfigEvent configEvent)

Libraries/src/Amazon.Lambda.Core/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `Amazon.Lambda.Core.ILambdaContext` interface can be used in your handler fu
88

99
Here is an example of how this interface can be used in your handler function.
1010
The function performs a simple ToUpper content transformation, while writing some context data to Console.
11-
```
11+
```csharp
1212
public string ToUpper(string input, ILambdaContext context)
1313
{
1414
Console.WriteLine("Function name: " + context.FunctionName);
@@ -43,7 +43,7 @@ The `Amazon.Lambda.Core.ILambdaLogger` interface allows your function to log dat
4343

4444
Here is an example of how this interface can be used in your handler function.
4545
The function performs a simple ToUpper content transformation, while logging the context data.
46-
```
46+
```csharp
4747
public string ToUpper(string input, ILambdaContext context)
4848
{
4949
context.Logger.Log("Function name: " + context.FunctionName);
@@ -68,12 +68,12 @@ The `Amazon.Lambda.Core.LambdaSerializerAttribute` is an attribute that can is u
6868
This attribute can be present on the assembly or on the handler method. If you specify both, the method attribute takes priority.
6969

7070
Here is an example of setting this attribute on the assembly.
71-
```
71+
```csharp
7272
[assembly: Amazon.Lambda.Core.LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))]
7373
```
7474

7575
And this is how the method can be applied to the handler method.
76-
```
76+
```csharp
7777
[LambdaSerializer(typeof(XmlSerializer))]
7878
public Response CustomSerializerMethod(Request input)
7979
{

Libraries/src/Amazon.Lambda.DynamoDBEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This package has a dependency on the [AWS SDK for .NET package DynamoDBv2](https
88

99
The following is a sample class and Lambda function that receives Amazon DynamoDB event record data as an input and writes some of the incoming event data to CloudWatch Logs. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
1010

11-
```
11+
```csharp
1212
public class Function
1313
{
1414
public void Handler(DynamoDBEvent ddbEvent)

Libraries/src/Amazon.Lambda.KinesisEvents/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This package has a dependency on the [AWS SDK for .NET package AWSSDK.Kinesis](h
99
If you are using this package with Amazon Lambda but are not also using `Amazon.Lambda.Serialization.Json`, be aware that one property requires custom serialization.
1010

1111
This property is `Data` on the type `Amazon.Lambda.KinesisEvents.KinesisEvent+Record`. This is a `MemoryStream` object that should be populated by converting the JSON string from base64 to an array of bytes, then constructing a `MemoryStream` object from these bytes. Here is a code sample showing this deserialization logic.
12-
```
12+
```csharp
1313
string dataBase64 = GetJsonString();
1414
byte[] dataBytes = Convert.FromBase64String(dataBase64);
1515
MemoryStream stream = new MemoryStream(dataBytes);
@@ -21,7 +21,7 @@ A Newtonsoft.Json `IContractResolver` implementation which handles this custom s
2121

2222
The following is a sample class and Lambda function that receives Amazon Kinesis event record data as an input and logs some of the incoming event data. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
2323

24-
```
24+
```csharp
2525
public class Function
2626
{
2727
public string Handler(KinesisEvent kinesisEvent)

Libraries/src/Amazon.Lambda.KinesisFirehoseEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This package contains classes that can be used for AWS Lambda functions that per
66

77
The following is a sample class and Lambda function that transforms Kinesis Firehose records by doing a ToUpper on the data.
88

9-
```
9+
```csharp
1010
public class Function
1111
{
1212

Libraries/src/Amazon.Lambda.LexEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This package contains classes that can be used as input and response types for L
66

77
The following is a sample class and Lambda function that receives Amazon Lex event as an input and returns back a response.)
88

9-
```
9+
```csharp
1010
public class Function
1111
{
1212
public LexResponse Handler(LexEvent lexEvent)

Libraries/src/Amazon.Lambda.Logging.AspNetCore/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The two below examples set the same logging options, but do it either through co
99

1010
## Configuration through code
1111

12-
```
12+
```csharp
1313
public void Configure(ILoggerFactory loggerFactory)
1414
{
1515
// Create and populate LambdaLoggerOptions object
@@ -44,7 +44,7 @@ public void Configure(ILoggerFactory loggerFactory)
4444
## Configuration through IConfiguration
4545

4646
Configuration file, `appsettings.json`:
47-
```
47+
```json
4848
{
4949
"Lambda.Logging": {
5050
"IncludeCategory": false,
@@ -59,7 +59,7 @@ Configuration file, `appsettings.json`:
5959
```
6060

6161
Creating `LambdaLoggerOptions` from the configuration file:
62-
```
62+
```csharp
6363
public void Configure(ILoggerFactory loggerFactory)
6464
{
6565
var configuration = new ConfigurationBuilder()

Libraries/src/Amazon.Lambda.S3Events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A Newtonsoft.Json `IContractResolver` implementation which handles this custom s
1616

1717
Below is a sample class and Lambda function that illustrates how an S3Event can be used. The function logs a summary of the events it received, including the type and time of event, bucket, and key. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
1818

19-
```
19+
```csharp
2020
public class Function
2121
{
2222
public string Handler(S3Event s3Event)

0 commit comments

Comments
 (0)