|
1 | 1 | /*******************************************************************************
|
2 |
| - * Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | + * Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License").
|
5 | 5 | * You may not use this file except in compliance with the License.
|
|
15 | 15 |
|
16 | 16 | package com.amazonaws.services.cloudtrail.processinglibrary.model;
|
17 | 17 |
|
| 18 | +import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.Addendum; |
18 | 19 | import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.CloudTrailDataStore;
|
19 | 20 | import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.CloudTrailEventField;
|
20 | 21 | import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.InsightDetails;
|
21 | 22 | import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.Resource;
|
| 23 | +import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.TlsDetails; |
22 | 24 | import com.amazonaws.services.cloudtrail.processinglibrary.model.internal.UserIdentity;
|
23 | 25 |
|
24 | 26 | import java.util.Date;
|
@@ -222,6 +224,7 @@ public Boolean isReadOnly() {
|
222 | 224 | public Boolean isManagementEvent() {
|
223 | 225 | return (Boolean) get(CloudTrailEventField.managementEvent.name());
|
224 | 226 | }
|
| 227 | + |
225 | 228 | /**
|
226 | 229 | * Get the resources used in the operation.
|
227 | 230 | *
|
@@ -318,4 +321,50 @@ public String getVpcEndpointId() {
|
318 | 321 | public InsightDetails getInsightDetails() {
|
319 | 322 | return (InsightDetails) get(CloudTrailEventField.insightDetails.name());
|
320 | 323 | }
|
| 324 | + |
| 325 | + /** |
| 326 | + * Get the addendum |
| 327 | + * <p> |
| 328 | + * The Addendum block of an addendum event includes details to fill an auditing gap or update an older event. |
| 329 | + * It only appears to update an older event. |
| 330 | + * </p> |
| 331 | + * @return Details of an Addendum block, such as a reason for the addendum, |
| 332 | + * updated fields, original request ID, and original event ID.. |
| 333 | + */ |
| 334 | + public Addendum getAddendum() { |
| 335 | + return (Addendum) get(CloudTrailEventField.addendum.name()); |
| 336 | + } |
| 337 | + |
| 338 | + /** |
| 339 | + * Get the edge device details |
| 340 | + * |
| 341 | + * @return Information about the edge device, such as device type, device ID. |
| 342 | + */ |
| 343 | + public String getEdgeDeviceDetails() { |
| 344 | + return (String) get(CloudTrailEventField.edgeDeviceDetails.name()); |
| 345 | + } |
| 346 | + |
| 347 | + /** |
| 348 | + * Get the TLS details |
| 349 | + * <p> |
| 350 | + * Shows information about the Transport Layer Security (TLS) version, cipher suites, and FQDN of the |
| 351 | + * client-provided host name of the service API call. |
| 352 | + * </p> |
| 353 | + * @return The TLS details of a service API call. |
| 354 | + */ |
| 355 | + public TlsDetails getTlsDetails() { |
| 356 | + return (TlsDetails) get(CloudTrailEventField.tlsDetails.name()); |
| 357 | + } |
| 358 | + |
| 359 | + /** |
| 360 | + * Check whether an event originated from an AWS Management Console session. |
| 361 | + * <p> |
| 362 | + * The field is not shown unless the value is true, meaning that the client that was used to make the API call |
| 363 | + * was either a proxy or an external client. |
| 364 | + * </p> |
| 365 | + * @return <code>true</code> if the event originated from an AWS Management Console session. |
| 366 | + */ |
| 367 | + public String getSessionCredentialFromConsole() { |
| 368 | + return (String) get(CloudTrailEventField.sessionCredentialFromConsole.name()); |
| 369 | + } |
321 | 370 | }
|
0 commit comments