Class IAlias.Jsii$Proxy
- All Implemented Interfaces:
- IResource,- IResource.Jsii$Default,- IConnectable,- IConnectable.Jsii$Default,- IGrantable,- IGrantable.Jsii$Default,- IAlias,- IAlias.Jsii$Default,- IAliasRef,- IAliasRef.Jsii$Default,- IFunction,- IFunction.Jsii$Default,- IFunctionRef,- IFunctionRef.Jsii$Default,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct,- software.constructs.IConstruct.Jsii$Default,- software.constructs.IDependable,- software.constructs.IDependable.Jsii$Default
- Enclosing interface:
- IAlias
- 
Nested Class SummaryNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IAliasIAlias.Jsii$Default, IAlias.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IAliasRefIAliasRef.Jsii$Default, IAliasRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectableIConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependablesoftware.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IFunctionIFunction.Jsii$Default, IFunction.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IFunctionRefIFunctionRef.Jsii$Default, IFunctionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantableIGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResourceIResource.Jsii$Default, IResource.Jsii$Proxy
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidaddEventSource(IEventSource source) Adds an event source to this function.final EventSourceMappingaddEventSourceMapping(String id, EventSourceMappingOptions options) Adds an event source that maps to this AWS Lambda function.final FunctionUrlAdds a url to this lambda function.final FunctionUrladdFunctionUrl(FunctionUrlOptions options) Adds a url to this lambda function.final voidaddPermission(String id, Permission permission) Adds a permission to the Lambda resource policy.final voidaddToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final voidConfigures options for asynchronous invocation.final StringName of this alias.final AliasReference(experimental) A reference to a Alias resource.final ArchitectureThe system architectures compatible with this lambda function.final ConnectionsThe network connections associated with this resource.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final StringThe ARN of the function.final StringThe name of the function.final FunctionReference(experimental) A reference to a Function resource.final IPrincipalThe principal to grant permissions to.final BooleanWhether or not this Lambda function was bound to a VPC.final IVersionThe$LATESTversion of this function.final software.constructs.NodegetNode()The tree node.final software.constructs.NodeThe construct node where permissions are attached.The ARN(s) to put into the resource field of the generated IAM policy for grantInvoke().final IRolegetRole()The IAM role associated with this function.final StackgetStack()The stack in which this resource is defined.final IVersionThe underlying Lambda function version.final GrantgrantInvoke(IGrantable identity) Grant the given identity permissions to invoke this Lambda.grantInvokeCompositePrincipal(CompositePrincipal compositePrincipal) Grant multiple principals the ability to invoke this Lambda via CompositePrincipal.final GrantgrantInvokeLatestVersion(IGrantable identity) Grant the given identity permissions to invoke the $LATEST version or unqualified version of this Lambda.final GrantgrantInvokeUrl(IGrantable identity) Grant the given identity permissions to invoke this Lambda Function URL.final GrantgrantInvokeVersion(IGrantable identity, IVersion version) Grant the given identity permissions to invoke the given version of this Lambda.final MetricReturn the given named metric for this Lambda Return the given named metric for this Function.final Metricmetric(String metricName, MetricOptions props) Return the given named metric for this Lambda Return the given named metric for this Function.final MetricMetric for the Duration of this Lambda How long execution of this Lambda takes.final MetricmetricDuration(MetricOptions props) Metric for the Duration of this Lambda How long execution of this Lambda takes.final MetricHow many invocations of this Lambda fail.final MetricmetricErrors(MetricOptions props) How many invocations of this Lambda fail.final MetricMetric for the number of invocations of this Lambda How often this Lambda is invoked.final MetricmetricInvocations(MetricOptions props) Metric for the number of invocations of this Lambda How often this Lambda is invoked.final MetricMetric for the number of throttled invocations of this Lambda How often this Lambda is throttled.final MetricmetricThrottles(MetricOptions props) Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled.Methods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Constructor Details- 
Jsii$Proxyprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) 
 
- 
- 
Method Details- 
getNode@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
- getNodein interface- IAlias
- Specified by:
- getNodein interface- IAlias.Jsii$Default
- Specified by:
- getNodein interface- IAliasRef.Jsii$Default
- Specified by:
- getNodein interface- software.constructs.IConstruct
- Specified by:
- getNodein interface- software.constructs.IConstruct.Jsii$Default
- Specified by:
- getNodein interface- IFunction
- Specified by:
- getNodein interface- IFunction.Jsii$Default
- Specified by:
- getNodein interface- IFunctionRef.Jsii$Default
- Specified by:
- getNodein interface- IResource.Jsii$Default
 
