aws-sdk-lambda 1.53.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70078dd67659e21cbea7f9f1b66704815c8aa15de85aaeb53112908315cabd38
4
- data.tar.gz: d7c33760b4d483cf4e086af86224f91a373c91cb534d7c703171d2ca6bbf15be
3
+ metadata.gz: d041035e531966fcf616acc015f3b329e6bc4f125bb1b723e80bb2160fa33563
4
+ data.tar.gz: b392aaf31009f393363522af643faae5a8d6911c30664c44f4db2476bd0e569e
5
5
  SHA512:
6
- metadata.gz: a293f20ae9e9af1011fb603e4b22230e9034f6dbd1fe540797edb836e1920345baf28ea14fba9ec644fc9a03e53665ddff10aa6e429195fc53fae6b90edd22eb
7
- data.tar.gz: 45fdfebd416512f8d24c104ebb31ce41c7689841b419d9de8414ec1adfaaebb1ebbc3c08bf29244a5568b460e4b89b01bb66dbbeb2c8ecafd5dec9a145a77cc8
6
+ metadata.gz: 7b46422207bf3ef1c778dc5ae51d6c972a6b1d04a346e63384fc13ac0e87ce17d0eeeb77dc734b00f4a37f85a12d7d14759e2ef624ffe109df7b01876d1de29a
7
+ data.tar.gz: '0262480d2e0c0555877d7ca0ef394d5a4860f22d5c8c3fd5a600a7c115819d865a673245faaf6fea48e4754dd084e51a0cb09f4adffa36783e77280076cc8b58'
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-lambda/customizations'
49
49
  # @!group service
50
50
  module Aws::Lambda
51
51
 
52
- GEM_VERSION = '1.53.0'
52
+ GEM_VERSION = '1.58.0'
53
53
 
54
54
  end
@@ -664,6 +664,60 @@ module Aws::Lambda
664
664
  req.send_request(options)
665
665
  end
666
666
 
667
+ # Creates a code signing configuration. A [code signing
668
+ # configuration][1] defines a list of allowed signing profiles and
669
+ # defines the code-signing validation policy (action to be taken if
670
+ # deployment validation checks fail).
671
+ #
672
+ #
673
+ #
674
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
675
+ #
676
+ # @option params [String] :description
677
+ # Descriptive name for this code signing configuration.
678
+ #
679
+ # @option params [required, Types::AllowedPublishers] :allowed_publishers
680
+ # Signing profiles for this code signing configuration.
681
+ #
682
+ # @option params [Types::CodeSigningPolicies] :code_signing_policies
683
+ # The code signing policies define the actions to take if the validation
684
+ # checks fail.
685
+ #
686
+ # @return [Types::CreateCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
687
+ #
688
+ # * {Types::CreateCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
689
+ #
690
+ # @example Request syntax with placeholder values
691
+ #
692
+ # resp = client.create_code_signing_config({
693
+ # description: "Description",
694
+ # allowed_publishers: { # required
695
+ # signing_profile_version_arns: ["Arn"], # required
696
+ # },
697
+ # code_signing_policies: {
698
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
699
+ # },
700
+ # })
701
+ #
702
+ # @example Response structure
703
+ #
704
+ # resp.code_signing_config.code_signing_config_id #=> String
705
+ # resp.code_signing_config.code_signing_config_arn #=> String
706
+ # resp.code_signing_config.description #=> String
707
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
708
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
709
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
710
+ # resp.code_signing_config.last_modified #=> Time
711
+ #
712
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfig AWS API Documentation
713
+ #
714
+ # @overload create_code_signing_config(params = {})
715
+ # @param [Hash] params ({})
716
+ def create_code_signing_config(params = {}, options = {})
717
+ req = build_request(:create_code_signing_config, params)
718
+ req.send_request(options)
719
+ end
720
+
667
721
  # Creates a mapping between an event source and an AWS Lambda function.
668
722
  # Lambda reads items from the event source and triggers the function.
669
723
  #
@@ -679,6 +733,8 @@ module Aws::Lambda
679
733
  #
680
734
  # * [Using AWS Lambda with Amazon MSK][5]
681
735
  #
736
+ # * [Using AWS Lambda with Self-Managed Apache Kafka][6]
737
+ #
682
738
  # The following error handling options are only available for stream
683
739
  # sources (DynamoDB and Kinesis):
684
740
  #
@@ -706,8 +762,9 @@ module Aws::Lambda
706
762
  # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
707
763
  # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html
708
764
  # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
765
+ # [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
709
766
  #
710
- # @option params [required, String] :event_source_arn
767
+ # @option params [String] :event_source_arn
711
768
  # The Amazon Resource Name (ARN) of the event source.
712
769
  #
713
770
  # * **Amazon Kinesis** - The ARN of the data stream or a stream
@@ -749,14 +806,17 @@ module Aws::Lambda
749
806
  #
750
807
  # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
751
808
  #
752
- # * **Amazon Simple Queue Service** - Default 10. Max 10.
809
+ # * **Amazon Simple Queue Service** - Default 10. For standard queues
810
+ # the max is 10,000. For FIFO queues the max is 10.
753
811
  #
754
812
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
755
813
  # 10,000.
756
814
  #
815
+ # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
816
+ #
757
817
  # @option params [Integer] :maximum_batching_window_in_seconds
758
- # (Streams) The maximum amount of time to gather records before invoking
759
- # the function, in seconds.
818
+ # (Streams and SQS standard queues) The maximum amount of time to gather
819
+ # records before invoking the function, in seconds.
760
820
  #
761
821
  # @option params [Integer] :parallelization_factor
762
822
  # (Streams) The number of batches to process from each shard
@@ -788,24 +848,26 @@ module Aws::Lambda
788
848
  # default value is infinite (-1). When set to infinite (-1), failed
789
849
  # records will be retried until the record expires.
790
850
  #
851
+ # @option params [Integer] :tumbling_window_in_seconds
852
+ # (Streams) The duration of a processing window in seconds. The range is
853
+ # between 1 second up to 15 minutes.
854
+ #
791
855
  # @option params [Array<String>] :topics
792
- # (MSK) The name of the Kafka topic.
856
+ # The name of the Kafka topic.
793
857
  #
794
858
  # @option params [Array<String>] :queues
795
859
  # (MQ) The name of the Amazon MQ broker destination queue to consume.
796
860
  #
797
861
  # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
798
- # (MQ) The Secrets Manager secret that stores your broker credentials.
799
- # To store your secret, use the following format: ` \{ "username": "your
800
- # username", "password": "your password" \}`
862
+ # An array of the authentication protocol, or the VPC components to
863
+ # secure your event source.
801
864
  #
802
- # To reference the secret, use the following format: `[ \{ "Type":
803
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
865
+ # @option params [Types::SelfManagedEventSource] :self_managed_event_source
866
+ # The Self-Managed Apache Kafka cluster to send records.
804
867
  #
805
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
806
- # can use customer or service managed keys. When using a customer
807
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
808
- # permissions.
868
+ # @option params [Array<String>] :function_response_types
869
+ # (Streams) A list of current response type enums applied to the event
870
+ # source mapping.
809
871
  #
810
872
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
811
873
  #
@@ -825,9 +887,12 @@ module Aws::Lambda
825
887
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
826
888
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
827
889
  # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
