Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
You set the package type to Image
if the deployment package is a
container image.
For a container image, the code property must include the URI of a
container image in the Amazon ECR registry. You do not need to specify
the handler and runtime properties.
You set the package type to Zip
if the deployment package is a
.zip file archive.
For a .zip file archive, the code property specifies the location of the
.zip file. You must also specify the handler and runtime properties. The
code in the deployment package must be compatible with the target
instruction set architecture of the function (x86-64
or arm64
). If
you do not specify the architecture, the default value is x86-64
.
When you create a function, Lambda provisions an instance of the
function and its supporting resources. If your function connects to a
VPC, this process can take a minute or so. During this time, you can't
invoke or modify the function. The State
, StateReason
, and
StateReasonCode
fields in the response from GetFunctionConfiguration
indicate when the function is ready to invoke. For more information, see
Function States.
A function has an unpublished version, and can have published versions
and aliases. The unpublished version changes when you update your
function's code and configuration. A published version is a snapshot of
your function code and configuration that can't be changed. An alias is
a named resource that maps to a version, and can be changed to map to a
different version. Use the Publish
parameter to create version 1
of
your function from its initial configuration.
The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.
If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
Synopsis
- data CreateFunction = CreateFunction' {
- memorySize :: Maybe Natural
- runtime :: Maybe Runtime
- kmsKeyArn :: Maybe Text
- packageType :: Maybe PackageType
- fileSystemConfigs :: Maybe [FileSystemConfig]
- environment :: Maybe Environment
- imageConfig :: Maybe ImageConfig
- deadLetterConfig :: Maybe DeadLetterConfig
- architectures :: Maybe (NonEmpty Architecture)
- codeSigningConfigArn :: Maybe Text
- vpcConfig :: Maybe VpcConfig
- layers :: Maybe [Text]
- handler :: Maybe Text
- timeout :: Maybe Natural
- tracingConfig :: Maybe TracingConfig
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- publish :: Maybe Bool
- functionName :: Text
- role' :: Text
- code :: FunctionCode
- newCreateFunction :: Text -> Text -> FunctionCode -> CreateFunction
- createFunction_memorySize :: Lens' CreateFunction (Maybe Natural)
- createFunction_runtime :: Lens' CreateFunction (Maybe Runtime)
- createFunction_kmsKeyArn :: Lens' CreateFunction (Maybe Text)
- createFunction_packageType :: Lens' CreateFunction (Maybe PackageType)
- createFunction_fileSystemConfigs :: Lens' CreateFunction (Maybe [FileSystemConfig])
- createFunction_environment :: Lens' CreateFunction (Maybe Environment)
- createFunction_imageConfig :: Lens' CreateFunction (Maybe ImageConfig)
- createFunction_deadLetterConfig :: Lens' CreateFunction (Maybe DeadLetterConfig)
- createFunction_architectures :: Lens' CreateFunction (Maybe (NonEmpty Architecture))
- createFunction_codeSigningConfigArn :: Lens' CreateFunction (Maybe Text)
- createFunction_vpcConfig :: Lens' CreateFunction (Maybe VpcConfig)
- createFunction_layers :: Lens' CreateFunction (Maybe [Text])
- createFunction_handler :: Lens' CreateFunction (Maybe Text)
- createFunction_timeout :: Lens' CreateFunction (Maybe Natural)
- createFunction_tracingConfig :: Lens' CreateFunction (Maybe TracingConfig)
- createFunction_description :: Lens' CreateFunction (Maybe Text)
- createFunction_tags :: Lens' CreateFunction (Maybe (HashMap Text Text))
- createFunction_publish :: Lens' CreateFunction (Maybe Bool)
- createFunction_functionName :: Lens' CreateFunction Text
- createFunction_role :: Lens' CreateFunction Text
- createFunction_code :: Lens' CreateFunction FunctionCode
- data FunctionConfiguration = FunctionConfiguration' {
- memorySize :: Maybe Natural
- runtime :: Maybe Runtime
- state :: Maybe State
- signingProfileVersionArn :: Maybe Text
- lastUpdateStatus :: Maybe LastUpdateStatus
- functionArn :: Maybe Text
- kmsKeyArn :: Maybe Text
- packageType :: Maybe PackageType
- fileSystemConfigs :: Maybe [FileSystemConfig]
- environment :: Maybe EnvironmentResponse
- deadLetterConfig :: Maybe DeadLetterConfig
- architectures :: Maybe (NonEmpty Architecture)
- signingJobArn :: Maybe Text
- role' :: Maybe Text
- vpcConfig :: Maybe VpcConfigResponse
- version :: Maybe Text
- functionName :: Maybe Text
- layers :: Maybe [Layer]
- codeSize :: Maybe Integer
- handler :: Maybe Text
- timeout :: Maybe Natural
- lastUpdateStatusReason :: Maybe Text
- stateReason :: Maybe Text
- lastModified :: Maybe Text
- codeSha256 :: Maybe Text
- tracingConfig :: Maybe TracingConfigResponse
- stateReasonCode :: Maybe StateReasonCode
- imageConfigResponse :: Maybe ImageConfigResponse
- description :: Maybe Text
- lastUpdateStatusReasonCode :: Maybe LastUpdateStatusReasonCode
- revisionId :: Maybe Text
- masterArn :: Maybe Text
- newFunctionConfiguration :: FunctionConfiguration
- functionConfiguration_memorySize :: Lens' FunctionConfiguration (Maybe Natural)
- functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe Runtime)
- functionConfiguration_state :: Lens' FunctionConfiguration (Maybe State)
- functionConfiguration_signingProfileVersionArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_lastUpdateStatus :: Lens' FunctionConfiguration (Maybe LastUpdateStatus)
- functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_kmsKeyArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_packageType :: Lens' FunctionConfiguration (Maybe PackageType)
- functionConfiguration_fileSystemConfigs :: Lens' FunctionConfiguration (Maybe [FileSystemConfig])
- functionConfiguration_environment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
- functionConfiguration_deadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
- functionConfiguration_architectures :: Lens' FunctionConfiguration (Maybe (NonEmpty Architecture))
- functionConfiguration_signingJobArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_role :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_vpcConfig :: Lens' FunctionConfiguration (Maybe VpcConfigResponse)
- functionConfiguration_version :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_functionName :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_layers :: Lens' FunctionConfiguration (Maybe [Layer])
- functionConfiguration_codeSize :: Lens' FunctionConfiguration (Maybe Integer)
- functionConfiguration_handler :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_timeout :: Lens' FunctionConfiguration (Maybe Natural)
- functionConfiguration_lastUpdateStatusReason :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_stateReason :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_lastModified :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_codeSha256 :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_tracingConfig :: Lens' FunctionConfiguration (Maybe TracingConfigResponse)
- functionConfiguration_stateReasonCode :: Lens' FunctionConfiguration (Maybe StateReasonCode)
- functionConfiguration_imageConfigResponse :: Lens' FunctionConfiguration (Maybe ImageConfigResponse)
- functionConfiguration_description :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_lastUpdateStatusReasonCode :: Lens' FunctionConfiguration (Maybe LastUpdateStatusReasonCode)
- functionConfiguration_revisionId :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_masterArn :: Lens' FunctionConfiguration (Maybe Text)
Creating a Request
data CreateFunction Source #
See: newCreateFunction
smart constructor.
CreateFunction' | |
|
Instances
:: Text | |
-> Text | |
-> FunctionCode | |
-> CreateFunction |
Create a value of CreateFunction
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:memorySize:CreateFunction'
, createFunction_memorySize
- The amount of
memory available to the function
at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple
of 1 MB.
$sel:runtime:CreateFunction'
, createFunction_runtime
- The identifier of the function's
runtime.
$sel:kmsKeyArn:CreateFunction'
, createFunction_kmsKeyArn
- The ARN of the Amazon Web Services Key Management Service (KMS) key
that's used to encrypt your function's environment variables. If it's
not provided, Lambda uses a default service key.
$sel:packageType:CreateFunction'
, createFunction_packageType
- The type of deployment package. Set to Image
for container image and
set Zip
for ZIP archive.
$sel:fileSystemConfigs:CreateFunction'
, createFunction_fileSystemConfigs
- Connection settings for an Amazon EFS file system.
$sel:environment:CreateFunction'
, createFunction_environment
- Environment variables that are accessible from function code during
execution.
$sel:imageConfig:CreateFunction'
, createFunction_imageConfig
- Container image
configuration values
that override the values in the container image Dockerfile.
$sel:deadLetterConfig:CreateFunction'
, createFunction_deadLetterConfig
- A dead letter queue configuration that specifies the queue or topic
where Lambda sends asynchronous events when they fail processing. For
more information, see
Dead Letter Queues.
$sel:architectures:CreateFunction'
, createFunction_architectures
- The instruction set architecture that the function supports. Enter a
string array with one of the valid values. The default value is
x86_64
.
$sel:codeSigningConfigArn:CreateFunction'
, createFunction_codeSigningConfigArn
- To enable code signing for this function, specify the ARN of a
code-signing configuration. A code-signing configuration includes a set
of signing profiles, which define the trusted publishers for this
function.
$sel:vpcConfig:CreateFunction'
, createFunction_vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC,
specify a list of security groups and subnets in the VPC. When you
connect a function to a VPC, it can only access resources and the
internet through that VPC. For more information, see
VPC Settings.
$sel:layers:CreateFunction'
, createFunction_layers
- A list of
function layers
to add to the function's execution environment. Specify each layer by
its ARN, including the version.
$sel:handler:CreateFunction'
, createFunction_handler
- The 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
Programming Model.
$sel:timeout:CreateFunction'
, createFunction_timeout
- The amount of time that Lambda allows a function to run before stopping
it. The default is 3 seconds. The maximum allowed value is 900 seconds.
For additional information, see
Lambda execution environment.
$sel:tracingConfig:CreateFunction'
, createFunction_tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests
with
X-Ray.
$sel:description:CreateFunction'
, createFunction_description
- A description of the function.
$sel:tags:CreateFunction'
, createFunction_tags
- A list of
tags to
apply to the function.
$sel:publish:CreateFunction'
, createFunction_publish
- Set to true to publish the first version of the function during
creation.
$sel:functionName:CreateFunction'
, createFunction_functionName
- The name of the Lambda function.
Name formats
- Function name -
my-function
. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN -
123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
$sel:role':CreateFunction'
, createFunction_role
- The Amazon Resource Name (ARN) of the function's execution role.
$sel:code:CreateFunction'
, createFunction_code
- The code for the function.
Request Lenses
createFunction_memorySize :: Lens' CreateFunction (Maybe Natural) Source #
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
createFunction_runtime :: Lens' CreateFunction (Maybe Runtime) Source #
The identifier of the function's runtime.
createFunction_kmsKeyArn :: Lens' CreateFunction (Maybe Text) Source #
The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
createFunction_packageType :: Lens' CreateFunction (Maybe PackageType) Source #
The type of deployment package. Set to Image
for container image and
set Zip
for ZIP archive.
createFunction_fileSystemConfigs :: Lens' CreateFunction (Maybe [FileSystemConfig]) Source #
Connection settings for an Amazon EFS file system.
createFunction_environment :: Lens' CreateFunction (Maybe Environment) Source #
Environment variables that are accessible from function code during execution.
createFunction_imageConfig :: Lens' CreateFunction (Maybe ImageConfig) Source #
Container image configuration values that override the values in the container image Dockerfile.
createFunction_deadLetterConfig :: Lens' CreateFunction (Maybe DeadLetterConfig) Source #
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
createFunction_architectures :: Lens' CreateFunction (Maybe (NonEmpty Architecture)) Source #
The instruction set architecture that the function supports. Enter a
string array with one of the valid values. The default value is
x86_64
.
createFunction_codeSigningConfigArn :: Lens' CreateFunction (Maybe Text) Source #
To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
createFunction_vpcConfig :: Lens' CreateFunction (Maybe VpcConfig) Source #
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
createFunction_layers :: Lens' CreateFunction (Maybe [Text]) Source #
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
createFunction_handler :: Lens' CreateFunction (Maybe Text) Source #
The 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 Programming Model.
createFunction_timeout :: Lens' CreateFunction (Maybe Natural) Source #
The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
createFunction_tracingConfig :: Lens' CreateFunction (Maybe TracingConfig) Source #
Set Mode
to Active
to sample and trace a subset of incoming requests
with
X-Ray.
createFunction_description :: Lens' CreateFunction (Maybe Text) Source #
A description of the function.
createFunction_tags :: Lens' CreateFunction (Maybe (HashMap Text Text)) Source #
A list of tags to apply to the function.
createFunction_publish :: Lens' CreateFunction (Maybe Bool) Source #
Set to true to publish the first version of the function during creation.
createFunction_functionName :: Lens' CreateFunction Text Source #
The name of the Lambda function.
Name formats
- Function name -
my-function
. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN -
123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
createFunction_role :: Lens' CreateFunction Text Source #
The Amazon Resource Name (ARN) of the function's execution role.
createFunction_code :: Lens' CreateFunction FunctionCode Source #
The code for the function.
Destructuring the Response
data FunctionConfiguration Source #
Details about a function's configuration.
See: newFunctionConfiguration
smart constructor.
FunctionConfiguration' | |
|
Instances
newFunctionConfiguration :: FunctionConfiguration Source #
Create a value of FunctionConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:memorySize:FunctionConfiguration'
, functionConfiguration_memorySize
- The amount of memory available to the function at runtime.
$sel:runtime:FunctionConfiguration'
, functionConfiguration_runtime
- The runtime environment for the Lambda function.
$sel:state:FunctionConfiguration'
, functionConfiguration_state
- The current state of the function. When the state is Inactive
, you can
reactivate the function by invoking it.
$sel:signingProfileVersionArn:FunctionConfiguration'
, functionConfiguration_signingProfileVersionArn
- The ARN of the signing profile version.
$sel:lastUpdateStatus:FunctionConfiguration'
, functionConfiguration_lastUpdateStatus
- The status of the last update that was performed on the function. This
is first set to Successful
after function creation completes.
$sel:functionArn:FunctionConfiguration'
, functionConfiguration_functionArn
- The function's Amazon Resource Name (ARN).
$sel:kmsKeyArn:FunctionConfiguration'
, functionConfiguration_kmsKeyArn
- The KMS key that's used to encrypt the function's environment
variables. This key is only returned if you've configured a customer
managed CMK.
$sel:packageType:FunctionConfiguration'
, functionConfiguration_packageType
- The type of deployment package. Set to Image
for container image and
set Zip
for .zip file archive.
$sel:fileSystemConfigs:FunctionConfiguration'
, functionConfiguration_fileSystemConfigs
- Connection settings for an
Amazon EFS file system.
$sel:environment:FunctionConfiguration'
, functionConfiguration_environment
- The function's
environment variables.
$sel:deadLetterConfig:FunctionConfiguration'
, functionConfiguration_deadLetterConfig
- The function's dead letter queue.
$sel:architectures:FunctionConfiguration'
, functionConfiguration_architectures
- The instruction set architecture that the function supports.
Architecture is a string array with one of the valid values. The default
architecture value is x86_64
.
$sel:signingJobArn:FunctionConfiguration'
, functionConfiguration_signingJobArn
- The ARN of the signing job.
$sel:role':FunctionConfiguration'
, functionConfiguration_role
- The function's execution role.
$sel:vpcConfig:FunctionConfiguration'
, functionConfiguration_vpcConfig
- The function's networking configuration.
$sel:version:FunctionConfiguration'
, functionConfiguration_version
- The version of the Lambda function.
$sel:functionName:FunctionConfiguration'
, functionConfiguration_functionName
- The name of the function.
$sel:layers:FunctionConfiguration'
, functionConfiguration_layers
- The function's
layers.
$sel:codeSize:FunctionConfiguration'
, functionConfiguration_codeSize
- The size of the function's deployment package, in bytes.
$sel:handler:FunctionConfiguration'
, functionConfiguration_handler
- The function that Lambda calls to begin executing your function.
$sel:timeout:FunctionConfiguration'
, functionConfiguration_timeout
- The amount of time in seconds that Lambda allows a function to run
before stopping it.
$sel:lastUpdateStatusReason:FunctionConfiguration'
, functionConfiguration_lastUpdateStatusReason
- The reason for the last update that was performed on the function.
$sel:stateReason:FunctionConfiguration'
, functionConfiguration_stateReason
- The reason for the function's current state.
$sel:lastModified:FunctionConfiguration'
, functionConfiguration_lastModified
- The date and time that the function was last updated, in
ISO-8601 format
(YYYY-MM-DDThh:mm:ss.sTZD).
$sel:codeSha256:FunctionConfiguration'
, functionConfiguration_codeSha256
- The SHA256 hash of the function's deployment package.
$sel:tracingConfig:FunctionConfiguration'
, functionConfiguration_tracingConfig
- The function's X-Ray tracing configuration.
$sel:stateReasonCode:FunctionConfiguration'
, functionConfiguration_stateReasonCode
- The reason code for the function's current state. When the code is
Creating
, you can't invoke or modify the function.
$sel:imageConfigResponse:FunctionConfiguration'
, functionConfiguration_imageConfigResponse
- The function's image configuration values.
$sel:description:FunctionConfiguration'
, functionConfiguration_description
- The function's description.
$sel:lastUpdateStatusReasonCode:FunctionConfiguration'
, functionConfiguration_lastUpdateStatusReasonCode
- The reason code for the last update that was performed on the function.
$sel:revisionId:FunctionConfiguration'
, functionConfiguration_revisionId
- The latest updated revision of the function or alias.
$sel:masterArn:FunctionConfiguration'
, functionConfiguration_masterArn
- For Lambda@Edge functions, the ARN of the master function.
Response Lenses
functionConfiguration_memorySize :: Lens' FunctionConfiguration (Maybe Natural) Source #
The amount of memory available to the function at runtime.
functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe Runtime) Source #
The runtime environment for the Lambda function.
functionConfiguration_state :: Lens' FunctionConfiguration (Maybe State) Source #
The current state of the function. When the state is Inactive
, you can
reactivate the function by invoking it.
functionConfiguration_signingProfileVersionArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The ARN of the signing profile version.
functionConfiguration_lastUpdateStatus :: Lens' FunctionConfiguration (Maybe LastUpdateStatus) Source #
The status of the last update that was performed on the function. This
is first set to Successful
after function creation completes.
functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The function's Amazon Resource Name (ARN).
functionConfiguration_kmsKeyArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed CMK.
functionConfiguration_packageType :: Lens' FunctionConfiguration (Maybe PackageType) Source #
The type of deployment package. Set to Image
for container image and
set Zip
for .zip file archive.
functionConfiguration_fileSystemConfigs :: Lens' FunctionConfiguration (Maybe [FileSystemConfig]) Source #
Connection settings for an Amazon EFS file system.
functionConfiguration_environment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse) Source #
The function's environment variables.
functionConfiguration_deadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig) Source #
The function's dead letter queue.
functionConfiguration_architectures :: Lens' FunctionConfiguration (Maybe (NonEmpty Architecture)) Source #
The instruction set architecture that the function supports.
Architecture is a string array with one of the valid values. The default
architecture value is x86_64
.
functionConfiguration_signingJobArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The ARN of the signing job.
functionConfiguration_role :: Lens' FunctionConfiguration (Maybe Text) Source #
The function's execution role.
functionConfiguration_vpcConfig :: Lens' FunctionConfiguration (Maybe VpcConfigResponse) Source #
The function's networking configuration.
functionConfiguration_version :: Lens' FunctionConfiguration (Maybe Text) Source #
The version of the Lambda function.
functionConfiguration_functionName :: Lens' FunctionConfiguration (Maybe Text) Source #
The name of the function.
functionConfiguration_layers :: Lens' FunctionConfiguration (Maybe [Layer]) Source #
The function's layers.
functionConfiguration_codeSize :: Lens' FunctionConfiguration (Maybe Integer) Source #
The size of the function's deployment package, in bytes.
functionConfiguration_handler :: Lens' FunctionConfiguration (Maybe Text) Source #
The function that Lambda calls to begin executing your function.
functionConfiguration_timeout :: Lens' FunctionConfiguration (Maybe Natural) Source #
The amount of time in seconds that Lambda allows a function to run before stopping it.
functionConfiguration_lastUpdateStatusReason :: Lens' FunctionConfiguration (Maybe Text) Source #
The reason for the last update that was performed on the function.
functionConfiguration_stateReason :: Lens' FunctionConfiguration (Maybe Text) Source #
The reason for the function's current state.
functionConfiguration_lastModified :: Lens' FunctionConfiguration (Maybe Text) Source #
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
functionConfiguration_codeSha256 :: Lens' FunctionConfiguration (Maybe Text) Source #
The SHA256 hash of the function's deployment package.
functionConfiguration_tracingConfig :: Lens' FunctionConfiguration (Maybe TracingConfigResponse) Source #
The function's X-Ray tracing configuration.
functionConfiguration_stateReasonCode :: Lens' FunctionConfiguration (Maybe StateReasonCode) Source #
The reason code for the function's current state. When the code is
Creating
, you can't invoke or modify the function.
functionConfiguration_imageConfigResponse :: Lens' FunctionConfiguration (Maybe ImageConfigResponse) Source #
The function's image configuration values.
functionConfiguration_description :: Lens' FunctionConfiguration (Maybe Text) Source #
The function's description.
functionConfiguration_lastUpdateStatusReasonCode :: Lens' FunctionConfiguration (Maybe LastUpdateStatusReasonCode) Source #
The reason code for the last update that was performed on the function.
functionConfiguration_revisionId :: Lens' FunctionConfiguration (Maybe Text) Source #
The latest updated revision of the function or alias.
functionConfiguration_masterArn :: Lens' FunctionConfiguration (Maybe Text) Source #
For Lambda@Edge functions, the ARN of the master function.