/* * 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 redshift-2012-12-01.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.Redshift.Model { /// /// Container for the parameters to the EnableLogging operation. /// Starts logging information, such as queries and connection attempts, for the specified /// Amazon Redshift cluster. /// public partial class EnableLoggingRequest : AmazonRedshiftRequest { private string _bucketName; private string _clusterIdentifier; private LogDestinationType _logDestinationType; private List _logExports = new List(); private string _s3KeyPrefix; /// /// Gets and sets the property BucketName. /// /// The name of an existing S3 bucket where the log files are to be stored. /// /// /// /// Constraints: /// ///
  • /// /// Must be in the same region as the cluster /// ///
  • /// /// The cluster must have read bucket and put object permissions /// ///
///
[AWSProperty(Max=2147483647)] public string BucketName { get { return this._bucketName; } set { this._bucketName = value; } } // Check to see if BucketName property is set internal bool IsSetBucketName() { return this._bucketName != null; } /// /// Gets and sets the property ClusterIdentifier. /// /// The identifier of the cluster on which logging is to be started. /// /// /// /// Example: examplecluster /// /// [AWSProperty(Required=true, Max=2147483647)] public string ClusterIdentifier { get { return this._clusterIdentifier; } set { this._clusterIdentifier = value; } } // Check to see if ClusterIdentifier property is set internal bool IsSetClusterIdentifier() { return this._clusterIdentifier != null; } /// /// Gets and sets the property LogDestinationType. /// /// The log destination type. An enum with possible values of s3 and cloudwatch. /// /// public LogDestinationType LogDestinationType { get { return this._logDestinationType; } set { this._logDestinationType = value; } } // Check to see if LogDestinationType property is set internal bool IsSetLogDestinationType() { return this._logDestinationType != null; } /// /// Gets and sets the property LogExports. /// /// The collection of exported log types. Possible values are connectionlog, /// useractivitylog, and userlog. /// /// public List LogExports { get { return this._logExports; } set { this._logExports = value; } } // Check to see if LogExports property is set internal bool IsSetLogExports() { return this._logExports != null && this._logExports.Count > 0; } /// /// Gets and sets the property S3KeyPrefix. /// /// The prefix applied to the log file names. /// /// /// /// Constraints: /// ///
  • /// /// Cannot exceed 512 characters /// ///
  • /// /// Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or /// control characters. The hexadecimal codes for invalid characters are: /// ///
    • /// /// x00 to x20 /// ///
    • /// /// x22 /// ///
    • /// /// x27 /// ///
    • /// /// x5c /// ///
    • /// /// x7f or larger /// ///
///
[AWSProperty(Max=2147483647)] public string S3KeyPrefix { get { return this._s3KeyPrefix; } set { this._s3KeyPrefix = value; } } // Check to see if S3KeyPrefix property is set internal bool IsSetS3KeyPrefix() { return this._s3KeyPrefix != null; } } }