890
+ # * {Types::EventSourceMappingConfiguration#self_managed_event_source #self_managed_event_source} => Types::SelfManagedEventSource
828
891
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
829
892
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
830
893
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
894
+ # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
895
+ # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
831
896
  #
832
897
  #
833
898
  # @example Example: To create a mapping between an event source and an AWS Lambda function
@@ -854,7 +919,7 @@ module Aws::Lambda
854
919
  # @example Request syntax with placeholder values
855
920
  #
856
921
  # resp = client.create_event_source_mapping({
857
- # event_source_arn: "Arn", # required
922
+ # event_source_arn: "Arn",
858
923
  # function_name: "FunctionName", # required
859
924
  # enabled: false,
860
925
  # batch_size: 1,
@@ -873,14 +938,21 @@ module Aws::Lambda
873
938
  # maximum_record_age_in_seconds: 1,
874
939
  # bisect_batch_on_function_error: false,
875
940
  # maximum_retry_attempts: 1,
941
+ # tumbling_window_in_seconds: 1,
876
942
  # topics: ["Topic"],
877
943
  # queues: ["Queue"],
878
944
  # source_access_configurations: [
879
945
  # {
880
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
881
- # uri: "Arn",
946
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
947
+ # uri: "URI",
882
948
  # },
883
949
  # ],
950
+ # self_managed_event_source: {
951
+ # endpoints: {
952
+ # "KAFKA_BOOTSTRAP_SERVERS" => ["Endpoint"],
953
+ # },
954
+ # },
955
+ # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
884
956
  # })
885
957
  #
886
958
  # @example Response structure
@@ -904,11 +976,17 @@ module Aws::Lambda
904
976
  # resp.queues #=> Array
905
977
  # resp.queues[0] #=> String
906
978
  # resp.source_access_configurations #=> Array
907
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
979
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
908
980
  # resp.source_access_configurations[0].uri #=> String
981
+ # resp.self_managed_event_source.endpoints #=> Hash
982
+ # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
983
+ # resp.self_managed_event_source.endpoints["EndPointType"][0] #=> String
909
984
  # resp.maximum_record_age_in_seconds #=> Integer
910
985
  # resp.bisect_batch_on_function_error #=> Boolean
911
986
  # resp.maximum_retry_attempts #=> Integer
987
+ # resp.tumbling_window_in_seconds #=> Integer
988
+ # resp.function_response_types #=> Array
989
+ # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
912
990
  #
913
991
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
914
992
  #
@@ -921,9 +999,10 @@ module Aws::Lambda
921
999
 
922
1000
  # Creates a Lambda function. To create a function, you need a
923
1001
  # [deployment package][1] and an [execution role][2]. The deployment
924
- # package contains your function code. The execution role grants the
925
- # function permission to use AWS services, such as Amazon CloudWatch
926
- # Logs for log streaming and AWS X-Ray for request tracing.
1002
+ # package is a .zip file archive or container image that contains your
1003
+ # function code. The execution role grants the function permission to
1004
+ # use AWS services, such as Amazon CloudWatch Logs for log streaming and
1005
+ # AWS X-Ray for request tracing.
927
1006
  #
928
1007
  # When you create a function, Lambda provisions an instance of the
929
1008
  # function and its supporting resources. If your function connects to a
@@ -948,6 +1027,14 @@ module Aws::Lambda
948
1027
  # include tags (TagResource) and per-function concurrency limits
949
1028
  # (PutFunctionConcurrency).
950
1029
  #
1030
+ # You can use code signing if your deployment package is a .zip file
1031
+ # archive. To enable code signing for this function, specify the ARN of
1032
+ # a code-signing configuration. When a user attempts to deploy a code
1033
+ # package with UpdateFunctionCode, Lambda checks that the code package
1034
+ # has a valid signature from a trusted publisher. The code-signing
1035
+ # configuration includes set set of signing profiles, which define the
1036
+ # trusted publishers for this function.
1037
+ #
951
1038
  # If another account or an AWS service invokes your function, use
952
1039
  # AddPermission to grant permission by creating a resource-based IAM
953
1040
  # policy. You can grant permissions at the function level, on a version,
@@ -960,7 +1047,7 @@ module Aws::Lambda
960
1047
  #
961
1048
  #
962
1049
  #
963
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/deployment-package-v2.html
1050
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html
964
1051
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role
965
1052
  # [3]: https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html
966
1053
  # [4]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html
@@ -980,7 +1067,7 @@ module Aws::Lambda
980
1067
  # The length constraint applies only to the full ARN. If you specify
981
1068
  # only the function name, it is limited to 64 characters in length.
982
1069
  #
983
- # @option params [required, String] :runtime
1070
+ # @option params [String] :runtime
984
1071
  # The identifier of the function's [runtime][1].
985
1072
  #
986
1073
  #
@@ -990,7 +1077,7 @@ module Aws::Lambda
990
1077
  # @option params [required, String] :role
991
1078
  # The Amazon Resource Name (ARN) of the function's execution role.
992
1079
  #
993
- # @option params [required, String] :handler
1080
+ # @option params [String] :handler
994
1081
  # The name of the method within your code that Lambda calls to execute
995
1082
  # your function. The format includes the file name. It can also include
996
1083
  # namespaces and other qualifiers, depending on the runtime. For more
@@ -1012,9 +1099,9 @@ module Aws::Lambda
1012
1099
  # 900 seconds.
1013
1100
  #
1014
1101
  # @option params [Integer] :memory_size
1015
- # The amount of memory that your function has access to. Increasing the
1016
- # function's memory also increases its CPU allocation. The default
1017
- # value is 128 MB. The value must be a multiple of 64 MB.
1102
+ # The amount of memory available to the function at runtime. Increasing
1103
+ # the function's memory also increases its CPU allocation. The default
1104
+ # value is 128 MB. The value can be any multiple of 1 MB.
1018
1105
  #
1019
1106
  # @option params [Boolean] :publish
1020
1107
  # Set to true to publish the first version of the function during
@@ -1030,6 +1117,10 @@ module Aws::Lambda
1030
1117
  #
1031
1118
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
1032
1119
  #
1120
+ # @option params [String] :package_type
1121
+ # The type of deployment package. Set to `Image` for container image and
1122
+ # set `Zip` for ZIP archive.
1123
+ #
1033
1124
  # @option params [Types::DeadLetterConfig] :dead_letter_config
1034
1125
  # A dead letter queue configuration that specifies the queue or topic
1035
1126
  # where Lambda sends asynchronous events when they fail processing. For
@@ -1070,6 +1161,15 @@ module Aws::Lambda
1070
1161
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
1071
1162
  # Connection settings for an Amazon EFS file system.
1072
1163
  #
1164
+ # @option params [Types::ImageConfig] :image_config
1165
+ # Configuration values that override the container image Dockerfile.
1166
+ #
1167
+ # @option params [String] :code_signing_config_arn
1168
+ # To enable code signing for this function, specify the ARN of a
1169
+ # code-signing configuration. A code-signing configuration includes a
1170
+ # set of signing profiles, which define the trusted publishers for this
1171
+ # function.
1172
+ #
1073
1173
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1074
1174
  #
1075
1175
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -1099,6 +1199,10 @@ module Aws::Lambda
1099
1199
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
1100
1200
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
1101
1201
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
1202
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
1203
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
1204
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
1205
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
1102
1206
  #
1103
1207
  #
1104
1208
  # @example Example: To create a function
