/* * 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 config-2014-11-12.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.ConfigService.Model { /// /// Container for the parameters to the PutEvaluations operation. /// Used by an Lambda function to deliver evaluation results to Config. This action is /// required in every Lambda function that is invoked by an Config rule. /// public partial class PutEvaluationsRequest : AmazonConfigServiceRequest { private List _evaluations = new List(); private string _resultToken; private bool? _testMode; /// /// Gets and sets the property Evaluations. /// /// The assessments that the Lambda function performs. Each evaluation identifies an Amazon /// Web Services resource and indicates whether it complies with the Config rule that /// invokes the Lambda function. /// /// [AWSProperty(Min=0, Max=100)] public List Evaluations { get { return this._evaluations; } set { this._evaluations = value; } } // Check to see if Evaluations property is set internal bool IsSetEvaluations() { return this._evaluations != null && this._evaluations.Count > 0; } /// /// Gets and sets the property ResultToken. /// /// An encrypted token that associates an evaluation with an Config rule. Identifies the /// rule and the event that triggered the evaluation. /// /// [AWSProperty(Required=true)] public string ResultToken { get { return this._resultToken; } set { this._resultToken = value; } } // Check to see if ResultToken property is set internal bool IsSetResultToken() { return this._resultToken != null; } /// /// Gets and sets the property TestMode. /// /// Use this parameter to specify a test run for PutEvaluations. You can /// verify whether your Lambda function will deliver evaluation results to Config. No /// updates occur to your existing evaluations, and evaluation results are not sent to /// Config. /// /// /// /// When TestMode is true, PutEvaluations doesn't /// require a valid value for the ResultToken parameter, but the value cannot /// be null. /// /// /// public bool TestMode { get { return this._testMode.GetValueOrDefault(); } set { this._testMode = value; } } // Check to see if TestMode property is set internal bool IsSetTestMode() { return this._testMode.HasValue; } } }