- 
getEnvThe environment this resource belongs to.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. - Specified by:
- getEnvin interface- IAlias.Jsii$Default
- Specified by:
- getEnvin interface- IFunction.Jsii$Default
- Specified by:
- getEnvin interface- IResource
- Specified by:
- getEnvin interface- IResource.Jsii$Default
 
- 
getStackThe stack in which this resource is defined.- Specified by:
- getStackin interface- IAlias.Jsii$Default
- Specified by:
- getStackin interface- IFunction.Jsii$Default
- Specified by:
- getStackin interface- IResource
- Specified by:
- getStackin interface- IResource.Jsii$Default
 
- 
getConnectionsThe network connections associated with this resource.- Specified by:
- getConnectionsin interface- IAlias.Jsii$Default
- Specified by:
- getConnectionsin interface- IConnectable
- Specified by:
- getConnectionsin interface- IConnectable.Jsii$Default
- Specified by:
- getConnectionsin interface- IFunction.Jsii$Default
 
- 
getGrantPrincipalThe principal to grant permissions to.- Specified by:
- getGrantPrincipalin interface- IAlias.Jsii$Default
- Specified by:
- getGrantPrincipalin interface- IFunction.Jsii$Default
- Specified by:
- getGrantPrincipalin interface- IGrantable
- Specified by:
- getGrantPrincipalin interface- IGrantable.Jsii$Default
 
- 
getFunctionRef(experimental) A reference to a Function resource.- Specified by:
- getFunctionRefin interface- IAlias.Jsii$Default
- Specified by:
- getFunctionRefin interface- IFunction.Jsii$Default
- Specified by:
- getFunctionRefin interface- IFunctionRef
- Specified by:
- getFunctionRefin interface- IFunctionRef.Jsii$Default
 
- 
getArchitectureThe system architectures compatible with this lambda function.- Specified by:
- getArchitecturein interface- IAlias.Jsii$Default
- Specified by:
- getArchitecturein interface- IFunction
- Specified by:
- getArchitecturein interface- IFunction.Jsii$Default
 
- 
getFunctionArnThe ARN of the function.- Specified by:
- getFunctionArnin interface- IAlias.Jsii$Default
- Specified by:
- getFunctionArnin interface- IFunction
- Specified by:
- getFunctionArnin interface- IFunction.Jsii$Default
 
- 
getFunctionNameThe name of the function.- Specified by:
- getFunctionNamein interface- IAlias.Jsii$Default
- Specified by:
- getFunctionNamein interface- IFunction
- Specified by:
- getFunctionNamein interface- IFunction.Jsii$Default
 
- 
getIsBoundToVpcWhether or not this Lambda function was bound to a VPC.If this is is false, trying to access theconnectionsobject will fail.- Specified by:
- getIsBoundToVpcin interface- IAlias.Jsii$Default
- Specified by:
- getIsBoundToVpcin interface- IFunction
- Specified by:
- getIsBoundToVpcin interface- IFunction.Jsii$Default
 
- 
getLatestVersionThe$LATESTversion of this function.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.currentVersioninstead.- Specified by:
- getLatestVersionin interface- IAlias.Jsii$Default
- Specified by:
- getLatestVersionin interface- IFunction
- Specified by:
- getLatestVersionin interface- IFunction.Jsii$Default
 
- 
getPermissionsNode@Stability(Stable) @NotNull public final software.constructs.Node getPermissionsNode()The construct node where permissions are attached.- Specified by:
- getPermissionsNodein interface- IAlias.Jsii$Default
- Specified by:
- getPermissionsNodein interface- IFunction
- Specified by:
- getPermissionsNodein interface- IFunction.Jsii$Default
 
- 
getResourceArnsForGrantInvokeThe ARN(s) to put into the resource field of the generated IAM policy for grantInvoke().This property is for cdk modules to consume only. You should not need to use this property. Instead, use grantInvoke() directly. - Specified by:
- getResourceArnsForGrantInvokein interface- IAlias.Jsii$Default
- Specified by:
- getResourceArnsForGrantInvokein interface- IFunction
- Specified by:
- getResourceArnsForGrantInvokein interface- IFunction.Jsii$Default
 
- 
getRoleThe IAM role associated with this function.- Specified by:
- getRolein interface- IAlias.Jsii$Default
- Specified by:
- getRolein interface- IFunction
- Specified by:
- getRolein interface- IFunction.Jsii$Default
 
