/*
* 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 apigatewayv2-2018-11-29.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.ApiGatewayV2.Model
{
///
/// Represents the configuration of a JWT authorizer. Required for the JWT authorizer
/// type. Supported only for HTTP APIs.
///
public partial class JWTConfiguration
{
private List _audience = new List();
private string _issuer;
///
/// Gets and sets the property Audience.
///
/// A list of the intended recipients of the JWT. A valid JWT must provide an aud that
/// matches at least one entry in this list. See RFC
/// 7519. Supported only for HTTP APIs.
///
///
public List Audience
{
get { return this._audience; }
set { this._audience = value; }
}
// Check to see if Audience property is set
internal bool IsSetAudience()
{
return this._audience != null && this._audience.Count > 0;
}
///
/// Gets and sets the property Issuer.
///
/// The base domain of the identity provider that issues JSON Web Tokens. For example,
/// an Amazon Cognito user pool has the following format: https://cognito-idp.{region}.amazonaws.com/{userPoolId}
/// . Required for the JWT authorizer type. Supported only for HTTP APIs.
///
///
public string Issuer
{
get { return this._issuer; }
set { this._issuer = value; }
}
// Check to see if Issuer property is set
internal bool IsSetIssuer()
{
return this._issuer != null;
}
}
}