aws-sdk-lambda 1.52.0 → 1.57.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eac0e0f27e4bdd34c10a2763bf22c16bb1a9a393ce307a7a156c579f6e7a6d2
4
- data.tar.gz: 118425f1298b1c16684a42771ef91a5a5502b5a3527667c9a7485d7480a9cc0a
3
+ metadata.gz: 74c1c0abb49e85611a2f45c3d7ace367b87c8cf167a69d6c074b24a9332ddb7a
4
+ data.tar.gz: b2330f163440ac08f1ec057008baf1c2f2d825bff68f870f8bac6e1ee2650c78
5
5
  SHA512:
6
- metadata.gz: d2191ed295610baf87860d4161992eba10a84b6e71df35f2688fc18ff34c272277e00b0a94a5a2546029fd94950663c3435e60ad8b56ff6bc869975363cc5adc
7
- data.tar.gz: eb7ae0a08f21febc592e2ed6812908c42b995efea7526edd63d2d2e616dc07239609083e72fca390d1c58da02d21513c765f1e989033358db446b917624c79b9
6
+ metadata.gz: 7d67b2b7d53f68a977f80e46aa6f47c9d3d01cd667604b5256c77d7fc773f9a4fb0e0ed0b4dc7d4d87eca8927f5a8a897858a1baefb1ae6c8344dc5f8d19caf2
7
+ data.tar.gz: 47c14d68b15f2598584f8f79d179f079beee7d15d40d16d0d0793712c4a6c2f0aa8dfad20bbdbcfa8ec9b8314cb87b500281160d3eb55846a94aaf23304bc2e1
@@ -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.52.0'
52
+ GEM_VERSION = '1.57.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
  #
@@ -675,7 +729,11 @@ module Aws::Lambda
675
729
  #
676
730
  # * [Using AWS Lambda with Amazon SQS][3]
677
731
  #
678
- # * [Using AWS Lambda with Amazon MSK][4]
732
+ # * [Using AWS Lambda with Amazon MQ][4]
733
+ #
734
+ # * [Using AWS Lambda with Amazon MSK][5]
735
+ #
736
+ # * [Using AWS Lambda with Self-Managed Apache Kafka][6]
679
737
  #
680
738
  # The following error handling options are only available for stream
681
739
  # sources (DynamoDB and Kinesis):
@@ -702,9 +760,11 @@ module Aws::Lambda
702
760
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
703
761
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
704
762
  # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
705
- # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
763
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html
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
706
766
  #
707
- # @option params [required, String] :event_source_arn
767
+ # @option params [String] :event_source_arn
708
768
  # The Amazon Resource Name (ARN) of the event source.
709
769
  #
710
770
  # * **Amazon Kinesis** - The ARN of the data stream or a stream
@@ -746,14 +806,17 @@ module Aws::Lambda
746
806
  #
747
807
  # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
748
808
  #
749
- # * **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.
750
811
  #
751
812
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
752
813
  # 10,000.
753
814
  #
815
+ # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
816
+ #
754
817
  # @option params [Integer] :maximum_batching_window_in_seconds
755
- # (Streams) The maximum amount of time to gather records before invoking
756
- # 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.
757
820
  #
758
821
  # @option params [Integer] :parallelization_factor
759
822
  # (Streams) The number of batches to process from each shard
@@ -785,28 +848,32 @@ module Aws::Lambda
785
848
  # default value is infinite (-1). When set to infinite (-1), failed
786
849
  # records will be retried until the record expires.
787
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
+ #
788
855
  # @option params [Array<String>] :topics
789
- # (MSK) The name of the Kafka topic.
856
+ # The name of the Kafka topic.
790
857
  #
791
858
  # @option params [Array<String>] :queues
792
859
  # (MQ) The name of the Amazon MQ broker destination queue to consume.
793
860
  #
794
861
  # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
795
- # (MQ) The Secrets Manager secret that stores your broker credentials.
796
- # To store your secret, use the following format: ` \{ "username": "your
797
- # username", "password": "your password" \}`
862
+ # An array of the authentication protocol, or the VPC components to
863
+ # secure your event source.
798
864
  #
