Skip to content

Commit fe99f9b

Browse files
authored
Merge branch 'main' into main
2 parents 81ec680 + c0b4f60 commit fe99f9b

File tree

48 files changed

+763
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+763
-150
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/aws-lambda-java-core.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'aws-lambda-java-core/**'
10+
- 'aws-lambda-java-core/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'aws-lambda-java-core/**'
14+
- 'aws-lambda-java-core/**'
15+
- '.github/workflows/aws-lambda-java-core.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto
@@ -38,3 +39,5 @@ jobs:
3839
- name: Run 'pr' target
3940
working-directory: ./aws-lambda-java-runtime-interface-client
4041
run: make pr
42+
env:
43+
IS_JAVA_8: true

.github/workflows/aws-lambda-java-events-sdk-transformer.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'aws-lambda-java-events-sdk-transformer/**'
10+
- 'aws-lambda-java-events-sdk-transformer/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'aws-lambda-java-events-sdk-transformer/**'
14+
- 'aws-lambda-java-events-sdk-transformer/**'
15+
- '.github/workflows/aws-lambda-java-events-sdk-transformer.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto

.github/workflows/aws-lambda-java-events.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'aws-lambda-java-events/**'
10+
- 'aws-lambda-java-events/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'aws-lambda-java-events/**'
14+
- 'aws-lambda-java-events/**'
15+
- '.github/workflows/aws-lambda-java-events.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto

.github/workflows/aws-lambda-java-log4j2.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'aws-lambda-java-log4j2/**'
10+
- 'aws-lambda-java-log4j2/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'aws-lambda-java-log4j2/**'
14+
- 'aws-lambda-java-log4j2/**'
15+
- '.github/workflows/aws-lambda-java-log4j2.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto

.github/workflows/aws-lambda-java-serialization.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'aws-lambda-java-serialization/**'
10+
- 'aws-lambda-java-serialization/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'aws-lambda-java-serialization/**'
14+
- 'aws-lambda-java-serialization/**'
15+
- '.github/workflows/aws-lambda-java-serialization.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto

.github/workflows/aws-lambda-java-tests.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'aws-lambda-java-tests/**'
10+
- 'aws-lambda-java-tests/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'aws-lambda-java-tests/**'
14+
- 'aws-lambda-java-tests/**'
15+
- '.github/workflows/aws-lambda-java-tests.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto

.github/workflows/repo-sync.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Repo Sync
33
on:
44
schedule:
55
- cron: "0 8 * * 1-5" # At 08:00 on every day-of-week from Monday through Friday
6+
pull_request:
7+
branches: [ '*' ]
8+
paths:
9+
- '.github/workflows/repo-sync.yml'
610
workflow_dispatch:
711

812
jobs:

.github/workflows/runtime-interface-client_merge_to_main.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
branches: [ main ]
1616
paths:
1717
- 'aws-lambda-java-runtime-interface-client/**'
18+
workflow_dispatch:
1819

1920
jobs:
2021

@@ -29,13 +30,13 @@ jobs:
2930
- uses: actions/checkout@v3
3031

3132
- name: Set up JDK 1.8
32-
uses: actions/setup-java@v3
33+
uses: actions/setup-java@v4
3334
with:
3435
java-version: 8
3536
distribution: corretto
3637

3738
- name: Set up QEMU
38-
uses: docker/setup-qemu-action@v2
39+
uses: docker/setup-qemu-action@v3
3940

4041
- name: Set up Docker Buildx
4142
uses: docker/setup-buildx-action@v2
@@ -48,9 +49,11 @@ jobs:
4849
- name: Test Runtime Interface Client xplatform build - Run 'build' target
4950
working-directory: ./aws-lambda-java-runtime-interface-client
5051
run: make build
52+
env:
53+
IS_JAVA_8: true
5154

5255
- name: Issue AWS credentials
53-
uses: aws-actions/configure-aws-credentials@v1
56+
uses: aws-actions/configure-aws-credentials@v4
5457
with:
5558
aws-region: ${{ secrets.AWS_REGION }}
5659
role-to-assume: ${{ secrets.AWS_ROLE }}

.github/workflows/runtime-interface-client_pr.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
pull_request:
88
branches: [ '*' ]
99
paths:
10-
- 'aws-lambda-java-runtime-interface-client/**'
10+
- 'aws-lambda-java-runtime-interface-client/**'
11+
- '.github/workflows/runtime-interface-client_pr.yml'
1112

1213
jobs:
1314

@@ -17,28 +18,30 @@ jobs:
1718
- uses: actions/checkout@v3
1819

1920
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v3
21+
uses: actions/setup-java@v4
2122
with:
2223
java-version: 8
2324
distribution: corretto
2425

2526
- name: Runtime Interface Client smoke tests - Run 'pr' target
2627
working-directory: ./aws-lambda-java-runtime-interface-client
2728
run: make pr
29+
env:
30+
IS_JAVA_8: true
2831

2932
build:
3033
runs-on: ubuntu-latest
3134
steps:
3235
- uses: actions/checkout@v3
3336

3437
- name: Set up JDK 1.8
35-
uses: actions/setup-java@v3
38+
uses: actions/setup-java@v4
3639
with:
3740
java-version: 8
3841
distribution: corretto
3942

4043
- name: Set up QEMU
41-
uses: docker/setup-qemu-action@v2
44+
uses: docker/setup-qemu-action@v3
4245

4346
- name: Set up Docker Buildx
4447
uses: docker/setup-buildx-action@v2
@@ -51,9 +54,11 @@ jobs:
5154
- name: Test Runtime Interface Client xplatform build - Run 'build' target
5255
working-directory: ./aws-lambda-java-runtime-interface-client
5356
run: make build
57+
env:
58+
IS_JAVA_8: true
5459

5560
- name: Save the built jar
56-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
5762
with:
5863
name: aws-lambda-java-runtime-interface-client
5964
path: ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-*.jar

.github/workflows/samples.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
branches: [ '*' ]
1313
paths:
1414
- 'samples/kinesis-firehose-event-handler/**'
15+
- '.github/workflows/samples.yml'
1516

1617
jobs:
1718
build:
@@ -21,7 +22,7 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Set up JDK 1.8
24-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2526
with:
2627
java-version: 8
2728
distribution: corretto

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ dependency-reduced-pom.xml
2424
.project
2525

2626
# OSX
27-
.DS_Store
27+
.DS_Store
28+
29+
# snapshot process
30+
aws-lambda-java-runtime-interface-client/pom.xml.versionsBackup

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The purpose of this package is to allow developers to deploy their applications
140140
<dependency>
141141
<groupId>com.amazonaws</groupId>
142142
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
143-
<version>2.5.0</version>
143+
<version>2.5.1</version>
144144
</dependency>
145145
```
146146

aws-lambda-java-events/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
* `KinesisFirehoseEvent`
4747
* `LambdaDestinationEvent`
4848
* `LexEvent`
49+
* `MSKFirehoseEvent`
50+
* `MSKFirehoseResponse`
4951
* `RabbitMQEvent`
5052
* `S3BatchEvent`
5153
* `S3BatchResponse`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package com.amazonaws.services.lambda.runtime.events;
7+
8+
import java.nio.ByteBuffer;
9+
import java.util.List;
10+
import java.util.Map;
11+
12+
import lombok.AllArgsConstructor;
13+
import lombok.Builder;
14+
import lombok.Data;
15+
import lombok.NoArgsConstructor;
16+
17+
@Data
18+
@Builder(setterPrefix = "with")
19+
@NoArgsConstructor
20+
@AllArgsConstructor
21+
22+
public class MSKFirehoseEvent {
23+
24+
private String invocationId;
25+
26+
private String deliveryStreamArn;
27+
28+
private String sourceMSKArn;
29+
30+
private String region;
31+
32+
private List<Record> records;
33+
34+
@Data
35+
@Builder(setterPrefix = "with")
36+
@NoArgsConstructor
37+
@AllArgsConstructor
38+
public static class Record {
39+
40+
private ByteBuffer kafkaRecordValue;
41+
42+
private String recordId;
43+
44+
private Long approximateArrivalEpoch;
45+
46+
private Long approximateArrivalTimestamp;
47+
48+
private Map<String, String> mskRecordMetadata;
49+
50+
}
51+
}

0 commit comments

Comments
 (0)