@Internal public static final class IAlias.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IAlias.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIAlias.Jsii$Default, IAlias.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventSource(IEventSource source)
Adds an event source to this function.
|
EventSourceMapping |
addEventSourceMapping(String id,
EventSourceMappingOptions options)
Adds an event source that maps to this AWS Lambda function.
|
FunctionUrl |
addFunctionUrl()
Adds a url to this lambda function.
|
FunctionUrl |
addFunctionUrl(FunctionUrlOptions options)
Adds a url to this lambda function.
|
void |
addPermission(String id,
Permission permission)
Adds a permission to the Lambda resource policy.
|
void |
addToRolePolicy(PolicyStatement statement)
Adds a statement to the IAM role assumed by the instance.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
void |
configureAsyncInvoke(EventInvokeConfigOptions options)
Configures options for asynchronous invocation.
|
String |
getAliasName()
Name of this alias.
|
Architecture |
getArchitecture()
The system architectures compatible with this lambda function.
|
Connections |
getConnections()
The network connections associated with this resource.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
String |
getFunctionArn()
The ARN of the function.
|
String |
getFunctionName()
The name of the function.
|
IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
Boolean |
getIsBoundToVpc()
Whether or not this Lambda function was bound to a VPC.
|
IVersion |
getLatestVersion()
The `$LATEST` version of this function.
|
software.constructs.Node |
getNode()
The tree node.
|
software.constructs.Node |
getPermissionsNode()
The construct node where permissions are attached.
|
List<String> |
getResourceArnsForGrantInvoke()
The ARN(s) to put into the resource field of the generated IAM policy for grantInvoke().
|
IRole |
getRole()
The IAM role associated with this function.
|
Stack |
getStack()
The stack in which this resource is defined.
|
IVersion |
getVersion()
The underlying Lambda function version.
|
Grant |
grantInvoke(IGrantable identity)
Grant the given identity permissions to invoke this Lambda.
|
Grant |
grantInvokeUrl(IGrantable identity)
Grant the given identity permissions to invoke this Lambda Function URL.
|
Metric |
metric(String metricName)
Return the given named metric for this Lambda Return the given named metric for this Function.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Lambda Return the given named metric for this Function.
|
Metric |
metricDuration()
Metric for the Duration of this Lambda How long execution of this Lambda takes.
|
Metric |
metricDuration(MetricOptions props)
Metric for the Duration of this Lambda How long execution of this Lambda takes.
|
Metric |
metricErrors()
How many invocations of this Lambda fail.
|
Metric |
metricErrors(MetricOptions props)
How many invocations of this Lambda fail.
|
Metric |
metricInvocations()
Metric for the number of invocations of this Lambda How often this Lambda is invoked.
|
Metric |
metricInvocations(MetricOptions props)
Metric for the number of invocations of this Lambda How often this Lambda is invoked.
|
Metric |
metricThrottles()
Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled.
|
Metric |
metricThrottles(MetricOptions props)
Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface IAlias.Jsii$DefaultgetNode in interface IFunction.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface IAlias.Jsii$DefaultgetEnv in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IAlias.Jsii$DefaultgetStack in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final Connections getConnections()
getConnections in interface IConnectablegetConnections in interface IConnectable.Jsii$DefaultgetConnections in interface IAlias.Jsii$DefaultgetConnections in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantablegetGrantPrincipal in interface IGrantable.Jsii$DefaultgetGrantPrincipal in interface IAlias.Jsii$DefaultgetGrantPrincipal in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final Architecture getArchitecture()
getArchitecture in interface IAlias.Jsii$DefaultgetArchitecture in interface IFunctiongetArchitecture in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final String getFunctionArn()
getFunctionArn in interface IAlias.Jsii$DefaultgetFunctionArn in interface IFunctiongetFunctionArn in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final String getFunctionName()
getFunctionName in interface IAlias.Jsii$DefaultgetFunctionName in interface IFunctiongetFunctionName in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final Boolean getIsBoundToVpc()
If this is is false, trying to access the connections object will fail.
getIsBoundToVpc in interface IAlias.Jsii$DefaultgetIsBoundToVpc in interface IFunctiongetIsBoundToVpc in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final IVersion getLatestVersion()
Note that this is reference to a non-specific AWS Lambda version, which means the function this version refers to can return different results in different invocations.
To obtain a reference to an explicit version which references the current
function configuration, use lambdaFunction.currentVersion instead.
getLatestVersion in interface IAlias.Jsii$DefaultgetLatestVersion in interface IFunctiongetLatestVersion in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final software.constructs.Node getPermissionsNode()
getPermissionsNode in interface IAlias.Jsii$DefaultgetPermissionsNode in interface IFunctiongetPermissionsNode in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final List<String> getResourceArnsForGrantInvoke()
This property is for cdk modules to consume only. You should not need to use this property. Instead, use grantInvoke() directly.
getResourceArnsForGrantInvoke in interface IAlias.Jsii$DefaultgetResourceArnsForGrantInvoke in interface IFunctiongetResourceArnsForGrantInvoke in interface IFunction.Jsii$Default@Stability(value=Stable) @Nullable public final IRole getRole()
getRole in interface IAlias.Jsii$DefaultgetRole in interface IFunctiongetRole in interface IFunction.Jsii$Default@Stability(value=Stable) @NotNull public final String getAliasName()
getAliasName in interface IAliasgetAliasName in interface IAlias.Jsii$Default@Stability(value=Stable) @NotNull public final IVersion getVersion()
getVersion in interface IAliasgetVersion in interface IAlias.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IAlias.Jsii$DefaultapplyRemovalPolicy in interface IFunction.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable)
public final void addEventSource(@NotNull
IEventSource source)
Event sources are implemented in the @aws-cdk/aws-lambda-event-sources module.
The following example adds an SQS Queue as an event source:
import { SqsEventSource } from '@aws-cdk/aws-lambda-event-sources';
myFunction.addEventSource(new SqsEventSource(myQueue));
addEventSource in interface IAlias.Jsii$DefaultaddEventSource in interface IFunctionaddEventSource in interface IFunction.Jsii$Defaultsource - This parameter is required.@Stability(value=Stable) @NotNull public final EventSourceMapping addEventSourceMapping(@NotNull String id, @NotNull EventSourceMappingOptions options)
addEventSourceMapping in interface IAlias.Jsii$DefaultaddEventSourceMapping in interface IFunctionaddEventSourceMapping in interface IFunction.Jsii$Defaultid - construct ID. This parameter is required.options - mapping options. This parameter is required.@Stability(value=Stable) @NotNull public final FunctionUrl addFunctionUrl(@Nullable FunctionUrlOptions options)
addFunctionUrl in interface IAlias.Jsii$DefaultaddFunctionUrl in interface IFunctionaddFunctionUrl in interface IFunction.Jsii$Defaultoptions - @Stability(value=Stable) @NotNull public final FunctionUrl addFunctionUrl()
addFunctionUrl in interface IFunction@Stability(value=Stable)
public final void addPermission(@NotNull
String id,
@NotNull
Permission permission)
addPermission in interface IAlias.Jsii$DefaultaddPermission in interface IFunctionaddPermission in interface IFunction.Jsii$Defaultid - The id for the permission construct. This parameter is required.permission - The permission to grant to this Lambda function. This parameter is required.@Stability(value=Stable)
public final void addToRolePolicy(@NotNull
PolicyStatement statement)
addToRolePolicy in interface IAlias.Jsii$DefaultaddToRolePolicy in interface IFunctionaddToRolePolicy in interface IFunction.Jsii$Defaultstatement - This parameter is required.@Stability(value=Stable)
public final void configureAsyncInvoke(@NotNull
EventInvokeConfigOptions options)
configureAsyncInvoke in interface IAlias.Jsii$DefaultconfigureAsyncInvoke in interface IFunctionconfigureAsyncInvoke in interface IFunction.Jsii$Defaultoptions - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantInvoke(@NotNull IGrantable identity)
grantInvoke in interface IAlias.Jsii$DefaultgrantInvoke in interface IFunctiongrantInvoke in interface IFunction.Jsii$Defaultidentity - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantInvokeUrl(@NotNull IGrantable identity)
grantInvokeUrl in interface IAlias.Jsii$DefaultgrantInvokeUrl in interface IFunctiongrantInvokeUrl in interface IFunction.Jsii$Defaultidentity - This parameter is required.@Stability(value=Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metric in interface IAlias.Jsii$Defaultmetric in interface IFunctionmetric in interface IFunction.Jsii$DefaultmetricName - This parameter is required.props - @Stability(value=Stable) @NotNull public final Metric metric(@NotNull String metricName)
@Stability(value=Stable) @NotNull public final Metric metricDuration(@Nullable MetricOptions props)
Average over 5 minutes
Default: average over 5 minutes
metricDuration in interface IAlias.Jsii$DefaultmetricDuration in interface IFunctionmetricDuration in interface IFunction.Jsii$Defaultprops - @Stability(value=Stable) @NotNull public final Metric metricDuration()
Average over 5 minutes
Default: average over 5 minutes
metricDuration in interface IFunction@Stability(value=Stable) @NotNull public final Metric metricErrors(@Nullable MetricOptions props)
Sum over 5 minutes
metricErrors in interface IAlias.Jsii$DefaultmetricErrors in interface IFunctionmetricErrors in interface IFunction.Jsii$Defaultprops - @Stability(value=Stable) @NotNull public final Metric metricErrors()
Sum over 5 minutes
metricErrors in interface IFunction@Stability(value=Stable) @NotNull public final Metric metricInvocations(@Nullable MetricOptions props)
Sum over 5 minutes
Default: sum over 5 minutes
metricInvocations in interface IAlias.Jsii$DefaultmetricInvocations in interface IFunctionmetricInvocations in interface IFunction.Jsii$Defaultprops - @Stability(value=Stable) @NotNull public final Metric metricInvocations()
Sum over 5 minutes
Default: sum over 5 minutes
metricInvocations in interface IFunction@Stability(value=Stable) @NotNull public final Metric metricThrottles(@Nullable MetricOptions props)
Sum over 5 minutes
Default: sum over 5 minutes
metricThrottles in interface IAlias.Jsii$DefaultmetricThrottles in interface IFunctionmetricThrottles in interface IFunction.Jsii$Defaultprops - @Stability(value=Stable) @NotNull public final Metric metricThrottles()
Sum over 5 minutes
Default: sum over 5 minutes
metricThrottles in interface IFunctionCopyright © 2022. All rights reserved.