Enum FunctionUrlAuthType
The auth types for a function url.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum FunctionUrlAuthType
Syntax (vb)
Public Enum FunctionUrlAuthType
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Lambda;
Function fn;
var fnUrl = fn.AddFunctionUrl(new FunctionUrlOptions {
AuthType = FunctionUrlAuthType.AWS_IAM
});
new Distribution(this, "MyDistribution", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = FunctionUrlOrigin.WithOriginAccessControl(fnUrl)
}
});
Synopsis
Fields
| AWS_IAM | Restrict access to authenticated IAM users only. |
| NONE | Bypass IAM authentication to create a public endpoint. |
Fields
| Name | Description |
|---|---|
| AWS_IAM | Restrict access to authenticated IAM users only. |
| NONE | Bypass IAM authentication to create a public endpoint. |