Class EdgeFunctionProps.Jsii$Proxy
- All Implemented Interfaces:
EdgeFunctionProps,EventInvokeConfigOptions,FunctionOptions,FunctionProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
EdgeFunctionProps
EdgeFunctionProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.experimental.EdgeFunctionProps
EdgeFunctionProps.Builder, EdgeFunctionProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(EdgeFunctionProps.Builder builder) Constructor that initializes the object based on literal property values passed by theEdgeFunctionProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanSpecify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation.final BooleanWhether to allow the Lambda to send all ipv6 network traffic.final BooleanWhether to allow the Lambda to send all network traffic (except ipv6).final BooleanLambda Functions in a public subnet can NOT access the internet.final String(deprecated) Sets the application log level for the function.final ApplicationLogLevelSets the application log level for the function.final ArchitectureThe system architectures compatible with this lambda function.final CodegetCode()The source code of your Lambda function.final ICodeSigningConfigRefCode signing config associated with this function.final VersionOptionsOptions for thelambda.Versionresource automatically created by thefn.currentVersionmethod.final IQueueThe SQS queue to use if DLQ is enabled.final BooleanEnabled DLQ.final ITopicThe SNS topic to use as a DLQ.final StringA description of the function.Key-value pairs that Lambda caches and makes available for your Lambda functions.final IKeyRefThe AWS KMS key that's used to encrypt your function's environment variables.final SizeThe size of the function’s /tmp directory in MiB.final List<IEventSource> Event sources for this function.final FileSystemThe filesystem configuration for the lambda function.final StringA name for the function.final StringThe name of the method within your code that Lambda calls to execute your function.final List<PolicyStatement> Initial policy statements to add to the created Lambda Role.final LambdaInsightsVersionSpecify the version of CloudWatch Lambda insights to use for monitoring.final BooleanAllows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.final List<ILayerVersion> A list of layers to add to the function's execution environment.final String(deprecated) Sets the logFormat for the function.final LoggingFormatSets the loggingFormat for the function.final ILogGroupThe log group the function sends logs to.final RemovalPolicy(deprecated) Determine the removal policy of the log group that is auto-created by this construct.final RetentionDays(deprecated) The number of days log events are kept in CloudWatch Logs.final LogRetentionRetryOptionsWhen log retention is specified, a custom resource attempts to create the CloudWatch log group.final IRoleThe IAM role for the Lambda function associated with the custom resource that sets the retention policy.final DurationThe maximum age of a request that Lambda sends to a function for processing.final NumberThe amount of memory, in MB, that is allocated to your Lambda function.final IDestinationThe destination for failed invocations.final IDestinationThe destination for successful invocations.Specify the configuration of Parameters and Secrets Extension.final BooleanEnable profiling.final IProfilingGroupProfiling Group.final RecursiveLoopSets the Recursive Loop Protection for Lambda Function.final NumberThe maximum of concurrent executions you want to reserve for the function.final NumberThe maximum number of times to retry when the function returns an error.final IRolegetRole()Lambda execution role.final RuntimeThe runtime environment for the Lambda function that you are uploading.final RuntimeManagementModeSets the runtime management configuration for a function's version.final List<ISecurityGroup> The list of security groups to associate with the Lambda's network interfaces.final SnapStartConfEnable SnapStart for Lambda Function.final StringThe stack ID of Lambda@Edge function.final String(deprecated) Sets the system log level for the function.final SystemLogLevelSets the system log level for the function.final DurationThe function execution time (in seconds) after which Lambda terminates the function.final TracingEnable AWS X-Ray Tracing for Lambda Function.final IVpcgetVpc()VPC network to place Lambda network interfaces.final SubnetSelectionWhere to place the network interfaces within the VPC.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theEdgeFunctionProps.Builder.
-
-
Method Details
-
getStackId
Description copied from interface:EdgeFunctionPropsThe stack ID of Lambda@Edge function.Default: - `edge-lambda-stack-${region}`
- Specified by:
getStackIdin interfaceEdgeFunctionProps
-
getCode
Description copied from interface:FunctionPropsThe source code of your Lambda function.You can point to a file in an Amazon Simple Storage Service (Amazon S3) bucket or specify your source code as inline text.
- Specified by:
getCodein interfaceFunctionProps
-
getHandler
Description copied from interface:FunctionPropsThe name of the method within your code that Lambda calls to execute your function.The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html.
Use
Handler.FROM_IMAGEwhen defining a function from a Docker image.NOTE: If you specify your source code as inline text by specifying the ZipFile property within the Code property, specify index.function_name as the handler.
- Specified by:
getHandlerin interfaceFunctionProps
-
getRuntime
Description copied from interface:FunctionPropsThe runtime environment for the Lambda function that you are uploading.For valid values, see the Runtime property in the AWS Lambda Developer Guide.
Use
Runtime.FROM_IMAGEwhen defining a function from a Docker image.- Specified by:
getRuntimein interfaceFunctionProps
-
getAdotInstrumentation
Description copied from interface:FunctionOptionsSpecify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation.Default: - No ADOT instrumentation
- Specified by:
getAdotInstrumentationin interfaceFunctionOptions- See Also:
-
getAllowAllIpv6Outbound
Description copied from interface:FunctionOptionsWhether to allow the Lambda to send all ipv6 network traffic.If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6.
Do not specify this property if the
securityGroupsorsecurityGroupproperty is set. Instead, configureallowAllIpv6Outbounddirectly on the security group.Default: false
- Specified by:
getAllowAllIpv6Outboundin interfaceFunctionOptions
-
getAllowAllOutbound
Description copied from interface:FunctionOptionsWhether to allow the Lambda to send all network traffic (except ipv6).If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets.
Do not specify this property if the
securityGroupsorsecurityGroupproperty is set. Instead, configureallowAllOutbounddirectly on the security group.Default: true
- Specified by:
getAllowAllOutboundin interfaceFunctionOptions
-
getAllowPublicSubnet
Description copied from interface:FunctionOptionsLambda Functions in a public subnet can NOT access the internet.Use this property to acknowledge this limitation and still place the function in a public subnet.
Default: false
- Specified by:
getAllowPublicSubnetin interfaceFunctionOptions- See Also:
-
getApplicationLogLevel
Description copied from interface:FunctionOptions(deprecated) Sets the application log level for the function.Default: "INFO"
- Specified by:
getApplicationLogLevelin interfaceFunctionOptions
-
getApplicationLogLevelV2
Description copied from interface:FunctionOptionsSets the application log level for the function.Default: ApplicationLogLevel.INFO
- Specified by:
getApplicationLogLevelV2in interfaceFunctionOptions
-
getArchitecture
Description copied from interface:FunctionOptionsThe system architectures compatible with this lambda function.Default: Architecture.X86_64
- Specified by:
getArchitecturein interfaceFunctionOptions
-
getCodeSigningConfig
Description copied from interface:FunctionOptionsCode signing config associated with this function.Default: - Not Sign the Code
- Specified by:
getCodeSigningConfigin interfaceFunctionOptions
-
getCurrentVersionOptions
Description copied from interface:FunctionOptionsOptions for thelambda.Versionresource automatically created by thefn.currentVersionmethod.Default: - default options as described in `VersionOptions`
- Specified by:
getCurrentVersionOptionsin interfaceFunctionOptions
-
getDeadLetterQueue
Description copied from interface:FunctionOptionsThe SQS queue to use if DLQ is enabled.If SNS topic is desired, specify
deadLetterTopicproperty instead.Default: - SQS queue with 14 day retention period if `deadLetterQueueEnabled` is `true`
- Specified by:
getDeadLetterQueuein interfaceFunctionOptions
-
getDeadLetterQueueEnabled
Description copied from interface:FunctionOptionsEnabled DLQ.If
deadLetterQueueis undefined, an SQS queue with default options will be defined for your Function.Default: - false unless `deadLetterQueue` is set, which implies DLQ is enabled.
- Specified by:
getDeadLetterQueueEnabledin interfaceFunctionOptions
-
getDeadLetterTopic
Description copied from interface:FunctionOptionsThe SNS topic to use as a DLQ.Note that if
deadLetterQueueEnabledis set totrue, an SQS queue will be created rather than an SNS topic. Using an SNS topic as a DLQ requires this property to be set explicitly.Default: - no SNS topic
- Specified by:
getDeadLetterTopicin interfaceFunctionOptions
-
getDescription
Description copied from interface:FunctionOptionsA description of the function.Default: - No description.
- Specified by:
getDescriptionin interfaceFunctionOptions
-
getEnvironment
Description copied from interface:FunctionOptionsKey-value pairs that Lambda caches and makes available for your Lambda functions.Use environment variables to apply configuration changes, such as test and production environment configurations, without changing your Lambda function source code.
Default: - No environment variables.
- Specified by:
getEnvironmentin interfaceFunctionOptions
-
getEnvironmentEncryption
Description copied from interface:FunctionOptionsThe AWS KMS key that's used to encrypt your function's environment variables.Default: - AWS Lambda creates and uses an AWS managed customer master key (CMK).
- Specified by:
getEnvironmentEncryptionin interfaceFunctionOptions
-
getEphemeralStorageSize
Description copied from interface:FunctionOptionsThe size of the function’s /tmp directory in MiB.Default: 512 MiB
- Specified by:
getEphemeralStorageSizein interfaceFunctionOptions
-
getEvents
Description copied from interface:FunctionOptionsEvent sources for this function.You can also add event sources using
addEventSource.Default: - No event sources.
- Specified by:
getEventsin interfaceFunctionOptions
-
getFilesystem
Description copied from interface:FunctionOptionsThe filesystem configuration for the lambda function.Default: - will not mount any filesystem
- Specified by:
getFilesystemin interfaceFunctionOptions
-
getFunctionName
Description copied from interface:FunctionOptionsA name for the function.Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
- Specified by:
getFunctionNamein interfaceFunctionOptions
-
getInitialPolicy
Description copied from interface:FunctionOptionsInitial policy statements to add to the created Lambda Role.You can call
addToRolePolicyto the created lambda to add statements post creation.Default: - No policy statements are added to the created Lambda role.
- Specified by:
getInitialPolicyin interfaceFunctionOptions
-
getInsightsVersion
Description copied from interface:FunctionOptionsSpecify the version of CloudWatch Lambda insights to use for monitoring.Default: - No Lambda Insights
- Specified by:
getInsightsVersionin interfaceFunctionOptions- See Also:
-
getIpv6AllowedForDualStack
Description copied from interface:FunctionOptionsAllows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.Only used if 'vpc' is supplied.
Default: false
- Specified by:
getIpv6AllowedForDualStackin interfaceFunctionOptions
-
getLayers
Description copied from interface:FunctionOptionsA list of layers to add to the function's execution environment.You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions.
Default: - No layers.
- Specified by:
getLayersin interfaceFunctionOptions
-
getLogFormat
Description copied from interface:FunctionOptions(deprecated) Sets the logFormat for the function.Default: "Text"
- Specified by:
getLogFormatin interfaceFunctionOptions
-
getLoggingFormat
Description copied from interface:FunctionOptionsSets the loggingFormat for the function.Default: LoggingFormat.TEXT
- Specified by:
getLoggingFormatin interfaceFunctionOptions
-
getLogGroup
Description copied from interface:FunctionOptionsThe log group the function sends logs to.By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/
. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the
logGroupproperty to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it.Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first.
Default: `/aws/lambda/${this.functionName}` - default log group created by Lambda
- Specified by:
getLogGroupin interfaceFunctionOptions
-
getLogRemovalPolicy
Description copied from interface:FunctionOptions(deprecated) Determine the removal policy of the log group that is auto-created by this construct.Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs.
Default: RemovalPolicy.Retain
- Specified by:
getLogRemovalPolicyin interfaceFunctionOptions
-
getLogRetention
Description copied from interface:FunctionOptions(deprecated) The number of days log events are kept in CloudWatch Logs.When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to
INFINITE.This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with
logs.LogGroupand use thelogGroupproperty to instruct the Lambda function to send logs to it. Migrating fromlogRetentiontologGroupwill cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust.In AWS CDK code, you can access the log group name directly from the LogGroup construct:
import software.amazon.awscdk.services.logs.*; LogGroup myLogGroup; myLogGroup.getLogGroupName();
Default: logs.RetentionDays.INFINITE
- Specified by:
getLogRetentionin interfaceFunctionOptions
-
getLogRetentionRetryOptions
Description copied from interface:FunctionOptionsWhen log retention is specified, a custom resource attempts to create the CloudWatch log group.These options control the retry policy when interacting with CloudWatch APIs.
This is a legacy API and we strongly recommend you migrate to
logGroupif you can.logGroupallows you to create a fully customizable log group and instruct the Lambda function to send logs to it.Default: - Default AWS SDK retry options.
- Specified by:
getLogRetentionRetryOptionsin interfaceFunctionOptions
-
getLogRetentionRole
Description copied from interface:FunctionOptionsThe IAM role for the Lambda function associated with the custom resource that sets the retention policy.This is a legacy API and we strongly recommend you migrate to
logGroupif you can.logGroupallows you to create a fully customizable log group and instruct the Lambda function to send logs to it.Default: - A new role is created.
- Specified by:
getLogRetentionRolein interfaceFunctionOptions
-
getMemorySize
Description copied from interface:FunctionOptionsThe amount of memory, in MB, that is allocated to your Lambda function.Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide.
Default: 128
- Specified by:
getMemorySizein interfaceFunctionOptions
-
getParamsAndSecrets
Description copied from interface:FunctionOptionsSpecify the configuration of Parameters and Secrets Extension.Default: - No Parameters and Secrets Extension
- Specified by:
getParamsAndSecretsin interfaceFunctionOptions- See Also:
-
getProfiling
Description copied from interface:FunctionOptionsEnable profiling.Default: - No profiling.
- Specified by:
getProfilingin interfaceFunctionOptions- See Also:
-
getProfilingGroup
Description copied from interface:FunctionOptionsProfiling Group.Default: - A new profiling group will be created if `profiling` is set.
- Specified by:
getProfilingGroupin interfaceFunctionOptions- See Also:
-
getRecursiveLoop
Description copied from interface:FunctionOptionsSets the Recursive Loop Protection for Lambda Function.It lets Lambda detect and terminate unintended recursive loops.
Default: RecursiveLoop.Terminate
- Specified by:
getRecursiveLoopin interfaceFunctionOptions
-
getReservedConcurrentExecutions
Description copied from interface:FunctionOptionsThe maximum of concurrent executions you want to reserve for the function.Default: - No specific limit - account limit.
- Specified by:
getReservedConcurrentExecutionsin interfaceFunctionOptions- See Also:
-
getRole
Description copied from interface:FunctionOptionsLambda execution role.This is the role that will be assumed by the function upon execution. It controls the permissions that the function will have. The Role must be assumable by the 'lambda.amazonaws.com' service principal.
The default Role automatically has permissions granted for Lambda execution. If you provide a Role, you must add the relevant AWS managed policies yourself.
The relevant managed policies are "service-role/AWSLambdaBasicExecutionRole" and "service-role/AWSLambdaVPCAccessExecutionRole".
Default: - A unique role will be generated for this lambda function. Both supplied and generated roles can always be changed by calling `addToRolePolicy`.
- Specified by:
getRolein interfaceFunctionOptions
-
getRuntimeManagementMode
Description copied from interface:FunctionOptionsSets the runtime management configuration for a function's version.Default: Auto
- Specified by:
getRuntimeManagementModein interfaceFunctionOptions
-
getSecurityGroups
Description copied from interface:FunctionOptionsThe list of security groups to associate with the Lambda's network interfaces.Only used if 'vpc' is supplied.
Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
- Specified by:
getSecurityGroupsin interfaceFunctionOptions
-
getSnapStart
Description copied from interface:FunctionOptionsEnable SnapStart for Lambda Function.SnapStart is currently supported for Java 11, Java 17, Python 3.12, Python 3.13, and .NET 8 runtime
Default: - No snapstart
- Specified by:
getSnapStartin interfaceFunctionOptions
-
getSystemLogLevel
Description copied from interface:FunctionOptions(deprecated) Sets the system log level for the function.Default: "INFO"
- Specified by:
getSystemLogLevelin interfaceFunctionOptions
-
getSystemLogLevelV2
Description copied from interface:FunctionOptionsSets the system log level for the function.Default: SystemLogLevel.INFO
- Specified by:
getSystemLogLevelV2in interfaceFunctionOptions
-
getTimeout
Description copied from interface:FunctionOptionsThe function execution time (in seconds) after which Lambda terminates the function.Because the execution time affects cost, set this value based on the function's expected execution time.
Default: Duration.seconds(3)
- Specified by:
getTimeoutin interfaceFunctionOptions
-
getTracing
Description copied from interface:FunctionOptionsEnable AWS X-Ray Tracing for Lambda Function.Default: Tracing.Disabled
- Specified by:
getTracingin interfaceFunctionOptions
-
getVpc
Description copied from interface:FunctionOptionsVPC network to place Lambda network interfaces.Specify this if the Lambda function needs to access resources in a VPC. This is required when
vpcSubnetsis specified.Default: - Function is not placed within a VPC.
- Specified by:
getVpcin interfaceFunctionOptions
-
getVpcSubnets
Description copied from interface:FunctionOptionsWhere to place the network interfaces within the VPC.This requires
vpcto be specified in order for interfaces to actually be placed in the subnets. Ifvpcis not specify, this will raise an error.Note: Internet access for Lambda Functions requires a NAT Gateway, so picking public subnets is not allowed (unless
allowPublicSubnetis set totrue).Default: - the Vpc default strategy if not specified
- Specified by:
getVpcSubnetsin interfaceFunctionOptions
-
getMaxEventAge
Description copied from interface:EventInvokeConfigOptionsThe maximum age of a request that Lambda sends to a function for processing.Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
- Specified by:
getMaxEventAgein interfaceEventInvokeConfigOptions
-
getOnFailure
Description copied from interface:EventInvokeConfigOptionsThe destination for failed invocations.Default: - no destination
- Specified by:
getOnFailurein interfaceEventInvokeConfigOptions
-
getOnSuccess
Description copied from interface:EventInvokeConfigOptionsThe destination for successful invocations.Default: - no destination
- Specified by:
getOnSuccessin interfaceEventInvokeConfigOptions
-
getRetryAttempts
Description copied from interface:EventInvokeConfigOptionsThe maximum number of times to retry when the function returns an error.Minimum: 0 Maximum: 2
Default: 2
- Specified by:
getRetryAttemptsin interfaceEventInvokeConfigOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-