/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Specifies the authorization configuration for using an Lambda function with your
/// AppSync GraphQL API endpoint.
///
public partial class AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails
{
private int? _authorizerResultTtlInSeconds;
private string _authorizerUri;
private string _identityValidationExpression;
///
/// Gets and sets the property AuthorizerResultTtlInSeconds.
///
/// The number of seconds a response should be cached for. The default is 5 minutes (300
/// seconds).
///
///
public int AuthorizerResultTtlInSeconds
{
get { return this._authorizerResultTtlInSeconds.GetValueOrDefault(); }
set { this._authorizerResultTtlInSeconds = value; }
}
// Check to see if AuthorizerResultTtlInSeconds property is set
internal bool IsSetAuthorizerResultTtlInSeconds()
{
return this._authorizerResultTtlInSeconds.HasValue;
}
///
/// Gets and sets the property AuthorizerUri.
///
/// The Amazon Resource Name (ARN) of the Lambda function to be called for authorization.
/// This can be a standard Lambda ARN, a version ARN (.../v3), or an alias ARN.
///
///
public string AuthorizerUri
{
get { return this._authorizerUri; }
set { this._authorizerUri = value; }
}
// Check to see if AuthorizerUri property is set
internal bool IsSetAuthorizerUri()
{
return this._authorizerUri != null;
}
///
/// Gets and sets the property IdentityValidationExpression.
///
/// A regular expression for validation of tokens before the Lambda function is called.
///
///
///
public string IdentityValidationExpression
{
get { return this._identityValidationExpression; }
set { this._identityValidationExpression = value; }
}
// Check to see if IdentityValidationExpression property is set
internal bool IsSetIdentityValidationExpression()
{
return this._identityValidationExpression != null;
}
}
}