799
- # To reference the secret, use the following format: `[ \{ "Type":
800
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
865
+ # @option params [Types::SelfManagedEventSource] :self_managed_event_source
866
+ # The Self-Managed Apache Kafka cluster to send records.
801
867
  #
802
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
803
- # can use customer or service managed keys. When using a customer
804
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
805
- # 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.
806
871
  #
807
872
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
808
873
  #
809
874
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
875
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
876
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
810
877
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
811
878
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
812
879
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -820,9 +887,12 @@ module Aws::Lambda
820
887
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
821
888
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
822
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
823
891
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
824
892
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
825
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;
826
896
  #
827
897
  #
828
898
  # @example Example: To create a mapping between an event source and an AWS Lambda function
@@ -849,7 +919,7 @@ module Aws::Lambda
849
919
  # @example Request syntax with placeholder values
850
920
  #
851
921
  # resp = client.create_event_source_mapping({
852
- # event_source_arn: "Arn", # required
922
+ # event_source_arn: "Arn",
853
923
  # function_name: "FunctionName", # required
854
924
  # enabled: false,
855
925
  # batch_size: 1,
@@ -868,19 +938,28 @@ module Aws::Lambda
868
938
  # maximum_record_age_in_seconds: 1,
869
939
  # bisect_batch_on_function_error: false,
870
940
  # maximum_retry_attempts: 1,
941
+ # tumbling_window_in_seconds: 1,
871
942
  # topics: ["Topic"],
872
943
  # queues: ["Queue"],
873
944
  # source_access_configurations: [
874
945
  # {
875
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
876
- # 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",
877
948
  # },
878
949
  # ],
950
+ # self_managed_event_source: {
951
+ # endpoints: {
952
+ # "KAFKA_BOOTSTRAP_SERVERS" => ["Endpoint"],
953
+ # },
954
+ # },
955
+ # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
879
956
  # })
880
957
  #
881
958
  # @example Response structure
882
959
  #
883
960
  # resp.uuid #=> String
961
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
962
+ # resp.starting_position_timestamp #=> Time
884
963
  # resp.batch_size #=> Integer
885
964
  # resp.maximum_batching_window_in_seconds #=> Integer
886
965
  # resp.parallelization_factor #=> Integer
@@ -897,11 +976,17 @@ module Aws::Lambda
897
976
  # resp.queues #=> Array
898
977
  # resp.queues[0] #=> String
899
978
  # resp.source_access_configurations #=> Array
900
- # 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"
901
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
902
984
  # resp.maximum_record_age_in_seconds #=> Integer
903
985
  # resp.bisect_batch_on_function_error #=> Boolean
904
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"
905
990
  #
906
991
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
907
992
  #
@@ -914,9 +999,10 @@ module Aws::Lambda
914
999
 
915
1000
  # Creates a Lambda function. To create a function, you need a
916
1001
  # [deployment package][1] and an [execution role][2]. The deployment
917
- # package contains your function code. The execution role grants the
918
- # function permission to use AWS services, such as Amazon CloudWatch
919
- # 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.
920
1006
  #
921
1007
  # When you create a function, Lambda provisions an instance of the
922
1008
  # function and its supporting resources. If your function connects to a
@@ -941,6 +1027,14 @@ module Aws::Lambda
941
1027
  # include tags (TagResource) and per-function concurrency limits
942
1028
  # (PutFunctionConcurrency).
943
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
+ #
944
1038
  # If another account or an AWS service invokes your function, use
945
1039
  # AddPermission to grant permission by creating a resource-based IAM
946
1040
  # policy. You can grant permissions at the function level, on a version,
@@ -953,7 +1047,7 @@ module Aws::Lambda
953
1047
  #
954
1048
  #
955
1049
  #
956
- # [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
957
1051
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role
958
1052
  # [3]: https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html
959
1053
  # [4]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html
@@ -973,7 +1067,7 @@ module Aws::Lambda
973
1067
  # The length constraint applies only to the full ARN. If you specify
974
1068
  # only the function name, it is limited to 64 characters in length.
975
1069
  #
976
- # @option params [required, String] :runtime
1070
+ # @option params [String] :runtime
977
1071
  # The identifier of the function's [runtime][1].
978
1072
  #
979
1073
  #
