/*
* 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 logs-2014-03-28.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.CloudWatchLogs.Model
{
///
/// Represents a cross-account destination that receives subscription log events.
///
public partial class Destination
{
private string _accessPolicy;
private string _arn;
private long? _creationTime;
private string _destinationName;
private string _roleArn;
private string _targetArn;
///
/// Gets and sets the property AccessPolicy.
///
/// An IAM policy document that governs which Amazon Web Services accounts can create
/// subscription filters against this destination.
///
///
[AWSProperty(Min=1)]
public string AccessPolicy
{
get { return this._accessPolicy; }
set { this._accessPolicy = value; }
}
// Check to see if AccessPolicy property is set
internal bool IsSetAccessPolicy()
{
return this._accessPolicy != null;
}
///
/// Gets and sets the property Arn.
///
/// The ARN of this destination.
///
///
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 CreationTime.
///
/// The creation time of the destination, expressed as the number of milliseconds after
/// Jan 1, 1970 00:00:00 UTC.
///
///
[AWSProperty(Min=0)]
public long CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property DestinationName.
///
/// The name of the destination.
///
///
[AWSProperty(Min=1, Max=512)]
public string DestinationName
{
get { return this._destinationName; }
set { this._destinationName = value; }
}
// Check to see if DestinationName property is set
internal bool IsSetDestinationName()
{
return this._destinationName != null;
}
///
/// Gets and sets the property RoleArn.
///
/// A role for impersonation, used when delivering log events to the target.
///
///
[AWSProperty(Min=1)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
///
/// Gets and sets the property TargetArn.
///
/// The Amazon Resource Name (ARN) of the physical target where the log events are delivered
/// (for example, a Kinesis stream).
///
///
[AWSProperty(Min=1)]
public string TargetArn
{
get { return this._targetArn; }
set { this._targetArn = value; }
}
// Check to see if TargetArn property is set
internal bool IsSetTargetArn()
{
return this._targetArn != null;
}
}
}