- 
getAliasRef(experimental) A reference to a Alias resource.- Specified by:
- getAliasRefin interface- IAlias.Jsii$Default
- Specified by:
- getAliasRefin interface- IAliasRef
- Specified by:
- getAliasRefin interface- IAliasRef.Jsii$Default
 
- 
getAliasNameName of this alias.- Specified by:
- getAliasNamein interface- IAlias
- Specified by:
- getAliasNamein interface- IAlias.Jsii$Default
 
- 
getVersionThe underlying Lambda function version.- Specified by:
- getVersionin interface- IAlias
- Specified by:
- getVersionin interface- IAlias.Jsii$Default
 
- 
applyRemovalPolicyApply the given removal policy to this resource.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).- Specified by:
- applyRemovalPolicyin interface- IAlias.Jsii$Default
- Specified by:
- applyRemovalPolicyin interface- IFunction.Jsii$Default
- Specified by:
- applyRemovalPolicyin interface- IResource
- Specified by:
- applyRemovalPolicyin interface- IResource.Jsii$Default
- Parameters:
- policy- This parameter is required.
 
- 
addEventSourceAdds an event source to this function.Event sources are implemented in the aws-cdk-lib/aws-lambda-event-sources module. The following example adds an SQS Queue as an event source: import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; myFunction.addEventSource(new SqsEventSource(myQueue));- Specified by:
- addEventSourcein interface- IAlias.Jsii$Default
- Specified by:
- addEventSourcein interface- IFunction
- Specified by:
- addEventSourcein interface- IFunction.Jsii$Default
- Parameters:
- source- This parameter is required.
 
- 
addEventSourceMapping@Stability(Stable) @NotNull public final EventSourceMapping addEventSourceMapping(@NotNull String id, @NotNull EventSourceMappingOptions options) Adds an event source that maps to this AWS Lambda function.- Specified by:
- addEventSourceMappingin interface- IAlias.Jsii$Default
- Specified by:
- addEventSourceMappingin interface- IFunction
- Specified by:
- addEventSourceMappingin interface- IFunction.Jsii$Default
- Parameters:
- id- construct ID. This parameter is required.
- options- mapping options. This parameter is required.
 
- 
addFunctionUrl@Stability(Stable) @NotNull public final FunctionUrl addFunctionUrl(@Nullable FunctionUrlOptions options) Adds a url to this lambda function.- Specified by:
- addFunctionUrlin interface- IAlias.Jsii$Default
- Specified by:
- addFunctionUrlin interface- IFunction
- Specified by:
- addFunctionUrlin interface- IFunction.Jsii$Default
- Parameters:
- options-
 
- 
addFunctionUrlAdds a url to this lambda function.- Specified by:
- addFunctionUrlin interface- IFunction
 
- 
addPermission@Stability(Stable) public final void addPermission(@NotNull String id, @NotNull Permission permission) Adds a permission to the Lambda resource policy.- Specified by:
- addPermissionin interface- IAlias.Jsii$Default
- Specified by:
- addPermissionin interface- IFunction
- Specified by:
- addPermissionin interface- IFunction.Jsii$Default
- Parameters:
- id- The id for the permission construct. This parameter is required.
- permission- The permission to grant to this Lambda function. This parameter is required.
- See Also:
 
- 
addToRolePolicyAdds a statement to the IAM role assumed by the instance.- Specified by:
- addToRolePolicyin interface- IAlias.Jsii$Default
- Specified by:
- addToRolePolicyin interface- IFunction
- Specified by:
- addToRolePolicyin interface- IFunction.Jsii$Default
- Parameters:
- statement- This parameter is required.
 
- 
configureAsyncInvoke@Stability(Stable) public final void configureAsyncInvoke(@NotNull EventInvokeConfigOptions options) Configures options for asynchronous invocation.- Specified by:
- configureAsyncInvokein interface- IAlias.Jsii$Default
- Specified by:
- configureAsyncInvokein interface- IFunction
- Specified by:
- configureAsyncInvokein interface- IFunction.Jsii$Default
- Parameters:
- options- This parameter is required.
 
- 
grantInvokeGrant the given identity permissions to invoke this Lambda.- Specified by:
- grantInvokein interface- IAlias.Jsii$Default
- Specified by:
- grantInvokein interface- IFunction
- Specified by:
- grantInvokein interface- IFunction.Jsii$Default
- Parameters:
- identity- This parameter is required.
 
