Class FunctionUrl
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.lambda.FunctionUrl
- All Implemented Interfaces:
IResource,IFunctionUrl,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:41.261Z")
@Stability(Stable)
public class FunctionUrl
extends Resource
implements IFunctionUrl
Defines a Lambda function url.
Example:
import software.amazon.awscdk.services.lambda.*;
Function fn;
FunctionUrl fnUrl = fn.addFunctionUrl(FunctionUrlOptions.builder()
.authType(FunctionUrlAuthType.AWS_IAM)
.build());
Distribution.Builder.create(this, "MyDistribution")
.defaultBehavior(BehaviorOptions.builder()
.origin(FunctionUrlOrigin.withOriginAccessControl(fnUrl))
.build())
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IFunctionUrl
IFunctionUrl.Jsii$Default, IFunctionUrl.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFunctionUrl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFunctionUrl(software.amazon.jsii.JsiiObjectRef objRef) FunctionUrl(software.constructs.Construct scope, String id, FunctionUrlProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe authentication type used for this Function URL.The ARN of the function this URL refers to.getUrl()The url of the Lambda function.grantInvokeUrl(IGrantable grantee) Grant the given identity permissions to invoke this Lambda Function URL.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
FunctionUrl
protected FunctionUrl(software.amazon.jsii.JsiiObjectRef objRef) -
FunctionUrl
protected FunctionUrl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
FunctionUrl
@Stability(Stable) public FunctionUrl(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FunctionUrlProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
grantInvokeUrl
Grant the given identity permissions to invoke this Lambda Function URL.- Specified by:
grantInvokeUrlin interfaceIFunctionUrl- Parameters:
grantee- This parameter is required.
-
getAuthType
The authentication type used for this Function URL.- Specified by:
getAuthTypein interfaceIFunctionUrl
-
getFunctionArn
The ARN of the function this URL refers to.- Specified by:
getFunctionArnin interfaceIFunctionUrl
-
getUrl
The url of the Lambda function.- Specified by:
getUrlin interfaceIFunctionUrl
-