@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.454Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIFunctionUrl.Jsii$Default, IFunctionUrl.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
FunctionUrl(software.constructs.Construct scope,
String id,
FunctionUrlProps props) |
protected |
FunctionUrl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FunctionUrl(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFunctionArn()
The ARN of the function this URL refers to.
|
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, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected FunctionUrl(software.amazon.jsii.JsiiObjectRef objRef)
protected FunctionUrl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public FunctionUrl(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
FunctionUrlProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public Grant grantInvokeUrl(@NotNull IGrantable grantee)
grantInvokeUrl in interface IFunctionUrlgrantee - This parameter is required.@Stability(value=Stable) @NotNull public String getFunctionArn()
getFunctionArn in interface IFunctionUrl@Stability(value=Stable) @NotNull public String getUrl()
getUrl in interface IFunctionUrlCopyright © 2022. All rights reserved.