@@ -1167,14 +1271,15 @@ module Aws::Lambda
1167
1271
  #
1168
1272
  # resp = client.create_function({
1169
1273
  # function_name: "FunctionName", # required
1170
- # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
1274
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
1171
1275
  # role: "RoleArn", # required
1172
- # handler: "Handler", # required
1276
+ # handler: "Handler",
1173
1277
  # code: { # required
1174
1278
  # zip_file: "data",
1175
1279
  # s3_bucket: "S3Bucket",
1176
1280
  # s3_key: "S3Key",
1177
1281
  # s3_object_version: "S3ObjectVersion",
1282
+ # image_uri: "String",
1178
1283
  # },
1179
1284
  # description: "Description",
1180
1285
  # timeout: 1,
@@ -1184,6 +1289,7 @@ module Aws::Lambda
1184
1289
  # subnet_ids: ["SubnetId"],
1185
1290
  # security_group_ids: ["SecurityGroupId"],
1186
1291
  # },
1292
+ # package_type: "Zip", # accepts Zip, Image
1187
1293
  # dead_letter_config: {
1188
1294
  # target_arn: "ResourceArn",
1189
1295
  # },
@@ -1206,6 +1312,12 @@ module Aws::Lambda
1206
1312
  # local_mount_path: "LocalMountPath", # required
1207
1313
  # },
1208
1314
  # ],
1315
+ # image_config: {
1316
+ # entry_point: ["String"],
1317
+ # command: ["String"],
1318
+ # working_directory: "WorkingDirectory",
1319
+ # },
1320
+ # code_signing_config_arn: "CodeSigningConfigArn",
1209
1321
  # })
1210
1322
  #
1211
1323
  # @example Response structure
@@ -1239,15 +1351,27 @@ module Aws::Lambda
1239
1351
  # resp.layers #=> Array
1240
1352
  # resp.layers[0].arn #=> String
1241
1353
  # resp.layers[0].code_size #=> Integer
1354
+ # resp.layers[0].signing_profile_version_arn #=> String
1355
+ # resp.layers[0].signing_job_arn #=> String
1242
1356
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1243
1357
  # resp.state_reason #=> String
1244
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
1358
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
1245
1359
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
1246
1360
  # resp.last_update_status_reason #=> String
1247
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
1361
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
1248
1362
  # resp.file_system_configs #=> Array
1249
1363
  # resp.file_system_configs[0].arn #=> String
1250
1364
  # resp.file_system_configs[0].local_mount_path #=> String
1365
+ # resp.package_type #=> String, one of "Zip", "Image"
1366
+ # resp.image_config_response.image_config.entry_point #=> Array
1367
+ # resp.image_config_response.image_config.entry_point[0] #=> String
1368
+ # resp.image_config_response.image_config.command #=> Array
1369
+ # resp.image_config_response.image_config.command[0] #=> String
1370
+ # resp.image_config_response.image_config.working_directory #=> String
1371
+ # resp.image_config_response.error.error_code #=> String
1372
+ # resp.image_config_response.error.message #=> String
1373
+ # resp.signing_profile_version_arn #=> String
1374
+ # resp.signing_job_arn #=> String
1251
1375
  #
1252
1376
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
1253
1377
  #
@@ -1310,6 +1434,29 @@ module Aws::Lambda
1310
1434
  req.send_request(options)
1311
1435
  end
1312
1436
 
1437
+ # Deletes the code signing configuration. You can delete the code
1438
+ # signing configuration only if no function is using it.
1439
+ #
1440
+ # @option params [required, String] :code_signing_config_arn
1441
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
1442
+ #
1443
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1444
+ #
1445
+ # @example Request syntax with placeholder values
1446
+ #
1447
+ # resp = client.delete_code_signing_config({
1448
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1449
+ # })
1450
+ #
1451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig AWS API Documentation
1452
+ #
1453
+ # @overload delete_code_signing_config(params = {})
1454
+ # @param [Hash] params ({})
1455
+ def delete_code_signing_config(params = {}, options = {})
1456
+ req = build_request(:delete_code_signing_config, params)
1457
+ req.send_request(options)
1458
+ end
1459
+
1313
1460
  # Deletes an [event source mapping][1]. You can get the identifier of a
1314
1461
  # mapping from the output of ListEventSourceMappings.
1315
1462
  #
@@ -1341,9 +1488,12 @@ module Aws::Lambda
1341
1488
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1342
1489
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1343
1490
  # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
1491
+ # * {Types::EventSourceMappingConfiguration#self_managed_event_source #self_managed_event_source} => Types::SelfManagedEventSource
1344
1492
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1345
1493
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1346
1494
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
1495
+ # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
1496
+ # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
1347
1497
  #
1348
1498
  #
1349
1499
  # @example Example: To delete a Lambda function event source mapping
@@ -1392,11 +1542,17 @@ module Aws::Lambda
1392
1542
  # resp.queues #=> Array
1393
1543
  # resp.queues[0] #=> String
1394
1544
  # resp.source_access_configurations #=> Array
1395
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
1545
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
1396
1546
  # resp.source_access_configurations[0].uri #=> String
1547
+ # resp.self_managed_event_source.endpoints #=> Hash
1548
+ # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
1549
+ # resp.self_managed_event_source.endpoints["EndPointType"][0] #=> String
1397
1550
  # resp.maximum_record_age_in_seconds #=> Integer
1398
1551
  # resp.bisect_batch_on_function_error #=> Boolean
1399
1552
  # resp.maximum_retry_attempts #=> Integer
1553
+ # resp.tumbling_window_in_seconds #=> Integer
1554
+ # resp.function_response_types #=> Array
1555
+ # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
1400
1556
  #
1401
1557
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
1402
1558
  #
@@ -1465,6 +1621,40 @@ module Aws::Lambda
1465
1621
  req.send_request(options)
1466
1622
  end
1467
1623
 
1624
+ # Removes the code signing configuration from the function.
1625
+ #
1626
+ # @option params [required, String] :function_name
1627
+ # The name of the Lambda function.
1628
+ #
1629
+ # **Name formats**
1630
+ #
1631
+ # * **Function name** - `MyFunction`.
1632
+ #
1633
+ # * **Function ARN** -
1634
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
1635
+ #
1636
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
1637
+ #
1638
+ # The length constraint applies only to the full ARN. If you specify
1639
+ # only the function name, it is limited to 64 characters in length.
1640
+ #
1641
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1642
+ #
1643
+ # @example Request syntax with placeholder values
1644
+ #
1645
+ # resp = client.delete_function_code_signing_config({
1646
+ # function_name: "FunctionName", # required
1647
+ # })
1648
+ #
1649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig AWS API Documentation
1650
+ #
1651
+ # @overload delete_function_code_signing_config(params = {})
1652
+ # @param [Hash] params ({})
1653
+ def delete_function_code_signing_config(params = {}, options = {})
1654
+ req = build_request(:delete_function_code_signing_config, params)
1655
+ req.send_request(options)
1656
+ end
1657
+
1468
1658
  # Removes a concurrent execution limit from a function.
1469
1659
  #
1470
1660
  # @option params [required, String] :function_name
@@ -1786,6 +1976,40 @@ module Aws::Lambda
1786
1976
  req.send_request(options)
1787
1977
  end
1788
1978
 
