Skip to content

Commit 24be98f

Browse files
authored
Merge branch 'main' into main
2 parents ee06554 + 3afc312 commit 24be98f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

events/README_KinesisDataAnalytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sample function
22

3-
The following is an example for an Application Destination Lambda function that receives Amazon Kinesis Data Analytics event records as an input. To send Kinesis Data Analytics output records the Lamdbda function must be compliant with the (required input and return data models)[https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output-lambda.html], so the handler returns a list of delivery statuses for each record.
3+
The following is an example for an Application Destination Lambda function that receives Amazon Kinesis Data Analytics event records as an input. To send Kinesis Data Analytics output records the Lambda function must be compliant with the (required input and return data models)[https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output-lambda.html], so the handler returns a list of delivery statuses for each record.
44

55
The following Lambda function receives Amazon Kinesis Data Analytics event record data as an input and writes some of the record data to CloudWatch Logs. For each entry it adds an element to the response slice, marking it delivered. When the logic considers the delivery to be failed the `events.KinesisAnalyticsOutputDeliveryFailed` value should be used for the response `Result` field.
66

events/apigw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type APIGatewayV2HTTPRequestContext struct {
7676
Time string `json:"time"`
7777
TimeEpoch int64 `json:"timeEpoch"`
7878
HTTP APIGatewayV2HTTPRequestContextHTTPDescription `json:"http"`
79-
Authentication APIGatewayV2HTTPRequestContextAuthentication `json:"authentication"`
79+
Authentication APIGatewayV2HTTPRequestContextAuthentication `json:"authentication,omitempty"`
8080
}
8181

8282
// APIGatewayV2HTTPRequestContextAuthorizerDescription contains authorizer information for the request context.

events/codebuild.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,17 @@ type CodeBuildLogs struct {
159159

160160
// CodeBuildPhase represents the phase of a build and its details
161161
type CodeBuildPhase struct {
162-
PhaseContext []interface{} `json:"phase-context"`
162+
PhaseContext []interface{} `json:"phase-context,omitempty"`
163163

164164
StartTime CodeBuildTime `json:"start-time"`
165165

166-
EndTime CodeBuildTime `json:"end-time"`
166+
EndTime CodeBuildTime `json:"end-time,omitempty"`
167167

168-
Duration DurationSeconds `json:"duration-in-seconds"`
168+
Duration DurationSeconds `json:"duration-in-seconds,omitempty"`
169169

170170
PhaseType CodeBuildPhaseType `json:"phase-type"`
171171

172-
PhaseStatus CodeBuildPhaseStatus `json:"phase-status"`
172+
PhaseStatus CodeBuildPhaseStatus `json:"phase-status,omitempty"`
173173
}
174174

175175
// CodeBuildTime represents the time of the build

events/codepipeline_cloudwatch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type CodePipelineEventDetail struct {
9292

9393
Region string `json:"region"`
9494

95-
Type CodePipelineEventDetailType `json:"type"`
95+
Type CodePipelineEventDetailType `json:"type,omitempty"`
9696
}
9797

9898
type CodePipelineEventDetailType struct {

0 commit comments

Comments
 (0)