FunctionUrlAuthType Enum
The auth types for a function url.
Example
ts
import * as lambda from 'aws-cdk-lib/aws-lambda';
declare const fn: lambda.Function;
const fnUrl = fn.addFunctionUrl({
authType: lambda.FunctionUrlAuthType.AWS_IAM,
});
new cloudfront.Distribution(this, 'MyDistribution', {
defaultBehavior: {
origin: origins.FunctionUrlOrigin.withOriginAccessControl(fnUrl),
},
});
Members
| Member | Description |
|---|---|
AWS_IAM | Restrict access to authenticated IAM users only. |
NONE | Bypass IAM authentication to create a public endpoint. |
Referenced by
FunctionUrl.authTypeauth_typeauthTypeAuthTypeAuthTypeFunctionUrlOptions.authTypeauth_typeauthTypeAuthTypeAuthTypeIFunctionUrl.authTypeauth_typeauthTypeAuthTypeAuthTypePermission.functionUrlAuthTypefunction_url_auth_typefunctionUrlAuthTypeFunctionUrlAuthTypeFunctionUrlAuthType