/*
* 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 globalaccelerator-2018-08-08.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.GlobalAccelerator.Model
{
///
/// Attributes of a custom routing accelerator.
///
public partial class CustomRoutingAcceleratorAttributes
{
private bool? _flowLogsEnabled;
private string _flowLogsS3Bucket;
private string _flowLogsS3Prefix;
///
/// Gets and sets the property FlowLogsEnabled.
///
/// Indicates whether flow logs are enabled. The default value is false. If the value
/// is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
///
///
///
/// For more information, see Flow
/// logs in the Global Accelerator Developer Guide.
///
///
public bool FlowLogsEnabled
{
get { return this._flowLogsEnabled.GetValueOrDefault(); }
set { this._flowLogsEnabled = value; }
}
// Check to see if FlowLogsEnabled property is set
internal bool IsSetFlowLogsEnabled()
{
return this._flowLogsEnabled.HasValue;
}
///
/// Gets and sets the property FlowLogsS3Bucket.
///
/// The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
/// is true
. The bucket must exist and have a bucket policy that grants Global
/// Accelerator permission to write to the bucket.
///
///
[AWSProperty(Max=255)]
public string FlowLogsS3Bucket
{
get { return this._flowLogsS3Bucket; }
set { this._flowLogsS3Bucket = value; }
}
// Check to see if FlowLogsS3Bucket property is set
internal bool IsSetFlowLogsS3Bucket()
{
return this._flowLogsS3Bucket != null;
}
///
/// Gets and sets the property FlowLogsS3Prefix.
///
/// The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is
/// required if FlowLogsEnabled
is true
.
///
///
///
/// If you don’t specify a prefix, the flow logs are stored in the root of the bucket.
/// If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure
/// will include a double slash (//), like the following:
///
///
///
/// DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id
///
///
[AWSProperty(Max=255)]
public string FlowLogsS3Prefix
{
get { return this._flowLogsS3Prefix; }
set { this._flowLogsS3Prefix = value; }
}
// Check to see if FlowLogsS3Prefix property is set
internal bool IsSetFlowLogsS3Prefix()
{
return this._flowLogsS3Prefix != null;
}
}
}