From 5a6a6d274ec0fcfb78eb705459d106ee70c1495d Mon Sep 17 00:00:00 2001 From: tom doron Date: Tue, 28 Apr 2020 14:28:24 -0700 Subject: [PATCH] better links to events docs motivation: link to developer guide instead of golang impl changes: add/change event doc links to https://docs.aws.amazon.com/lambda/latest/dg/lambda-services.html --- Sources/AWSLambdaEvents/APIGateway.swift | 1 + Sources/AWSLambdaEvents/Cloudwatch.swift | 1 + Sources/AWSLambdaEvents/S3.swift | 3 ++- Sources/AWSLambdaEvents/SNS.swift | 3 ++- Sources/AWSLambdaEvents/SQS.swift | 3 ++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Sources/AWSLambdaEvents/APIGateway.swift b/Sources/AWSLambdaEvents/APIGateway.swift index 948aca25..5ae961e2 100644 --- a/Sources/AWSLambdaEvents/APIGateway.swift +++ b/Sources/AWSLambdaEvents/APIGateway.swift @@ -14,6 +14,7 @@ import class Foundation.JSONEncoder +// https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html // https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html public enum APIGateway { diff --git a/Sources/AWSLambdaEvents/Cloudwatch.swift b/Sources/AWSLambdaEvents/Cloudwatch.swift index 0071756e..f07ddfb5 100644 --- a/Sources/AWSLambdaEvents/Cloudwatch.swift +++ b/Sources/AWSLambdaEvents/Cloudwatch.swift @@ -31,6 +31,7 @@ public enum Cloudwatch { /// CloudWatch.Event is the outer structure of an event sent via CloudWatch Events. /// /// **NOTE**: For examples of events that come via CloudWatch Events, see + /// https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents.html /// https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html /// https://docs.aws.amazon.com/eventbridge/latest/userguide/event-types.html public struct Event: Decodable { diff --git a/Sources/AWSLambdaEvents/S3.swift b/Sources/AWSLambdaEvents/S3.swift index eab77fed..0e7add28 100644 --- a/Sources/AWSLambdaEvents/S3.swift +++ b/Sources/AWSLambdaEvents/S3.swift @@ -14,7 +14,8 @@ import struct Foundation.Date -// https://github.com/aws/aws-lambda-go/blob/master/events/s3.go +// https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html + public enum S3 { public struct Event: Decodable { public struct Record: Decodable { diff --git a/Sources/AWSLambdaEvents/SNS.swift b/Sources/AWSLambdaEvents/SNS.swift index b222f5b9..9db4c8f4 100644 --- a/Sources/AWSLambdaEvents/SNS.swift +++ b/Sources/AWSLambdaEvents/SNS.swift @@ -14,7 +14,8 @@ import struct Foundation.Date -/// https://github.com/aws/aws-lambda-go/blob/master/events/sns.go +// https://docs.aws.amazon.com/lambda/latest/dg/with-sns.html + public enum SNS { public struct Event: Decodable { public struct Record: Decodable { diff --git a/Sources/AWSLambdaEvents/SQS.swift b/Sources/AWSLambdaEvents/SQS.swift index e4d25d46..f2aca1fd 100644 --- a/Sources/AWSLambdaEvents/SQS.swift +++ b/Sources/AWSLambdaEvents/SQS.swift @@ -12,7 +12,8 @@ // //===----------------------------------------------------------------------===// -/// https://github.com/aws/aws-lambda-go/blob/master/events/sqs.go +// https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html + public enum SQS { public struct Event: Decodable { public let records: [Message]