@@ -983,7 +1077,7 @@ module Aws::Lambda
983
1077
  # @option params [required, String] :role
984
1078
  # The Amazon Resource Name (ARN) of the function's execution role.
985
1079
  #
986
- # @option params [required, String] :handler
1080
+ # @option params [String] :handler
987
1081
  # The name of the method within your code that Lambda calls to execute
988
1082
  # your function. The format includes the file name. It can also include
989
1083
  # namespaces and other qualifiers, depending on the runtime. For more
@@ -1005,9 +1099,9 @@ module Aws::Lambda
1005
1099
  # 900 seconds.
1006
1100
  #
1007
1101
  # @option params [Integer] :memory_size
1008
- # The amount of memory that your function has access to. Increasing the
1009
- # function's memory also increases its CPU allocation. The default
1010
- # 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.
1011
1105
  #
1012
1106
  # @option params [Boolean] :publish
1013
1107
  # Set to true to publish the first version of the function during
@@ -1023,6 +1117,10 @@ module Aws::Lambda
1023
1117
  #
1024
1118
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
1025
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
+ #
1026
1124
  # @option params [Types::DeadLetterConfig] :dead_letter_config
1027
1125
  # A dead letter queue configuration that specifies the queue or topic
1028
1126
  # where Lambda sends asynchronous events when they fail processing. For
@@ -1063,6 +1161,15 @@ module Aws::Lambda
1063
1161
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
1064
1162
  # Connection settings for an Amazon EFS file system.
1065
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
+ #
1066
1173
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1067
1174
  #
1068
1175
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -1092,6 +1199,10 @@ module Aws::Lambda
1092
1199
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
1093
1200
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
1094
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
1095
1206
  #
1096
1207
  #
1097
1208
  # @example Example: To create a function
@@ -1160,14 +1271,15 @@ module Aws::Lambda
1160
1271
  #
1161
1272
  # resp = client.create_function({
1162
1273
  # function_name: "FunctionName", # required
1163
- # 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
1164
1275
  # role: "RoleArn", # required
1165
- # handler: "Handler", # required
1276
+ # handler: "Handler",
1166
1277
  # code: { # required
1167
1278
  # zip_file: "data",
1168
1279
  # s3_bucket: "S3Bucket",
1169
1280
  # s3_key: "S3Key",
1170
1281
  # s3_object_version: "S3ObjectVersion",
1282
+ # image_uri: "String",
1171
1283
  # },
1172
1284
  # description: "Description",
1173
1285
  # timeout: 1,
@@ -1177,6 +1289,7 @@ module Aws::Lambda
1177
1289
  # subnet_ids: ["SubnetId"],
1178
1290
  # security_group_ids: ["SecurityGroupId"],
1179
1291
  # },
1292
+ # package_type: "Zip", # accepts Zip, Image
1180
1293
  # dead_letter_config: {
1181
1294
  # target_arn: "ResourceArn",
1182
1295
  # },
@@ -1199,6 +1312,12 @@ module Aws::Lambda
1199
1312
  # local_mount_path: "LocalMountPath", # required
1200
1313
  # },
1201
1314
  # ],
1315
+ # image_config: {
1316
+ # entry_point: ["String"],
1317
+ # command: ["String"],
1318
+ # working_directory: "WorkingDirectory",
1319
+ # },
1320
+ # code_signing_config_arn: "CodeSigningConfigArn",
1202
1321
  # })
1203
1322
  #
1204
1323
  # @example Response structure
@@ -1232,15 +1351,27 @@ module Aws::Lambda
1232
1351
  # resp.layers #=> Array
1233
1352
  # resp.layers[0].arn #=> String
1234
1353
  # resp.layers[0].code_size #=> Integer
1354
+ # resp.layers[0].signing_profile_version_arn #=> String
1355
+ # resp.layers[0].signing_job_arn #=> String
1235
1356
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1236
1357
  # resp.state_reason #=> String
1237
- # 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"
1238
1359
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
1239
1360
  # resp.last_update_status_reason #=> String
1240
- # 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"
1241
1362
  # resp.file_system_configs #=> Array
1242
1363
  # resp.file_system_configs[0].arn #=> String
1243
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
1244
1375
  #
