Class FunctionUrl
Defines a Lambda function url.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class FunctionUrl : Resource, IFunctionUrl, IResource, IConstruct, IDependable
Syntax (vb)
Public Class FunctionUrl
Inherits Resource
Implements IFunctionUrl, IResource, IConstruct, IDependable
Remarks
Resource: AWS::Lambda::Url
ExampleMetadata: infused
Examples
// Can be a Function or an Alias
Function fn;
Role myRole;
var fnUrl = fn.AddFunctionUrl();
fnUrl.GrantInvokeUrl(myRole);
new CfnOutput(this, "TheUrl", new CfnOutputProps {
// The .url attributes will return the unique Function URL
Value = fnUrl.Url
});
Synopsis
Constructors
FunctionUrl(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FunctionUrl(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
FunctionUrl(Construct, String, IFunctionUrlProps) |
Properties
FunctionArn | The ARN of the function this URL refers to. |
Url | The url of the Lambda function. |
Methods
GrantInvokeUrl(IGrantable) | Grant the given identity permissions to invoke this Lambda Function URL. |
Constructors
FunctionUrl(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FunctionUrl(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FunctionUrl(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FunctionUrl(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
FunctionUrl(Construct, String, IFunctionUrlProps)
public FunctionUrl(Construct scope, string id, IFunctionUrlProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IFunctionUrlProps
Properties
FunctionArn
The ARN of the function this URL refers to.
public virtual string FunctionArn { get; }
Property Value
System.String
Url
The url of the Lambda function.
public virtual string Url { get; }
Property Value
System.String
Methods
GrantInvokeUrl(IGrantable)
Grant the given identity permissions to invoke this Lambda Function URL.
public virtual Grant GrantInvokeUrl(IGrantable grantee)
Parameters
- grantee IGrantable
Returns