/* * 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 iot-2015-05-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.IoT.Model { /// /// The authorizer description. /// public partial class AuthorizerDescription { private string _authorizerArn; private string _authorizerFunctionArn; private string _authorizerName; private DateTime? _creationDate; private bool? _enableCachingForHttp; private DateTime? _lastModifiedDate; private bool? _signingDisabled; private AuthorizerStatus _status; private string _tokenKeyName; private Dictionary _tokenSigningPublicKeys = new Dictionary(); /// /// Gets and sets the property AuthorizerArn. /// /// The authorizer ARN. /// /// [AWSProperty(Max=2048)] public string AuthorizerArn { get { return this._authorizerArn; } set { this._authorizerArn = value; } } // Check to see if AuthorizerArn property is set internal bool IsSetAuthorizerArn() { return this._authorizerArn != null; } /// /// Gets and sets the property AuthorizerFunctionArn. /// /// The authorizer's Lambda function ARN. /// /// [AWSProperty(Max=2048)] public string AuthorizerFunctionArn { get { return this._authorizerFunctionArn; } set { this._authorizerFunctionArn = value; } } // Check to see if AuthorizerFunctionArn property is set internal bool IsSetAuthorizerFunctionArn() { return this._authorizerFunctionArn != null; } /// /// Gets and sets the property AuthorizerName. /// /// The authorizer name. /// /// [AWSProperty(Min=1, Max=128)] public string AuthorizerName { get { return this._authorizerName; } set { this._authorizerName = value; } } // Check to see if AuthorizerName property is set internal bool IsSetAuthorizerName() { return this._authorizerName != null; } /// /// Gets and sets the property CreationDate. /// /// The UNIX timestamp of when the authorizer was created. /// /// public DateTime CreationDate { get { return this._creationDate.GetValueOrDefault(); } set { this._creationDate = value; } } // Check to see if CreationDate property is set internal bool IsSetCreationDate() { return this._creationDate.HasValue; } /// /// Gets and sets the property EnableCachingForHttp. /// /// When true, the result from the authorizer’s Lambda function is cached /// for the time specified in refreshAfterInSeconds. The cached result is /// used while the device reuses the same HTTP connection. /// /// public bool EnableCachingForHttp { get { return this._enableCachingForHttp.GetValueOrDefault(); } set { this._enableCachingForHttp = value; } } // Check to see if EnableCachingForHttp property is set internal bool IsSetEnableCachingForHttp() { return this._enableCachingForHttp.HasValue; } /// /// Gets and sets the property LastModifiedDate. /// /// The UNIX timestamp of when the authorizer was last updated. /// /// public DateTime LastModifiedDate { get { return this._lastModifiedDate.GetValueOrDefault(); } set { this._lastModifiedDate = value; } } // Check to see if LastModifiedDate property is set internal bool IsSetLastModifiedDate() { return this._lastModifiedDate.HasValue; } /// /// Gets and sets the property SigningDisabled. /// /// Specifies whether IoT validates the token signature in an authorization request. /// /// public bool SigningDisabled { get { return this._signingDisabled.GetValueOrDefault(); } set { this._signingDisabled = value; } } // Check to see if SigningDisabled property is set internal bool IsSetSigningDisabled() { return this._signingDisabled.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the authorizer. /// /// public AuthorizerStatus 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 TokenKeyName. /// /// The key used to extract the token from the HTTP headers. /// /// [AWSProperty(Min=1, Max=128)] public string TokenKeyName { get { return this._tokenKeyName; } set { this._tokenKeyName = value; } } // Check to see if TokenKeyName property is set internal bool IsSetTokenKeyName() { return this._tokenKeyName != null; } /// /// Gets and sets the property TokenSigningPublicKeys. /// /// The public keys used to validate the token signature returned by your custom authentication /// service. /// /// public Dictionary TokenSigningPublicKeys { get { return this._tokenSigningPublicKeys; } set { this._tokenSigningPublicKeys = value; } } // Check to see if TokenSigningPublicKeys property is set internal bool IsSetTokenSigningPublicKeys() { return this._tokenSigningPublicKeys != null && this._tokenSigningPublicKeys.Count > 0; } } }