Class FunctionUrl

All Implemented Interfaces:
IConstruct, IDependable, IResource, IFunctionUrl,, 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.


 // Can be a Function or an Alias
 Function fn;
 Role myRole;
 FunctionUrl fnUrl = fn.addFunctionUrl();
 CfnOutput.Builder.create(this, "TheUrl")
         // The .url attributes will return the unique Function URL
  • Constructor Details

    • FunctionUrl

      protected FunctionUrl( objRef)
    • FunctionUrl

      protected FunctionUrl( initializationMode)
    • FunctionUrl

      @Stability(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.
  • Method Details

    • grantInvokeUrl

      @Stability(Stable) @NotNull public Grant grantInvokeUrl(@NotNull IGrantable grantee)
      Grant the given identity permissions to invoke this Lambda Function URL.

      Specified by:
      grantInvokeUrl in interface IFunctionUrl
      grantee - This parameter is required.
    • getFunctionArn

      @Stability(Stable) @NotNull public String getFunctionArn()
      The ARN of the function this URL refers to.
      Specified by:
      getFunctionArn in interface IFunctionUrl
    • getUrl

      @Stability(Stable) @NotNull public String getUrl()
      The url of the Lambda function.
      Specified by:
      getUrl in interface IFunctionUrl