aws-sdk-lambda 1.87.0 → 1.89.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +360 -278
- data/lib/aws-sdk-lambda/client_api.rb +40 -0
- data/lib/aws-sdk-lambda/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-lambda/endpoint_provider.rb +72 -73
- data/lib/aws-sdk-lambda/errors.rb +63 -0
- data/lib/aws-sdk-lambda/types.rb +491 -1243
- data/lib/aws-sdk-lambda/waiters.rb +59 -7
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +2 -2
@@ -441,27 +441,28 @@ module Aws::Lambda
|
|
441
441
|
req.send_request(options)
|
442
442
|
end
|
443
443
|
|
444
|
-
# Grants an Amazon Web Services
|
445
|
-
# permission to use a function. You can apply
|
446
|
-
# level, or specify a qualifier to restrict
|
447
|
-
# or alias. If you use a qualifier, the
|
448
|
-
# Resource Name (ARN) of that version
|
449
|
-
# Note: Lambda does not support adding
|
444
|
+
# Grants an Amazon Web Service, Amazon Web Services account, or Amazon
|
445
|
+
# Web Services organization permission to use a function. You can apply
|
446
|
+
# the policy at the function level, or specify a qualifier to restrict
|
447
|
+
# access to a single version or alias. If you use a qualifier, the
|
448
|
+
# invoker must use the full Amazon Resource Name (ARN) of that version
|
449
|
+
# or alias to invoke the function. Note: Lambda does not support adding
|
450
|
+
# policies to version $LATEST.
|
450
451
|
#
|
451
452
|
# To grant permission to another account, specify the account ID as the
|
452
453
|
# `Principal`. To grant permission to an organization defined in
|
453
454
|
# Organizations, specify the organization ID as the `PrincipalOrgID`.
|
454
|
-
# For Amazon Web Services
|
455
|
-
#
|
456
|
-
# `sns.amazonaws.com`. For Amazon Web Services
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
# This
|
455
|
+
# For Amazon Web Services, the principal is a domain-style identifier
|
456
|
+
# that the service defines, such as `s3.amazonaws.com` or
|
457
|
+
# `sns.amazonaws.com`. For Amazon Web Services, you can also specify the
|
458
|
+
# ARN of the associated resource as the `SourceArn`. If you grant
|
459
|
+
# permission to a service principal without specifying the source, other
|
460
|
+
# accounts could potentially configure resources in their account to
|
461
|
+
# invoke your Lambda function.
|
462
|
+
#
|
463
|
+
# This operation adds a statement to a resource-based permissions policy
|
463
464
|
# for the function. For more information about function policies, see
|
464
|
-
# [
|
465
|
+
# [Using resource-based policies for Lambda][1].
|
465
466
|
#
|
466
467
|
#
|
467
468
|
#
|
@@ -472,13 +473,13 @@ module Aws::Lambda
|
|
472
473
|
#
|
473
474
|
# **Name formats**
|
474
475
|
#
|
475
|
-
# * **Function name**
|
476
|
+
# * **Function name** – `my-function` (name-only), `my-function:v1`
|
476
477
|
# (with alias).
|
477
478
|
#
|
478
|
-
# * **Function ARN**
|
479
|
+
# * **Function ARN** –
|
479
480
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
480
481
|
#
|
481
|
-
# * **Partial ARN**
|
482
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
482
483
|
#
|
483
484
|
# You can append a version number or alias to any of the formats. The
|
484
485
|
# length constraint applies only to the full ARN. If you specify only
|
@@ -493,34 +494,33 @@ module Aws::Lambda
|
|
493
494
|
# `lambda:InvokeFunction` or `lambda:GetFunction`.
|
494
495
|
#
|
495
496
|
# @option params [required, String] :principal
|
496
|
-
# The Amazon Web
|
497
|
-
# If you specify a service, use `SourceArn` or `SourceAccount`
|
498
|
-
# who can invoke the function through that service.
|
497
|
+
# The Amazon Web Service or Amazon Web Services account that invokes the
|
498
|
+
# function. If you specify a service, use `SourceArn` or `SourceAccount`
|
499
|
+
# to limit who can invoke the function through that service.
|
499
500
|
#
|
500
501
|
# @option params [String] :source_arn
|
501
|
-
# For Amazon Web Services
|
502
|
-
#
|
503
|
-
#
|
502
|
+
# For Amazon Web Services, the ARN of the Amazon Web Services resource
|
503
|
+
# that invokes the function. For example, an Amazon S3 bucket or Amazon
|
504
|
+
# SNS topic.
|
504
505
|
#
|
505
506
|
# Note that Lambda configures the comparison using the `StringLike`
|
506
507
|
# operator.
|
507
508
|
#
|
508
509
|
# @option params [String] :source_account
|
509
|
-
# For Amazon
|
510
|
-
# together with `SourceArn` to ensure that
|
511
|
-
# specified account. It is possible for an Amazon
|
512
|
-
# deleted by its owner and recreated by another account.
|
510
|
+
# For Amazon Web Service, the ID of the Amazon Web Services account that
|
511
|
+
# owns the resource. Use this together with `SourceArn` to ensure that
|
512
|
+
# the specified account owns the resource. It is possible for an Amazon
|
513
|
+
# S3 bucket to be deleted by its owner and recreated by another account.
|
513
514
|
#
|
514
515
|
# @option params [String] :event_source_token
|
515
|
-
# For Alexa Smart Home functions, a token that
|
516
|
-
# invoker.
|
516
|
+
# For Alexa Smart Home functions, a token that the invoker must supply.
|
517
517
|
#
|
518
518
|
# @option params [String] :qualifier
|
519
519
|
# Specify a version or alias to add permissions to a published version
|
520
520
|
# of the function.
|
521
521
|
#
|
522
522
|
# @option params [String] :revision_id
|
523
|
-
#
|
523
|
+
# Update the policy only if the revision ID matches the ID that's
|
524
524
|
# specified. Use this option to avoid modifying a policy that has
|
525
525
|
# changed since you last read it.
|
526
526
|
#
|
@@ -531,9 +531,9 @@ module Aws::Lambda
|
|
531
531
|
#
|
532
532
|
# @option params [String] :function_url_auth_type
|
533
533
|
# The type of authentication that your function URL uses. Set to
|
534
|
-
# `AWS_IAM` if you want to restrict access to authenticated
|
534
|
+
# `AWS_IAM` if you want to restrict access to authenticated IAM users
|
535
535
|
# only. Set to `NONE` if you want to bypass IAM authentication to create
|
536
|
-
# a public endpoint. For more information, see [
|
536
|
+
# a public endpoint. For more information, see [Security and auth model
|
537
537
|
# for Lambda function URLs][1].
|
538
538
|
#
|
539
539
|
#
|
@@ -733,21 +733,21 @@ module Aws::Lambda
|
|
733
733
|
# The following error handling options are available only for stream
|
734
734
|
# sources (DynamoDB and Kinesis):
|
735
735
|
#
|
736
|
-
# * `BisectBatchOnFunctionError`
|
736
|
+
# * `BisectBatchOnFunctionError` – If the function returns an error,
|
737
737
|
# split the batch in two and retry.
|
738
738
|
#
|
739
|
-
# * `DestinationConfig`
|
739
|
+
# * `DestinationConfig` – Send discarded records to an Amazon SQS queue
|
740
740
|
# or Amazon SNS topic.
|
741
741
|
#
|
742
|
-
# * `MaximumRecordAgeInSeconds`
|
742
|
+
# * `MaximumRecordAgeInSeconds` – Discard records older than the
|
743
743
|
# specified age. The default value is infinite (-1). When set to
|
744
744
|
# infinite (-1), failed records are retried until the record expires
|
745
745
|
#
|
746
|
-
# * `MaximumRetryAttempts`
|
746
|
+
# * `MaximumRetryAttempts` – Discard records after the specified number
|
747
747
|
# of retries. The default value is infinite (-1). When set to infinite
|
748
748
|
# (-1), failed records are retried until the record expires.
|
749
749
|
#
|
750
|
-
# * `ParallelizationFactor`
|
750
|
+
# * `ParallelizationFactor` – Process multiple batches from each shard
|
751
751
|
# concurrently.
|
752
752
|
#
|
753
753
|
# For information about which configuration parameters apply to each
|
@@ -783,30 +783,32 @@ module Aws::Lambda
|
|
783
783
|
# @option params [String] :event_source_arn
|
784
784
|
# The Amazon Resource Name (ARN) of the event source.
|
785
785
|
#
|
786
|
-
# * **Amazon Kinesis**
|
786
|
+
# * **Amazon Kinesis** – The ARN of the data stream or a stream
|
787
787
|
# consumer.
|
788
788
|
#
|
789
|
-
# * **Amazon DynamoDB Streams**
|
789
|
+
# * **Amazon DynamoDB Streams** – The ARN of the stream.
|
790
790
|
#
|
791
|
-
# * **Amazon Simple Queue Service**
|
791
|
+
# * **Amazon Simple Queue Service** – The ARN of the queue.
|
792
792
|
#
|
793
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
793
|
+
# * **Amazon Managed Streaming for Apache Kafka** – The ARN of the
|
794
794
|
# cluster.
|
795
795
|
#
|
796
|
+
# * **Amazon MQ** – The ARN of the broker.
|
797
|
+
#
|
796
798
|
# @option params [required, String] :function_name
|
797
799
|
# The name of the Lambda function.
|
798
800
|
#
|
799
801
|
# **Name formats**
|
800
802
|
#
|
801
|
-
# * **Function name**
|
803
|
+
# * **Function name** – `MyFunction`.
|
802
804
|
#
|
803
|
-
# * **Function ARN**
|
805
|
+
# * **Function ARN** –
|
804
806
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
805
807
|
#
|
806
|
-
# * **Version or Alias ARN**
|
808
|
+
# * **Version or Alias ARN** –
|
807
809
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
|
808
810
|
#
|
809
|
-
# * **Partial ARN**
|
811
|
+
# * **Partial ARN** – `123456789012:function:MyFunction`.
|
810
812
|
#
|
811
813
|
# The length constraint applies only to the full ARN. If you specify
|
812
814
|
# only the function name, it's limited to 64 characters in length.
|
@@ -823,24 +825,24 @@ module Aws::Lambda
|
|
823
825
|
# the records in the batch to the function in a single call, up to the
|
824
826
|
# payload limit for synchronous invocation (6 MB).
|
825
827
|
#
|
826
|
-
# * **Amazon Kinesis**
|
828
|
+
# * **Amazon Kinesis** – Default 100. Max 10,000.
|
827
829
|
#
|
828
|
-
# * **Amazon DynamoDB Streams**
|
830
|
+
# * **Amazon DynamoDB Streams** – Default 100. Max 10,000.
|
829
831
|
#
|
830
|
-
# * **Amazon Simple Queue Service**
|
832
|
+
# * **Amazon Simple Queue Service** – Default 10. For standard queues
|
831
833
|
# the max is 10,000. For FIFO queues the max is 10.
|
832
834
|
#
|
833
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
835
|
+
# * **Amazon Managed Streaming for Apache Kafka** – Default 100. Max
|
834
836
|
# 10,000.
|
835
837
|
#
|
836
|
-
# * **Self-managed Apache Kafka**
|
838
|
+
# * **Self-managed Apache Kafka** – Default 100. Max 10,000.
|
837
839
|
#
|
838
|
-
# * **Amazon MQ (ActiveMQ and RabbitMQ)**
|
840
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
|
839
841
|
#
|
840
842
|
# @option params [Types::FilterCriteria] :filter_criteria
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
843
|
+
# An object that defines the filter criteria that determine whether
|
844
|
+
# Lambda should process an event. For more information, see [Lambda
|
845
|
+
# event filtering][1].
|
844
846
|
#
|
845
847
|
#
|
846
848
|
#
|
@@ -923,6 +925,15 @@ module Aws::Lambda
|
|
923
925
|
# Specific configuration settings for a self-managed Apache Kafka event
|
924
926
|
# source.
|
925
927
|
#
|
928
|
+
# @option params [Types::ScalingConfig] :scaling_config
|
929
|
+
# (Amazon SQS only) The scaling configuration for the event source. For
|
930
|
+
# more information, see [Configuring maximum concurrency for Amazon SQS
|
931
|
+
# event sources][1].
|
932
|
+
#
|
933
|
+
#
|
934
|
+
#
|
935
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
|
936
|
+
#
|
926
937
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
927
938
|
#
|
928
939
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -950,6 +961,7 @@ module Aws::Lambda
|
|
950
961
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
951
962
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
952
963
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
964
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
953
965
|
#
|
954
966
|
# @example Request syntax with placeholder values
|
955
967
|
#
|
@@ -1001,6 +1013,9 @@ module Aws::Lambda
|
|
1001
1013
|
# self_managed_kafka_event_source_config: {
|
1002
1014
|
# consumer_group_id: "URI",
|
1003
1015
|
# },
|
1016
|
+
# scaling_config: {
|
1017
|
+
# maximum_concurrency: 1,
|
1018
|
+
# },
|
1004
1019
|
# })
|
1005
1020
|
#
|
1006
1021
|
# @example Response structure
|
@@ -1039,6 +1054,7 @@ module Aws::Lambda
|
|
1039
1054
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
1040
1055
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
1041
1056
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
1057
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
1042
1058
|
#
|
1043
1059
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
|
1044
1060
|
#
|
@@ -1053,21 +1069,21 @@ module Aws::Lambda
|
|
1053
1069
|
# [deployment package][1] and an [execution role][2]. The deployment
|
1054
1070
|
# package is a .zip file archive or container image that contains your
|
1055
1071
|
# function code. The execution role grants the function permission to
|
1056
|
-
# use Amazon Web Services
|
1057
|
-
#
|
1072
|
+
# use Amazon Web Services, such as Amazon CloudWatch Logs for log
|
1073
|
+
# streaming and X-Ray for request tracing.
|
1058
1074
|
#
|
1059
|
-
#
|
1060
|
-
#
|
1075
|
+
# If the deployment package is a [container image][3], then you set the
|
1076
|
+
# package type to `Image`. For a container image, the code property must
|
1061
1077
|
# include the URI of a container image in the Amazon ECR registry. You
|
1062
1078
|
# do not need to specify the handler and runtime properties.
|
1063
1079
|
#
|
1064
|
-
#
|
1065
|
-
#
|
1066
|
-
# the location of the .zip file. You must also specify the
|
1067
|
-
# runtime properties. The code in the deployment package
|
1068
|
-
# compatible with the target instruction set architecture of the
|
1080
|
+
# If the deployment package is a [.zip file archive][4], then you set
|
1081
|
+
# the package type to `Zip`. For a .zip file archive, the code property
|
1082
|
+
# specifies the location of the .zip file. You must also specify the
|
1083
|
+
# handler and runtime properties. The code in the deployment package
|
1084
|
+
# must be compatible with the target instruction set architecture of the
|
1069
1085
|
# function (`x86-64` or `arm64`). If you do not specify the
|
1070
|
-
# architecture, the default value is `x86-64`.
|
1086
|
+
# architecture, then the default value is `x86-64`.
|
1071
1087
|
#
|
1072
1088
|
# When you create a function, Lambda provisions an instance of the
|
1073
1089
|
# function and its supporting resources. If your function connects to a
|
@@ -1075,7 +1091,7 @@ module Aws::Lambda
|
|
1075
1091
|
# can't invoke or modify the function. The `State`, `StateReason`, and
|
1076
1092
|
# `StateReasonCode` fields in the response from GetFunctionConfiguration
|
1077
1093
|
# indicate when the function is ready to invoke. For more information,
|
1078
|
-
# see [
|
1094
|
+
# see [Lambda function states][5].
|
1079
1095
|
#
|
1080
1096
|
# A function has an unpublished version, and can have published versions
|
1081
1097
|
# and aliases. The unpublished version changes when you update your
|
@@ -1097,19 +1113,20 @@ module Aws::Lambda
|
|
1097
1113
|
# a code-signing configuration. When a user attempts to deploy a code
|
1098
1114
|
# package with UpdateFunctionCode, Lambda checks that the code package
|
1099
1115
|
# has a valid signature from a trusted publisher. The code-signing
|
1100
|
-
# configuration includes set
|
1116
|
+
# configuration includes set of signing profiles, which define the
|
1101
1117
|
# trusted publishers for this function.
|
1102
1118
|
#
|
1103
|
-
# If another account or an Amazon Web
|
1104
|
-
# function, use AddPermission to grant permission by
|
1105
|
-
# resource-based
|
1106
|
-
# level, on a version, or on
|
1119
|
+
# If another Amazon Web Services account or an Amazon Web Service
|
1120
|
+
# invokes your function, use AddPermission to grant permission by
|
1121
|
+
# creating a resource-based Identity and Access Management (IAM) policy.
|
1122
|
+
# You can grant permissions at the function level, on a version, or on
|
1123
|
+
# an alias.
|
1107
1124
|
#
|
1108
1125
|
# To invoke your function directly, use Invoke. To invoke your function
|
1109
|
-
# in response to events in other Amazon Web Services
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1126
|
+
# in response to events in other Amazon Web Services, create an event
|
1127
|
+
# source mapping (CreateEventSourceMapping), or configure a function
|
1128
|
+
# trigger in the other service. For more information, see [Invoking
|
1129
|
+
# Lambda functions][6].
|
1113
1130
|
#
|
1114
1131
|
#
|
1115
1132
|
#
|
@@ -1125,12 +1142,12 @@ module Aws::Lambda
|
|
1125
1142
|
#
|
1126
1143
|
# **Name formats**
|
1127
1144
|
#
|
1128
|
-
# * **Function name**
|
1145
|
+
# * **Function name** – `my-function`.
|
1129
1146
|
#
|
1130
|
-
# * **Function ARN**
|
1147
|
+
# * **Function ARN** –
|
1131
1148
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1132
1149
|
#
|
1133
|
-
# * **Partial ARN**
|
1150
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
1134
1151
|
#
|
1135
1152
|
# The length constraint applies only to the full ARN. If you specify
|
1136
1153
|
# only the function name, it is limited to 64 characters in length.
|
@@ -1147,15 +1164,15 @@ module Aws::Lambda
|
|
1147
1164
|
# The Amazon Resource Name (ARN) of the function's execution role.
|
1148
1165
|
#
|
1149
1166
|
# @option params [String] :handler
|
1150
|
-
# The name of the method within your code that Lambda calls to
|
1151
|
-
#
|
1152
|
-
#
|
1167
|
+
# The name of the method within your code that Lambda calls to run your
|
1168
|
+
# function. Handler is required if the deployment package is a .zip file
|
1169
|
+
# archive. The format includes the file name. It can also include
|
1153
1170
|
# namespaces and other qualifiers, depending on the runtime. For more
|
1154
|
-
# information, see [
|
1171
|
+
# information, see [Lambda programming model][1].
|
1155
1172
|
#
|
1156
1173
|
#
|
1157
1174
|
#
|
1158
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
1175
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html
|
1159
1176
|
#
|
1160
1177
|
# @option params [required, Types::FunctionCode] :code
|
1161
1178
|
# The code for the function.
|
@@ -1166,8 +1183,8 @@ module Aws::Lambda
|
|
1166
1183
|
# @option params [Integer] :timeout
|
1167
1184
|
# The amount of time (in seconds) that Lambda allows a function to run
|
1168
1185
|
# before stopping it. The default is 3 seconds. The maximum allowed
|
1169
|
-
# value is 900 seconds. For
|
1170
|
-
#
|
1186
|
+
# value is 900 seconds. For more information, see [Lambda execution
|
1187
|
+
# environment][1].
|
1171
1188
|
#
|
1172
1189
|
#
|
1173
1190
|
#
|
@@ -1180,7 +1197,7 @@ module Aws::Lambda
|
|
1180
1197
|
#
|
1181
1198
|
#
|
1182
1199
|
#
|
1183
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-
|
1200
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console
|
1184
1201
|
#
|
1185
1202
|
# @option params [Boolean] :publish
|
1186
1203
|
# Set to true to publish the first version of the function during
|
@@ -1189,9 +1206,9 @@ module Aws::Lambda
|
|
1189
1206
|
# @option params [Types::VpcConfig] :vpc_config
|
1190
1207
|
# For network connectivity to Amazon Web Services resources in a VPC,
|
1191
1208
|
# specify a list of security groups and subnets in the VPC. When you
|
1192
|
-
# connect a function to a VPC, it can
|
1193
|
-
#
|
1194
|
-
#
|
1209
|
+
# connect a function to a VPC, it can access resources and the internet
|
1210
|
+
# only through that VPC. For more information, see [Configuring a Lambda
|
1211
|
+
# function to access resources in a VPC][1].
|
1195
1212
|
#
|
1196
1213
|
#
|
1197
1214
|
#
|
@@ -1199,25 +1216,25 @@ module Aws::Lambda
|
|
1199
1216
|
#
|
1200
1217
|
# @option params [String] :package_type
|
1201
1218
|
# The type of deployment package. Set to `Image` for container image and
|
1202
|
-
# set `Zip` for
|
1219
|
+
# set to `Zip` for .zip file archive.
|
1203
1220
|
#
|
1204
1221
|
# @option params [Types::DeadLetterConfig] :dead_letter_config
|
1205
|
-
# A dead
|
1222
|
+
# A dead-letter queue configuration that specifies the queue or topic
|
1206
1223
|
# where Lambda sends asynchronous events when they fail processing. For
|
1207
|
-
# more information, see [Dead
|
1224
|
+
# more information, see [Dead-letter queues][1].
|
1208
1225
|
#
|
1209
1226
|
#
|
1210
1227
|
#
|
1211
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
1228
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq
|
1212
1229
|
#
|
1213
1230
|
# @option params [Types::Environment] :environment
|
1214
1231
|
# Environment variables that are accessible from function code during
|
1215
1232
|
# execution.
|
1216
1233
|
#
|
1217
1234
|
# @option params [String] :kms_key_arn
|
1218
|
-
# The ARN of the
|
1219
|
-
#
|
1220
|
-
#
|
1235
|
+
# The ARN of the Key Management Service (KMS) key that's used to
|
1236
|
+
# encrypt your function's environment variables. If it's not provided,
|
1237
|
+
# Lambda uses a default service key.
|
1221
1238
|
#
|
1222
1239
|
# @option params [Types::TracingConfig] :tracing_config
|
1223
1240
|
# Set `Mode` to `Active` to sample and trace a subset of incoming
|
@@ -1265,8 +1282,15 @@ module Aws::Lambda
|
|
1265
1282
|
# default value is `x86_64`.
|
1266
1283
|
#
|
1267
1284
|
# @option params [Types::EphemeralStorage] :ephemeral_storage
|
1268
|
-
# The size of the function
|
1269
|
-
# 512, but can be any whole number between 512 and
|
1285
|
+
# The size of the function's `/tmp` directory in MB. The default value
|
1286
|
+
# is 512, but can be any whole number between 512 and 10,240 MB.
|
1287
|
+
#
|
1288
|
+
# @option params [Types::SnapStart] :snap_start
|
1289
|
+
# The function's [SnapStart][1] setting.
|
1290
|
+
#
|
1291
|
+
#
|
1292
|
+
#
|
1293
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html
|
1270
1294
|
#
|
1271
1295
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1272
1296
|
#
|
@@ -1303,6 +1327,7 @@ module Aws::Lambda
|
|
1303
1327
|
# * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
|
1304
1328
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
1305
1329
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
1330
|
+
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
1306
1331
|
#
|
1307
1332
|
# @example Request syntax with placeholder values
|
1308
1333
|
#
|
@@ -1359,6 +1384,9 @@ module Aws::Lambda
|
|
1359
1384
|
# ephemeral_storage: {
|
1360
1385
|
# size: 1, # required
|
1361
1386
|
# },
|
1387
|
+
# snap_start: {
|
1388
|
+
# apply_on: "PublishedVersions", # accepts PublishedVersions, None
|
1389
|
+
# },
|
1362
1390
|
# })
|
1363
1391
|
#
|
1364
1392
|
# @example Response structure
|
@@ -1396,10 +1424,10 @@ module Aws::Lambda
|
|
1396
1424
|
# resp.layers[0].signing_job_arn #=> String
|
1397
1425
|
# resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
1398
1426
|
# resp.state_reason #=> String
|
1399
|
-
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
1427
|
+
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
1400
1428
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
1401
1429
|
# resp.last_update_status_reason #=> String
|
1402
|
-
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
1430
|
+
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
1403
1431
|
# resp.file_system_configs #=> Array
|
1404
1432
|
# resp.file_system_configs[0].arn #=> String
|
1405
1433
|
# resp.file_system_configs[0].local_mount_path #=> String
|
@@ -1416,6 +1444,8 @@ module Aws::Lambda
|
|
1416
1444
|
# resp.architectures #=> Array
|
1417
1445
|
# resp.architectures[0] #=> String, one of "x86_64", "arm64"
|
1418
1446
|
# resp.ephemeral_storage.size #=> Integer
|
1447
|
+
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
1448
|
+
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
1419
1449
|
#
|
1420
1450
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
|
1421
1451
|
#
|
@@ -1435,12 +1465,12 @@ module Aws::Lambda
|
|
1435
1465
|
#
|
1436
1466
|
# **Name formats**
|
1437
1467
|
#
|
1438
|
-
# * **Function name**
|
1468
|
+
# * **Function name** – `my-function`.
|
1439
1469
|
#
|
1440
|
-
# * **Function ARN**
|
1470
|
+
# * **Function ARN** –
|
1441
1471
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1442
1472
|
#
|
1443
|
-
# * **Partial ARN**
|
1473
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
1444
1474
|
#
|
1445
1475
|
# The length constraint applies only to the full ARN. If you specify
|
1446
1476
|
# only the function name, it is limited to 64 characters in length.
|
@@ -1450,9 +1480,9 @@ module Aws::Lambda
|
|
1450
1480
|
#
|
1451
1481
|
# @option params [required, String] :auth_type
|
1452
1482
|
# The type of authentication that your function URL uses. Set to
|
1453
|
-
# `AWS_IAM` if you want to restrict access to authenticated
|
1483
|
+
# `AWS_IAM` if you want to restrict access to authenticated IAM users
|
1454
1484
|
# only. Set to `NONE` if you want to bypass IAM authentication to create
|
1455
|
-
# a public endpoint. For more information, see [
|
1485
|
+
# a public endpoint. For more information, see [Security and auth model
|
1456
1486
|
# for Lambda function URLs][1].
|
1457
1487
|
#
|
1458
1488
|
#
|
@@ -1622,6 +1652,7 @@ module Aws::Lambda
|
|
1622
1652
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
1623
1653
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
1624
1654
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
1655
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
1625
1656
|
#
|
1626
1657
|
# @example Request syntax with placeholder values
|
1627
1658
|
#
|
@@ -1665,6 +1696,7 @@ module Aws::Lambda
|
|
1665
1696
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
1666
1697
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
1667
1698
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
1699
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
1668
1700
|
#
|
1669
1701
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
|
1670
1702
|
#
|
@@ -1680,30 +1712,30 @@ module Aws::Lambda
|
|
1680
1712
|
# deleted.
|
1681
1713
|
#
|
1682
1714
|
# To delete Lambda event source mappings that invoke a function, use
|
1683
|
-
# DeleteEventSourceMapping. For Amazon Web Services
|
1684
|
-
#
|
1685
|
-
#
|
1715
|
+
# DeleteEventSourceMapping. For Amazon Web Services and resources that
|
1716
|
+
# invoke your function directly, delete the trigger in the service where
|
1717
|
+
# you originally configured it.
|
1686
1718
|
#
|
1687
1719
|
# @option params [required, String] :function_name
|
1688
1720
|
# The name of the Lambda function or version.
|
1689
1721
|
#
|
1690
1722
|
# **Name formats**
|
1691
1723
|
#
|
1692
|
-
# * **Function name**
|
1724
|
+
# * **Function name** – `my-function` (name-only), `my-function:1` (with
|
1693
1725
|
# version).
|
1694
1726
|
#
|
1695
|
-
# * **Function ARN**
|
1727
|
+
# * **Function ARN** –
|
1696
1728
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1697
1729
|
#
|
1698
|
-
# * **Partial ARN**
|
1730
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
1699
1731
|
#
|
1700
1732
|
# You can append a version number or alias to any of the formats. The
|
1701
1733
|
# length constraint applies only to the full ARN. If you specify only
|
1702
1734
|
# the function name, it is limited to 64 characters in length.
|
1703
1735
|
#
|
1704
1736
|
# @option params [String] :qualifier
|
1705
|
-
# Specify a version to delete. You can't delete a version that
|
1706
|
-
#
|
1737
|
+
# Specify a version to delete. You can't delete a version that an alias
|
1738
|
+
# references.
|
1707
1739
|
#
|
1708
1740
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1709
1741
|
#
|
@@ -1764,12 +1796,12 @@ module Aws::Lambda
|
|
1764
1796
|
#
|
1765
1797
|
# **Name formats**
|
1766
1798
|
#
|
1767
|
-
# * **Function name**
|
1799
|
+
# * **Function name** – `my-function`.
|
1768
1800
|
#
|
1769
|
-
# * **Function ARN**
|
1801
|
+
# * **Function ARN** –
|
1770
1802
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1771
1803
|
#
|
1772
|
-
# * **Partial ARN**
|
1804
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
1773
1805
|
#
|
1774
1806
|
# The length constraint applies only to the full ARN. If you specify
|
1775
1807
|
# only the function name, it is limited to 64 characters in length.
|
@@ -1844,12 +1876,12 @@ module Aws::Lambda
|
|
1844
1876
|
#
|
1845
1877
|
# **Name formats**
|
1846
1878
|
#
|
1847
|
-
# * **Function name**
|
1879
|
+
# * **Function name** – `my-function`.
|
1848
1880
|
#
|
1849
|
-
# * **Function ARN**
|
1881
|
+
# * **Function ARN** –
|
1850
1882
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1851
1883
|
#
|
1852
|
-
# * **Partial ARN**
|
1884
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
1853
1885
|
#
|
1854
1886
|
# The length constraint applies only to the full ARN. If you specify
|
1855
1887
|
# only the function name, it is limited to 64 characters in length.
|
@@ -1914,12 +1946,12 @@ module Aws::Lambda
|
|
1914
1946
|
#
|
1915
1947
|
# **Name formats**
|
1916
1948
|
#
|
1917
|
-
# * **Function name**
|
1949
|
+
# * **Function name** – `my-function`.
|
1918
1950
|
#
|
1919
|
-
# * **Function ARN**
|
1951
|
+
# * **Function ARN** –
|
1920
1952
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1921
1953
|
#
|
1922
|
-
# * **Partial ARN**
|
1954
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
1923
1955
|
#
|
1924
1956
|
# The length constraint applies only to the full ARN. If you specify
|
1925
1957
|
# only the function name, it is limited to 64 characters in length.
|
@@ -2102,6 +2134,7 @@ module Aws::Lambda
|
|
2102
2134
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
2103
2135
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
2104
2136
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
2137
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
2105
2138
|
#
|
2106
2139
|
# @example Request syntax with placeholder values
|
2107
2140
|
#
|
@@ -2145,6 +2178,7 @@ module Aws::Lambda
|
|
2145
2178
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
2146
2179
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
2147
2180
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
2181
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
2148
2182
|
#
|
2149
2183
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
|
2150
2184
|
#
|
@@ -2165,13 +2199,13 @@ module Aws::Lambda
|
|
2165
2199
|
#
|
2166
2200
|
# **Name formats**
|
2167
2201
|
#
|
2168
|
-
# * **Function name**
|
2202
|
+
# * **Function name** – `my-function` (name-only), `my-function:v1`
|
2169
2203
|
# (with alias).
|
2170
2204
|
#
|
2171
|
-
# * **Function ARN**
|
2205
|
+
# * **Function ARN** –
|
2172
2206
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2173
2207
|
#
|
2174
|
-
# * **Partial ARN**
|
2208
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2175
2209
|
#
|
2176
2210
|
# You can append a version number or alias to any of the formats. The
|
2177
2211
|
# length constraint applies only to the full ARN. If you specify only
|
@@ -2230,10 +2264,10 @@ module Aws::Lambda
|
|
2230
2264
|
# resp.configuration.layers[0].signing_job_arn #=> String
|
2231
2265
|
# resp.configuration.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
2232
2266
|
# resp.configuration.state_reason #=> String
|
2233
|
-
# resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
2267
|
+
# resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
2234
2268
|
# resp.configuration.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
2235
2269
|
# resp.configuration.last_update_status_reason #=> String
|
2236
|
-
# resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
2270
|
+
# resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
2237
2271
|
# resp.configuration.file_system_configs #=> Array
|
2238
2272
|
# resp.configuration.file_system_configs[0].arn #=> String
|
2239
2273
|
# resp.configuration.file_system_configs[0].local_mount_path #=> String
|
@@ -2250,6 +2284,8 @@ module Aws::Lambda
|
|
2250
2284
|
# resp.configuration.architectures #=> Array
|
2251
2285
|
# resp.configuration.architectures[0] #=> String, one of "x86_64", "arm64"
|
2252
2286
|
# resp.configuration.ephemeral_storage.size #=> Integer
|
2287
|
+
# resp.configuration.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
2288
|
+
# resp.configuration.snap_start.optimization_status #=> String, one of "On", "Off"
|
2253
2289
|
# resp.code.repository_type #=> String
|
2254
2290
|
# resp.code.location #=> String
|
2255
2291
|
# resp.code.image_uri #=> String
|
@@ -2325,12 +2361,12 @@ module Aws::Lambda
|
|
2325
2361
|
#
|
2326
2362
|
# **Name formats**
|
2327
2363
|
#
|
2328
|
-
# * **Function name**
|
2364
|
+
# * **Function name** – `my-function`.
|
2329
2365
|
#
|
2330
|
-
# * **Function ARN**
|
2366
|
+
# * **Function ARN** –
|
2331
2367
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2332
2368
|
#
|
2333
|
-
# * **Partial ARN**
|
2369
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2334
2370
|
#
|
2335
2371
|
# The length constraint applies only to the full ARN. If you specify
|
2336
2372
|
# only the function name, it is limited to 64 characters in length.
|
@@ -2370,13 +2406,13 @@ module Aws::Lambda
|
|
2370
2406
|
#
|
2371
2407
|
# **Name formats**
|
2372
2408
|
#
|
2373
|
-
# * **Function name**
|
2409
|
+
# * **Function name** – `my-function` (name-only), `my-function:v1`
|
2374
2410
|
# (with alias).
|
2375
2411
|
#
|
2376
|
-
# * **Function ARN**
|
2412
|
+
# * **Function ARN** –
|
2377
2413
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2378
2414
|
#
|
2379
|
-
# * **Partial ARN**
|
2415
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2380
2416
|
#
|
2381
2417
|
# You can append a version number or alias to any of the formats. The
|
2382
2418
|
# length constraint applies only to the full ARN. If you specify only
|
@@ -2421,6 +2457,7 @@ module Aws::Lambda
|
|
2421
2457
|
# * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
|
2422
2458
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
2423
2459
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
2460
|
+
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
2424
2461
|
#
|
2425
2462
|
# @example Request syntax with placeholder values
|
2426
2463
|
#
|
@@ -2464,10 +2501,10 @@ module Aws::Lambda
|
|
2464
2501
|
# resp.layers[0].signing_job_arn #=> String
|
2465
2502
|
# resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
2466
2503
|
# resp.state_reason #=> String
|
2467
|
-
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
2504
|
+
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
2468
2505
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
2469
2506
|
# resp.last_update_status_reason #=> String
|
2470
|
-
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
2507
|
+
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
2471
2508
|
# resp.file_system_configs #=> Array
|
2472
2509
|
# resp.file_system_configs[0].arn #=> String
|
2473
2510
|
# resp.file_system_configs[0].local_mount_path #=> String
|
@@ -2484,12 +2521,15 @@ module Aws::Lambda
|
|
2484
2521
|
# resp.architectures #=> Array
|
2485
2522
|
# resp.architectures[0] #=> String, one of "x86_64", "arm64"
|
2486
2523
|
# resp.ephemeral_storage.size #=> Integer
|
2524
|
+
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
2525
|
+
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
2487
2526
|
#
|
2488
2527
|
#
|
2489
2528
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2490
2529
|
#
|
2491
2530
|
# * function_active
|
2492
2531
|
# * function_updated
|
2532
|
+
# * published_version_active
|
2493
2533
|
#
|
2494
2534
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration AWS API Documentation
|
2495
2535
|
#
|
@@ -2566,12 +2606,12 @@ module Aws::Lambda
|
|
2566
2606
|
#
|
2567
2607
|
# **Name formats**
|
2568
2608
|
#
|
2569
|
-
# * **Function name**
|
2609
|
+
# * **Function name** – `my-function`.
|
2570
2610
|
#
|
2571
|
-
# * **Function ARN**
|
2611
|
+
# * **Function ARN** –
|
2572
2612
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2573
2613
|
#
|
2574
|
-
# * **Partial ARN**
|
2614
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2575
2615
|
#
|
2576
2616
|
# The length constraint applies only to the full ARN. If you specify
|
2577
2617
|
# only the function name, it is limited to 64 characters in length.
|
@@ -2787,13 +2827,13 @@ module Aws::Lambda
|
|
2787
2827
|
#
|
2788
2828
|
# **Name formats**
|
2789
2829
|
#
|
2790
|
-
# * **Function name**
|
2830
|
+
# * **Function name** – `my-function` (name-only), `my-function:v1`
|
2791
2831
|
# (with alias).
|
2792
2832
|
#
|
2793
|
-
# * **Function ARN**
|
2833
|
+
# * **Function ARN** –
|
2794
2834
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2795
2835
|
#
|
2796
|
-
# * **Partial ARN**
|
2836
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2797
2837
|
#
|
2798
2838
|
# You can append a version number or alias to any of the formats. The
|
2799
2839
|
# length constraint applies only to the full ARN. If you specify only
|
@@ -2836,12 +2876,12 @@ module Aws::Lambda
|
|
2836
2876
|
#
|
2837
2877
|
# **Name formats**
|
2838
2878
|
#
|
2839
|
-
# * **Function name**
|
2879
|
+
# * **Function name** – `my-function`.
|
2840
2880
|
#
|
2841
|
-
# * **Function ARN**
|
2881
|
+
# * **Function ARN** –
|
2842
2882
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2843
2883
|
#
|
2844
|
-
# * **Partial ARN**
|
2884
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2845
2885
|
#
|
2846
2886
|
# The length constraint applies only to the full ARN. If you specify
|
2847
2887
|
# only the function name, it is limited to 64 characters in length.
|
@@ -2896,7 +2936,8 @@ module Aws::Lambda
|
|
2896
2936
|
# Retry behavior varies by error type, client, event source, and
|
2897
2937
|
# invocation type. For example, if you invoke a function asynchronously
|
2898
2938
|
# and it returns an error, Lambda executes the function up to two more
|
2899
|
-
# times. For more information, see [
|
2939
|
+
# times. For more information, see [Error handling and automatic retries
|
2940
|
+
# in Lambda][4].
|
2900
2941
|
#
|
2901
2942
|
# For [asynchronous invocation][5], Lambda adds events to a queue before
|
2902
2943
|
# sending them to your function. If your function does not have enough
|
@@ -2907,17 +2948,17 @@ module Aws::Lambda
|
|
2907
2948
|
#
|
2908
2949
|
# The status code in the API response doesn't reflect function errors.
|
2909
2950
|
# Error codes are reserved for errors that prevent your function from
|
2910
|
-
# executing, such as permissions errors, [
|
2951
|
+
# executing, such as permissions errors, [quota][7] errors, or issues
|
2911
2952
|
# with your function's code and configuration. For example, Lambda
|
2912
|
-
# returns `TooManyRequestsException` if
|
2913
|
-
#
|
2953
|
+
# returns `TooManyRequestsException` if running the function would cause
|
2954
|
+
# you to exceed a concurrency limit at either the account level
|
2914
2955
|
# (`ConcurrentInvocationLimitExceeded`) or function level
|
2915
2956
|
# (`ReservedFunctionConcurrentInvocationLimitExceeded`).
|
2916
2957
|
#
|
2917
|
-
# For functions with a long timeout, your client might
|
2918
|
-
#
|
2919
|
-
#
|
2920
|
-
#
|
2958
|
+
# For functions with a long timeout, your client might disconnect during
|
2959
|
+
# synchronous invocation while it waits for a response. Configure your
|
2960
|
+
# HTTP client, SDK, firewall, proxy, or operating system to allow for
|
2961
|
+
# long connections with timeout or keep-alive settings.
|
2921
2962
|
#
|
2922
2963
|
# This operation requires permission for the [lambda:InvokeFunction][8]
|
2923
2964
|
# action. For details on how to set up permissions for cross-account
|
@@ -2928,10 +2969,10 @@ module Aws::Lambda
|
|
2928
2969
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html
|
2929
2970
|
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html
|
2930
2971
|
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html
|
2931
|
-
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/retries
|
2972
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html
|
2932
2973
|
# [5]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
|
2933
|
-
# [6]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
2934
|
-
# [7]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
|
2974
|
+
# [6]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq
|
2975
|
+
# [7]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
|
2935
2976
|
# [8]: https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html
|
2936
2977
|
# [9]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke
|
2937
2978
|
#
|
@@ -2940,13 +2981,13 @@ module Aws::Lambda
|
|
2940
2981
|
#
|
2941
2982
|
# **Name formats**
|
2942
2983
|
#
|
2943
|
-
# * **Function name**
|
2984
|
+
# * **Function name** – `my-function` (name-only), `my-function:v1`
|
2944
2985
|
# (with alias).
|
2945
2986
|
#
|
2946
|
-
# * **Function ARN**
|
2987
|
+
# * **Function ARN** –
|
2947
2988
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2948
2989
|
#
|
2949
|
-
# * **Partial ARN**
|
2990
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2950
2991
|
#
|
2951
2992
|
# You can append a version number or alias to any of the formats. The
|
2952
2993
|
# length constraint applies only to the full ARN. If you specify only
|
@@ -2955,16 +2996,16 @@ module Aws::Lambda
|
|
2955
2996
|
# @option params [String] :invocation_type
|
2956
2997
|
# Choose from the following options.
|
2957
2998
|
#
|
2958
|
-
# * `RequestResponse` (default)
|
2999
|
+
# * `RequestResponse` (default) – Invoke the function synchronously.
|
2959
3000
|
# Keep the connection open until the function returns a response or
|
2960
3001
|
# times out. The API response includes the function response and
|
2961
3002
|
# additional data.
|
2962
3003
|
#
|
2963
|
-
# * `Event`
|
2964
|
-
# multiple times to the function's dead-letter queue (if
|
3004
|
+
# * `Event` – Invoke the function asynchronously. Send events that fail
|
3005
|
+
# multiple times to the function's dead-letter queue (if one is
|
2965
3006
|
# configured). The API response only includes a status code.
|
2966
3007
|
#
|
2967
|
-
# * `DryRun`
|
3008
|
+
# * `DryRun` – Validate parameter values and verify that the user or
|
2968
3009
|
# role has permission to invoke the function.
|
2969
3010
|
#
|
2970
3011
|
# @option params [String] :log_type
|
@@ -2972,7 +3013,7 @@ module Aws::Lambda
|
|
2972
3013
|
# synchronously invoked functions only.
|
2973
3014
|
#
|
2974
3015
|
# @option params [String] :client_context
|
2975
|
-
# Up to
|
3016
|
+
# Up to 3,583 bytes of base64-encoded data about the invoking client to
|
2976
3017
|
# pass to the function in the context object.
|
2977
3018
|
#
|
2978
3019
|
# @option params [String, StringIO, File] :payload
|
@@ -3031,12 +3072,12 @@ module Aws::Lambda
|
|
3031
3072
|
#
|
3032
3073
|
# **Name formats**
|
3033
3074
|
#
|
3034
|
-
# * **Function name**
|
3075
|
+
# * **Function name** – `my-function`.
|
3035
3076
|
#
|
3036
|
-
# * **Function ARN**
|
3077
|
+
# * **Function ARN** –
|
3037
3078
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3038
3079
|
#
|
3039
|
-
# * **Partial ARN**
|
3080
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
3040
3081
|
#
|
3041
3082
|
# The length constraint applies only to the full ARN. If you specify
|
3042
3083
|
# only the function name, it is limited to 64 characters in length.
|
@@ -3193,30 +3234,32 @@ module Aws::Lambda
|
|
3193
3234
|
# @option params [String] :event_source_arn
|
3194
3235
|
# The Amazon Resource Name (ARN) of the event source.
|
3195
3236
|
#
|
3196
|
-
# * **Amazon Kinesis**
|
3237
|
+
# * **Amazon Kinesis** – The ARN of the data stream or a stream
|
3197
3238
|
# consumer.
|
3198
3239
|
#
|
3199
|
-
# * **Amazon DynamoDB Streams**
|
3240
|
+
# * **Amazon DynamoDB Streams** – The ARN of the stream.
|
3200
3241
|
#
|
3201
|
-
# * **Amazon Simple Queue Service**
|
3242
|
+
# * **Amazon Simple Queue Service** – The ARN of the queue.
|
3202
3243
|
#
|
3203
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
3244
|
+
# * **Amazon Managed Streaming for Apache Kafka** – The ARN of the
|
3204
3245
|
# cluster.
|
3205
3246
|
#
|
3247
|
+
# * **Amazon MQ** – The ARN of the broker.
|
3248
|
+
#
|
3206
3249
|
# @option params [String] :function_name
|
3207
3250
|
# The name of the Lambda function.
|
3208
3251
|
#
|
3209
3252
|
# **Name formats**
|
3210
3253
|
#
|
3211
|
-
# * **Function name**
|
3254
|
+
# * **Function name** – `MyFunction`.
|
3212
3255
|
#
|
3213
|
-
# * **Function ARN**
|
3256
|
+
# * **Function ARN** –
|
3214
3257
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
3215
3258
|
#
|
3216
|
-
# * **Version or Alias ARN**
|
3259
|
+
# * **Version or Alias ARN** –
|
3217
3260
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
|
3218
3261
|
#
|
3219
|
-
# * **Partial ARN**
|
3262
|
+
# * **Partial ARN** – `123456789012:function:MyFunction`.
|
3220
3263
|
#
|
3221
3264
|
# The length constraint applies only to the full ARN. If you specify
|
3222
3265
|
# only the function name, it's limited to 64 characters in length.
|
@@ -3283,6 +3326,7 @@ module Aws::Lambda
|
|
3283
3326
|
# resp.event_source_mappings[0].function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
3284
3327
|
# resp.event_source_mappings[0].amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
3285
3328
|
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.consumer_group_id #=> String
|
3329
|
+
# resp.event_source_mappings[0].scaling_config.maximum_concurrency #=> Integer
|
3286
3330
|
#
|
3287
3331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
|
3288
3332
|
#
|
@@ -3363,12 +3407,12 @@ module Aws::Lambda
|
|
3363
3407
|
#
|
3364
3408
|
# **Name formats**
|
3365
3409
|
#
|
3366
|
-
# * **Function name**
|
3410
|
+
# * **Function name** – `my-function`.
|
3367
3411
|
#
|
3368
|
-
# * **Function ARN**
|
3412
|
+
# * **Function ARN** –
|
3369
3413
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3370
3414
|
#
|
3371
|
-
# * **Partial ARN**
|
3415
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
3372
3416
|
#
|
3373
3417
|
# The length constraint applies only to the full ARN. If you specify
|
3374
3418
|
# only the function name, it is limited to 64 characters in length.
|
@@ -3432,7 +3476,7 @@ module Aws::Lambda
|
|
3432
3476
|
# Set `FunctionVersion` to `ALL` to include all published versions of
|
3433
3477
|
# each function in addition to the unpublished version.
|
3434
3478
|
#
|
3435
|
-
# <note markdown="1"> The `ListFunctions`
|
3479
|
+
# <note markdown="1"> The `ListFunctions` operation returns a subset of the
|
3436
3480
|
# FunctionConfiguration fields. To get the additional fields (State,
|
3437
3481
|
# StateReasonCode, StateReason, LastUpdateStatus,
|
3438
3482
|
# LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or
|
@@ -3443,7 +3487,7 @@ module Aws::Lambda
|
|
3443
3487
|
# @option params [String] :master_region
|
3444
3488
|
# For Lambda@Edge functions, the Amazon Web Services Region of the
|
3445
3489
|
# master function. For example, `us-east-1` filters the list of
|
3446
|
-
# functions to only
|
3490
|
+
# functions to include only Lambda@Edge functions replicated from a
|
3447
3491
|
# master function in US East (N. Virginia). If specified, you must set
|
3448
3492
|
# `FunctionVersion` to `ALL`.
|
3449
3493
|
#
|
@@ -3513,10 +3557,10 @@ module Aws::Lambda
|
|
3513
3557
|
# resp.functions[0].layers[0].signing_job_arn #=> String
|
3514
3558
|
# resp.functions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
3515
3559
|
# resp.functions[0].state_reason #=> String
|
3516
|
-
# resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
3560
|
+
# resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
3517
3561
|
# resp.functions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
3518
3562
|
# resp.functions[0].last_update_status_reason #=> String
|
3519
|
-
# resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
3563
|
+
# resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
3520
3564
|
# resp.functions[0].file_system_configs #=> Array
|
3521
3565
|
# resp.functions[0].file_system_configs[0].arn #=> String
|
3522
3566
|
# resp.functions[0].file_system_configs[0].local_mount_path #=> String
|
@@ -3533,6 +3577,8 @@ module Aws::Lambda
|
|
3533
3577
|
# resp.functions[0].architectures #=> Array
|
3534
3578
|
# resp.functions[0].architectures[0] #=> String, one of "x86_64", "arm64"
|
3535
3579
|
# resp.functions[0].ephemeral_storage.size #=> Integer
|
3580
|
+
# resp.functions[0].snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
3581
|
+
# resp.functions[0].snap_start.optimization_status #=> String, one of "On", "Off"
|
3536
3582
|
#
|
3537
3583
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
|
3538
3584
|
#
|
@@ -3734,12 +3780,12 @@ module Aws::Lambda
|
|
3734
3780
|
#
|
3735
3781
|
# **Name formats**
|
3736
3782
|
#
|
3737
|
-
# * **Function name**
|
3783
|
+
# * **Function name** – `my-function`.
|
3738
3784
|
#
|
3739
|
-
# * **Function ARN**
|
3785
|
+
# * **Function ARN** –
|
3740
3786
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3741
3787
|
#
|
3742
|
-
# * **Partial ARN**
|
3788
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
3743
3789
|
#
|
3744
3790
|
# The length constraint applies only to the full ARN. If you specify
|
3745
3791
|
# only the function name, it is limited to 64 characters in length.
|
@@ -3905,10 +3951,10 @@ module Aws::Lambda
|
|
3905
3951
|
# resp.versions[0].layers[0].signing_job_arn #=> String
|
3906
3952
|
# resp.versions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
3907
3953
|
# resp.versions[0].state_reason #=> String
|
3908
|
-
# resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
3954
|
+
# resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
3909
3955
|
# resp.versions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
3910
3956
|
# resp.versions[0].last_update_status_reason #=> String
|
3911
|
-
# resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
3957
|
+
# resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
3912
3958
|
# resp.versions[0].file_system_configs #=> Array
|
3913
3959
|
# resp.versions[0].file_system_configs[0].arn #=> String
|
3914
3960
|
# resp.versions[0].file_system_configs[0].local_mount_path #=> String
|
@@ -3925,6 +3971,8 @@ module Aws::Lambda
|
|
3925
3971
|
# resp.versions[0].architectures #=> Array
|
3926
3972
|
# resp.versions[0].architectures[0] #=> String, one of "x86_64", "arm64"
|
3927
3973
|
# resp.versions[0].ephemeral_storage.size #=> Integer
|
3974
|
+
# resp.versions[0].snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
3975
|
+
# resp.versions[0].snap_start.optimization_status #=> String, one of "On", "Off"
|
3928
3976
|
#
|
3929
3977
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
|
3930
3978
|
#
|
@@ -4121,6 +4169,7 @@ module Aws::Lambda
|
|
4121
4169
|
# * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
|
4122
4170
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
4123
4171
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
4172
|
+
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
4124
4173
|
#
|
4125
4174
|
# @example Request syntax with placeholder values
|
4126
4175
|
#
|
@@ -4166,10 +4215,10 @@ module Aws::Lambda
|
|
4166
4215
|
# resp.layers[0].signing_job_arn #=> String
|
4167
4216
|
# resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
4168
4217
|
# resp.state_reason #=> String
|
4169
|
-
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
4218
|
+
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
4170
4219
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
4171
4220
|
# resp.last_update_status_reason #=> String
|
4172
|
-
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
4221
|
+
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
4173
4222
|
# resp.file_system_configs #=> Array
|
4174
4223
|
# resp.file_system_configs[0].arn #=> String
|
4175
4224
|
# resp.file_system_configs[0].local_mount_path #=> String
|
@@ -4186,6 +4235,8 @@ module Aws::Lambda
|
|
4186
4235
|
# resp.architectures #=> Array
|
4187
4236
|
# resp.architectures[0] #=> String, one of "x86_64", "arm64"
|
4188
4237
|
# resp.ephemeral_storage.size #=> Integer
|
4238
|
+
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
4239
|
+
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
4189
4240
|
#
|
4190
4241
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
|
4191
4242
|
#
|
@@ -4257,23 +4308,23 @@ module Aws::Lambda
|
|
4257
4308
|
# reserve concurrency for as many functions as you like, as long as you
|
4258
4309
|
# leave at least 100 simultaneous executions unreserved for functions
|
4259
4310
|
# that aren't configured with a per-function limit. For more
|
4260
|
-
# information, see [
|
4311
|
+
# information, see [Lambda function scaling][1].
|
4261
4312
|
#
|
4262
4313
|
#
|
4263
4314
|
#
|
4264
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
4315
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
|
4265
4316
|
#
|
4266
4317
|
# @option params [required, String] :function_name
|
4267
4318
|
# The name of the Lambda function.
|
4268
4319
|
#
|
4269
4320
|
# **Name formats**
|
4270
4321
|
#
|
4271
|
-
# * **Function name**
|
4322
|
+
# * **Function name** – `my-function`.
|
4272
4323
|
#
|
4273
|
-
# * **Function ARN**
|
4324
|
+
# * **Function ARN** –
|
4274
4325
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
4275
4326
|
#
|
4276
|
-
# * **Partial ARN**
|
4327
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
4277
4328
|
#
|
4278
4329
|
# The length constraint applies only to the full ARN. If you specify
|
4279
4330
|
# only the function name, it is limited to 64 characters in length.
|
@@ -4423,12 +4474,12 @@ module Aws::Lambda
|
|
4423
4474
|
#
|
4424
4475
|
# **Name formats**
|
4425
4476
|
#
|
4426
|
-
# * **Function name**
|
4477
|
+
# * **Function name** – `my-function`.
|
4427
4478
|
#
|
4428
|
-
# * **Function ARN**
|
4479
|
+
# * **Function ARN** –
|
4429
4480
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
4430
4481
|
#
|
4431
|
-
# * **Partial ARN**
|
4482
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
4432
4483
|
#
|
4433
4484
|
# The length constraint applies only to the full ARN. If you specify
|
4434
4485
|
# only the function name, it is limited to 64 characters in length.
|
@@ -4517,22 +4568,22 @@ module Aws::Lambda
|
|
4517
4568
|
req.send_request(options)
|
4518
4569
|
end
|
4519
4570
|
|
4520
|
-
# Revokes function-use permission from an Amazon Web
|
4521
|
-
#
|
4522
|
-
# of GetPolicy.
|
4571
|
+
# Revokes function-use permission from an Amazon Web Service or another
|
4572
|
+
# Amazon Web Services account. You can get the ID of the statement from
|
4573
|
+
# the output of GetPolicy.
|
4523
4574
|
#
|
4524
4575
|
# @option params [required, String] :function_name
|
4525
4576
|
# The name of the Lambda function, version, or alias.
|
4526
4577
|
#
|
4527
4578
|
# **Name formats**
|
4528
4579
|
#
|
4529
|
-
# * **Function name**
|
4580
|
+
# * **Function name** – `my-function` (name-only), `my-function:v1`
|
4530
4581
|
# (with alias).
|
4531
4582
|
#
|
4532
|
-
# * **Function ARN**
|
4583
|
+
# * **Function ARN** –
|
4533
4584
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
4534
4585
|
#
|
4535
|
-
# * **Partial ARN**
|
4586
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
4536
4587
|
#
|
4537
4588
|
# You can append a version number or alias to any of the formats. The
|
4538
4589
|
# length constraint applies only to the full ARN. If you specify only
|
@@ -4546,7 +4597,7 @@ module Aws::Lambda
|
|
4546
4597
|
# version of the function.
|
4547
4598
|
#
|
4548
4599
|
# @option params [String] :revision_id
|
4549
|
-
#
|
4600
|
+
# Update the policy only if the revision ID matches the ID that's
|
4550
4601
|
# specified. Use this option to avoid modifying a policy that has
|
4551
4602
|
# changed since you last read it.
|
4552
4603
|
#
|
@@ -4791,21 +4842,21 @@ module Aws::Lambda
|
|
4791
4842
|
# The following error handling options are available only for stream
|
4792
4843
|
# sources (DynamoDB and Kinesis):
|
4793
4844
|
#
|
4794
|
-
# * `BisectBatchOnFunctionError`
|
4845
|
+
# * `BisectBatchOnFunctionError` – If the function returns an error,
|
4795
4846
|
# split the batch in two and retry.
|
4796
4847
|
#
|
4797
|
-
# * `DestinationConfig`
|
4848
|
+
# * `DestinationConfig` – Send discarded records to an Amazon SQS queue
|
4798
4849
|
# or Amazon SNS topic.
|
4799
4850
|
#
|
4800
|
-
# * `MaximumRecordAgeInSeconds`
|
4851
|
+
# * `MaximumRecordAgeInSeconds` – Discard records older than the
|
4801
4852
|
# specified age. The default value is infinite (-1). When set to
|
4802
4853
|
# infinite (-1), failed records are retried until the record expires
|
4803
4854
|
#
|
4804
|
-
# * `MaximumRetryAttempts`
|
4855
|
+
# * `MaximumRetryAttempts` – Discard records after the specified number
|
4805
4856
|
# of retries. The default value is infinite (-1). When set to infinite
|
4806
4857
|
# (-1), failed records are retried until the record expires.
|
4807
4858
|
#
|
4808
|
-
# * `ParallelizationFactor`
|
4859
|
+
# * `ParallelizationFactor` – Process multiple batches from each shard
|
4809
4860
|
# concurrently.
|
4810
4861
|
#
|
4811
4862
|
# For information about which configuration parameters apply to each
|
@@ -4846,15 +4897,15 @@ module Aws::Lambda
|
|
4846
4897
|
#
|
4847
4898
|
# **Name formats**
|
4848
4899
|
#
|
4849
|
-
# * **Function name**
|
4900
|
+
# * **Function name** – `MyFunction`.
|
4850
4901
|
#
|
4851
|
-
# * **Function ARN**
|
4902
|
+
# * **Function ARN** –
|
4852
4903
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
4853
4904
|
#
|
4854
|
-
# * **Version or Alias ARN**
|
4905
|
+
# * **Version or Alias ARN** –
|
4855
4906
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
|
4856
4907
|
#
|
4857
|
-
# * **Partial ARN**
|
4908
|
+
# * **Partial ARN** – `123456789012:function:MyFunction`.
|
4858
4909
|
#
|
4859
4910
|
# The length constraint applies only to the full ARN. If you specify
|
4860
4911
|
# only the function name, it's limited to 64 characters in length.
|
@@ -4871,24 +4922,24 @@ module Aws::Lambda
|
|
4871
4922
|
# the records in the batch to the function in a single call, up to the
|
4872
4923
|
# payload limit for synchronous invocation (6 MB).
|
4873
4924
|
#
|
4874
|
-
# * **Amazon Kinesis**
|
4925
|
+
# * **Amazon Kinesis** – Default 100. Max 10,000.
|
4875
4926
|
#
|
4876
|
-
# * **Amazon DynamoDB Streams**
|
4927
|
+
# * **Amazon DynamoDB Streams** – Default 100. Max 10,000.
|
4877
4928
|
#
|
4878
|
-
# * **Amazon Simple Queue Service**
|
4929
|
+
# * **Amazon Simple Queue Service** – Default 10. For standard queues
|
4879
4930
|
# the max is 10,000. For FIFO queues the max is 10.
|
4880
4931
|
#
|
4881
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
4932
|
+
# * **Amazon Managed Streaming for Apache Kafka** – Default 100. Max
|
4882
4933
|
# 10,000.
|
4883
4934
|
#
|
4884
|
-
# * **Self-managed Apache Kafka**
|
4935
|
+
# * **Self-managed Apache Kafka** – Default 100. Max 10,000.
|
4885
4936
|
#
|
4886
|
-
# * **Amazon MQ (ActiveMQ and RabbitMQ)**
|
4937
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
|
4887
4938
|
#
|
4888
4939
|
# @option params [Types::FilterCriteria] :filter_criteria
|
4889
|
-
#
|
4890
|
-
#
|
4891
|
-
#
|
4940
|
+
# An object that defines the filter criteria that determine whether
|
4941
|
+
# Lambda should process an event. For more information, see [Lambda
|
4942
|
+
# event filtering][1].
|
4892
4943
|
#
|
4893
4944
|
#
|
4894
4945
|
#
|
@@ -4945,6 +4996,15 @@ module Aws::Lambda
|
|
4945
4996
|
# (Streams and Amazon SQS) A list of current response type enums applied
|
4946
4997
|
# to the event source mapping.
|
4947
4998
|
#
|
4999
|
+
# @option params [Types::ScalingConfig] :scaling_config
|
5000
|
+
# (Amazon SQS only) The scaling configuration for the event source. For
|
5001
|
+
# more information, see [Configuring maximum concurrency for Amazon SQS
|
5002
|
+
# event sources][1].
|
5003
|
+
#
|
5004
|
+
#
|
5005
|
+
#
|
5006
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
|
5007
|
+
#
|
4948
5008
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4949
5009
|
#
|
4950
5010
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -4972,6 +5032,7 @@ module Aws::Lambda
|
|
4972
5032
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
4973
5033
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
4974
5034
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
5035
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
4975
5036
|
#
|
4976
5037
|
# @example Request syntax with placeholder values
|
4977
5038
|
#
|
@@ -5008,6 +5069,9 @@ module Aws::Lambda
|
|
5008
5069
|
# ],
|
5009
5070
|
# tumbling_window_in_seconds: 1,
|
5010
5071
|
# function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
|
5072
|
+
# scaling_config: {
|
5073
|
+
# maximum_concurrency: 1,
|
5074
|
+
# },
|
5011
5075
|
# })
|
5012
5076
|
#
|
5013
5077
|
# @example Response structure
|
@@ -5046,6 +5110,7 @@ module Aws::Lambda
|
|
5046
5110
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
5047
5111
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
5048
5112
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
5113
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
5049
5114
|
#
|
5050
5115
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
|
5051
5116
|
#
|
@@ -5058,13 +5123,13 @@ module Aws::Lambda
|
|
5058
5123
|
|
5059
5124
|
# Updates a Lambda function's code. If code signing is enabled for the
|
5060
5125
|
# function, the code package must be signed by a trusted publisher. For
|
5061
|
-
# more information, see [Configuring code signing][1].
|
5126
|
+
# more information, see [Configuring code signing for Lambda][1].
|
5062
5127
|
#
|
5063
|
-
# If the function's package type is `Image`, you must specify the
|
5064
|
-
# package in `ImageUri` as the URI of a [container image][2] in the
|
5128
|
+
# If the function's package type is `Image`, then you must specify the
|
5129
|
+
# code package in `ImageUri` as the URI of a [container image][2] in the
|
5065
5130
|
# Amazon ECR registry.
|
5066
5131
|
#
|
5067
|
-
# If the function's package type is `Zip`, you must specify the
|
5132
|
+
# If the function's package type is `Zip`, then you must specify the
|
5068
5133
|
# deployment package as a [.zip file archive][3]. Enter the Amazon S3
|
5069
5134
|
# bucket and key of the code .zip file location. You can also provide
|
5070
5135
|
# the function code inline using the `ZipFile` field.
|
@@ -5083,7 +5148,7 @@ module Aws::Lambda
|
|
5083
5148
|
#
|
5084
5149
|
#
|
5085
5150
|
#
|
5086
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-
|
5151
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html
|
5087
5152
|
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html
|
5088
5153
|
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip
|
5089
5154
|
#
|
@@ -5092,21 +5157,20 @@ module Aws::Lambda
|
|
5092
5157
|
#
|
5093
5158
|
# **Name formats**
|
5094
5159
|
#
|
5095
|
-
# * **Function name**
|
5160
|
+
# * **Function name** – `my-function`.
|
5096
5161
|
#
|
5097
|
-
# * **Function ARN**
|
5162
|
+
# * **Function ARN** –
|
5098
5163
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
5099
5164
|
#
|
5100
|
-
# * **Partial ARN**
|
5165
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
5101
5166
|
#
|
5102
5167
|
# The length constraint applies only to the full ARN. If you specify
|
5103
5168
|
# only the function name, it is limited to 64 characters in length.
|
5104
5169
|
#
|
5105
5170
|
# @option params [String, StringIO, File] :zip_file
|
5106
5171
|
# The base64-encoded contents of the deployment package. Amazon Web
|
5107
|
-
# Services SDK and
|
5108
|
-
#
|
5109
|
-
# deployment package.
|
5172
|
+
# Services SDK and CLI clients handle the encoding for you. Use only
|
5173
|
+
# with a function defined with a .zip file archive deployment package.
|
5110
5174
|
#
|
5111
5175
|
# @option params [String] :s3_bucket
|
5112
5176
|
# An Amazon S3 bucket in the same Amazon Web Services Region as your
|
@@ -5136,7 +5200,7 @@ module Aws::Lambda
|
|
5136
5200
|
# without modifying the function code.
|
5137
5201
|
#
|
5138
5202
|
# @option params [String] :revision_id
|
5139
|
-
#
|
5203
|
+
# Update the function only if the revision ID matches the ID that's
|
5140
5204
|
# specified. Use this option to avoid modifying a function that has
|
5141
5205
|
# changed since you last read it.
|
5142
5206
|
#
|
@@ -5180,6 +5244,7 @@ module Aws::Lambda
|
|
5180
5244
|
# * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
|
5181
5245
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
5182
5246
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
5247
|
+
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
5183
5248
|
#
|
5184
5249
|
# @example Request syntax with placeholder values
|
5185
5250
|
#
|
@@ -5231,10 +5296,10 @@ module Aws::Lambda
|
|
5231
5296
|
# resp.layers[0].signing_job_arn #=> String
|
5232
5297
|
# resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
5233
5298
|
# resp.state_reason #=> String
|
5234
|
-
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
5299
|
+
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
5235
5300
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
5236
5301
|
# resp.last_update_status_reason #=> String
|
5237
|
-
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
5302
|
+
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
5238
5303
|
# resp.file_system_configs #=> Array
|
5239
5304
|
# resp.file_system_configs[0].arn #=> String
|
5240
5305
|
# resp.file_system_configs[0].local_mount_path #=> String
|
@@ -5251,6 +5316,8 @@ module Aws::Lambda
|
|
5251
5316
|
# resp.architectures #=> Array
|
5252
5317
|
# resp.architectures[0] #=> String, one of "x86_64", "arm64"
|
5253
5318
|
# resp.ephemeral_storage.size #=> Integer
|
5319
|
+
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
5320
|
+
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
5254
5321
|
#
|
5255
5322
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
|
5256
5323
|
#
|
@@ -5271,15 +5338,15 @@ module Aws::Lambda
|
|
5271
5338
|
# `LastUpdateStatusReasonCode` fields in the response from
|
5272
5339
|
# GetFunctionConfiguration indicate when the update is complete and the
|
5273
5340
|
# function is processing events with the new configuration. For more
|
5274
|
-
# information, see [
|
5341
|
+
# information, see [Lambda function states][1].
|
5275
5342
|
#
|
5276
5343
|
# These settings can vary between versions of a function and are locked
|
5277
5344
|
# when you publish a version. You can't modify the configuration of a
|
5278
5345
|
# published version, only the unpublished version.
|
5279
5346
|
#
|
5280
5347
|
# To configure function concurrency, use PutFunctionConcurrency. To
|
5281
|
-
# grant invoke permissions to an
|
5282
|
-
# use AddPermission.
|
5348
|
+
# grant invoke permissions to an Amazon Web Services account or Amazon
|
5349
|
+
# Web Service, use AddPermission.
|
5283
5350
|
#
|
5284
5351
|
#
|
5285
5352
|
#
|
@@ -5290,12 +5357,12 @@ module Aws::Lambda
|
|
5290
5357
|
#
|
5291
5358
|
# **Name formats**
|
5292
5359
|
#
|
5293
|
-
# * **Function name**
|
5360
|
+
# * **Function name** – `my-function`.
|
5294
5361
|
#
|
5295
|
-
# * **Function ARN**
|
5362
|
+
# * **Function ARN** –
|
5296
5363
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
5297
5364
|
#
|
5298
|
-
# * **Partial ARN**
|
5365
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
5299
5366
|
#
|
5300
5367
|
# The length constraint applies only to the full ARN. If you specify
|
5301
5368
|
# only the function name, it is limited to 64 characters in length.
|
@@ -5304,15 +5371,15 @@ module Aws::Lambda
|
|
5304
5371
|
# The Amazon Resource Name (ARN) of the function's execution role.
|
5305
5372
|
#
|
5306
5373
|
# @option params [String] :handler
|
5307
|
-
# The name of the method within your code that Lambda calls to
|
5308
|
-
#
|
5309
|
-
#
|
5374
|
+
# The name of the method within your code that Lambda calls to run your
|
5375
|
+
# function. Handler is required if the deployment package is a .zip file
|
5376
|
+
# archive. The format includes the file name. It can also include
|
5310
5377
|
# namespaces and other qualifiers, depending on the runtime. For more
|
5311
|
-
# information, see [
|
5378
|
+
# information, see [Lambda programming model][1].
|
5312
5379
|
#
|
5313
5380
|
#
|
5314
5381
|
#
|
5315
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
5382
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html
|
5316
5383
|
#
|
5317
5384
|
# @option params [String] :description
|
5318
5385
|
# A description of the function.
|
@@ -5320,8 +5387,8 @@ module Aws::Lambda
|
|
5320
5387
|
# @option params [Integer] :timeout
|
5321
5388
|
# The amount of time (in seconds) that Lambda allows a function to run
|
5322
5389
|
# before stopping it. The default is 3 seconds. The maximum allowed
|
5323
|
-
# value is 900 seconds. For
|
5324
|
-
#
|
5390
|
+
# value is 900 seconds. For more information, see [Lambda execution
|
5391
|
+
# environment][1].
|
5325
5392
|
#
|
5326
5393
|
#
|
5327
5394
|
#
|
@@ -5334,14 +5401,14 @@ module Aws::Lambda
|
|
5334
5401
|
#
|
5335
5402
|
#
|
5336
5403
|
#
|
5337
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-
|
5404
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console
|
5338
5405
|
#
|
5339
5406
|
# @option params [Types::VpcConfig] :vpc_config
|
5340
5407
|
# For network connectivity to Amazon Web Services resources in a VPC,
|
5341
5408
|
# specify a list of security groups and subnets in the VPC. When you
|
5342
|
-
# connect a function to a VPC, it can
|
5343
|
-
#
|
5344
|
-
#
|
5409
|
+
# connect a function to a VPC, it can access resources and the internet
|
5410
|
+
# only through that VPC. For more information, see [Configuring a Lambda
|
5411
|
+
# function to access resources in a VPC][1].
|
5345
5412
|
#
|
5346
5413
|
#
|
5347
5414
|
#
|
@@ -5360,18 +5427,18 @@ module Aws::Lambda
|
|
5360
5427
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
5361
5428
|
#
|
5362
5429
|
# @option params [Types::DeadLetterConfig] :dead_letter_config
|
5363
|
-
# A dead
|
5430
|
+
# A dead-letter queue configuration that specifies the queue or topic
|
5364
5431
|
# where Lambda sends asynchronous events when they fail processing. For
|
5365
|
-
# more information, see [Dead
|
5432
|
+
# more information, see [Dead-letter queues][1].
|
5366
5433
|
#
|
5367
5434
|
#
|
5368
5435
|
#
|
5369
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
5436
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq
|
5370
5437
|
#
|
5371
5438
|
# @option params [String] :kms_key_arn
|
5372
|
-
# The ARN of the
|
5373
|
-
#
|
5374
|
-
#
|
5439
|
+
# The ARN of the Key Management Service (KMS) key that's used to
|
5440
|
+
# encrypt your function's environment variables. If it's not provided,
|
5441
|
+
# Lambda uses a default service key.
|
5375
5442
|
#
|
5376
5443
|
# @option params [Types::TracingConfig] :tracing_config
|
5377
5444
|
# Set `Mode` to `Active` to sample and trace a subset of incoming
|
@@ -5382,7 +5449,7 @@ module Aws::Lambda
|
|
5382
5449
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html
|
5383
5450
|
#
|
5384
5451
|
# @option params [String] :revision_id
|
5385
|
-
#
|
5452
|
+
# Update the function only if the revision ID matches the ID that's
|
5386
5453
|
# specified. Use this option to avoid modifying a function that has
|
5387
5454
|
# changed since you last read it.
|
5388
5455
|
#
|
@@ -5406,8 +5473,15 @@ module Aws::Lambda
|
|
5406
5473
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html
|
5407
5474
|
#
|
5408
5475
|
# @option params [Types::EphemeralStorage] :ephemeral_storage
|
5409
|
-
# The size of the function
|
5410
|
-
# 512, but can be any whole number between 512 and
|
5476
|
+
# The size of the function's `/tmp` directory in MB. The default value
|
5477
|
+
# is 512, but can be any whole number between 512 and 10,240 MB.
|
5478
|
+
#
|
5479
|
+
# @option params [Types::SnapStart] :snap_start
|
5480
|
+
# The function's [SnapStart][1] setting.
|
5481
|
+
#
|
5482
|
+
#
|
5483
|
+
#
|
5484
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html
|
5411
5485
|
#
|
5412
5486
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5413
5487
|
#
|
@@ -5444,6 +5518,7 @@ module Aws::Lambda
|
|
5444
5518
|
# * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
|
5445
5519
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
5446
5520
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
5521
|
+
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
5447
5522
|
#
|
5448
5523
|
# @example Request syntax with placeholder values
|
5449
5524
|
#
|
@@ -5487,6 +5562,9 @@ module Aws::Lambda
|
|
5487
5562
|
# ephemeral_storage: {
|
5488
5563
|
# size: 1, # required
|
5489
5564
|
# },
|
5565
|
+
# snap_start: {
|
5566
|
+
# apply_on: "PublishedVersions", # accepts PublishedVersions, None
|
5567
|
+
# },
|
5490
5568
|
# })
|
5491
5569
|
#
|
5492
5570
|
# @example Response structure
|
@@ -5524,10 +5602,10 @@ module Aws::Lambda
|
|
5524
5602
|
# resp.layers[0].signing_job_arn #=> String
|
5525
5603
|
# resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
|
5526
5604
|
# resp.state_reason #=> String
|
5527
|
-
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
5605
|
+
# resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
5528
5606
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
5529
5607
|
# resp.last_update_status_reason #=> String
|
5530
|
-
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
|
5608
|
+
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage", "KMSKeyAccessDenied", "KMSKeyNotFound", "InvalidStateKMSKey", "DisabledKMSKey", "EFSIOError", "EFSMountConnectivityError", "EFSMountFailure", "EFSMountTimeout", "InvalidRuntime", "InvalidZipFileException", "FunctionError"
|
5531
5609
|
# resp.file_system_configs #=> Array
|
5532
5610
|
# resp.file_system_configs[0].arn #=> String
|
5533
5611
|
# resp.file_system_configs[0].local_mount_path #=> String
|
@@ -5544,6 +5622,8 @@ module Aws::Lambda
|
|
5544
5622
|
# resp.architectures #=> Array
|
5545
5623
|
# resp.architectures[0] #=> String, one of "x86_64", "arm64"
|
5546
5624
|
# resp.ephemeral_storage.size #=> Integer
|
5625
|
+
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
5626
|
+
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
5547
5627
|
#
|
5548
5628
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
|
5549
5629
|
#
|
@@ -5652,12 +5732,12 @@ module Aws::Lambda
|
|
5652
5732
|
#
|
5653
5733
|
# **Name formats**
|
5654
5734
|
#
|
5655
|
-
# * **Function name**
|
5735
|
+
# * **Function name** – `my-function`.
|
5656
5736
|
#
|
5657
|
-
# * **Function ARN**
|
5737
|
+
# * **Function ARN** –
|
5658
5738
|
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
5659
5739
|
#
|
5660
|
-
# * **Partial ARN**
|
5740
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
5661
5741
|
#
|
5662
5742
|
# The length constraint applies only to the full ARN. If you specify
|
5663
5743
|
# only the function name, it is limited to 64 characters in length.
|
@@ -5667,9 +5747,9 @@ module Aws::Lambda
|
|
5667
5747
|
#
|
5668
5748
|
# @option params [String] :auth_type
|
5669
5749
|
# The type of authentication that your function URL uses. Set to
|
5670
|
-
# `AWS_IAM` if you want to restrict access to authenticated
|
5750
|
+
# `AWS_IAM` if you want to restrict access to authenticated IAM users
|
5671
5751
|
# only. Set to `NONE` if you want to bypass IAM authentication to create
|
5672
|
-
# a public endpoint. For more information, see [
|
5752
|
+
# a public endpoint. For more information, see [Security and auth model
|
5673
5753
|
# for Lambda function URLs][1].
|
5674
5754
|
#
|
5675
5755
|
#
|
@@ -5749,7 +5829,7 @@ module Aws::Lambda
|
|
5749
5829
|
params: params,
|
5750
5830
|
config: config)
|
5751
5831
|
context[:gem_name] = 'aws-sdk-lambda'
|
5752
|
-
context[:gem_version] = '1.
|
5832
|
+
context[:gem_version] = '1.89.0'
|
5753
5833
|
Seahorse::Client::Request.new(handlers, context)
|
5754
5834
|
end
|
5755
5835
|
|
@@ -5815,13 +5895,14 @@ module Aws::Lambda
|
|
5815
5895
|
# The following table lists the valid waiter names, the operations they call,
|
5816
5896
|
# and the default `:delay` and `:max_attempts` values.
|
5817
5897
|
#
|
5818
|
-
# | waiter_name
|
5819
|
-
# |
|
5820
|
-
# | function_active
|
5821
|
-
# | function_active_v2
|
5822
|
-
# | function_exists
|
5823
|
-
# | function_updated
|
5824
|
-
# | function_updated_v2
|
5898
|
+
# | waiter_name | params | :delay | :max_attempts |
|
5899
|
+
# | ------------------------ | ----------------------------------- | -------- | ------------- |
|
5900
|
+
# | function_active | {Client#get_function_configuration} | 5 | 60 |
|
5901
|
+
# | function_active_v2 | {Client#get_function} | 1 | 300 |
|
5902
|
+
# | function_exists | {Client#get_function} | 1 | 20 |
|
5903
|
+
# | function_updated | {Client#get_function_configuration} | 5 | 60 |
|
5904
|
+
# | function_updated_v2 | {Client#get_function} | 1 | 300 |
|
5905
|
+
# | published_version_active | {Client#get_function_configuration} | 5 | 312 |
|
5825
5906
|
#
|
5826
5907
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
5827
5908
|
# because the waiter has entered a state that it will not transition
|
@@ -5876,7 +5957,8 @@ module Aws::Lambda
|
|
5876
5957
|
function_active_v2: Waiters::FunctionActiveV2,
|
5877
5958
|
function_exists: Waiters::FunctionExists,
|
5878
5959
|
function_updated: Waiters::FunctionUpdated,
|
5879
|
-
function_updated_v2: Waiters::FunctionUpdatedV2
|
5960
|
+
function_updated_v2: Waiters::FunctionUpdatedV2,
|
5961
|
+
published_version_active: Waiters::PublishedVersionActive
|
5880
5962
|
}
|
5881
5963
|
end
|
5882
5964
|
|