Class FunctionUrl
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.lambda.FunctionUrl
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IFunctionUrl
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.757Z")
@Stability(Stable)
public class FunctionUrl
extends Resource
implements IFunctionUrl
Defines a Lambda function url.
Example:
// Can be a Function or an Alias Function fn; Role myRole; FunctionUrl fnUrl = fn.addFunctionUrl(); fnUrl.grantInvokeUrl(myRole); CfnOutput.Builder.create(this, "TheUrl") // The .url attributes will return the unique Function URL .value(fnUrl.getUrl()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IFunctionUrl
IFunctionUrl.Jsii$Default, IFunctionUrl.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
FunctionUrl
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
FunctionUrl
(software.amazon.jsii.JsiiObjectRef objRef) FunctionUrl
(software.constructs.Construct scope, String id, FunctionUrlProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
grantInvokeUrl
in interfaceIFunctionUrl
- Parameters:
grantee
- This parameter is required.
-
getFunctionArn
The ARN of the function this URL refers to.- Specified by:
getFunctionArn
in interfaceIFunctionUrl
-
getUrl
The url of the Lambda function.- Specified by:
getUrl
in interfaceIFunctionUrl
-