1245
1376
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
1246
1377
  #
@@ -1303,6 +1434,29 @@ module Aws::Lambda
1303
1434
  req.send_request(options)
1304
1435
  end
1305
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
+
1306
1460
  # Deletes an [event source mapping][1]. You can get the identifier of a
1307
1461
  # mapping from the output of ListEventSourceMappings.
1308
1462
  #
@@ -1319,6 +1473,8 @@ module Aws::Lambda
1319
1473
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1320
1474
  #
1321
1475
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
1476
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
1477
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
1322
1478
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
1323
1479
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1324
1480
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -1332,9 +1488,12 @@ module Aws::Lambda
1332
1488
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1333
1489
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1334
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
1335
1492
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1336
1493
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1337
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;
1338
1497
  #
1339
1498
  #
1340
1499
  # @example Example: To delete a Lambda function event source mapping
@@ -1365,6 +1524,8 @@ module Aws::Lambda
1365
1524
  # @example Response structure
1366
1525
  #
1367
1526
  # resp.uuid #=> String
1527
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
1528
+ # resp.starting_position_timestamp #=> Time
1368
1529
  # resp.batch_size #=> Integer
1369
1530
  # resp.maximum_batching_window_in_seconds #=> Integer
1370
1531
  # resp.parallelization_factor #=> Integer
@@ -1381,11 +1542,17 @@ module Aws::Lambda
1381
1542
  # resp.queues #=> Array
1382
1543
  # resp.queues[0] #=> String
1383
1544
  # resp.source_access_configurations #=> Array
1384
- # 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"
1385
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
1386
1550
  # resp.maximum_record_age_in_seconds #=> Integer
1387
1551
  # resp.bisect_batch_on_function_error #=> Boolean
1388
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"
1389
1556
  #
1390
1557
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
1391
1558
  #
@@ -1454,6 +1621,40 @@ module Aws::Lambda
1454
1621
  req.send_request(options)
1455
1622
  end
1456
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
+
1457
1658
  # Removes a concurrent execution limit from a function.
1458
1659
  #
1459
1660
  # @option params [required, String] :function_name
@@ -1775,6 +1976,40 @@ module Aws::Lambda
1775
1976
  req.send_request(options)
1776
1977
  end
1777
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
+
1778
2013
  # Returns details about an event source mapping. You can get the
1779
2014
  # identifier of a mapping from the output of ListEventSourceMappings.
1780
2015
  #
@@ -1784,6 +2019,8 @@ module Aws::Lambda
1784
2019
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1785
2020
  #
1786
2021
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
2022
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
2023
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
1787
2024
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
1788
2025
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1789
2026
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -1797,9 +2034,12 @@ module Aws::Lambda
1797
2034
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1798
2035
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1799
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
1800
2038
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1801
2039
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1802
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;
1803
2043
  #
1804
2044
  #
1805
2045
  # @example Example: To get a Lambda function's event source mapping
@@ -1837,6 +2077,8 @@ module Aws::Lambda
1837
2077
  # @example Response structure
1838
2078
  #
1839
2079
  # resp.uuid #=> String
2080
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
2081
+ # resp.starting_position_timestamp #=> Time
1840
2082
  # resp.batch_size #=> Integer
1841
2083
  # resp.maximum_batching_window_in_seconds #=> Integer
1842
2084
  # resp.parallelization_factor #=> Integer
@@ -1853,11 +2095,17 @@ module Aws::Lambda
1853
2095
  # resp.queues #=> Array
1854
2096
  # resp.queues[0] #=> String
1855
2097
  # resp.source_access_configurations #=> Array
1856
- # 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"
1857
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
1858
2103
  # resp.maximum_record_age_in_seconds #=> Integer
1859
2104
  # resp.bisect_batch_on_function_error #=> Boolean
1860
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"
1861
2109
  #
1862
2110
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
1863
2111
  #
@@ -1987,17 +2235,31 @@ module Aws::Lambda
1987
2235
  # resp.configuration.layers #=> Array
1988
2236
  # resp.configuration.layers[0].arn #=> String
1989
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
1990
2240
  # resp.configuration.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1991
2241
  # resp.configuration.state_reason #=> String
