/* * 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 accessanalyzer-2019-11-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.AccessAnalyzer.Model { /// /// Contains information about the analyzer. /// public partial class AnalyzerSummary { private string _arn; private DateTime? _createdAt; private string _lastResourceAnalyzed; private DateTime? _lastResourceAnalyzedAt; private string _name; private AnalyzerStatus _status; private StatusReason _statusReason; private Dictionary _tags = new Dictionary(); private Type _type; /// /// Gets and sets the property Arn. /// /// The ARN of the analyzer. /// /// [AWSProperty(Required=true)] 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 CreatedAt. /// /// A timestamp for the time at which the analyzer was created. /// /// [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property LastResourceAnalyzed. /// /// The resource that was most recently analyzed by the analyzer. /// /// public string LastResourceAnalyzed { get { return this._lastResourceAnalyzed; } set { this._lastResourceAnalyzed = value; } } // Check to see if LastResourceAnalyzed property is set internal bool IsSetLastResourceAnalyzed() { return this._lastResourceAnalyzed != null; } /// /// Gets and sets the property LastResourceAnalyzedAt. /// /// The time at which the most recently analyzed resource was analyzed. /// /// public DateTime LastResourceAnalyzedAt { get { return this._lastResourceAnalyzedAt.GetValueOrDefault(); } set { this._lastResourceAnalyzedAt = value; } } // Check to see if LastResourceAnalyzedAt property is set internal bool IsSetLastResourceAnalyzedAt() { return this._lastResourceAnalyzedAt.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the analyzer. /// /// [AWSProperty(Required=true, Min=1, Max=255)] 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 Status. /// /// The status of the analyzer. An Active analyzer successfully monitors /// supported resources and generates new findings. The analyzer is Disabled /// when a user action, such as removing trusted access for Identity and Access Management /// Access Analyzer from Organizations, causes the analyzer to stop generating new findings. /// The status is Creating when the analyzer creation is in progress and /// Failed when the analyzer creation has failed. /// /// [AWSProperty(Required=true)] public AnalyzerStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StatusReason. /// /// The statusReason provides more details about the current status of the /// analyzer. For example, if the creation for the analyzer fails, a Failed /// status is returned. For an analyzer with organization as the type, this failure can /// be due to an issue with creating the service-linked roles required in the member accounts /// of the Amazon Web Services organization. /// /// public StatusReason StatusReason { get { return this._statusReason; } set { this._statusReason = value; } } // Check to see if StatusReason property is set internal bool IsSetStatusReason() { return this._statusReason != null; } /// /// Gets and sets the property Tags. /// /// The tags added to the analyzer. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property Type. /// /// The type of analyzer, which corresponds to the zone of trust chosen for the analyzer. /// /// [AWSProperty(Required=true)] public Type Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }