Skip to content

Commit

Permalink
'Version 1.4.0 of the AWS CloudTrail Processing Library'
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlvb2 committed Jan 13, 2021
1 parent 98e22a7 commit 57812c1
Show file tree
Hide file tree
Showing 94 changed files with 362 additions and 93 deletions.
2 changes: 1 addition & 1 deletion META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: AWS CloudTrail Processing Library for Java
Bundle-SymbolicName: com.amazonaws.awscloudtrailprocessinglibrary;singleton:=true
Bundle-Version: 1.3.0
Bundle-Version: 1.4.0
Bundle-Vendor: Amazon Technologies, Inc
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: com.amazonaws.sdk;bundle-version="1.11.830"
Expand Down
13 changes: 12 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Getting Started
Minimum Requirements
~~~~~~~~~~~~~~~~~~~~

* **AWS Java SDK 1.10.27**: In order to use the |library|, you'll need the `AWS Java SDK`__.
* **AWS Java SDK 1.11.830**: To use the |library|, you'll need the `AWS Java SDK`__.
* **Java 1.8**: The |library| requires `Java 1.8 (Java SE 8)`__ or later.

.. __: https://github.com/aws/aws-sdk-java
Expand Down Expand Up @@ -65,6 +65,17 @@ build, use this command::
Release Notes
-------------

Release 1.4.0 (Jan 11, 2021)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Added support for parsing the following new top-level optional fields:

* addendum
* edgeDeviceDetails
* tlsDetails
* sessionCredentialFromConsole

* Updated the CloudTrail event version to 1.08.

Release 1.3.0 (Jul 30, 2020)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Added support for parsing new section, attributions, in insightContext.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>aws-cloudtrail-processing-library</artifactId>
<packaging>jar</packaging>
<name>AWS CloudTrail Processing Library for Java</name>
<version>1.3.0</version>
<version>1.4.0</version>
<description>AWS CloudTrail Processing Library for Java helps Java
developers to easily consume and process log files from AWS
CloudTrail.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand All @@ -15,10 +15,12 @@

package com.amazonaws.services.cloudtrail.processinglibrary.model;

import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.Addendum;
import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.CloudTrailDataStore;
import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.CloudTrailEventField;
import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.InsightDetails;
import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.Resource;
import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.TlsDetails;
import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.UserIdentity;

import java.util.Date;
Expand Down Expand Up @@ -222,6 +224,7 @@ public Boolean isReadOnly() {
public Boolean isManagementEvent() {
return (Boolean) get(CloudTrailEventField.managementEvent.name());
}

/**
* Get the resources used in the operation.
*
Expand Down Expand Up @@ -318,4 +321,50 @@ public String getVpcEndpointId() {
public InsightDetails getInsightDetails() {
return (InsightDetails) get(CloudTrailEventField.insightDetails.name());
}

/**
* Get the addendum
* <p>
* The Addendum block of an addendum event includes details to fill an auditing gap or update an older event.
* It only appears to update an older event.
* </p>
* @return Details of an Addendum block, such as a reason for the addendum,
* updated fields, original request ID, and original event ID..
*/
public Addendum getAddendum() {
return (Addendum) get(CloudTrailEventField.addendum.name());
}

/**
* Get the edge device details
*
* @return Information about the edge device, such as device type, device ID.
*/
public String getEdgeDeviceDetails() {
return (String) get(CloudTrailEventField.edgeDeviceDetails.name());
}

/**
* Get the TLS details
* <p>
* Shows information about the Transport Layer Security (TLS) version, cipher suites, and FQDN of the
* client-provided host name of the service API call.
* </p>
* @return The TLS details of a service API call.
*/
public TlsDetails getTlsDetails() {
return (TlsDetails) get(CloudTrailEventField.tlsDetails.name());
}

/**
* Check whether an event originated from an AWS Management Console session.
* <p>
* The field is not shown unless the value is true, meaning that the client that was used to make the API call
* was either a proxy or an external client.
* </p>
* @return <code>true</code> if the event originated from an AWS Management Console session.
*/
public String getSessionCredentialFromConsole() {
return (String) get(CloudTrailEventField.sessionCredentialFromConsole.name());
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2021 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.
Expand Down
Loading

0 comments on commit 57812c1

Please sign in to comment.