1992
- # 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"
1993
2243
  # resp.configuration.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
1994
2244
  # resp.configuration.last_update_status_reason #=> String
1995
- # 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"
1996
2246
  # resp.configuration.file_system_configs #=> Array
1997
2247
  # resp.configuration.file_system_configs[0].arn #=> String
1998
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
1999
2259
  # resp.code.repository_type #=> String
2000
2260
  # resp.code.location #=> String
2261
+ # resp.code.image_uri #=> String
2262
+ # resp.code.resolved_image_uri #=> String
2001
2263
  # resp.tags #=> Hash
2002
2264
  # resp.tags["TagKey"] #=> String
2003
2265
  # resp.concurrency.reserved_concurrent_executions #=> Integer
@@ -2016,6 +2278,48 @@ module Aws::Lambda
2016
2278
  req.send_request(options)
2017
2279
  end
2018
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
+
2019
2323
  # Returns details about the reserved concurrency configuration for a
2020
2324
  # function. To set a concurrency limit for a function, use
2021
2325
  # PutFunctionConcurrency.
@@ -2129,6 +2433,10 @@ module Aws::Lambda
2129
2433
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
2130
2434
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
2131
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
2132
2440
  #
2133
2441
  #
2134
2442
  # @example Example: To get a Lambda function's event source mapping
@@ -2207,15 +2515,27 @@ module Aws::Lambda
2207
2515
  # resp.layers #=> Array
2208
2516
  # resp.layers[0].arn #=> String
2209
2517
  # resp.layers[0].code_size #=> Integer
2518
+ # resp.layers[0].signing_profile_version_arn #=> String
2519
+ # resp.layers[0].signing_job_arn #=> String
2210
2520
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
2211
2521
  # resp.state_reason #=> String
2212
- # 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"
2213
2523
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
2214
2524
  # resp.last_update_status_reason #=> String
2215
- # 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"
2216
2526
  # resp.file_system_configs #=> Array
2217
2527
  # resp.file_system_configs[0].arn #=> String
2218
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
2219
2539
  #
2220
2540
  #
2221
2541
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2382,6 +2702,8 @@ module Aws::Lambda
2382
2702
  # resp.content.location #=> String
2383
2703
  # resp.content.code_sha_256 #=> String
2384
2704
  # resp.content.code_size #=> Integer
2705
+ # resp.content.signing_profile_version_arn #=> String
2706
+ # resp.content.signing_job_arn #=> String
2385
2707
  # resp.layer_arn #=> String
2386
2708
  # resp.layer_version_arn #=> String
2387
2709
  # resp.description #=> String
@@ -2458,6 +2780,8 @@ module Aws::Lambda
2458
2780
  # resp.content.location #=> String
2459
2781
  # resp.content.code_sha_256 #=> String
2460
2782
  # resp.content.code_size #=> Integer
2783
+ # resp.content.signing_profile_version_arn #=> String
2784
+ # resp.content.signing_job_arn #=> String
2461
2785
  # resp.layer_arn #=> String
2462
2786
  # resp.layer_version_arn #=> String
2463
2787
  # resp.description #=> String
@@ -3008,6 +3332,56 @@ module Aws::Lambda
3008
3332
  req.send_request(options)
3009
3333
  end
3010
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
+
3011
3385
  # Lists event source mappings. Specify an `EventSourceArn` to only show
3012
3386
  # event source mappings for a single event source.
3013
3387
  #
@@ -3093,6 +3467,8 @@ module Aws::Lambda
3093
3467
  # resp.next_marker #=> String
3094
3468
  # resp.event_source_mappings #=> Array
3095
3469
  # resp.event_source_mappings[0].uuid #=> String
3470
+ # resp.event_source_mappings[0].starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
3471
+ # resp.event_source_mappings[0].starting_position_timestamp #=> Time
3096
3472
  # resp.event_source_mappings[0].batch_size #=> Integer
3097
3473
  # resp.event_source_mappings[0].maximum_batching_window_in_seconds #=> Integer
3098
3474
  # resp.event_source_mappings[0].parallelization_factor #=> Integer
@@ -3109,11 +3485,17 @@ module Aws::Lambda
3109
3485
  # resp.event_source_mappings[0].queues #=> Array
