@Generated(value="jsii-pacmak/0.10.5 (build 46bc9b0)", date="2019-05-06T20:53:37.767Z") public class SingletonFunction extends FunctionBase
| Modifier | Constructor and Description |
|---|---|
|
SingletonFunction(software.amazon.awscdk.Construct scope,
String id,
SingletonFunctionProps props) |
protected |
SingletonFunction(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(String name,
Permission permission)
Adds a permission to the Lambda resource policy.
|
FunctionAttributes |
export()
Export this Function (without the role).
|
protected Boolean |
getCanCreatePermissions()
Whether the addPermission() call adds any permissions.
|
String |
getFunctionArn()
The ARN fo the function.
|
String |
getFunctionName()
The name of the function.
|
software.amazon.awscdk.services.iam.IPrincipal |
getGrantPrincipal()
The principal this Lambda Function is running as.
|
software.amazon.awscdk.services.iam.IRole |
getRole()
The IAM role associated with this function.
|
addEventSource, addToRolePolicy, asBucketNotificationDestination, asStepFunctionsTaskResource, getConnections, getId, getIsBoundToVpc, grantInvoke, logSubscriptionDestination, metric, metric, metricDuration, metricDuration, metricErrors, metricErrors, metricInvocations, metricInvocations, metricThrottles, metricThrottlesgetDependencyRoots, getNode, isConstruct, prepare, toString, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected SingletonFunction(software.amazon.jsii.JsiiObject.InitializationMode mode)
public SingletonFunction(software.amazon.awscdk.Construct scope,
String id,
SingletonFunctionProps props)
public void addPermission(String name, Permission permission)
addPermission in interface IFunctionaddPermission in class FunctionBasename - The id ƒor the permission construct.public FunctionAttributes export()
export in interface IFunctionexport in class FunctionBaseprotected Boolean getCanCreatePermissions()
getCanCreatePermissions in class FunctionBasepublic String getFunctionArn()
getFunctionArn in interface IFunctiongetFunctionArn in class FunctionBasepublic String getFunctionName()
getFunctionName in interface IFunctiongetFunctionName in class FunctionBasepublic software.amazon.awscdk.services.iam.IPrincipal getGrantPrincipal()
getGrantPrincipal in interface software.amazon.awscdk.services.iam.IGrantablegetGrantPrincipal in class FunctionBase@Nullable public software.amazon.awscdk.services.iam.IRole getRole()
getRole in interface IFunctiongetRole in class FunctionBaseCopyright © 2019. All rights reserved.