Class HttpIamAuthorizer
(experimental) Authorize HTTP API Routes with IAM.
Inheritance
System.Object
HttpIamAuthorizer
Implements
Namespace: Amazon.CDK.AWS.APIGatewayv2.Authorizers
Assembly: Amazon.CDK.AWS.APIGatewayv2.Authorizers.dll
Syntax (csharp)
public class HttpIamAuthorizer : DeputyBase, IHttpRouteAuthorizer
Syntax (vb)
Public Class HttpIamAuthorizer
Inherits DeputyBase
Implements IHttpRouteAuthorizer
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.APIGatewayv2.Authorizers;
using Amazon.CDK.AWS.APIGatewayv2.Integrations;
AnyPrincipal principal;
var authorizer = new HttpIamAuthorizer();
var httpApi = new HttpApi(this, "HttpApi", new HttpApiProps {
DefaultAuthorizer = authorizer
});
var routes = httpApi.AddRoutes(new AddRoutesOptions {
Integration = new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal"),
Path = "/books/{book}"
});
routes[0].GrantInvoke(principal);
Synopsis
Constructors
HttpIamAuthorizer() | |
HttpIamAuthorizer(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpIamAuthorizer(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IHttpRouteAuthorizerBindOptions) | (experimental) Bind this authorizer to a specified Http route. |
Constructors
HttpIamAuthorizer()
public HttpIamAuthorizer()
Remarks
Stability: Experimental
HttpIamAuthorizer(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpIamAuthorizer(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpIamAuthorizer(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpIamAuthorizer(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IHttpRouteAuthorizerBindOptions)
(experimental) Bind this authorizer to a specified Http route.
public virtual IHttpRouteAuthorizerConfig Bind(IHttpRouteAuthorizerBindOptions options)
Parameters
- options IHttpRouteAuthorizerBindOptions
Returns
Remarks
Stability: Experimental