/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the cloudtrail-data-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudTrailData.Model
{
///
/// An event from a source outside of Amazon Web Services that you want CloudTrail to
/// log.
///
public partial class AuditEvent
{
private string _eventData;
private string _eventDataChecksum;
private string _id;
///
/// Gets and sets the property EventData.
///
/// The content of an audit event that comes from the event, such as userIdentity
,
/// userAgent
, and eventSource
.
///
///
[AWSProperty(Required=true)]
public string EventData
{
get { return this._eventData; }
set { this._eventData = value; }
}
// Check to see if EventData property is set
internal bool IsSetEventData()
{
return this._eventData != null;
}
///
/// Gets and sets the property EventDataChecksum.
///
/// A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives
/// the event that matches with the checksum. Calculate the checksum by running a command
/// like the following:
///
///
///
/// printf %s $eventdata | openssl dgst -binary -sha256 | base64
///
///
///
public string EventDataChecksum
{
get { return this._eventDataChecksum; }
set { this._eventDataChecksum = value; }
}
// Check to see if EventDataChecksum property is set
internal bool IsSetEventDataChecksum()
{
return this._eventDataChecksum != null;
}
///
/// Gets and sets the property Id.
///
/// The original event ID from the source event.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
}
}