1979
+ # Returns information about the specified code signing configuration.
1980
+ #
1981
+ # @option params [required, String] :code_signing_config_arn
1982
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
1983
+ #
1984
+ # @return [Types::GetCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1985
+ #
1986
+ # * {Types::GetCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
1987
+ #
1988
+ # @example Request syntax with placeholder values
1989
+ #
1990
+ # resp = client.get_code_signing_config({
1991
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1992
+ # })
1993
+ #
1994
+ # @example Response structure
1995
+ #
1996
+ # resp.code_signing_config.code_signing_config_id #=> String
1997
+ # resp.code_signing_config.code_signing_config_arn #=> String
1998
+ # resp.code_signing_config.description #=> String
1999
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
2000
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
2001
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
2002
+ # resp.code_signing_config.last_modified #=> Time
2003
+ #
2004
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig AWS API Documentation
2005
+ #
2006
+ # @overload get_code_signing_config(params = {})
2007
+ # @param [Hash] params ({})
2008
+ def get_code_signing_config(params = {}, options = {})
2009
+ req = build_request(:get_code_signing_config, params)
2010
+ req.send_request(options)
2011
+ end
2012
+
1789
2013
  # Returns details about an event source mapping. You can get the
1790
2014
  # identifier of a mapping from the output of ListEventSourceMappings.
1791
2015
  #
@@ -1810,9 +2034,12 @@ module Aws::Lambda
1810
2034
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1811
2035
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1812
2036
  # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
2037
+ # * {Types::EventSourceMappingConfiguration#self_managed_event_source #self_managed_event_source} => Types::SelfManagedEventSource
1813
2038
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1814
2039
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1815
2040
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
2041
+ # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
2042
+ # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
1816
2043
  #
1817
2044
  #
1818
2045
  # @example Example: To get a Lambda function's event source mapping
@@ -1868,11 +2095,17 @@ module Aws::Lambda
1868
2095
  # resp.queues #=> Array
1869
2096
  # resp.queues[0] #=> String
1870
2097
  # resp.source_access_configurations #=> Array
1871
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
2098
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
1872
2099
  # resp.source_access_configurations[0].uri #=> String
2100
+ # resp.self_managed_event_source.endpoints #=> Hash
2101
+ # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
2102
+ # resp.self_managed_event_source.endpoints["EndPointType"][0] #=> String
1873
2103
  # resp.maximum_record_age_in_seconds #=> Integer
1874
2104
  # resp.bisect_batch_on_function_error #=> Boolean
1875
2105
  # resp.maximum_retry_attempts #=> Integer
2106
+ # resp.tumbling_window_in_seconds #=> Integer
2107
+ # resp.function_response_types #=> Array
2108
+ # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
1876
2109
  #
1877
2110
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
1878
2111
  #
@@ -2002,17 +2235,31 @@ module Aws::Lambda
2002
2235
  # resp.configuration.layers #=> Array
2003
2236
  # resp.configuration.layers[0].arn #=> String
2004
2237
  # resp.configuration.layers[0].code_size #=> Integer
2238
+ # resp.configuration.layers[0].signing_profile_version_arn #=> String
2239
+ # resp.configuration.layers[0].signing_job_arn #=> String
2005
2240
  # resp.configuration.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
2006
2241
  # resp.configuration.state_reason #=> String
2007
- # resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2242
+ # resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
2008
2243
  # resp.configuration.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
2009
2244
  # resp.configuration.last_update_status_reason #=> String
2010
- # resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2245
+ # resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
2011
2246
  # resp.configuration.file_system_configs #=> Array
2012
2247
  # resp.configuration.file_system_configs[0].arn #=> String
2013
2248
  # resp.configuration.file_system_configs[0].local_mount_path #=> String
2249
+ # resp.configuration.package_type #=> String, one of "Zip", "Image"
2250
+ # resp.configuration.image_config_response.image_config.entry_point #=> Array
2251
+ # resp.configuration.image_config_response.image_config.entry_point[0] #=> String
2252
+ # resp.configuration.image_config_response.image_config.command #=> Array
2253
+ # resp.configuration.image_config_response.image_config.command[0] #=> String
2254
+ # resp.configuration.image_config_response.image_config.working_directory #=> String
2255
+ # resp.configuration.image_config_response.error.error_code #=> String
2256
+ # resp.configuration.image_config_response.error.message #=> String
2257
+ # resp.configuration.signing_profile_version_arn #=> String
2258
+ # resp.configuration.signing_job_arn #=> String
2014
2259
  # resp.code.repository_type #=> String
2015
2260
  # resp.code.location #=> String
2261
+ # resp.code.image_uri #=> String
2262
+ # resp.code.resolved_image_uri #=> String
2016
2263
  # resp.tags #=> Hash
2017
2264
  # resp.tags["TagKey"] #=> String
2018
2265
  # resp.concurrency.reserved_concurrent_executions #=> Integer
@@ -2031,6 +2278,48 @@ module Aws::Lambda
2031
2278
  req.send_request(options)
2032
2279
  end
2033
2280
 
2281
+ # Returns the code signing configuration for the specified function.
2282
+ #
2283
+ # @option params [required, String] :function_name
2284
+ # The name of the Lambda function.
2285
+ #
2286
+ # **Name formats**
2287
+ #
2288
+ # * **Function name** - `MyFunction`.
2289
+ #
2290
+ # * **Function ARN** -
2291
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
2292
+ #
2293
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
2294
+ #
2295
+ # The length constraint applies only to the full ARN. If you specify
2296
+ # only the function name, it is limited to 64 characters in length.
2297
+ #
2298
+ # @return [Types::GetFunctionCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2299
+ #
2300
+ # * {Types::GetFunctionCodeSigningConfigResponse#code_signing_config_arn #code_signing_config_arn} => String
2301
+ # * {Types::GetFunctionCodeSigningConfigResponse#function_name #function_name} => String
2302
+ #
2303
+ # @example Request syntax with placeholder values
2304
+ #
2305
+ # resp = client.get_function_code_signing_config({
2306
+ # function_name: "FunctionName", # required
2307
+ # })
2308
+ #
2309
+ # @example Response structure
2310
+ #
2311
+ # resp.code_signing_config_arn #=> String
2312
+ # resp.function_name #=> String
2313
+ #
2314
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig AWS API Documentation
2315
+ #
2316
+ # @overload get_function_code_signing_config(params = {})
2317
+ # @param [Hash] params ({})
2318
+ def get_function_code_signing_config(params = {}, options = {})
2319
+ req = build_request(:get_function_code_signing_config, params)
2320
+ req.send_request(options)
2321
+ end
2322
+
2034
2323
  # Returns details about the reserved concurrency configuration for a
2035
2324
  # function. To set a concurrency limit for a function, use
2036
2325
  # PutFunctionConcurrency.
@@ -2144,6 +2433,10 @@ module Aws::Lambda
2144
2433
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
2145
2434
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
2146
2435
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
2436
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
2437
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
2438
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
2439
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
2147
2440
  #
2148
2441
  #
2149
2442
  # @example Example: To get a Lambda function's event source mapping
@@ -2222,15 +2515,27 @@ module Aws::Lambda
2222
2515
  # resp.layers #=> Array
2223
2516
  # resp.layers[0].arn #=> String
2224
2517
  # resp.layers[0].code_size #=> Integer
2518
+ # resp.layers[0].signing_profile_version_arn #=> String
2519
+ # resp.layers[0].signing_job_arn #=> String
2225
2520
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
2226
2521
  # resp.state_reason #=> String
