@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:37.212Z") public class FunctionUrl extends Resource implements IFunctionUrl
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();
Modifier and Type | Class and Description |
---|---|
static class |
FunctionUrl.Builder
A fluent builder for
FunctionUrl . |
IFunctionUrl.Jsii$Default, IFunctionUrl.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
FunctionUrl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FunctionUrl(software.amazon.jsii.JsiiObjectRef objRef) |
|
FunctionUrl(software.constructs.Construct scope,
java.lang.String id,
FunctionUrlProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFunctionArn()
The ARN of the function this URL refers to.
|
java.lang.String |
getUrl()
The url of the Lambda function.
|
Grant |
grantInvokeUrl(IGrantable grantee)
Grant the given identity permissions to invoke this Lambda Function URL.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected FunctionUrl(software.amazon.jsii.JsiiObjectRef objRef)
protected FunctionUrl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public FunctionUrl(software.constructs.Construct scope, java.lang.String id, FunctionUrlProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public Grant grantInvokeUrl(IGrantable grantee)
grantInvokeUrl
in interface IFunctionUrl
grantee
- This parameter is required.public java.lang.String getFunctionArn()
getFunctionArn
in interface IFunctionUrl
public java.lang.String getUrl()
getUrl
in interface IFunctionUrl