/*
* 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 emr-serverless-2021-07-13.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.EMRServerless.Model
{
///
/// The Amazon CloudWatch configuration for monitoring logs. You can configure your jobs
/// to send log information to CloudWatch.
///
public partial class CloudWatchLoggingConfiguration
{
private bool? _enabled;
private string _encryptionKeyArn;
private string _logGroupName;
private string _logStreamNamePrefix;
private Dictionary> _logTypes = new Dictionary>();
///
/// Gets and sets the property Enabled.
///
/// Enables CloudWatch logging.
///
///
[AWSProperty(Required=true)]
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
///
/// Gets and sets the property EncryptionKeyArn.
///
/// The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch
/// Logs.
///
///
[AWSProperty(Min=20, Max=2048)]
public string EncryptionKeyArn
{
get { return this._encryptionKeyArn; }
set { this._encryptionKeyArn = value; }
}
// Check to see if EncryptionKeyArn property is set
internal bool IsSetEncryptionKeyArn()
{
return this._encryptionKeyArn != null;
}
///
/// Gets and sets the property LogGroupName.
///
/// The name of the log group in Amazon CloudWatch Logs where you want to publish your
/// logs.
///
///
[AWSProperty(Min=1, Max=512)]
public string LogGroupName
{
get { return this._logGroupName; }
set { this._logGroupName = value; }
}
// Check to see if LogGroupName property is set
internal bool IsSetLogGroupName()
{
return this._logGroupName != null;
}
///
/// Gets and sets the property LogStreamNamePrefix.
///
/// Prefix for the CloudWatch log stream name.
///
///
[AWSProperty(Min=1, Max=512)]
public string LogStreamNamePrefix
{
get { return this._logStreamNamePrefix; }
set { this._logStreamNamePrefix = value; }
}
// Check to see if LogStreamNamePrefix property is set
internal bool IsSetLogStreamNamePrefix()
{
return this._logStreamNamePrefix != null;
}
///
/// Gets and sets the property LogTypes.
///
/// The types of logs that you want to publish to CloudWatch. If you don't specify any
/// log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default.
/// For more information including the supported worker types for Hive and Spark, see
/// Logging
/// for EMR Serverless with CloudWatch.
///
/// -
///
/// Key Valid Values:
SPARK_DRIVER
, SPARK_EXECUTOR
,
/// HIVE_DRIVER
, TEZ_TASK
///
/// -
///
/// Array Members Valid Values:
STDOUT
, STDERR
, HIVE_LOG
,
/// TEZ_AM
, SYSTEM_LOGS
///
///
///
[AWSProperty(Min=1, Max=4)]
public Dictionary> LogTypes
{
get { return this._logTypes; }
set { this._logTypes = value; }
}
// Check to see if LogTypes property is set
internal bool IsSetLogTypes()
{
return this._logTypes != null && this._logTypes.Count > 0;
}
}
}