/*
* 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 cloudfront-2020-05-31.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.CloudFront.Model
{
///
/// Container for the parameters to the UpdateRealtimeLogConfig operation.
/// Updates a real-time log configuration.
///
///
///
/// When you update a real-time log configuration, all the parameters are updated with
/// the values provided in the request. You cannot update some parameters independent
/// of others. To update a real-time log configuration:
///
/// -
///
/// Call
GetRealtimeLogConfig
to get the current real-time log configuration.
///
/// -
///
/// Locally modify the parameters in the real-time log configuration that you want to
/// update.
///
///
-
///
/// Call this API (
UpdateRealtimeLogConfig
) by providing the entire real-time
/// log configuration, including the parameters that you modified and those that you didn't.
///
///
///
/// You cannot update a real-time log configuration's Name
or ARN
.
///
///
public partial class UpdateRealtimeLogConfigRequest : AmazonCloudFrontRequest
{
private string _arn;
private List _endPoints = new List();
private List _fields = new List();
private string _name;
private long? _samplingRate;
///
/// Gets and sets the property ARN.
///
/// The Amazon Resource Name (ARN) for this real-time log configuration.
///
///
public string ARN
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if ARN property is set
internal bool IsSetARN()
{
return this._arn != null;
}
///
/// Gets and sets the property EndPoints.
///
/// Contains information about the Amazon Kinesis data stream where you are sending real-time
/// log data.
///
///
public List EndPoints
{
get { return this._endPoints; }
set { this._endPoints = value; }
}
// Check to see if EndPoints property is set
internal bool IsSetEndPoints()
{
return this._endPoints != null && this._endPoints.Count > 0;
}
///
/// Gets and sets the property Fields.
///
/// A list of fields to include in each real-time log record.
///
///
///
/// For more information about fields, see Real-time
/// log configuration fields in the Amazon CloudFront Developer Guide.
///
///
public List Fields
{
get { return this._fields; }
set { this._fields = value; }
}
// Check to see if Fields property is set
internal bool IsSetFields()
{
return this._fields != null && this._fields.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name for this real-time log configuration.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property SamplingRate.
///
/// The sampling rate for this real-time log configuration. The sampling rate determines
/// the percentage of viewer requests that are represented in the real-time log data.
/// You must provide an integer between 1 and 100, inclusive.
///
///
public long SamplingRate
{
get { return this._samplingRate.GetValueOrDefault(); }
set { this._samplingRate = value; }
}
// Check to see if SamplingRate property is set
internal bool IsSetSamplingRate()
{
return this._samplingRate.HasValue;
}
}
}