@Generated(value="jsii-pacmak/0.10.5 (build 46bc9b0)", date="2019-05-06T20:53:37.752Z") public abstract class FunctionBase extends software.amazon.awscdk.Resource implements IFunction
| Modifier | Constructor and Description |
|---|---|
|
FunctionBase(software.amazon.awscdk.Construct scope,
String id)
Creates a new construct node.
|
protected |
FunctionBase(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventSource(IEventSource source)
Adds an event source to this function.
|
void |
addPermission(String id,
Permission permission)
Adds a permission to the Lambda resource policy.
|
void |
addToRolePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement) |
software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps |
asBucketNotificationDestination(String bucketArn,
String bucketId)
Allows this Lambda to be used as a destination for bucket notifications.
|
software.amazon.awscdk.services.stepfunctions.StepFunctionsTaskResourceProps |
asStepFunctionsTaskResource(software.amazon.awscdk.services.stepfunctions.Task _callingTask)
Return the properties required for using this object as a Task resource.
|
abstract FunctionAttributes |
export()
Export this Function (without the role).
|
protected Boolean |
getCanCreatePermissions()
Whether the addPermission() call adds any permissions.
|
software.amazon.awscdk.services.ec2.Connections |
getConnections()
Access the Connections object.
|
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.
|
String |
getId()
Logical ID of this Function.
|
Boolean |
getIsBoundToVpc()
Whether or not this Lambda function was bound to a VPC.
|
software.amazon.awscdk.services.iam.IRole |
getRole()
The IAM role associated with this function.
|
software.amazon.awscdk.services.iam.Grant |
grantInvoke(software.amazon.awscdk.services.iam.IGrantable grantee)
Grant the given identity permissions to invoke this Lambda.
|
software.amazon.awscdk.services.logs.LogSubscriptionDestination |
logSubscriptionDestination(software.amazon.awscdk.services.logs.ILogGroup sourceLogGroup)
Return the properties required to send subscription events to this destination.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metric(String metricName)
Return the given named metric for this Function.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metric(String metricName,
software.amazon.awscdk.services.cloudwatch.MetricOptions props)
Return the given named metric for this Function.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricDuration()
How long execution of this Lambda takes.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricDuration(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
How long execution of this Lambda takes.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricErrors()
How many invocations of this Lambda fail.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricErrors(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
How many invocations of this Lambda fail.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricInvocations()
How often this Lambda is invoked.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricInvocations(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
How often this Lambda is invoked.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricThrottles()
How often this Lambda is throttled.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricThrottles(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
How often this Lambda is throttled.
|
getDependencyRoots, getNode, isConstruct, prepare, toString, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected FunctionBase(software.amazon.jsii.JsiiObject.InitializationMode mode)
public FunctionBase(software.amazon.awscdk.Construct scope,
String id)
scope - The scope in which to define this construct.id - The scoped construct ID.public void addEventSource(IEventSource source)
addEventSource in interface IFunctionsource - The event source to bind to this function.public void addPermission(String id, Permission permission)
addPermission in interface IFunctionid - The id ƒor the permission construct.public void addToRolePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement)
addToRolePolicy in interface IFunctionpublic software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps asBucketNotificationDestination(String bucketArn, String bucketId)
asBucketNotificationDestination in interface software.amazon.awscdk.services.s3.notifications.IBucketNotificationDestinationpublic software.amazon.awscdk.services.stepfunctions.StepFunctionsTaskResourceProps asStepFunctionsTaskResource(software.amazon.awscdk.services.stepfunctions.Task _callingTask)
asStepFunctionsTaskResource in interface software.amazon.awscdk.services.stepfunctions.IStepFunctionsTaskResourcepublic abstract FunctionAttributes export()
public software.amazon.awscdk.services.iam.Grant grantInvoke(software.amazon.awscdk.services.iam.IGrantable grantee)
grantInvoke in interface IFunctionpublic software.amazon.awscdk.services.logs.LogSubscriptionDestination logSubscriptionDestination(software.amazon.awscdk.services.logs.ILogGroup sourceLogGroup)
logSubscriptionDestination in interface software.amazon.awscdk.services.logs.ILogSubscriptionDestinationpublic software.amazon.awscdk.services.cloudwatch.Metric metric(String metricName, @Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
public software.amazon.awscdk.services.cloudwatch.Metric metric(String metricName)
public software.amazon.awscdk.services.cloudwatch.Metric metricDuration(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
metricDuration in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricDuration()
metricDuration in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricErrors(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
metricErrors in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricErrors()
metricErrors in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricInvocations(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
metricInvocations in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricInvocations()
metricInvocations in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricThrottles(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
metricThrottles in interface IFunctionpublic software.amazon.awscdk.services.cloudwatch.Metric metricThrottles()
metricThrottles in interface IFunctionprotected Boolean getCanCreatePermissions()
public software.amazon.awscdk.services.ec2.Connections getConnections()
getConnections in interface software.amazon.awscdk.services.ec2.IConnectablepublic String getFunctionArn()
getFunctionArn in interface IFunctionpublic String getFunctionName()
getFunctionName in interface IFunctionpublic software.amazon.awscdk.services.iam.IPrincipal getGrantPrincipal()
getGrantPrincipal in interface software.amazon.awscdk.services.iam.IGrantablepublic Boolean getIsBoundToVpc()
getIsBoundToVpc in interface IFunctionCopyright © 2019. All rights reserved.