@Stability(value=Stable) @Internal public static final class FunctionOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FunctionOptions
FunctionOptionssoftware.amazon.jsii.JsiiObject.InitializationModeFunctionOptions.Builder, FunctionOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(FunctionOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
FunctionOptions.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowAllOutbound()
Whether to allow the Lambda to send all network traffic.
|
Boolean |
getAllowPublicSubnet()
Lambda Functions in a public subnet can NOT access the internet.
|
Architecture |
getArchitecture()
The system architectures compatible with this lambda function.
|
ICodeSigningConfig |
getCodeSigningConfig()
Code signing config associated with this function.
|
VersionOptions |
getCurrentVersionOptions()
Options for the `lambda.Version` resource automatically created by the `fn.currentVersion` method.
|
IQueue |
getDeadLetterQueue()
The SQS queue to use if DLQ is enabled.
|
Boolean |
getDeadLetterQueueEnabled()
Enabled DLQ.
|
ITopic |
getDeadLetterTopic()
The SNS topic to use as a DLQ.
|
String |
getDescription()
A description of the function.
|
Map<String,String> |
getEnvironment()
Key-value pairs that Lambda caches and makes available for your Lambda functions.
|
IKey |
getEnvironmentEncryption()
The AWS KMS key that's used to encrypt your function's environment variables.
|
Size |
getEphemeralStorageSize()
The size of the function’s /tmp directory in MiB.
|
List<IEventSource> |
getEvents()
Event sources for this function.
|
FileSystem |
getFilesystem()
The filesystem configuration for the lambda function.
|
String |
getFunctionName()
A name for the function.
|
List<PolicyStatement> |
getInitialPolicy()
Initial policy statements to add to the created Lambda Role.
|
LambdaInsightsVersion |
getInsightsVersion()
Specify the version of CloudWatch Lambda insights to use for monitoring.
|
List<ILayerVersion> |
getLayers()
A list of layers to add to the function's execution environment.
|
RetentionDays |
getLogRetention()
The number of days log events are kept in CloudWatch Logs.
|
LogRetentionRetryOptions |
getLogRetentionRetryOptions()
When log retention is specified, a custom resource attempts to create the CloudWatch log group.
|
IRole |
getLogRetentionRole()
The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
Duration |
getMaxEventAge()
The maximum age of a request that Lambda sends to a function for processing.
|
Number |
getMemorySize()
The amount of memory, in MB, that is allocated to your Lambda function.
|
IDestination |
getOnFailure()
The destination for failed invocations.
|
IDestination |
getOnSuccess()
The destination for successful invocations.
|
Boolean |
getProfiling()
Enable profiling.
|
IProfilingGroup |
getProfilingGroup()
Profiling Group.
|
Number |
getReservedConcurrentExecutions()
The maximum of concurrent executions you want to reserve for the function.
|
Number |
getRetryAttempts()
The maximum number of times to retry when the function returns an error.
|
IRole |
getRole()
Lambda execution role.
|
List<ISecurityGroup> |
getSecurityGroups()
The list of security groups to associate with the Lambda's network interfaces.
|
Duration |
getTimeout()
The function execution time (in seconds) after which Lambda terminates the function.
|
Tracing |
getTracing()
Enable AWS X-Ray Tracing for Lambda Function.
|
IVpc |
getVpc()
VPC network to place Lambda network interfaces.
|
SubnetSelection |
getVpcSubnets()
Where to place the network interfaces within the VPC.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(FunctionOptions.Builder builder)
FunctionOptions.Builder.public final Boolean getAllowAllOutbound()
FunctionOptionsIf set to false, you must individually add traffic rules to allow the Lambda to connect to network targets.
Default: true
getAllowAllOutbound in interface FunctionOptionspublic final Boolean getAllowPublicSubnet()
FunctionOptionsUse this property to acknowledge this limitation and still place the function in a public subnet.
Default: false
public final Architecture getArchitecture()
FunctionOptionsDefault: Architecture.X86_64
getArchitecture in interface FunctionOptionspublic final ICodeSigningConfig getCodeSigningConfig()
FunctionOptionsDefault: - Not Sign the Code
getCodeSigningConfig in interface FunctionOptionspublic final VersionOptions getCurrentVersionOptions()
FunctionOptionsDefault: - default options as described in `VersionOptions`
getCurrentVersionOptions in interface FunctionOptionspublic final IQueue getDeadLetterQueue()
FunctionOptions
If SNS topic is desired, specify deadLetterTopic property instead.
Default: - SQS queue with 14 day retention period if `deadLetterQueueEnabled` is `true`
getDeadLetterQueue in interface FunctionOptionspublic final Boolean getDeadLetterQueueEnabled()
FunctionOptions
If deadLetterQueue is undefined,
an SQS queue with default options will be defined for your Function.
Default: - false unless `deadLetterQueue` is set, which implies DLQ is enabled.
getDeadLetterQueueEnabled in interface FunctionOptionspublic final ITopic getDeadLetterTopic()
FunctionOptions
Note that if deadLetterQueueEnabled is set to true, 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
getDeadLetterTopic in interface FunctionOptionspublic final String getDescription()
FunctionOptionsDefault: - No description.
getDescription in interface FunctionOptionspublic final Map<String,String> getEnvironment()
FunctionOptionsUse environment variables to apply configuration changes, such as test and production environment configurations, without changing your Lambda function source code.
Default: - No environment variables.
getEnvironment in interface FunctionOptionspublic final IKey getEnvironmentEncryption()
FunctionOptionsDefault: - AWS Lambda creates and uses an AWS managed customer master key (CMK).
getEnvironmentEncryption in interface FunctionOptionspublic final Size getEphemeralStorageSize()
FunctionOptionsDefault: 512 MiB
getEphemeralStorageSize in interface FunctionOptionspublic final List<IEventSource> getEvents()
FunctionOptions
You can also add event sources using addEventSource.
Default: - No event sources.
getEvents in interface FunctionOptionspublic final FileSystem getFilesystem()
FunctionOptionsDefault: - will not mount any filesystem
getFilesystem in interface FunctionOptionspublic final String getFunctionName()
FunctionOptionsDefault: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
getFunctionName in interface FunctionOptionspublic final List<PolicyStatement> getInitialPolicy()
FunctionOptions
You can call addToRolePolicy to the created lambda to add statements post creation.
Default: - No policy statements are added to the created Lambda role.
getInitialPolicy in interface FunctionOptionspublic final LambdaInsightsVersion getInsightsVersion()
FunctionOptionsDefault: - No Lambda Insights
getInsightsVersion in interface FunctionOptionspublic final List<ILayerVersion> getLayers()
FunctionOptionsYou 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.
getLayers in interface FunctionOptionspublic final RetentionDays getLogRetention()
FunctionOptions
When updating
this property, unsetting it doesn't remove the log retention policy. To
remove the retention policy, set the value to INFINITE.
Default: logs.RetentionDays.INFINITE
getLogRetention in interface FunctionOptionspublic final LogRetentionRetryOptions getLogRetentionRetryOptions()
FunctionOptionsThese options control the retry policy when interacting with CloudWatch APIs.
Default: - Default AWS SDK retry options.
getLogRetentionRetryOptions in interface FunctionOptionspublic final IRole getLogRetentionRole()
FunctionOptionsDefault: - A new role is created.
getLogRetentionRole in interface FunctionOptionspublic final Number getMemorySize()
FunctionOptionsLambda 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
getMemorySize in interface FunctionOptionspublic final Boolean getProfiling()
FunctionOptionsDefault: - No profiling.
getProfiling in interface FunctionOptionspublic final IProfilingGroup getProfilingGroup()
FunctionOptionsDefault: - A new profiling group will be created if `profiling` is set.
getProfilingGroup in interface FunctionOptionspublic final Number getReservedConcurrentExecutions()
FunctionOptionsDefault: - No specific limit - account limit.
getReservedConcurrentExecutions in interface FunctionOptionspublic final IRole getRole()
FunctionOptionsThis 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`.
getRole in interface FunctionOptionspublic final List<ISecurityGroup> getSecurityGroups()
FunctionOptionsOnly 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.
getSecurityGroups in interface FunctionOptionspublic final Duration getTimeout()
FunctionOptionsBecause the execution time affects cost, set this value based on the function's expected execution time.
Default: Duration.seconds(3)
getTimeout in interface FunctionOptionspublic final Tracing getTracing()
FunctionOptionsDefault: Tracing.Disabled
getTracing in interface FunctionOptionspublic final IVpc getVpc()
FunctionOptions
Specify this if the Lambda function needs to access resources in a VPC.
This is required when vpcSubnets is specified.
Default: - Function is not placed within a VPC.
getVpc in interface FunctionOptionspublic final SubnetSelection getVpcSubnets()
FunctionOptions
This requires vpc to be specified in order for interfaces to actually be
placed in the subnets. If vpc is 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 allowPublicSubnet is set to true).
Default: - the Vpc default strategy if not specified
getVpcSubnets in interface FunctionOptionspublic final Duration getMaxEventAge()
EventInvokeConfigOptionsMinimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
getMaxEventAge in interface EventInvokeConfigOptionspublic final IDestination getOnFailure()
EventInvokeConfigOptionsDefault: - no destination
getOnFailure in interface EventInvokeConfigOptionspublic final IDestination getOnSuccess()
EventInvokeConfigOptionsDefault: - no destination
getOnSuccess in interface EventInvokeConfigOptionspublic final Number getRetryAttempts()
EventInvokeConfigOptionsMinimum: 0 Maximum: 2
Default: 2
getRetryAttempts in interface EventInvokeConfigOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.