- 
grantInvokeCompositePrincipal@Stability(Stable) @NotNull public final List<Grant> grantInvokeCompositePrincipal(@NotNull CompositePrincipal compositePrincipal) Grant multiple principals the ability to invoke this Lambda via CompositePrincipal.- Specified by:
- grantInvokeCompositePrincipalin interface- IAlias.Jsii$Default
- Specified by:
- grantInvokeCompositePrincipalin interface- IFunction
- Specified by:
- grantInvokeCompositePrincipalin interface- IFunction.Jsii$Default
- Parameters:
- compositePrincipal- This parameter is required.
 
- 
grantInvokeLatestVersion@Stability(Stable) @NotNull public final Grant grantInvokeLatestVersion(@NotNull IGrantable identity) Grant the given identity permissions to invoke the $LATEST version or unqualified version of this Lambda.- Specified by:
- grantInvokeLatestVersionin interface- IAlias.Jsii$Default
- Specified by:
- grantInvokeLatestVersionin interface- IFunction
- Specified by:
- grantInvokeLatestVersionin interface- IFunction.Jsii$Default
- Parameters:
- identity- This parameter is required.
 
- 
grantInvokeUrlGrant the given identity permissions to invoke this Lambda Function URL.- Specified by:
- grantInvokeUrlin interface- IAlias.Jsii$Default
- Specified by:
- grantInvokeUrlin interface- IFunction
- Specified by:
- grantInvokeUrlin interface- IFunction.Jsii$Default
- Parameters:
- identity- This parameter is required.
 
- 
grantInvokeVersion@Stability(Stable) @NotNull public final Grant grantInvokeVersion(@NotNull IGrantable identity, @NotNull IVersion version) Grant the given identity permissions to invoke the given version of this Lambda.- Specified by:
- grantInvokeVersionin interface- IAlias.Jsii$Default
- Specified by:
- grantInvokeVersionin interface- IFunction
- Specified by:
- grantInvokeVersionin interface- IFunction.Jsii$Default
- Parameters:
- identity- This parameter is required.
- version- This parameter is required.
 
- 
metric@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Lambda Return the given named metric for this Function.- Specified by:
- metricin interface- IAlias.Jsii$Default
- Specified by:
- metricin interface- IFunction
- Specified by:
- metricin interface- IFunction.Jsii$Default
- Parameters:
- metricName- This parameter is required.
- props-
 
- 
metricReturn the given named metric for this Lambda Return the given named metric for this Function.
- 
metricDurationMetric for the Duration of this Lambda How long execution of this Lambda takes.Average over 5 minutes Default: average over 5 minutes - Specified by:
- metricDurationin interface- IAlias.Jsii$Default
- Specified by:
- metricDurationin interface- IFunction
- Specified by:
- metricDurationin interface- IFunction.Jsii$Default
- Parameters:
- props-
 
- 
metricDurationMetric for the Duration of this Lambda How long execution of this Lambda takes.Average over 5 minutes Default: average over 5 minutes - Specified by:
- metricDurationin interface- IFunction
 
- 
metricErrorsHow many invocations of this Lambda fail.Sum over 5 minutes - Specified by:
- metricErrorsin interface- IAlias.Jsii$Default
- Specified by:
- metricErrorsin interface- IFunction
- Specified by:
- metricErrorsin interface- IFunction.Jsii$Default
- Parameters:
- props-
 
- 
metricErrorsHow many invocations of this Lambda fail.Sum over 5 minutes - Specified by:
- metricErrorsin interface- IFunction
 
- 
metricInvocationsMetric for the number of invocations of this Lambda How often this Lambda is invoked.Sum over 5 minutes Default: sum over 5 minutes - Specified by:
- metricInvocationsin interface- IAlias.Jsii$Default
- Specified by:
- metricInvocationsin interface- IFunction
- Specified by:
- metricInvocationsin interface- IFunction.Jsii$Default
- Parameters:
- props-
 
- 
metricInvocationsMetric for the number of invocations of this Lambda How often this Lambda is invoked.Sum over 5 minutes Default: sum over 5 minutes - Specified by:
- metricInvocationsin interface- IFunction
 
- 
metricThrottlesMetric for the number of throttled invocations of this Lambda How often this Lambda is throttled.Sum over 5 minutes Default: sum over 5 minutes - Specified by:
- metricThrottlesin interface- IAlias.Jsii$Default
- Specified by:
- metricThrottlesin interface- IFunction
- Specified by:
- metricThrottlesin interface- IFunction.Jsii$Default
- Parameters:
- props-
 
- 
metricThrottlesMetric for the number of throttled invocations of this Lambda How often this Lambda is throttled.Sum over 5 minutes Default: sum over 5 minutes - Specified by:
- metricThrottlesin interface- IFunction
 
 
-