3110
3486
  # resp.event_source_mappings[0].queues[0] #=> String
3111
3487
  # resp.event_source_mappings[0].source_access_configurations #=> Array
3112
- # 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"
3113
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
3114
3493
  # resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
3115
3494
  # resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
3116
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"
3117
3499
  #
3118
3500
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
3119
3501
  #
@@ -3345,15 +3727,27 @@ module Aws::Lambda
3345
3727
  # resp.functions[0].layers #=> Array
3346
3728
  # resp.functions[0].layers[0].arn #=> String
3347
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
3348
3732
  # resp.functions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3349
3733
  # resp.functions[0].state_reason #=> String
3350
- # 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"
3351
3735
  # resp.functions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
3352
3736
  # resp.functions[0].last_update_status_reason #=> String
3353
- # 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"
3354
3738
  # resp.functions[0].file_system_configs #=> Array
3355
3739
  # resp.functions[0].file_system_configs[0].arn #=> String
3356
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
3357
3751
  #
3358
3752
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
3359
3753
  #
@@ -3364,6 +3758,50 @@ module Aws::Lambda
3364
3758
  req.send_request(options)
3365
3759
  end
3366
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
+
3367
3805
  # Lists the versions of an [AWS Lambda layer][1]. Versions that have
3368
3806
  # been deleted aren't listed. Specify a [runtime identifier][2] to list
3369
3807
  # only versions that indicate that they're compatible with that
@@ -3826,15 +4264,27 @@ module Aws::Lambda
3826
4264
  # resp.versions[0].layers #=> Array
3827
4265
  # resp.versions[0].layers[0].arn #=> String
3828
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
3829
4269
  # resp.versions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3830
4270
  # resp.versions[0].state_reason #=> String
3831
- # 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"
3832
4272
  # resp.versions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
3833
4273
  # resp.versions[0].last_update_status_reason #=> String
3834
- # 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"
3835
4275
  # resp.versions[0].file_system_configs #=> Array
3836
4276
  # resp.versions[0].file_system_configs[0].arn #=> String
3837
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
3838
4288
  #
3839
4289
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
3840
4290
  #
@@ -3957,6 +4407,8 @@ module Aws::Lambda
3957
4407
  # resp.content.location #=> String
3958
4408
  # resp.content.code_sha_256 #=> String
3959
4409
  # resp.content.code_size #=> Integer
4410
+ # resp.content.signing_profile_version_arn #=> String
4411
+ # resp.content.signing_job_arn #=> String
3960
4412
  # resp.layer_arn #=> String
3961
4413
  # resp.layer_version_arn #=> String
3962
4414
  # resp.description #=> String
@@ -4051,6 +4503,10 @@ module Aws::Lambda
4051
4503
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
4052
4504
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
4053
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
4054
4510
  #
4055
4511
  #
4056
4512
  # @example Example: To publish a version of a Lambda function
@@ -4132,15 +4588,27 @@ module Aws::Lambda
4132
4588
  # resp.layers #=> Array
4133
4589
  # resp.layers[0].arn #=> String
4134
4590
  # resp.layers[0].code_size #=> Integer
4591
+ # resp.layers[0].signing_profile_version_arn #=> String
4592
+ # resp.layers[0].signing_job_arn #=> String
4135
4593
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
4136
4594
  # resp.state_reason #=> String
4137
- # 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"
4138
4596
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
4139
4597
  # resp.last_update_status_reason #=> String
4140
- # 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"
4141
4599
  # resp.file_system_configs #=> Array
4142
4600
  # resp.file_system_configs[0].arn #=> String
4143
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
4144
4612
  #
4145
4613
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
4146
4614
  #
@@ -4151,6 +4619,54 @@ module Aws::Lambda
4151
4619
  req.send_request(options)
4152
4620
  end
4153
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
+
4154
4670
  # Sets the maximum number of simultaneous executions for a function, and
4155
4671
  # reserves capacity for that concurrency level.
4156
4672
  #
@@ -4761,6 +5277,58 @@ module Aws::Lambda
4761
5277
  req.send_request(options)
4762
5278
  end
4763
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
+
4764
5332
  # Updates an event source mapping. You can change the function that AWS
