@Stability(value=Experimental) @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(Boolean allowAllOutbound,
Boolean allowPublicSubnet,
ICodeSigningConfig codeSigningConfig,
VersionOptions currentVersionOptions,
IQueue deadLetterQueue,
Boolean deadLetterQueueEnabled,
String description,
Map<String,String> environment,
IKey environmentEncryption,
List<? extends IEventSource> events,
FileSystem filesystem,
String functionName,
List<? extends PolicyStatement> initialPolicy,
List<? extends ILayerVersion> layers,
RetentionDays logRetention,
LogRetentionRetryOptions logRetentionRetryOptions,
IRole logRetentionRole,
Number memorySize,
Boolean profiling,
IProfilingGroup profilingGroup,
Number reservedConcurrentExecutions,
IRole role,
List<? extends ISecurityGroup> securityGroups,
Duration timeout,
Tracing tracing,
IVpc vpc,
SubnetSelection vpcSubnets,
Duration maxEventAge,
IDestination onFailure,
IDestination onSuccess,
Number retryAttempts)
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()
(experimental) Whether to allow the Lambda to send all network traffic.
|
Boolean |
getAllowPublicSubnet()
(experimental) Lambda Functions in a public subnet can NOT access the internet.
|
ICodeSigningConfig |
getCodeSigningConfig()
(experimental) Code signing config associated with this function.
|
VersionOptions |
getCurrentVersionOptions()
(experimental) Options for the `lambda.Version` resource automatically created by the `fn.currentVersion` method.
|
IQueue |
getDeadLetterQueue()
(experimental) The SQS queue to use if DLQ is enabled.
|
Boolean |
getDeadLetterQueueEnabled()
(experimental) Enabled DLQ.
|
String |
getDescription()
(experimental) A description of the function.
|
Map<String,String> |
getEnvironment()
(experimental) Key-value pairs that Lambda caches and makes available for your Lambda functions.
|
IKey |
getEnvironmentEncryption()
(experimental) The AWS KMS key that's used to encrypt your function's environment variables.
|
List<IEventSource> |
getEvents()
(experimental) Event sources for this function.
|
FileSystem |
getFilesystem()
(experimental) The filesystem configuration for the lambda function.
|
String |
getFunctionName()
(experimental) A name for the function.
|
List<PolicyStatement> |
getInitialPolicy()
(experimental) Initial policy statements to add to the created Lambda Role.
|
List<ILayerVersion> |
getLayers()
(experimental) A list of layers to add to the function's execution environment.
|
RetentionDays |
getLogRetention()
(experimental) The number of days log events are kept in CloudWatch Logs.
|
LogRetentionRetryOptions |
getLogRetentionRetryOptions()
(experimental) When log retention is specified, a custom resource attempts to create the CloudWatch log group.
|
IRole |
getLogRetentionRole()
(experimental) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
Duration |
getMaxEventAge()
(experimental) The maximum age of a request that Lambda sends to a function for processing.
|
Number |
getMemorySize()
(experimental) The amount of memory, in MB, that is allocated to your Lambda function.
|
IDestination |
getOnFailure()
(experimental) The destination for failed invocations.
|
IDestination |
getOnSuccess()
(experimental) The destination for successful invocations.
|
Boolean |
getProfiling()
(experimental) Enable profiling.
|
IProfilingGroup |
getProfilingGroup()
(experimental) Profiling Group.
|
Number |
getReservedConcurrentExecutions()
(experimental) The maximum of concurrent executions you want to reserve for the function.
|
Number |
getRetryAttempts()
(experimental) The maximum number of times to retry when the function returns an error.
|
IRole |
getRole()
(experimental) Lambda execution role.
|
List<ISecurityGroup> |
getSecurityGroups()
(experimental) The list of security groups to associate with the Lambda's network interfaces.
|
Duration |
getTimeout()
(experimental) The function execution time (in seconds) after which Lambda terminates the function.
|
Tracing |
getTracing()
(experimental) Enable AWS X-Ray Tracing for Lambda Function.
|
IVpc |
getVpc()
(experimental) VPC network to place Lambda network interfaces.
|
SubnetSelection |
getVpcSubnets()
(experimental) 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(Boolean allowAllOutbound, Boolean allowPublicSubnet, ICodeSigningConfig codeSigningConfig, VersionOptions currentVersionOptions, IQueue deadLetterQueue, Boolean deadLetterQueueEnabled, String description, Map<String,String> environment, IKey environmentEncryption, List<? extends IEventSource> events, FileSystem filesystem, String functionName, List<? extends PolicyStatement> initialPolicy, List<? extends ILayerVersion> layers, RetentionDays logRetention, LogRetentionRetryOptions logRetentionRetryOptions, IRole logRetentionRole, Number memorySize, Boolean profiling, IProfilingGroup profilingGroup, Number reservedConcurrentExecutions, IRole role, List<? extends ISecurityGroup> securityGroups, Duration timeout, Tracing tracing, IVpc vpc, SubnetSelection vpcSubnets, Duration maxEventAge, IDestination onFailure, IDestination onSuccess, Number retryAttempts)
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
getAllowPublicSubnet in interface FunctionOptionshttps://stackoverflow.com/questions/52992085/why-cant-an-aws-lambda-function-inside-a-public-subnet-in-a-vpc-connect-to-the/52994841#52994841public 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()
FunctionOptionsDefault: - 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 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 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 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 FunctionOptionshttps://docs.aws.amazon.com/codeguru/latest/profiler-ug/setting-up-lambda.htmlpublic final IProfilingGroup getProfilingGroup()
FunctionOptionsDefault: - A new profiling group will be created if `profiling` is set.
getProfilingGroup in interface FunctionOptionshttps://docs.aws.amazon.com/codeguru/latest/profiler-ug/setting-up-lambda.htmlpublic final Number getReservedConcurrentExecutions()
FunctionOptionsDefault: - No specific limit - account limit.
getReservedConcurrentExecutions in interface FunctionOptionshttps://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.htmlpublic 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()
FunctionOptionsSpecify this if the Lambda function needs to access resources in a VPC.
Default: - Function is not placed within a VPC.
getVpc in interface FunctionOptionspublic final SubnetSelection getVpcSubnets()
FunctionOptionsOnly used if 'vpc' is supplied. Note: internet access for Lambdas requires a NAT gateway, so picking Public subnets is not allowed.
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 © 2021. All rights reserved.