public class SingletonFunction extends FunctionRef
software.amazon.jsii.JsiiObject.InitializationModesoftware.amazon.awscdk.services.events.IEventRuleTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SingletonFunction(software.amazon.awscdk.Construct parent,
String name,
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.
|
protected Boolean |
getCanCreatePermissions()
Whether the addPermission() call adds any permissions
True for new Lambdas, false for imported Lambdas (they might live in different accounts).
|
FunctionArn |
getFunctionArn()
The ARN fo the function.
|
FunctionName |
getFunctionName()
The name of the function.
|
software.amazon.awscdk.services.iam.Role |
getRole()
The IAM role associated with this function.
|
addToRolePolicy, asBucketNotificationDestination, asEventRuleTarget, export, import_, logSubscriptionDestination, metric, metric, metricAll, metricAll, metricAllConcurrentExecutions, metricAllConcurrentExecutions, metricAllDuration, metricAllDuration, metricAllErrors, metricAllErrors, metricAllInvocations, metricAllInvocations, metricAllThrottles, metricAllThrottles, metricAllUnreservedConcurrentExecutions, metricAllUnreservedConcurrentExecutions, metricDuration, metricDuration, metricErrors, metricErrors, metricInvocations, metricInvocations, metricThrottles, metricThrottlesaddChild, addError, addInfo, addMetadata, addMetadata, addWarning, ancestors, ancestors, findChild, getChildren, getContext, getId, getMetadata, getParent, getPath, getUniqueId, lock, requireContext, required, setContext, toString, toTreeString, toTreeString, tryFindChild, unlock, validate, validateTreeprotected SingletonFunction(software.amazon.jsii.JsiiObject.InitializationMode mode)
public SingletonFunction(software.amazon.awscdk.Construct parent,
String name,
SingletonFunctionProps props)
public void addPermission(String name, Permission permission)
addPermission in class FunctionRefname - The id ƒor the permission constructpublic FunctionName getFunctionName()
getFunctionName in class FunctionRefpublic FunctionArn getFunctionArn()
getFunctionArn in class FunctionRef@Nullable public software.amazon.awscdk.services.iam.Role getRole()
getRole in class FunctionRefprotected Boolean getCanCreatePermissions()
getCanCreatePermissions in class FunctionRefCopyright © 2018. All rights reserved.