/*
* 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CloudTrailData.Model;
namespace Amazon.CloudTrailData
{
///
/// Interface for accessing CloudTrailData
///
/// The CloudTrail Data Service lets you ingest events into CloudTrail from any source
/// in your hybrid environments, such as in-house or SaaS applications hosted on-premises
/// or in the cloud, virtual machines, or containers. You can store, access, analyze,
/// troubleshoot and take action on this data without maintaining multiple log aggregators
/// and reporting tools. After you run PutAuditEvents
to ingest your application
/// activity into CloudTrail, you can use CloudTrail Lake to search, query, and analyze
/// the data that is logged from your applications.
///
public partial interface IAmazonCloudTrailData : IAmazonService, IDisposable
{
#region PutAuditEvents
///
/// Ingests your application events into CloudTrail Lake. A required parameter, auditEvents
,
/// accepts the JSON records (also called payload) of events that you want CloudTrail
/// to ingest. You can add up to 100 of these events (or up to 1 MB) per PutAuditEvents
/// request.
///
/// Container for the necessary parameters to execute the PutAuditEvents service method.
///
/// The response from the PutAuditEvents service method, as returned by CloudTrailData.
///
/// The caller's account ID must be the same as the channel owner's account ID.
///
///
/// The channel could not be found.
///
///
/// The schema type of the event is not supported.
///
///
/// Two or more entries in the request have the same event ID.
///
///
/// The specified channel ARN is not a valid channel ARN.
///
///
/// The operation requested is not supported in this region or account.
///
/// REST API Reference for PutAuditEvents Operation
PutAuditEventsResponse PutAuditEvents(PutAuditEventsRequest request);
///
/// Ingests your application events into CloudTrail Lake. A required parameter, auditEvents
,
/// accepts the JSON records (also called payload) of events that you want CloudTrail
/// to ingest. You can add up to 100 of these events (or up to 1 MB) per PutAuditEvents
/// request.
///
/// Container for the necessary parameters to execute the PutAuditEvents service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutAuditEvents service method, as returned by CloudTrailData.
///
/// The caller's account ID must be the same as the channel owner's account ID.
///
///
/// The channel could not be found.
///
///
/// The schema type of the event is not supported.
///
///
/// Two or more entries in the request have the same event ID.
///
///
/// The specified channel ARN is not a valid channel ARN.
///
///
/// The operation requested is not supported in this region or account.
///
/// REST API Reference for PutAuditEvents Operation
Task PutAuditEventsAsync(PutAuditEventsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}