2227
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2522
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
2228
2523
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
2229
2524
  # resp.last_update_status_reason #=> String
2230
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2525
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
2231
2526
  # resp.file_system_configs #=> Array
2232
2527
  # resp.file_system_configs[0].arn #=> String
2233
2528
  # resp.file_system_configs[0].local_mount_path #=> String
2529
+ # resp.package_type #=> String, one of "Zip", "Image"
2530
+ # resp.image_config_response.image_config.entry_point #=> Array
2531
+ # resp.image_config_response.image_config.entry_point[0] #=> String
2532
+ # resp.image_config_response.image_config.command #=> Array
2533
+ # resp.image_config_response.image_config.command[0] #=> String
2534
+ # resp.image_config_response.image_config.working_directory #=> String
2535
+ # resp.image_config_response.error.error_code #=> String
2536
+ # resp.image_config_response.error.message #=> String
2537
+ # resp.signing_profile_version_arn #=> String
2538
+ # resp.signing_job_arn #=> String
2234
2539
  #
2235
2540
  #
2236
2541
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2397,6 +2702,8 @@ module Aws::Lambda
2397
2702
  # resp.content.location #=> String
2398
2703
  # resp.content.code_sha_256 #=> String
2399
2704
  # resp.content.code_size #=> Integer
2705
+ # resp.content.signing_profile_version_arn #=> String
2706
+ # resp.content.signing_job_arn #=> String
2400
2707
  # resp.layer_arn #=> String
2401
2708
  # resp.layer_version_arn #=> String
2402
2709
  # resp.description #=> String
@@ -2473,6 +2780,8 @@ module Aws::Lambda
2473
2780
  # resp.content.location #=> String
2474
2781
  # resp.content.code_sha_256 #=> String
2475
2782
  # resp.content.code_size #=> Integer
2783
+ # resp.content.signing_profile_version_arn #=> String
2784
+ # resp.content.signing_job_arn #=> String
2476
2785
  # resp.layer_arn #=> String
2477
2786
  # resp.layer_version_arn #=> String
2478
2787
  # resp.description #=> String
@@ -3023,6 +3332,56 @@ module Aws::Lambda
3023
3332
  req.send_request(options)
3024
3333
  end
3025
3334
 
3335
+ # Returns a list of [code signing configurations][1]. A request returns
3336
+ # up to 10,000 configurations per call. You can use the `MaxItems`
3337
+ # parameter to return fewer configurations per call.
3338
+ #
3339
+ #
3340
+ #
3341
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html
3342
+ #
3343
+ # @option params [String] :marker
3344
+ # Specify the pagination token that's returned by a previous request to
3345
+ # retrieve the next page of results.
3346
+ #
3347
+ # @option params [Integer] :max_items
3348
+ # Maximum number of items to return.
3349
+ #
3350
+ # @return [Types::ListCodeSigningConfigsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3351
+ #
3352
+ # * {Types::ListCodeSigningConfigsResponse#next_marker #next_marker} => String
3353
+ # * {Types::ListCodeSigningConfigsResponse#code_signing_configs #code_signing_configs} => Array&lt;Types::CodeSigningConfig&gt;
3354
+ #
3355
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3356
+ #
3357
+ # @example Request syntax with placeholder values
3358
+ #
3359
+ # resp = client.list_code_signing_configs({
3360
+ # marker: "String",
3361
+ # max_items: 1,
3362
+ # })
3363
+ #
3364
+ # @example Response structure
3365
+ #
3366
+ # resp.next_marker #=> String
3367
+ # resp.code_signing_configs #=> Array
3368
+ # resp.code_signing_configs[0].code_signing_config_id #=> String
3369
+ # resp.code_signing_configs[0].code_signing_config_arn #=> String
3370
+ # resp.code_signing_configs[0].description #=> String
3371
+ # resp.code_signing_configs[0].allowed_publishers.signing_profile_version_arns #=> Array
3372
+ # resp.code_signing_configs[0].allowed_publishers.signing_profile_version_arns[0] #=> String
3373
+ # resp.code_signing_configs[0].code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
3374
+ # resp.code_signing_configs[0].last_modified #=> Time
3375
+ #
3376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs AWS API Documentation
3377
+ #
3378
+ # @overload list_code_signing_configs(params = {})
3379
+ # @param [Hash] params ({})
3380
+ def list_code_signing_configs(params = {}, options = {})
3381
+ req = build_request(:list_code_signing_configs, params)
3382
+ req.send_request(options)
3383
+ end
3384
+
3026
3385
  # Lists event source mappings. Specify an `EventSourceArn` to only show
3027
3386
  # event source mappings for a single event source.
3028
3387
  #
@@ -3126,11 +3485,17 @@ module Aws::Lambda
3126
3485
  # resp.event_source_mappings[0].queues #=> Array
3127
3486
  # resp.event_source_mappings[0].queues[0] #=> String
3128
3487
  # resp.event_source_mappings[0].source_access_configurations #=> Array
3129
- # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
3488
+ # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
3130
3489
  # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
3490
+ # resp.event_source_mappings[0].self_managed_event_source.endpoints #=> Hash
3491
+ # resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"] #=> Array
3492
+ # resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"][0] #=> String
3131
3493
  # resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
3132
3494
  # resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
3133
3495
  # resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
3496
+ # resp.event_source_mappings[0].tumbling_window_in_seconds #=> Integer
3497
+ # resp.event_source_mappings[0].function_response_types #=> Array
3498
+ # resp.event_source_mappings[0].function_response_types[0] #=> String, one of "ReportBatchItemFailures"
3134
3499
  #
3135
3500
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
3136
3501
  #
@@ -3362,15 +3727,27 @@ module Aws::Lambda
3362
3727
  # resp.functions[0].layers #=> Array
3363
3728
  # resp.functions[0].layers[0].arn #=> String
3364
3729
  # resp.functions[0].layers[0].code_size #=> Integer
3730
+ # resp.functions[0].layers[0].signing_profile_version_arn #=> String
3731
+ # resp.functions[0].layers[0].signing_job_arn #=> String
3365
3732
  # resp.functions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3366
3733
  # resp.functions[0].state_reason #=> String
3367
- # resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
3734
+ # resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3368
3735
  # resp.functions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
3369
3736
  # resp.functions[0].last_update_status_reason #=> String
3370
- # resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
3737
+ # resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3371
3738
  # resp.functions[0].file_system_configs #=> Array
3372
3739
  # resp.functions[0].file_system_configs[0].arn #=> String
3373
3740
  # resp.functions[0].file_system_configs[0].local_mount_path #=> String
3741
+ # resp.functions[0].package_type #=> String, one of "Zip", "Image"
3742
+ # resp.functions[0].image_config_response.image_config.entry_point #=> Array
3743
+ # resp.functions[0].image_config_response.image_config.entry_point[0] #=> String
3744
+ # resp.functions[0].image_config_response.image_config.command #=> Array
3745
+ # resp.functions[0].image_config_response.image_config.command[0] #=> String
3746
+ # resp.functions[0].image_config_response.image_config.working_directory #=> String
3747
+ # resp.functions[0].image_config_response.error.error_code #=> String
3748
+ # resp.functions[0].image_config_response.error.message #=> String
3749
+ # resp.functions[0].signing_profile_version_arn #=> String
3750
+ # resp.functions[0].signing_job_arn #=> String
3374
3751
  #