4765
5333
  # Lambda invokes, or pause invocation and resume later from the same
4766
5334
  # location.
@@ -4817,14 +5385,17 @@ module Aws::Lambda
4817
5385
  #
4818
5386
  # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
4819
5387
  #
4820
- # * **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.
4821
5390
  #
4822
5391
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
4823
5392
  # 10,000.
4824
5393
  #
5394
+ # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
5395
+ #
4825
5396
  # @option params [Integer] :maximum_batching_window_in_seconds
4826
- # (Streams) The maximum amount of time to gather records before invoking
4827
- # 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.
4828
5399
  #
4829
5400
  # @option params [Types::DestinationConfig] :destination_config
4830
5401
  # (Streams) An Amazon SQS queue or Amazon SNS topic destination for
@@ -4848,21 +5419,22 @@ module Aws::Lambda
4848
5419
  # concurrently.
4849
5420
  #
4850
5421
  # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
4851
- # (MQ) The Secrets Manager secret that stores your broker credentials.
4852
- # To store your secret, use the following format: ` \{ "username": "your
4853
- # username", "password": "your password" \}`
5422
+ # An array of the authentication protocol, or the VPC components to
5423
+ # secure your event source.
4854
5424
  #
4855
- # To reference the secret, use the following format: `[ \{ "Type":
4856
- # "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.
4857
5428
  #
4858
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
4859
- # can use customer or service managed keys. When using a customer
4860
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
4861
- # 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.
4862
5432
  #
4863
5433
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4864
5434
  #
4865
5435
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
5436
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
5437
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
4866
5438
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
4867
5439
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
4868
5440
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -4876,9 +5448,12 @@ module Aws::Lambda
4876
5448
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
4877
5449
  # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
4878
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
4879
5452
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
4880
5453
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
4881
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;
4882
5457
  #
4883
5458
  #
4884
5459
  # @example Example: To update a Lambda function event source mapping
@@ -4926,15 +5501,19 @@ module Aws::Lambda
4926
5501
  # parallelization_factor: 1,
4927
5502
  # source_access_configurations: [
4928
5503
  # {
4929
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
4930
- # 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",
4931
5506
  # },
4932
5507
  # ],
5508
+ # tumbling_window_in_seconds: 1,
5509
+ # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
4933
5510
  # })
4934
5511
  #
4935
5512
  # @example Response structure
4936
5513
  #
4937
5514
  # resp.uuid #=> String
5515
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
5516
+ # resp.starting_position_timestamp #=> Time
4938
5517
  # resp.batch_size #=> Integer
4939
5518
  # resp.maximum_batching_window_in_seconds #=> Integer
4940
5519
  # resp.parallelization_factor #=> Integer
@@ -4951,11 +5530,17 @@ module Aws::Lambda
4951
5530
  # resp.queues #=> Array
4952
5531
  # resp.queues[0] #=> String
4953
5532
  # resp.source_access_configurations #=> Array
4954
- # 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"
4955
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
4956
5538
  # resp.maximum_record_age_in_seconds #=> Integer
4957
5539
  # resp.bisect_batch_on_function_error #=> Boolean
4958
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"
4959
5544
  #
4960
5545
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
4961
5546
  #
@@ -4966,11 +5551,23 @@ module Aws::Lambda
4966
5551
  req.send_request(options)
4967
5552
  end
4968
5553
 
4969
- # 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].
4970
5557
  #
4971
5558
  # The function's code is locked when you publish a version. You can't
4972
5559
  # modify the code of a published version, only the unpublished version.
4973
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
+ #
4974
5571
  # @option params [required, String] :function_name
4975
5572
  # The name of the Lambda function.
4976
5573
  #
@@ -5001,6 +5598,9 @@ module Aws::Lambda
5001
5598
  # For versioned objects, the version of the deployment package object to
5002
5599
  # use.
5003
5600
  #
5601
+ # @option params [String] :image_uri
5602
+ # URI of a container image in the Amazon ECR registry.
5603
+ #
5004
5604
  # @option params [Boolean] :publish
5005
5605
  # Set to true to publish a new version of the function after updating
5006
5606
  # the code. This has the same effect as calling PublishVersion
