Skip to content

Feature/gh 72 remove joda time #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions aws-lambda-java-events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
</developer>
</developers>

<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>

<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
Expand All @@ -37,16 +43,17 @@
</distributionManagement>

<dependencies>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>1.11.163</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down Expand Up @@ -1118,7 +1131,7 @@ public APIGatewayProxyRequestEvent withIsBase64Encoded(Boolean isBase64Encoded)
this.setIsBase64Encoded(isBase64Encoded);
return this;
}

/**
* Returns a string representation of this object; useful for testing and debugging.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand All @@ -9,11 +22,11 @@
public class APIGatewayProxyResponseEvent implements Serializable, Cloneable {

private static final long serialVersionUID = 2263167344670024172L;

private Integer statusCode;

private Map<String, String> headers;

private String body;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
/*
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.lambda.runtime.events;

import org.joda.time.DateTime;

import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.List;

/**
Expand Down Expand Up @@ -270,7 +281,7 @@ public static class Record implements Serializable, Cloneable {

private String eventVersion;

private DateTime eventTime;
private ZonedDateTime eventTime;

private String eventTriggerName;

Expand Down Expand Up @@ -346,22 +357,22 @@ public Record withEventVersion(String eventVersion) {
/**
* @return event timestamp
*/
public DateTime getEventTime() {
public ZonedDateTime getEventTime() {
return this.eventTime;
}

/**
* @param eventTime event timestamp
*/
public void setEventTime(DateTime eventTime) {
public void setEventTime(ZonedDateTime eventTime) {
this.eventTime = eventTime;
}

/**
* @param eventTime event timestamp
* @return Record
*/
public Record withEventTime(DateTime eventTime) {
public Record withEventTime(ZonedDateTime eventTime) {
setEventTime(eventTime);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand Down Expand Up @@ -71,7 +71,7 @@ public ConfigEvent withVersion(String version) {
setVersion(version);
return this;
}

/**
* Gets the JSON-encoded notification published by AWS Config.
*
Expand All @@ -96,7 +96,7 @@ public ConfigEvent withInvokingEvent(String invokingEvent) {
setInvokingEvent(invokingEvent);
return this;
}

/**
* Gets the JSON-encoded map containing the AWS Config rule parameters.
*
Expand All @@ -121,7 +121,7 @@ public ConfigEvent withRuleParameters(String ruleParameters) {
setRuleParameters(ruleParameters);
return this;
}

/**
* Gets the token associated with the invocation of the AWS Config rule's Lambda function.
*
Expand All @@ -146,7 +146,7 @@ public ConfigEvent withResultToken(String resultToken) {
setResultToken(resultToken);
return this;
}

/**
* Gets the ARN of the AWS Config rule that triggered the event.
*
Expand All @@ -171,7 +171,7 @@ public ConfigEvent withConfigRuleArn(String configRuleArn) {
setConfigRuleArn(configRuleArn);
return this;
}

/**
* Gets the ID of the AWS Config rule that triggered the event.
*
Expand All @@ -196,7 +196,7 @@ public ConfigEvent withConfigRuleId(String configRuleId) {
setConfigRuleId(configRuleId);
return this;
}

/**
* Gets the name of the AWS Config rule that triggered the event.
*
Expand All @@ -221,7 +221,7 @@ public ConfigEvent withConfigRuleName(String configRuleName) {
setConfigRuleName(configRuleName);
return this;
}

/**
* Gets the account ID of the AWS Config rule that triggered the event.
*
Expand All @@ -246,7 +246,7 @@ public ConfigEvent withAccountId(String accountId) {
setAccountId(accountId);
return this;
}

/**
* Gets the ARN of the IAM role that is assigned to AWS Config.
*
Expand All @@ -271,7 +271,7 @@ public ConfigEvent withExecutionRoleArn(String executionRoleArn) {
setExecutionRoleArn(executionRoleArn);
return this;
}

/**
* Whether the AWS resource to be evaluated has been removed from the AWS Config rule's scope.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */
/*
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

Expand Down Expand Up @@ -212,5 +223,5 @@ public DynamodbEvent clone() {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone()", e);
}
}

}
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand All @@ -10,6 +10,7 @@
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand All @@ -10,6 +10,7 @@
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand All @@ -10,6 +10,7 @@
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
Expand All @@ -10,6 +10,7 @@
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/

package com.amazonaws.services.lambda.runtime.events;

import java.io.Serializable;
Expand Down
Loading