3375
3752
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
3376
3753
  #
@@ -3381,6 +3758,50 @@ module Aws::Lambda
3381
3758
  req.send_request(options)
3382
3759
  end
3383
3760
 
3761
+ # List the functions that use the specified code signing configuration.
3762
+ # You can use this method prior to deleting a code signing
3763
+ # configuration, to verify that no functions are using it.
3764
+ #
3765
+ # @option params [required, String] :code_signing_config_arn
3766
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
3767
+ #
3768
+ # @option params [String] :marker
3769
+ # Specify the pagination token that's returned by a previous request to
3770
+ # retrieve the next page of results.
3771
+ #
3772
+ # @option params [Integer] :max_items
3773
+ # Maximum number of items to return.
3774
+ #
3775
+ # @return [Types::ListFunctionsByCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3776
+ #
3777
+ # * {Types::ListFunctionsByCodeSigningConfigResponse#next_marker #next_marker} => String
3778
+ # * {Types::ListFunctionsByCodeSigningConfigResponse#function_arns #function_arns} => Array&lt;String&gt;
3779
+ #
3780
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3781
+ #
3782
+ # @example Request syntax with placeholder values
3783
+ #
3784
+ # resp = client.list_functions_by_code_signing_config({
3785
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
3786
+ # marker: "String",
3787
+ # max_items: 1,
3788
+ # })
3789
+ #
3790
+ # @example Response structure
3791
+ #
3792
+ # resp.next_marker #=> String
3793
+ # resp.function_arns #=> Array
3794
+ # resp.function_arns[0] #=> String
3795
+ #
3796
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfig AWS API Documentation
3797
+ #
3798
+ # @overload list_functions_by_code_signing_config(params = {})
3799
+ # @param [Hash] params ({})
3800
+ def list_functions_by_code_signing_config(params = {}, options = {})
3801
+ req = build_request(:list_functions_by_code_signing_config, params)
3802
+ req.send_request(options)
3803
+ end
3804
+
3384
3805
  # Lists the versions of an [AWS Lambda layer][1]. Versions that have
3385
3806
  # been deleted aren't listed. Specify a [runtime identifier][2] to list
3386
3807
  # only versions that indicate that they're compatible with that
@@ -3843,15 +4264,27 @@ module Aws::Lambda
3843
4264
  # resp.versions[0].layers #=> Array
3844
4265
  # resp.versions[0].layers[0].arn #=> String
3845
4266
  # resp.versions[0].layers[0].code_size #=> Integer
4267
+ # resp.versions[0].layers[0].signing_profile_version_arn #=> String
4268
+ # resp.versions[0].layers[0].signing_job_arn #=> String
3846
4269
  # resp.versions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3847
4270
  # resp.versions[0].state_reason #=> String
3848
- # resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4271
+ # resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3849
4272
  # resp.versions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
3850
4273
  # resp.versions[0].last_update_status_reason #=> String
3851
- # resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4274
+ # resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3852
4275
  # resp.versions[0].file_system_configs #=> Array
3853
4276
  # resp.versions[0].file_system_configs[0].arn #=> String
3854
4277
  # resp.versions[0].file_system_configs[0].local_mount_path #=> String
4278
+ # resp.versions[0].package_type #=> String, one of "Zip", "Image"
4279
+ # resp.versions[0].image_config_response.image_config.entry_point #=> Array
4280
+ # resp.versions[0].image_config_response.image_config.entry_point[0] #=> String
4281
+ # resp.versions[0].image_config_response.image_config.command #=> Array
4282
+ # resp.versions[0].image_config_response.image_config.command[0] #=> String
4283
+ # resp.versions[0].image_config_response.image_config.working_directory #=> String
4284
+ # resp.versions[0].image_config_response.error.error_code #=> String
4285
+ # resp.versions[0].image_config_response.error.message #=> String
4286
+ # resp.versions[0].signing_profile_version_arn #=> String
4287
+ # resp.versions[0].signing_job_arn #=> String
3855
4288
  #
3856
4289
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
3857
4290
  #
@@ -3974,6 +4407,8 @@ module Aws::Lambda
3974
4407
  # resp.content.location #=> String
3975
4408
  # resp.content.code_sha_256 #=> String
3976
4409
  # resp.content.code_size #=> Integer
4410
+ # resp.content.signing_profile_version_arn #=> String
4411
+ # resp.content.signing_job_arn #=> String
3977
4412
  # resp.layer_arn #=> String
3978
4413
  # resp.layer_version_arn #=> String
3979
4414
  # resp.description #=> String
@@ -4068,6 +4503,10 @@ module Aws::Lambda
4068
4503
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
4069
4504
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
4070
4505
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
4506
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
4507
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
4508
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4509
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4071
4510
  #
4072
4511
  #
4073
4512
  # @example Example: To publish a version of a Lambda function
@@ -4149,15 +4588,27 @@ module Aws::Lambda
4149
4588
  # resp.layers #=> Array
4150
4589
  # resp.layers[0].arn #=> String
4151
4590
  # resp.layers[0].code_size #=> Integer
4591
+ # resp.layers[0].signing_profile_version_arn #=> String
4592
+ # resp.layers[0].signing_job_arn #=> String
4152
4593
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
4153
4594
  # resp.state_reason #=> String
4154
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4595
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
4155
4596
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
4156
4597
  # resp.last_update_status_reason #=> String
4157
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4598
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
4158
4599
  # resp.file_system_configs #=> Array
4159
4600
  # resp.file_system_configs[0].arn #=> String
4160
4601
  # resp.file_system_configs[0].local_mount_path #=> String
4602
+ # resp.package_type #=> String, one of "Zip", "Image"
4603
+ # resp.image_config_response.image_config.entry_point #=> Array
4604
+ # resp.image_config_response.image_config.entry_point[0] #=> String
4605
+ # resp.image_config_response.image_config.command #=> Array
4606
+ # resp.image_config_response.image_config.command[0] #=> String
4607
+ # resp.image_config_response.image_config.working_directory #=> String
4608
+ # resp.image_config_response.error.error_code #=> String
4609
+ # resp.image_config_response.error.message #=> String
4610
+ # resp.signing_profile_version_arn #=> String
4611
+ # resp.signing_job_arn #=> String
4161
4612
  #
4162
4613
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
4163
4614
  #
@@ -4168,6 +4619,54 @@ module Aws::Lambda
4168
4619
  req.send_request(options)
4169
4620
  end
4170
4621
 
