Class QualifiedFunctionBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.lambda.FunctionBase
software.amazon.awscdk.services.lambda.QualifiedFunctionBase
- All Implemented Interfaces:
IResource
,IClientVpnConnectionHandler
,IConnectable
,IGrantable
,IFunction
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:21.328Z")
@Stability(Stable)
public abstract class QualifiedFunctionBase
extends FunctionBase
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IClientVpnConnectionHandler
IClientVpnConnectionHandler.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IFunction
IFunction.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
QualifiedFunctionBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
QualifiedFunctionBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
QualifiedFunctionBase
(software.constructs.Construct scope, String id) protected
QualifiedFunctionBase
(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configures options for asynchronous invocation.void
considerWarningOnInvokeFunctionPermissions
(software.constructs.Construct _scope, String _action) A warning will be added to functions under the following conditions: - permissions that includelambda:InvokeFunction
are added to the unqualified function.abstract IFunction
The underlyingIFunction
.The$LATEST
version of this function.software.constructs.Node
The construct node where permissions are attached.protected abstract String
The qualifier of the version or alias of this function.The ARN(s) to put into the resource field of the generated IAM policy for grantInvoke().Methods inherited from class software.amazon.awscdk.services.lambda.FunctionBase
addEventSource, addEventSourceMapping, addFunctionUrl, addFunctionUrl, addPermission, addToRolePolicy, getArchitecture, getCanCreatePermissions, getConnections, getFunctionArn, getFunctionName, getGrantPrincipal, getIsBoundToVpc, getRole, grantInvoke, grantInvokeCompositePrincipal, grantInvokeLatestVersion, grantInvokeUrl, grantInvokeVersion, metric, metric, metricDuration, metricDuration, metricErrors, metricErrors, metricInvocations, metricInvocations, metricThrottles, metricThrottles, warnInvokeFunctionPermissions
Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
QualifiedFunctionBase
protected QualifiedFunctionBase(software.amazon.jsii.JsiiObjectRef objRef) -
QualifiedFunctionBase
protected QualifiedFunctionBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
QualifiedFunctionBase
@Stability(Stable) protected QualifiedFunctionBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
QualifiedFunctionBase
@Stability(Stable) protected QualifiedFunctionBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
configureAsyncInvoke
Configures options for asynchronous invocation.- Specified by:
configureAsyncInvoke
in interfaceIFunction
- Overrides:
configureAsyncInvoke
in classFunctionBase
- Parameters:
options
- This parameter is required.
-
considerWarningOnInvokeFunctionPermissions
@Stability(Stable) public void considerWarningOnInvokeFunctionPermissions(@NotNull software.constructs.Construct _scope, @NotNull String _action) A warning will be added to functions under the following conditions: - permissions that includelambda:InvokeFunction
are added to the unqualified function.- function.currentVersion is invoked before or after the permission is created.
This applies only to permissions on Lambda functions, not versions or aliases. This function is overridden as a noOp for QualifiedFunctionBase.
- Overrides:
considerWarningOnInvokeFunctionPermissions
in classFunctionBase
- Parameters:
_scope
- This parameter is required._action
- This parameter is required.
-
getLambda
The underlyingIFunction
. -
getLatestVersion
The$LATEST
version 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.currentVersion
instead.- Specified by:
getLatestVersion
in interfaceIFunction
- Overrides:
getLatestVersion
in classFunctionBase
-
getPermissionsNode
@Stability(Stable) @NotNull public software.constructs.Node getPermissionsNode()The construct node where permissions are attached.- Specified by:
getPermissionsNode
in interfaceIFunction
- Specified by:
getPermissionsNode
in classFunctionBase
-
getQualifier
The qualifier of the version or alias of this function.A qualifier is the identifier that's appended to a version or alias ARN.
- See Also:
-
getResourceArnsForGrantInvoke
The ARN(s) to put into the resource field of the generated IAM policy for grantInvoke().- Specified by:
getResourceArnsForGrantInvoke
in interfaceIFunction
- Specified by:
getResourceArnsForGrantInvoke
in classFunctionBase
-