@@ -5044,6 +5644,10 @@ module Aws::Lambda
5044
5644
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
5045
5645
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
5046
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
5047
5651
  #
5048
5652
  #
5049
5653
  # @example Example: To update a Lambda function's code
@@ -5085,6 +5689,7 @@ module Aws::Lambda
5085
5689
  # s3_bucket: "S3Bucket",
5086
5690
  # s3_key: "S3Key",
5087
5691
  # s3_object_version: "S3ObjectVersion",
5692
+ # image_uri: "String",
5088
5693
  # publish: false,
5089
5694
  # dry_run: false,
5090
5695
  # revision_id: "String",
@@ -5121,15 +5726,27 @@ module Aws::Lambda
5121
5726
  # resp.layers #=> Array
5122
5727
  # resp.layers[0].arn #=> String
5123
5728
  # resp.layers[0].code_size #=> Integer
5729
+ # resp.layers[0].signing_profile_version_arn #=> String
5730
+ # resp.layers[0].signing_job_arn #=> String
5124
5731
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5125
5732
  # resp.state_reason #=> String
5126
- # 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"
5127
5734
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
5128
5735
  # resp.last_update_status_reason #=> String
5129
- # 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"
5130
5737
  # resp.file_system_configs #=> Array
5131
5738
  # resp.file_system_configs[0].arn #=> String
5132
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
5133
5750
  #
5134
5751
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
5135
5752
  #
@@ -5201,9 +5818,9 @@ module Aws::Lambda
5201
5818
  # 900 seconds.
5202
5819
  #
5203
5820
  # @option params [Integer] :memory_size
5204
- # The amount of memory that your function has access to. Increasing the
5205
- # function's memory also increases its CPU allocation. The default
5206
- # 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.
5207
5824
  #
5208
5825
  # @option params [Types::VpcConfig] :vpc_config
5209
5826
  # For network connectivity to AWS resources in a VPC, specify a list of
@@ -5260,6 +5877,9 @@ module Aws::Lambda
5260
5877
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
5261
5878
  # Connection settings for an Amazon EFS file system.
5262
5879
  #
5880
+ # @option params [Types::ImageConfig] :image_config
5881
+ # Configuration values that override the container image Dockerfile.
5882
+ #
5263
5883
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5264
5884
  #
5265
5885
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -5289,6 +5909,10 @@ module Aws::Lambda
5289
5909
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
5290
5910
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
5291
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
5292
5916
  #
5293
5917
  #
5294
5918
  # @example Example: To update a Lambda function's configuration
@@ -5355,6 +5979,11 @@ module Aws::Lambda
5355
5979
  # local_mount_path: "LocalMountPath", # required
5356
5980
  # },
5357
5981
  # ],
5982
+ # image_config: {
5983
+ # entry_point: ["String"],
5984
+ # command: ["String"],
5985
+ # working_directory: "WorkingDirectory",
5986
+ # },
5358
5987
  # })
5359
5988
  #
5360
5989
  # @example Response structure
@@ -5388,15 +6017,27 @@ module Aws::Lambda
5388
6017
  # resp.layers #=> Array
5389
6018
  # resp.layers[0].arn #=> String
5390
6019
  # resp.layers[0].code_size #=> Integer
6020
+ # resp.layers[0].signing_profile_version_arn #=> String
6021
+ # resp.layers[0].signing_job_arn #=> String
5391
6022
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5392
6023
  # resp.state_reason #=> String
5393
- # 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"
5394
6025
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
5395
6026
  # resp.last_update_status_reason #=> String
5396
- # 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"
5397
6028
  # resp.file_system_configs #=> Array
5398
6029
  # resp.file_system_configs[0].arn #=> String
5399
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
5400
6041
  #
5401
6042
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
5402
6043
  #
@@ -5541,7 +6182,7 @@ module Aws::Lambda
5541
6182
  params: params,
5542
6183
  config: config)
5543
6184
  context[:gem_name] = 'aws-sdk-lambda'
5544
- context[:gem_version] = '1.52.0'
6185
+ context[:gem_version] = '1.57.0'
5545
6186
  Seahorse::Client::Request.new(handlers, context)
5546
6187
  end
5547
6188