4622
+ # Update the code signing configuration for the function. Changes to the
4623
+ # code signing configuration take effect the next time a user tries to
4624
+ # deploy a code package to the function.
4625
+ #
4626
+ # @option params [required, String] :code_signing_config_arn
4627
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
4628
+ #
4629
+ # @option params [required, String] :function_name
4630
+ # The name of the Lambda function.
4631
+ #
4632
+ # **Name formats**
4633
+ #
4634
+ # * **Function name** - `MyFunction`.
4635
+ #
4636
+ # * **Function ARN** -
4637
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
4638
+ #
4639
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
4640
+ #
4641
+ # The length constraint applies only to the full ARN. If you specify
4642
+ # only the function name, it is limited to 64 characters in length.
4643
+ #
4644
+ # @return [Types::PutFunctionCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4645
+ #
4646
+ # * {Types::PutFunctionCodeSigningConfigResponse#code_signing_config_arn #code_signing_config_arn} => String
4647
+ # * {Types::PutFunctionCodeSigningConfigResponse#function_name #function_name} => String
4648
+ #
4649
+ # @example Request syntax with placeholder values
4650
+ #
4651
+ # resp = client.put_function_code_signing_config({
4652
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
4653
+ # function_name: "FunctionName", # required
4654
+ # })
4655
+ #
4656
+ # @example Response structure
4657
+ #
4658
+ # resp.code_signing_config_arn #=> String
4659
+ # resp.function_name #=> String
4660
+ #
4661
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfig AWS API Documentation
4662
+ #
4663
+ # @overload put_function_code_signing_config(params = {})
4664
+ # @param [Hash] params ({})
4665
+ def put_function_code_signing_config(params = {}, options = {})
4666
+ req = build_request(:put_function_code_signing_config, params)
4667
+ req.send_request(options)
4668
+ end
4669
+
4171
4670
  # Sets the maximum number of simultaneous executions for a function, and
4172
4671
  # reserves capacity for that concurrency level.
4173
4672
  #
@@ -4778,6 +5277,58 @@ module Aws::Lambda
4778
5277
  req.send_request(options)
4779
5278
  end
4780
5279
 
5280
+ # Update the code signing configuration. Changes to the code signing
5281
+ # configuration take effect the next time a user tries to deploy a code
5282
+ # package to the function.
5283
+ #
5284
+ # @option params [required, String] :code_signing_config_arn
5285
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
5286
+ #
5287
+ # @option params [String] :description
5288
+ # Descriptive name for this code signing configuration.
5289
+ #
5290
+ # @option params [Types::AllowedPublishers] :allowed_publishers
5291
+ # Signing profiles for this code signing configuration.
5292
+ #
5293
+ # @option params [Types::CodeSigningPolicies] :code_signing_policies
5294
+ # The code signing policy.
5295
+ #
5296
+ # @return [Types::UpdateCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5297
+ #
5298
+ # * {Types::UpdateCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
5299
+ #
5300
+ # @example Request syntax with placeholder values
5301
+ #
5302
+ # resp = client.update_code_signing_config({
5303
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
5304
+ # description: "Description",
5305
+ # allowed_publishers: {
5306
+ # signing_profile_version_arns: ["Arn"], # required
5307
+ # },
5308
+ # code_signing_policies: {
5309
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
5310
+ # },
5311
+ # })
5312
+ #
5313
+ # @example Response structure
5314
+ #
5315
+ # resp.code_signing_config.code_signing_config_id #=> String
5316
+ # resp.code_signing_config.code_signing_config_arn #=> String
5317
+ # resp.code_signing_config.description #=> String
5318
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
5319
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
5320
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
5321
+ # resp.code_signing_config.last_modified #=> Time
5322
+ #
5323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfig AWS API Documentation
5324
+ #
5325
+ # @overload update_code_signing_config(params = {})
5326
+ # @param [Hash] params ({})
5327
+ def update_code_signing_config(params = {}, options = {})
5328
+ req = build_request(:update_code_signing_config, params)
5329
+ req.send_request(options)
5330
+ end
5331
+
4781
5332
  # Updates an event source mapping. You can change the function that AWS
4782
5333
  # Lambda invokes, or pause invocation and resume later from the same
4783
5334
  # location.
@@ -4834,14 +5385,17 @@ module Aws::Lambda
4834
5385
  #
4835
5386
  # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
4836
5387
  #
4837
- # * **Amazon Simple Queue Service** - Default 10. Max 10.
5388
+ # * **Amazon Simple Queue Service** - Default 10. For standard queues
5389
+ # the max is 10,000. For FIFO queues the max is 10.
4838
5390
  #
4839
5391
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
4840
5392
  # 10,000.
4841
5393
  #
5394
+ # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
5395
+ #
4842
5396
  # @option params [Integer] :maximum_batching_window_in_seconds
4843
- # (Streams) The maximum amount of time to gather records before invoking
4844
- # the function, in seconds.
5397
+ # (Streams and SQS standard queues) The maximum amount of time to gather
5398
+ # records before invoking the function, in seconds.
4845
5399
  #
4846
5400
  # @option params [Types::DestinationConfig] :destination_config
4847
5401
  # (Streams) An Amazon SQS queue or Amazon SNS topic destination for
@@ -4865,17 +5419,16 @@ module Aws::Lambda
4865
5419
  # concurrently.
4866
5420
  #
4867
5421
  # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
4868
- # (MQ) The Secrets Manager secret that stores your broker credentials.
4869
- # To store your secret, use the following format: ` \{ "username": "your
4870
- # username", "password": "your password" \}`
5422
+ # An array of the authentication protocol, or the VPC components to
5423
+ # secure your event source.
4871
5424
  #
4872
- # To reference the secret, use the following format: `[ \{ "Type":
4873
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
5425
+ # @option params [Integer] :tumbling_window_in_seconds
5426
+ # (Streams) The duration of a processing window in seconds. The range is
5427
+ # between 1 second up to 15 minutes.
4874
5428
  #
4875
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
4876
- # can use customer or service managed keys. When using a customer
4877
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
4878
- # permissions.
5429
+ # @option params [Array<String>] :function_response_types
5430
+ # (Streams) A list of current response type enums applied to the event
5431
+ # source mapping.
4879
5432
  #
4880
5433
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4881
5434
  #
@@ -4895,9 +5448,12 @@ module Aws::Lambda
4895
5448
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
4896
5449
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
4897
5450
  # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
5451
+ # * {Types::EventSourceMappingConfiguration#self_managed_event_source #self_managed_event_source} => Types::SelfManagedEventSource
4898
5452
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
4899
5453
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
4900
5454
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
5455
+ # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
5456
+ # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
4901
5457
  #
4902
5458
  #
4903
5459
  # @example Example: To update a Lambda function event source mapping
@@ -4945,10 +5501,12 @@ module Aws::Lambda
4945
5501
  # parallelization_factor: 1,
4946
5502
  # source_access_configurations: [
4947
5503
  # {
4948
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
4949
- # uri: "Arn",
5504
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
5505
+ # uri: "URI",
4950
5506
  # },
4951
5507
  # ],
5508
+ # tumbling_window_in_seconds: 1,
5509
+ # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
4952
5510
  # })
4953
5511
  #
4954
5512
  # @example Response structure
@@ -4972,11 +5530,17 @@ module Aws::Lambda
4972
5530
  # resp.queues #=> Array
4973
5531
  # resp.queues[0] #=> String
4974
5532
  # resp.source_access_configurations #=> Array
4975
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
5533
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
4976
5534
  # resp.source_access_configurations[0].uri #=> String
5535
+ # resp.self_managed_event_source.endpoints #=> Hash
5536
+ # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
5537
+ # resp.self_managed_event_source.endpoints["EndPointType"][0] #=> String
4977
5538
  # resp.maximum_record_age_in_seconds #=> Integer
4978
5539
  # resp.bisect_batch_on_function_error #=> Boolean
4979
5540
  # resp.maximum_retry_attempts #=> Integer
5541
+ # resp.tumbling_window_in_seconds #=> Integer
5542
+ # resp.function_response_types #=> Array
5543
+ # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
4980
5544
  #
4981
5545
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
4982
5546
  #
@@ -4987,11 +5551,23 @@ module Aws::Lambda
4987
5551
  req.send_request(options)
