Class HttpAuthorizer
An authorizer for Http Apis.
Inherited Members
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpAuthorizer : Resource, IHttpAuthorizer, IAuthorizer, IResource
Syntax (vb)
Public Class HttpAuthorizer
Inherits Resource
Implements IHttpAuthorizer, IAuthorizer, IResource
Remarks
Resource: AWS::ApiGatewayV2::Authorizer
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Apigatewayv2;
HttpApi httpApi;
var httpAuthorizer = new HttpAuthorizer(this, "MyHttpAuthorizer", new HttpAuthorizerProps {
HttpApi = httpApi,
IdentitySource = new [] { "identitySource" },
Type = HttpAuthorizerType.IAM,
// the properties below are optional
AuthorizerName = "authorizerName",
AuthorizerUri = "authorizerUri",
EnableSimpleResponses = false,
JwtAudience = new [] { "jwtAudience" },
JwtIssuer = "jwtIssuer",
PayloadFormatVersion = AuthorizerPayloadVersion.VERSION_1_0,
ResultsCacheTtl = Duration.Minutes(30)
});
Synopsis
Constructors
HttpAuthorizer(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpAuthorizer(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
HttpAuthorizer(Construct, String, IHttpAuthorizerProps) |
Properties
AuthorizerId | Id of the Authorizer. |
Methods
FromHttpAuthorizerAttributes(Construct, String, IHttpAuthorizerAttributes) | Import an existing HTTP Authorizer into this CDK app. |
Constructors
HttpAuthorizer(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpAuthorizer(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpAuthorizer(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpAuthorizer(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
HttpAuthorizer(Construct, String, IHttpAuthorizerProps)
public HttpAuthorizer(Construct scope, string id, IHttpAuthorizerProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IHttpAuthorizerProps
Properties
AuthorizerId
Id of the Authorizer.
public virtual string AuthorizerId { get; }
Property Value
System.String
Methods
FromHttpAuthorizerAttributes(Construct, String, IHttpAuthorizerAttributes)
Import an existing HTTP Authorizer into this CDK app.
public static IHttpRouteAuthorizer FromHttpAuthorizerAttributes(Construct scope, string id, IHttpAuthorizerAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IHttpAuthorizerAttributes
Returns
Implements
Constructs.IConstruct
Constructs.IDependable