From 991d58776ff9c2551ed6c582c591094fe0357d6f Mon Sep 17 00:00:00 2001 From: hiimtmac Date: Thu, 18 May 2023 10:27:53 -0500 Subject: [PATCH] update coding keys --- Sources/AWSLambdaEvents/SNS.swift | 4 ++-- Tests/AWSLambdaEventsTests/SNSTests.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/AWSLambdaEvents/SNS.swift b/Sources/AWSLambdaEvents/SNS.swift index 6a82aad..87d62b0 100644 --- a/Sources/AWSLambdaEvents/SNS.swift +++ b/Sources/AWSLambdaEvents/SNS.swift @@ -68,9 +68,9 @@ extension SNSEvent.Message: Decodable { case messageAttributes = "MessageAttributes" case signatureVersion = "SignatureVersion" case timestamp = "Timestamp" - case signingCertURL = "SigningCertURL" + case signingCertURL = "SigningCertUrl" case message = "Message" - case unsubscribeURL = "UnsubscribeURL" + case unsubscribeURL = "UnsubscribeUrl" case subject = "Subject" } } diff --git a/Tests/AWSLambdaEventsTests/SNSTests.swift b/Tests/AWSLambdaEventsTests/SNSTests.swift index 0e42d0b..a6b5781 100644 --- a/Tests/AWSLambdaEventsTests/SNSTests.swift +++ b/Tests/AWSLambdaEventsTests/SNSTests.swift @@ -32,8 +32,8 @@ class SNSTests: XCTestCase { "Timestamp": "2020-01-08T14:18:51.203Z", "SignatureVersion": "1", "Signature": "LJMF/xmMH7A1gNy2unLA3hmzyf6Be+zS/Yeiiz9tZbu6OG8fwvWZeNOcEZardhSiIStc0TF7h9I+4Qz3omCntaEfayzTGmWN8itGkn2mfn/hMFmPbGM8gEUz3+jp1n6p+iqP3XTx92R0LBIFrU3ylOxSo8+SCOjA015M93wfZzwj0WPtynji9iAvvtf15d8JxPUu1T05BRitpFd5s6ZXDHtVQ4x/mUoLUN8lOVp+rs281/ZdYNUG/V5CwlyUDTOERdryTkBJ/GO1NNPa+6m04ywJFa5d+BC8mDcUcHhhXXjpTEbt8AHBmswK3nudHrVMRO/G4zmssxU2P7ii5+gCfA==", - "SigningCertURL": "https://sns.eu-central-1.amazonaws.com/SimpleNotificationService-6aad65c2f9911b05cd53efda11f913f9.pem", - "UnsubscribeURL": "https://sns.eu-central-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:eu-central-1:079477498937:EventSources-SNSTopic-1NHENSE2MQKF5:6fabdb7f-b27e-456d-8e8a-14679db9e40c", + "SigningCertUrl": "https://sns.eu-central-1.amazonaws.com/SimpleNotificationService-6aad65c2f9911b05cd53efda11f913f9.pem", + "UnsubscribeUrl": "https://sns.eu-central-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:eu-central-1:079477498937:EventSources-SNSTopic-1NHENSE2MQKF5:6fabdb7f-b27e-456d-8e8a-14679db9e40c", "MessageAttributes": { "binary":{ "Type": "Binary",