4988
5552
  end
4989
5553
 
4990
- # Updates a Lambda function's code.
5554
+ # Updates a Lambda function's code. If code signing is enabled for the
5555
+ # function, the code package must be signed by a trusted publisher. For
5556
+ # more information, see [Configuring code signing][1].
4991
5557
  #
4992
5558
  # The function's code is locked when you publish a version. You can't
4993
5559
  # modify the code of a published version, only the unpublished version.
4994
5560
  #
5561
+ # <note markdown="1"> For a function defined as a container image, Lambda resolves the image
5562
+ # tag to an image digest. In Amazon ECR, if you update the image tag to
5563
+ # a new image, Lambda does not automatically update the function.
5564
+ #
5565
+ # </note>
5566
+ #
5567
+ #
5568
+ #
5569
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
5570
+ #
4995
5571
  # @option params [required, String] :function_name
4996
5572
  # The name of the Lambda function.
4997
5573
  #
@@ -5022,6 +5598,9 @@ module Aws::Lambda
5022
5598
  # For versioned objects, the version of the deployment package object to
5023
5599
  # use.
5024
5600
  #
5601
+ # @option params [String] :image_uri
5602
+ # URI of a container image in the Amazon ECR registry.
5603
+ #
5025
5604
  # @option params [Boolean] :publish
5026
5605
  # Set to true to publish a new version of the function after updating
5027
5606
  # the code. This has the same effect as calling PublishVersion
@@ -5065,6 +5644,10 @@ module Aws::Lambda
5065
5644
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
5066
5645
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
5067
5646
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
5647
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
5648
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
5649
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5650
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5068
5651
  #
5069
5652
  #
5070
5653
  # @example Example: To update a Lambda function's code
@@ -5106,6 +5689,7 @@ module Aws::Lambda
5106
5689
  # s3_bucket: "S3Bucket",
5107
5690
  # s3_key: "S3Key",
5108
5691
  # s3_object_version: "S3ObjectVersion",
5692
+ # image_uri: "String",
5109
5693
  # publish: false,
5110
5694
  # dry_run: false,
5111
5695
  # revision_id: "String",
@@ -5142,15 +5726,27 @@ module Aws::Lambda
5142
5726
  # resp.layers #=> Array
5143
5727
  # resp.layers[0].arn #=> String
5144
5728
  # resp.layers[0].code_size #=> Integer
5729
+ # resp.layers[0].signing_profile_version_arn #=> String
5730
+ # resp.layers[0].signing_job_arn #=> String
5145
5731
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5146
5732
  # resp.state_reason #=> String
5147
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
5733
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5148
5734
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
5149
5735
  # resp.last_update_status_reason #=> String
5150
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
5736
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5151
5737
  # resp.file_system_configs #=> Array
5152
5738
  # resp.file_system_configs[0].arn #=> String
5153
5739
  # resp.file_system_configs[0].local_mount_path #=> String
5740
+ # resp.package_type #=> String, one of "Zip", "Image"
5741
+ # resp.image_config_response.image_config.entry_point #=> Array
5742
+ # resp.image_config_response.image_config.entry_point[0] #=> String
5743
+ # resp.image_config_response.image_config.command #=> Array
5744
+ # resp.image_config_response.image_config.command[0] #=> String
5745
+ # resp.image_config_response.image_config.working_directory #=> String
5746
+ # resp.image_config_response.error.error_code #=> String
5747
+ # resp.image_config_response.error.message #=> String
5748
+ # resp.signing_profile_version_arn #=> String
5749
+ # resp.signing_job_arn #=> String
5154
5750
  #
5155
5751
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
5156
5752
  #
@@ -5222,9 +5818,9 @@ module Aws::Lambda
5222
5818
  # 900 seconds.
5223
5819
  #
5224
5820
  # @option params [Integer] :memory_size
5225
- # The amount of memory that your function has access to. Increasing the
5226
- # function's memory also increases its CPU allocation. The default
5227
- # value is 128 MB. The value must be a multiple of 64 MB.
5821
+ # The amount of memory available to the function at runtime. Increasing
5822
+ # the function's memory also increases its CPU allocation. The default
5823
+ # value is 128 MB. The value can be any multiple of 1 MB.
5228
5824
  #
5229
5825
  # @option params [Types::VpcConfig] :vpc_config
5230
5826
  # For network connectivity to AWS resources in a VPC, specify a list of
@@ -5281,6 +5877,9 @@ module Aws::Lambda
5281
5877
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
5282
5878
  # Connection settings for an Amazon EFS file system.
5283
5879
  #
5880
+ # @option params [Types::ImageConfig] :image_config
5881
+ # Configuration values that override the container image Dockerfile.
5882
+ #
5284
5883
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5285
5884
  #
5286
5885
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -5310,6 +5909,10 @@ module Aws::Lambda
5310
5909
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
5311
5910
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
5312
5911
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
5912
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
5913
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
5914
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5915
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5313
5916
  #
5314
5917
  #
5315
5918
  # @example Example: To update a Lambda function's configuration
@@ -5376,6 +5979,11 @@ module Aws::Lambda
5376
5979
  # local_mount_path: "LocalMountPath", # required
5377
5980
  # },
5378
5981
  # ],
5982
+ # image_config: {
5983
+ # entry_point: ["String"],
5984
+ # command: ["String"],
5985
+ # working_directory: "WorkingDirectory",
5986
+ # },
5379
5987
  # })
5380
5988
  #
5381
5989
  # @example Response structure
@@ -5409,15 +6017,27 @@ module Aws::Lambda
5409
6017
  # resp.layers #=> Array
5410
6018
  # resp.layers[0].arn #=> String
5411
6019
  # resp.layers[0].code_size #=> Integer
6020
+ # resp.layers[0].signing_profile_version_arn #=> String
6021
+ # resp.layers[0].signing_job_arn #=> String
5412
6022
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5413
6023
  # resp.state_reason #=> String
5414
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
6024
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5415
6025
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
5416
6026
  # resp.last_update_status_reason #=> String
5417
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
6027
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5418
6028
  # resp.file_system_configs #=> Array
5419
6029
  # resp.file_system_configs[0].arn #=> String
5420
6030
  # resp.file_system_configs[0].local_mount_path #=> String
6031
+ # resp.package_type #=> String, one of "Zip", "Image"
6032
+ # resp.image_config_response.image_config.entry_point #=> Array
6033
+ # resp.image_config_response.image_config.entry_point[0] #=> String
6034
+ # resp.image_config_response.image_config.command #=> Array
6035
+ # resp.image_config_response.image_config.command[0] #=> String
6036
+ # resp.image_config_response.image_config.working_directory #=> String
6037
+ # resp.image_config_response.error.error_code #=> String
6038
+ # resp.image_config_response.error.message #=> String
6039
+ # resp.signing_profile_version_arn #=> String
6040
+ # resp.signing_job_arn #=> String
5421
6041
  #
5422
6042
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
5423
6043
  #
@@ -5562,7 +6182,7 @@ module Aws::Lambda
5562
6182
  params: params,
5563
6183
  config: config)
5564
6184
  context[:gem_name] = 'aws-sdk-lambda'
5565
- context[:gem_version] = '1.53.0'
6185
+ context[:gem_version] = '1.58.0'
5566
6186
  Seahorse::Client::Request.new(handlers, context)
5567
6187
  end
5568
6188