Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.Lambda.UpdateFunctionConfiguration
Description
Modify the version-specific settings of a Lambda function.
When you update 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. During this time, you can't modify
the function, but you can still invoke it. The LastUpdateStatus
,
LastUpdateStatusReason
, and LastUpdateStatusReasonCode
fields in the
response from GetFunctionConfiguration indicate when the update is
complete and the function is processing events with the new
configuration. For more information, see
Lambda function states.
These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an Amazon Web Services account or Amazon Web Service, use AddPermission.
Synopsis
- data UpdateFunctionConfiguration = UpdateFunctionConfiguration' {
- deadLetterConfig :: Maybe DeadLetterConfig
- description :: Maybe Text
- environment :: Maybe Environment
- ephemeralStorage :: Maybe EphemeralStorage
- fileSystemConfigs :: Maybe [FileSystemConfig]
- handler :: Maybe Text
- imageConfig :: Maybe ImageConfig
- kmsKeyArn :: Maybe Text
- layers :: Maybe [Text]
- memorySize :: Maybe Natural
- revisionId :: Maybe Text
- role' :: Maybe Text
- runtime :: Maybe Runtime
- snapStart :: Maybe SnapStart
- timeout :: Maybe Natural
- tracingConfig :: Maybe TracingConfig
- vpcConfig :: Maybe VpcConfig
- functionName :: Text
- newUpdateFunctionConfiguration :: Text -> UpdateFunctionConfiguration
- updateFunctionConfiguration_deadLetterConfig :: Lens' UpdateFunctionConfiguration (Maybe DeadLetterConfig)
- updateFunctionConfiguration_description :: Lens' UpdateFunctionConfiguration (Maybe Text)
- updateFunctionConfiguration_environment :: Lens' UpdateFunctionConfiguration (Maybe Environment)
- updateFunctionConfiguration_ephemeralStorage :: Lens' UpdateFunctionConfiguration (Maybe EphemeralStorage)
- updateFunctionConfiguration_fileSystemConfigs :: Lens' UpdateFunctionConfiguration (Maybe [FileSystemConfig])
- updateFunctionConfiguration_handler :: Lens' UpdateFunctionConfiguration (Maybe Text)
- updateFunctionConfiguration_imageConfig :: Lens' UpdateFunctionConfiguration (Maybe ImageConfig)
- updateFunctionConfiguration_kmsKeyArn :: Lens' UpdateFunctionConfiguration (Maybe Text)
- updateFunctionConfiguration_layers :: Lens' UpdateFunctionConfiguration (Maybe [Text])
- updateFunctionConfiguration_memorySize :: Lens' UpdateFunctionConfiguration (Maybe Natural)
- updateFunctionConfiguration_revisionId :: Lens' UpdateFunctionConfiguration (Maybe Text)
- updateFunctionConfiguration_role :: Lens' UpdateFunctionConfiguration (Maybe Text)
- updateFunctionConfiguration_runtime :: Lens' UpdateFunctionConfiguration (Maybe Runtime)
- updateFunctionConfiguration_snapStart :: Lens' UpdateFunctionConfiguration (Maybe SnapStart)
- updateFunctionConfiguration_timeout :: Lens' UpdateFunctionConfiguration (Maybe Natural)
- updateFunctionConfiguration_tracingConfig :: Lens' UpdateFunctionConfiguration (Maybe TracingConfig)
- updateFunctionConfiguration_vpcConfig :: Lens' UpdateFunctionConfiguration (Maybe VpcConfig)
- updateFunctionConfiguration_functionName :: Lens' UpdateFunctionConfiguration Text
- data FunctionConfiguration = FunctionConfiguration' {
- architectures :: Maybe (NonEmpty Architecture)
- codeSha256 :: Maybe Text
- codeSize :: Maybe Integer
- deadLetterConfig :: Maybe DeadLetterConfig
- description :: Maybe Text
- environment :: Maybe EnvironmentResponse
- ephemeralStorage :: Maybe EphemeralStorage
- fileSystemConfigs :: Maybe [FileSystemConfig]
- functionArn :: Maybe Text
- functionName :: Maybe Text
- handler :: Maybe Text
- imageConfigResponse :: Maybe ImageConfigResponse
- kmsKeyArn :: Maybe Text
- lastModified :: Maybe Text
- lastUpdateStatus :: Maybe LastUpdateStatus
- lastUpdateStatusReason :: Maybe Text
- lastUpdateStatusReasonCode :: Maybe LastUpdateStatusReasonCode
- layers :: Maybe [Layer]
- masterArn :: Maybe Text
- memorySize :: Maybe Natural
- packageType :: Maybe PackageType
- revisionId :: Maybe Text
- role' :: Maybe Text
- runtime :: Maybe Runtime
- signingJobArn :: Maybe Text
- signingProfileVersionArn :: Maybe Text
- snapStart :: Maybe SnapStartResponse
- state :: Maybe State
- stateReason :: Maybe Text
- stateReasonCode :: Maybe StateReasonCode
- timeout :: Maybe Natural
- tracingConfig :: Maybe TracingConfigResponse
- version :: Maybe Text
- vpcConfig :: Maybe VpcConfigResponse
- newFunctionConfiguration :: FunctionConfiguration
- functionConfiguration_architectures :: Lens' FunctionConfiguration (Maybe (NonEmpty Architecture))
- functionConfiguration_codeSha256 :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_codeSize :: Lens' FunctionConfiguration (Maybe Integer)
- functionConfiguration_deadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
- functionConfiguration_description :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_environment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
- functionConfiguration_ephemeralStorage :: Lens' FunctionConfiguration (Maybe EphemeralStorage)
- functionConfiguration_fileSystemConfigs :: Lens' FunctionConfiguration (Maybe [FileSystemConfig])
- functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_functionName :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_handler :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_imageConfigResponse :: Lens' FunctionConfiguration (Maybe ImageConfigResponse)
- functionConfiguration_kmsKeyArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_lastModified :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_lastUpdateStatus :: Lens' FunctionConfiguration (Maybe LastUpdateStatus)
- functionConfiguration_lastUpdateStatusReason :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_lastUpdateStatusReasonCode :: Lens' FunctionConfiguration (Maybe LastUpdateStatusReasonCode)
- functionConfiguration_layers :: Lens' FunctionConfiguration (Maybe [Layer])
- functionConfiguration_masterArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_memorySize :: Lens' FunctionConfiguration (Maybe Natural)
- functionConfiguration_packageType :: Lens' FunctionConfiguration (Maybe PackageType)
- functionConfiguration_revisionId :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_role :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe Runtime)
- functionConfiguration_signingJobArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_signingProfileVersionArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_snapStart :: Lens' FunctionConfiguration (Maybe SnapStartResponse)
- functionConfiguration_state :: Lens' FunctionConfiguration (Maybe State)
- functionConfiguration_stateReason :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_stateReasonCode :: Lens' FunctionConfiguration (Maybe StateReasonCode)
- functionConfiguration_timeout :: Lens' FunctionConfiguration (Maybe Natural)
- functionConfiguration_tracingConfig :: Lens' FunctionConfiguration (Maybe TracingConfigResponse)
- functionConfiguration_version :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_vpcConfig :: Lens' FunctionConfiguration (Maybe VpcConfigResponse)
Creating a Request
data UpdateFunctionConfiguration Source #
See: newUpdateFunctionConfiguration
smart constructor.
Constructors
UpdateFunctionConfiguration' | |
Fields
|
Instances
newUpdateFunctionConfiguration Source #
Arguments
:: Text | |
-> UpdateFunctionConfiguration |
Create a value of UpdateFunctionConfiguration
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:
UpdateFunctionConfiguration
, updateFunctionConfiguration_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.
UpdateFunctionConfiguration
, updateFunctionConfiguration_description
- A description of the function.
UpdateFunctionConfiguration
, updateFunctionConfiguration_environment
- Environment variables that are accessible from function code during
execution.
UpdateFunctionConfiguration
, updateFunctionConfiguration_ephemeralStorage
- The size of the function's /tmp
directory in MB. The default value
is 512, but can be any whole number between 512 and 10,240 MB.
UpdateFunctionConfiguration
, updateFunctionConfiguration_fileSystemConfigs
- Connection settings for an Amazon EFS file system.
UpdateFunctionConfiguration
, updateFunctionConfiguration_handler
- The name of the method within your code that Lambda calls to run your
function. Handler is required if the deployment package is a .zip file
archive. The format includes the file name. It can also include
namespaces and other qualifiers, depending on the runtime. For more
information, see
Lambda programming model.
UpdateFunctionConfiguration
, updateFunctionConfiguration_imageConfig
- Container image configuration values
that override the values in the container image Docker file.
UpdateFunctionConfiguration
, updateFunctionConfiguration_kmsKeyArn
- The ARN of the 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.
UpdateFunctionConfiguration
, updateFunctionConfiguration_layers
- A list of
function layers
to add to the function's execution environment. Specify each layer by
its ARN, including the version.
UpdateFunctionConfiguration
, updateFunctionConfiguration_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.
UpdateFunctionConfiguration
, updateFunctionConfiguration_revisionId
- Update the function only if the revision ID matches the ID that's
specified. Use this option to avoid modifying a function that has
changed since you last read it.
UpdateFunctionConfiguration
, updateFunctionConfiguration_role
- The Amazon Resource Name (ARN) of the function's execution role.
UpdateFunctionConfiguration
, updateFunctionConfiguration_runtime
- The identifier of the function's
runtime.
Runtime is required if the deployment package is a .zip file archive.
UpdateFunctionConfiguration
, updateFunctionConfiguration_snapStart
- The function's
SnapStart
setting.
UpdateFunctionConfiguration
, updateFunctionConfiguration_timeout
- The amount of time (in seconds) that Lambda allows a function to run
before stopping it. The default is 3 seconds. The maximum allowed value
is 900 seconds. For more information, see
Lambda execution environment.
UpdateFunctionConfiguration
, updateFunctionConfiguration_tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests
with
X-Ray.
UpdateFunctionConfiguration
, updateFunctionConfiguration_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 access resources and the internet
only through that VPC. For more information, see
Configuring a Lambda function to access resources in a VPC.
UpdateFunctionConfiguration
, updateFunctionConfiguration_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.
Request Lenses
updateFunctionConfiguration_deadLetterConfig :: Lens' UpdateFunctionConfiguration (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.
updateFunctionConfiguration_description :: Lens' UpdateFunctionConfiguration (Maybe Text) Source #
A description of the function.
updateFunctionConfiguration_environment :: Lens' UpdateFunctionConfiguration (Maybe Environment) Source #
Environment variables that are accessible from function code during execution.
updateFunctionConfiguration_ephemeralStorage :: Lens' UpdateFunctionConfiguration (Maybe EphemeralStorage) Source #
The size of the function's /tmp
directory in MB. The default value
is 512, but can be any whole number between 512 and 10,240 MB.
updateFunctionConfiguration_fileSystemConfigs :: Lens' UpdateFunctionConfiguration (Maybe [FileSystemConfig]) Source #
Connection settings for an Amazon EFS file system.
updateFunctionConfiguration_handler :: Lens' UpdateFunctionConfiguration (Maybe Text) Source #
The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
updateFunctionConfiguration_imageConfig :: Lens' UpdateFunctionConfiguration (Maybe ImageConfig) Source #
Container image configuration values that override the values in the container image Docker file.
updateFunctionConfiguration_kmsKeyArn :: Lens' UpdateFunctionConfiguration (Maybe Text) Source #
The ARN of the 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.
updateFunctionConfiguration_layers :: Lens' UpdateFunctionConfiguration (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.
updateFunctionConfiguration_memorySize :: Lens' UpdateFunctionConfiguration (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.
updateFunctionConfiguration_revisionId :: Lens' UpdateFunctionConfiguration (Maybe Text) Source #
Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
updateFunctionConfiguration_role :: Lens' UpdateFunctionConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the function's execution role.
updateFunctionConfiguration_runtime :: Lens' UpdateFunctionConfiguration (Maybe Runtime) Source #
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
updateFunctionConfiguration_snapStart :: Lens' UpdateFunctionConfiguration (Maybe SnapStart) Source #
The function's SnapStart setting.
updateFunctionConfiguration_timeout :: Lens' UpdateFunctionConfiguration (Maybe Natural) Source #
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
updateFunctionConfiguration_tracingConfig :: Lens' UpdateFunctionConfiguration (Maybe TracingConfig) Source #
Set Mode
to Active
to sample and trace a subset of incoming requests
with
X-Ray.
updateFunctionConfiguration_vpcConfig :: Lens' UpdateFunctionConfiguration (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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
updateFunctionConfiguration_functionName :: Lens' UpdateFunctionConfiguration 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.
Destructuring the Response
data FunctionConfiguration Source #
Details about a function's configuration.
See: newFunctionConfiguration
smart constructor.
Constructors
FunctionConfiguration' | |
Fields
|
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: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:codeSha256:FunctionConfiguration'
, functionConfiguration_codeSha256
- The SHA256 hash of the function's deployment package.
FunctionConfiguration
, functionConfiguration_codeSize
- The size of the function's deployment package, in bytes.
$sel:deadLetterConfig:FunctionConfiguration'
, functionConfiguration_deadLetterConfig
- The function's dead letter queue.
$sel:description:FunctionConfiguration'
, functionConfiguration_description
- The function's description.
$sel:environment:FunctionConfiguration'
, functionConfiguration_environment
- The function's
environment variables.
Omitted from CloudTrail logs.
$sel:ephemeralStorage:FunctionConfiguration'
, functionConfiguration_ephemeralStorage
- The size of the function’s /tmp
directory in MB. The default value is
512, but it can be any whole number between 512 and 10,240 MB.
$sel:fileSystemConfigs:FunctionConfiguration'
, functionConfiguration_fileSystemConfigs
- Connection settings for an
Amazon EFS file system.
$sel:functionArn:FunctionConfiguration'
, functionConfiguration_functionArn
- The function's Amazon Resource Name (ARN).
$sel:functionName:FunctionConfiguration'
, functionConfiguration_functionName
- The name of the function.
$sel:handler:FunctionConfiguration'
, functionConfiguration_handler
- The function that Lambda calls to begin running your function.
$sel:imageConfigResponse:FunctionConfiguration'
, functionConfiguration_imageConfigResponse
- The function's image configuration values.
$sel:kmsKeyArn:FunctionConfiguration'
, functionConfiguration_kmsKeyArn
- The KMS key that's used to encrypt the function's environment
variables. This key is returned only if you've configured a customer
managed key.
$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: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:lastUpdateStatusReason:FunctionConfiguration'
, functionConfiguration_lastUpdateStatusReason
- The reason for the last update that was performed on the function.
$sel:lastUpdateStatusReasonCode:FunctionConfiguration'
, functionConfiguration_lastUpdateStatusReasonCode
- The reason code for the last update that was performed on the function.
$sel:layers:FunctionConfiguration'
, functionConfiguration_layers
- The function's
layers.
$sel:masterArn:FunctionConfiguration'
, functionConfiguration_masterArn
- For Lambda@Edge functions, the ARN of the main function.
$sel:memorySize:FunctionConfiguration'
, functionConfiguration_memorySize
- The amount of memory available to the function at runtime.
$sel:packageType:FunctionConfiguration'
, functionConfiguration_packageType
- The type of deployment package. Set to Image
for container image and
set Zip
for .zip file archive.
$sel:revisionId:FunctionConfiguration'
, functionConfiguration_revisionId
- The latest updated revision of the function or alias.
$sel:role':FunctionConfiguration'
, functionConfiguration_role
- The function's execution role.
$sel:runtime:FunctionConfiguration'
, functionConfiguration_runtime
- The runtime environment for the Lambda function.
FunctionConfiguration
, functionConfiguration_signingJobArn
- The ARN of the signing job.
FunctionConfiguration
, functionConfiguration_signingProfileVersionArn
- The ARN of the signing profile version.
$sel:snapStart:FunctionConfiguration'
, functionConfiguration_snapStart
- Set ApplyOn
to PublishedVersions
to create a snapshot of the
initialized execution environment when you publish a function version.
For more information, see
Reducing startup time with Lambda SnapStart.
$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:stateReason:FunctionConfiguration'
, functionConfiguration_stateReason
- The reason for the function's current state.
$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:timeout:FunctionConfiguration'
, functionConfiguration_timeout
- The amount of time in seconds that Lambda allows a function to run
before stopping it.
$sel:tracingConfig:FunctionConfiguration'
, functionConfiguration_tracingConfig
- The function's X-Ray tracing configuration.
$sel:version:FunctionConfiguration'
, functionConfiguration_version
- The version of the Lambda function.
$sel:vpcConfig:FunctionConfiguration'
, functionConfiguration_vpcConfig
- The function's networking configuration.
Response Lenses
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_codeSha256 :: Lens' FunctionConfiguration (Maybe Text) Source #
The SHA256 hash of the function's deployment package.
functionConfiguration_codeSize :: Lens' FunctionConfiguration (Maybe Integer) Source #
The size of the function's deployment package, in bytes.
functionConfiguration_deadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig) Source #
The function's dead letter queue.
functionConfiguration_description :: Lens' FunctionConfiguration (Maybe Text) Source #
The function's description.
functionConfiguration_environment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse) Source #
The function's environment variables. Omitted from CloudTrail logs.
functionConfiguration_ephemeralStorage :: Lens' FunctionConfiguration (Maybe EphemeralStorage) Source #
The size of the function’s /tmp
directory in MB. The default value is
512, but it can be any whole number between 512 and 10,240 MB.
functionConfiguration_fileSystemConfigs :: Lens' FunctionConfiguration (Maybe [FileSystemConfig]) Source #
Connection settings for an Amazon EFS file system.
functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The function's Amazon Resource Name (ARN).
functionConfiguration_functionName :: Lens' FunctionConfiguration (Maybe Text) Source #
The name of the function.
functionConfiguration_handler :: Lens' FunctionConfiguration (Maybe Text) Source #
The function that Lambda calls to begin running your function.
functionConfiguration_imageConfigResponse :: Lens' FunctionConfiguration (Maybe ImageConfigResponse) Source #
The function's image configuration values.
functionConfiguration_kmsKeyArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The KMS key that's used to encrypt the function's environment variables. This key is returned only if you've configured a customer managed key.
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_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_lastUpdateStatusReason :: Lens' FunctionConfiguration (Maybe Text) Source #
The reason for the last update that was performed on the function.
functionConfiguration_lastUpdateStatusReasonCode :: Lens' FunctionConfiguration (Maybe LastUpdateStatusReasonCode) Source #
The reason code for the last update that was performed on the function.
functionConfiguration_layers :: Lens' FunctionConfiguration (Maybe [Layer]) Source #
The function's layers.
functionConfiguration_masterArn :: Lens' FunctionConfiguration (Maybe Text) Source #
For Lambda@Edge functions, the ARN of the main function.
functionConfiguration_memorySize :: Lens' FunctionConfiguration (Maybe Natural) Source #
The amount of memory available to the function at runtime.
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_revisionId :: Lens' FunctionConfiguration (Maybe Text) Source #
The latest updated revision of the function or alias.
functionConfiguration_role :: Lens' FunctionConfiguration (Maybe Text) Source #
The function's execution role.
functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe Runtime) Source #
The runtime environment for the Lambda function.
functionConfiguration_signingJobArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The ARN of the signing job.
functionConfiguration_signingProfileVersionArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The ARN of the signing profile version.
functionConfiguration_snapStart :: Lens' FunctionConfiguration (Maybe SnapStartResponse) Source #
Set ApplyOn
to PublishedVersions
to create a snapshot of the
initialized execution environment when you publish a function version.
For more information, see
Reducing startup time with Lambda SnapStart.
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_stateReason :: Lens' FunctionConfiguration (Maybe Text) Source #
The reason for the function's current state.
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_timeout :: Lens' FunctionConfiguration (Maybe Natural) Source #
The amount of time in seconds that Lambda allows a function to run before stopping it.
functionConfiguration_tracingConfig :: Lens' FunctionConfiguration (Maybe TracingConfigResponse) Source #
The function's X-Ray tracing configuration.
functionConfiguration_version :: Lens' FunctionConfiguration (Maybe Text) Source #
The version of the Lambda function.
functionConfiguration_vpcConfig :: Lens' FunctionConfiguration (Maybe VpcConfigResponse) Source #
The function's networking configuration.