@Generated(value="jsii-pacmak/0.10.5 (build 46bc9b0)", date="2019-05-06T20:53:37.762Z") public interface IFunction extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.IResource, software.amazon.awscdk.services.logs.ILogSubscriptionDestination, software.amazon.awscdk.services.s3.notifications.IBucketNotificationDestination, software.amazon.awscdk.services.ec2.IConnectable, software.amazon.awscdk.services.stepfunctions.IStepFunctionsTaskResource, software.amazon.awscdk.services.iam.IGrantable
| Modifier and Type | Interface and Description |
|---|---|
static class |
IFunction.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEventSource(IEventSource source) |
void |
addPermission(String id,
Permission permission)
Adds a permission to the Lambda resource policy.
|
void |
addToRolePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement) |
FunctionAttributes |
export()
Export this Function (without the role).
|
String |
getFunctionArn()
The ARN fo the function.
|
String |
getFunctionName()
The name of the function.
|
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 identity)
Grant the given identity permissions to invoke this Lambda.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metric(String metricName)
Return the given named metric for this Lambda 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 Lambda Return the given named metric for this Function.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricDuration()
Metric for the Duration of this Lambda How long execution of this Lambda takes.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricDuration(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
Metric for the Duration of this Lambda 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()
Metric for the number of invocations of this Lambda How often this Lambda is invoked.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricInvocations(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
Metric for the number of invocations of this Lambda How often this Lambda is invoked.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricThrottles()
Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled.
|
software.amazon.awscdk.services.cloudwatch.Metric |
metricThrottles(software.amazon.awscdk.services.cloudwatch.MetricOptions props)
Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled.
|
logSubscriptionDestinationasBucketNotificationDestinationString getFunctionArn()
String getFunctionName()
String getId()
Boolean getIsBoundToVpc()
software.amazon.awscdk.services.iam.IRole getRole()
void addEventSource(IEventSource source)
void addPermission(String id, Permission permission)
id - The id ƒor the permission construct.void addToRolePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement)
FunctionAttributes export()
software.amazon.awscdk.services.iam.Grant grantInvoke(software.amazon.awscdk.services.iam.IGrantable identity)
software.amazon.awscdk.services.cloudwatch.Metric metric(String metricName, @Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
software.amazon.awscdk.services.cloudwatch.Metric metric(String metricName)
software.amazon.awscdk.services.cloudwatch.Metric metricDuration(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
software.amazon.awscdk.services.cloudwatch.Metric metricDuration()
software.amazon.awscdk.services.cloudwatch.Metric metricErrors(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
software.amazon.awscdk.services.cloudwatch.Metric metricErrors()
software.amazon.awscdk.services.cloudwatch.Metric metricInvocations(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
software.amazon.awscdk.services.cloudwatch.Metric metricInvocations()
software.amazon.awscdk.services.cloudwatch.Metric metricThrottles(@Nullable software.amazon.awscdk.services.cloudwatch.MetricOptions props)
software.amazon.awscdk.services.cloudwatch.Metric metricThrottles()
Copyright © 2019. All rights reserved.