aws-sdk-lambda 1.51.0 → 1.56.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: 10d2cfdb632990383477e6e913dc82a3ac7ca02dcb0888f026649ad666d52da4
4
- data.tar.gz: 85ef22304854407e410ed3fe49b58485a0a63a66ea352dc793f687dca7a55a4f
3
+ metadata.gz: a05b78f3435dafd9014f042ba2796bbcc7e9dfe2180d08e5dd0348a49de79040
4
+ data.tar.gz: fe1b96049bc3b4f581033e975bf931e8a4860f21187e5d88b12733df983be47c
5
5
  SHA512:
6
- metadata.gz: f7d847632d47a60b4721c99460d73e3543b29dbaecdfcb209a6e2c5aa924654d0001a76a8642ade7387d622ae2867bd3695c846f872888b4edbc6225fec8f99a
7
- data.tar.gz: 83cc9030df24ee984930905ba76ba45f59b4d793e9b462adf0d98b343d54d76e11b2b34471c9d1b589dd40099ed26f14a9f19b5e5653055657b12a8e2931a557
6
+ metadata.gz: 77e54a757a64ce794b19c7fd2d1723a5397280a7d2ddcc07f5f5a888868c413458228411abc49e7a16785172276fb169ffbf1a6dbeb4b11c195c0a868259e742
7
+ data.tar.gz: 42e89d825104c8eb04d2f4f8ba25a9611bf295a0129b62426c006046711e82399f1f88268db686f47df170ddc6c4721252c4089b3e1e9258e5e9435fbc41d606
@@ -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.51.0'
52
+ GEM_VERSION = '1.56.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,9 @@ 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]
679
735
  #
680
736
  # The following error handling options are only available for stream
681
737
  # sources (DynamoDB and Kinesis):
@@ -687,11 +743,12 @@ module Aws::Lambda
687
743
  # or Amazon SNS topic.
688
744
  #
689
745
  # * `MaximumRecordAgeInSeconds` - Discard records older than the
690
- # specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
746
+ # specified age. The default value is infinite (-1). When set to
747
+ # infinite (-1), failed records are retried until the record expires
691
748
  #
692
749
  # * `MaximumRetryAttempts` - Discard records after the specified number
693
- # of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
694
- # infinite, failed records will be retried until the record expires.
750
+ # of retries. The default value is infinite (-1). When set to infinite
751
+ # (-1), failed records are retried until the record expires.
695
752
  #
696
753
  # * `ParallelizationFactor` - Process multiple batches from each shard
697
754
  # concurrently.
@@ -701,7 +758,8 @@ module Aws::Lambda
701
758
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
702
759
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
703
760
  # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
704
- # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
761
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html
762
+ # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
705
763
  #
706
764
  # @option params [required, String] :event_source_arn
707
765
  # The Amazon Resource Name (ARN) of the event source.
@@ -787,9 +845,27 @@ module Aws::Lambda
787
845
  # @option params [Array<String>] :topics
788
846
  # (MSK) The name of the Kafka topic.
789
847
  #
848
+ # @option params [Array<String>] :queues
849
+ # (MQ) The name of the Amazon MQ broker destination queue to consume.
850
+ #
851
+ # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
852
+ # (MQ) The Secrets Manager secret that stores your broker credentials.
853
+ # To store your secret, use the following format: ` \{ "username": "your
854
+ # username", "password": "your password" \}`
855
+ #
856
+ # To reference the secret, use the following format: `[ \{ "Type":
857
+ # "BASIC_AUTH", "URI": "secretARN" \} ]`
858
+ #
859
+ # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
860
+ # can use customer or service managed keys. When using a customer
861
+ # managed KMS key, the Lambda execution role requires `kms:Decrypt`
862
+ # permissions.
863
+ #
790
864
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
791
865
  #
792
866
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
867
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
868
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
793
869
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
794
870
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
795
871
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -801,6 +877,8 @@ module Aws::Lambda
801
877
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
802
878
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
803
879
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
880
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
881
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
804
882
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
805
883
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
806
884
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -850,11 +928,20 @@ module Aws::Lambda
850
928
  # bisect_batch_on_function_error: false,
851
929
  # maximum_retry_attempts: 1,
852
930
  # topics: ["Topic"],
931
+ # queues: ["Queue"],
932
+ # source_access_configurations: [
933
+ # {
934
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH
935
+ # uri: "Arn",
936
+ # },
937
+ # ],
853
938
  # })
854
939
  #
855
940
  # @example Response structure
856
941
  #
857
942
  # resp.uuid #=> String
943
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
944
+ # resp.starting_position_timestamp #=> Time
858
945
  # resp.batch_size #=> Integer
859
946
  # resp.maximum_batching_window_in_seconds #=> Integer
860
947
  # resp.parallelization_factor #=> Integer
@@ -868,6 +955,11 @@ module Aws::Lambda
868
955
  # resp.destination_config.on_failure.destination #=> String
869
956
  # resp.topics #=> Array
870
957
  # resp.topics[0] #=> String
958
+ # resp.queues #=> Array
959
+ # resp.queues[0] #=> String
960
+ # resp.source_access_configurations #=> Array
961
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
962
+ # resp.source_access_configurations[0].uri #=> String
871
963
  # resp.maximum_record_age_in_seconds #=> Integer
872
964
  # resp.bisect_batch_on_function_error #=> Boolean
873
965
  # resp.maximum_retry_attempts #=> Integer
@@ -883,9 +975,10 @@ module Aws::Lambda
883
975
 
884
976
  # Creates a Lambda function. To create a function, you need a
885
977
  # [deployment package][1] and an [execution role][2]. The deployment
886
- # package contains your function code. The execution role grants the
887
- # function permission to use AWS services, such as Amazon CloudWatch
888
- # Logs for log streaming and AWS X-Ray for request tracing.
978
+ # package is a .zip file archive or container image that contains your
979
+ # function code. The execution role grants the function permission to
980
+ # use AWS services, such as Amazon CloudWatch Logs for log streaming and
981
+ # AWS X-Ray for request tracing.
889
982
  #
890
983
  # When you create a function, Lambda provisions an instance of the
891
984
  # function and its supporting resources. If your function connects to a
@@ -910,6 +1003,14 @@ module Aws::Lambda
910
1003
  # include tags (TagResource) and per-function concurrency limits
911
1004
  # (PutFunctionConcurrency).
912
1005
  #
1006
+ # You can use code signing if your deployment package is a .zip file
1007
+ # archive. To enable code signing for this function, specify the ARN of
1008
+ # a code-signing configuration. When a user attempts to deploy a code
1009
+ # package with UpdateFunctionCode, Lambda checks that the code package
1010
+ # has a valid signature from a trusted publisher. The code-signing
1011
+ # configuration includes set set of signing profiles, which define the
1012
+ # trusted publishers for this function.
1013
+ #
913
1014
  # If another account or an AWS service invokes your function, use
914
1015
  # AddPermission to grant permission by creating a resource-based IAM
915
1016
  # policy. You can grant permissions at the function level, on a version,
@@ -922,7 +1023,7 @@ module Aws::Lambda
922
1023
  #
923
1024
  #
924
1025
  #
925
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/deployment-package-v2.html
1026
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html
926
1027
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role
927
1028
  # [3]: https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html
928
1029
  # [4]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html
@@ -942,7 +1043,7 @@ module Aws::Lambda
942
1043
  # The length constraint applies only to the full ARN. If you specify
943
1044
  # only the function name, it is limited to 64 characters in length.
944
1045
  #
945
- # @option params [required, String] :runtime
1046
+ # @option params [String] :runtime
946
1047
  # The identifier of the function's [runtime][1].
947
1048
  #
948
1049
  #
@@ -952,7 +1053,7 @@ module Aws::Lambda
952
1053
  # @option params [required, String] :role
953
1054
  # The Amazon Resource Name (ARN) of the function's execution role.
954
1055
  #
955
- # @option params [required, String] :handler
1056
+ # @option params [String] :handler
956
1057
  # The name of the method within your code that Lambda calls to execute
957
1058
  # your function. The format includes the file name. It can also include
958
1059
  # namespaces and other qualifiers, depending on the runtime. For more
@@ -974,9 +1075,9 @@ module Aws::Lambda
974
1075
  # 900 seconds.
975
1076
  #
976
1077
  # @option params [Integer] :memory_size
977
- # The amount of memory that your function has access to. Increasing the
978
- # function's memory also increases its CPU allocation. The default
979
- # value is 128 MB. The value must be a multiple of 64 MB.
1078
+ # The amount of memory available to the function at runtime. Increasing
1079
+ # the function's memory also increases its CPU allocation. The default
1080
+ # value is 128 MB. The value can be any multiple of 1 MB.
980
1081
  #
981
1082
  # @option params [Boolean] :publish
982
1083
  # Set to true to publish the first version of the function during
@@ -992,6 +1093,10 @@ module Aws::Lambda
992
1093
  #
993
1094
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
994
1095
  #
1096
+ # @option params [String] :package_type
1097
+ # The type of deployment package. Set to `Image` for container image and
1098
+ # set `Zip` for ZIP archive.
1099
+ #
995
1100
  # @option params [Types::DeadLetterConfig] :dead_letter_config
996
1101
  # A dead letter queue configuration that specifies the queue or topic
997
1102
  # where Lambda sends asynchronous events when they fail processing. For
@@ -1032,6 +1137,15 @@ module Aws::Lambda
1032
1137
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
1033
1138
  # Connection settings for an Amazon EFS file system.
1034
1139
  #
1140
+ # @option params [Types::ImageConfig] :image_config
1141
+ # Configuration values that override the container image Dockerfile.
1142
+ #
1143
+ # @option params [String] :code_signing_config_arn
1144
+ # To enable code signing for this function, specify the ARN of a
1145
+ # code-signing configuration. A code-signing configuration includes a
1146
+ # set of signing profiles, which define the trusted publishers for this
1147
+ # function.
1148
+ #
1035
1149
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1036
1150
  #
1037
1151
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -1061,6 +1175,10 @@ module Aws::Lambda
1061
1175
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
1062
1176
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
1063
1177
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
1178
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
1179
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
1180
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
1181
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
1064
1182
  #
1065
1183
  #
1066
1184
  # @example Example: To create a function
@@ -1129,14 +1247,15 @@ module Aws::Lambda
1129
1247
  #
1130
1248
  # resp = client.create_function({
1131
1249
  # function_name: "FunctionName", # required
1132
- # 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
1250
+ # 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
1133
1251
  # role: "RoleArn", # required
1134
- # handler: "Handler", # required
1252
+ # handler: "Handler",
1135
1253
  # code: { # required
1136
1254
  # zip_file: "data",
1137
1255
  # s3_bucket: "S3Bucket",
1138
1256
  # s3_key: "S3Key",
1139
1257
  # s3_object_version: "S3ObjectVersion",
1258
+ # image_uri: "String",
1140
1259
  # },
1141
1260
  # description: "Description",
1142
1261
  # timeout: 1,
@@ -1146,6 +1265,7 @@ module Aws::Lambda
1146
1265
  # subnet_ids: ["SubnetId"],
1147
1266
  # security_group_ids: ["SecurityGroupId"],
1148
1267
  # },
1268
+ # package_type: "Zip", # accepts Zip, Image
1149
1269
  # dead_letter_config: {
1150
1270
  # target_arn: "ResourceArn",
1151
1271
  # },
@@ -1168,6 +1288,12 @@ module Aws::Lambda
1168
1288
  # local_mount_path: "LocalMountPath", # required
1169
1289
  # },
1170
1290
  # ],
1291
+ # image_config: {
1292
+ # entry_point: ["String"],
1293
+ # command: ["String"],
1294
+ # working_directory: "WorkingDirectory",
1295
+ # },
1296
+ # code_signing_config_arn: "CodeSigningConfigArn",
1171
1297
  # })
1172
1298
  #
1173
1299
  # @example Response structure
@@ -1201,15 +1327,27 @@ module Aws::Lambda
1201
1327
  # resp.layers #=> Array
1202
1328
  # resp.layers[0].arn #=> String
1203
1329
  # resp.layers[0].code_size #=> Integer
1330
+ # resp.layers[0].signing_profile_version_arn #=> String
1331
+ # resp.layers[0].signing_job_arn #=> String
1204
1332
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1205
1333
  # resp.state_reason #=> String
1206
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
1334
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
1207
1335
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
1208
1336
  # resp.last_update_status_reason #=> String
1209
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
1337
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
1210
1338
  # resp.file_system_configs #=> Array
1211
1339
  # resp.file_system_configs[0].arn #=> String
1212
1340
  # resp.file_system_configs[0].local_mount_path #=> String
1341
+ # resp.package_type #=> String, one of "Zip", "Image"
1342
+ # resp.image_config_response.image_config.entry_point #=> Array
1343
+ # resp.image_config_response.image_config.entry_point[0] #=> String
1344
+ # resp.image_config_response.image_config.command #=> Array
1345
+ # resp.image_config_response.image_config.command[0] #=> String
1346
+ # resp.image_config_response.image_config.working_directory #=> String
1347
+ # resp.image_config_response.error.error_code #=> String
1348
+ # resp.image_config_response.error.message #=> String
1349
+ # resp.signing_profile_version_arn #=> String
1350
+ # resp.signing_job_arn #=> String
1213
1351
  #
1214
1352
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
1215
1353
  #
@@ -1272,6 +1410,29 @@ module Aws::Lambda
1272
1410
  req.send_request(options)
1273
1411
  end
1274
1412
 
1413
+ # Deletes the code signing configuration. You can delete the code
1414
+ # signing configuration only if no function is using it.
1415
+ #
1416
+ # @option params [required, String] :code_signing_config_arn
1417
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
1418
+ #
1419
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1420
+ #
1421
+ # @example Request syntax with placeholder values
1422
+ #
1423
+ # resp = client.delete_code_signing_config({
1424
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1425
+ # })
1426
+ #
1427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig AWS API Documentation
1428
+ #
1429
+ # @overload delete_code_signing_config(params = {})
1430
+ # @param [Hash] params ({})
1431
+ def delete_code_signing_config(params = {}, options = {})
1432
+ req = build_request(:delete_code_signing_config, params)
1433
+ req.send_request(options)
1434
+ end
1435
+
1275
1436
  # Deletes an [event source mapping][1]. You can get the identifier of a
1276
1437
  # mapping from the output of ListEventSourceMappings.
1277
1438
  #
@@ -1288,6 +1449,8 @@ module Aws::Lambda
1288
1449
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1289
1450
  #
1290
1451
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
1452
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
1453
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
1291
1454
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
1292
1455
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1293
1456
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -1299,6 +1462,8 @@ module Aws::Lambda
1299
1462
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
1300
1463
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
1301
1464
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1465
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1466
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
1302
1467
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1303
1468
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1304
1469
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -1332,6 +1497,8 @@ module Aws::Lambda
1332
1497
  # @example Response structure
1333
1498
  #
1334
1499
  # resp.uuid #=> String
1500
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
1501
+ # resp.starting_position_timestamp #=> Time
1335
1502
  # resp.batch_size #=> Integer
1336
1503
  # resp.maximum_batching_window_in_seconds #=> Integer
1337
1504
  # resp.parallelization_factor #=> Integer
@@ -1345,6 +1512,11 @@ module Aws::Lambda
1345
1512
  # resp.destination_config.on_failure.destination #=> String
1346
1513
  # resp.topics #=> Array
1347
1514
  # resp.topics[0] #=> String
1515
+ # resp.queues #=> Array
1516
+ # resp.queues[0] #=> String
1517
+ # resp.source_access_configurations #=> Array
1518
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
1519
+ # resp.source_access_configurations[0].uri #=> String
1348
1520
  # resp.maximum_record_age_in_seconds #=> Integer
1349
1521
  # resp.bisect_batch_on_function_error #=> Boolean
1350
1522
  # resp.maximum_retry_attempts #=> Integer
@@ -1416,6 +1588,40 @@ module Aws::Lambda
1416
1588
  req.send_request(options)
1417
1589
  end
1418
1590
 
1591
+ # Removes the code signing configuration from the function.
1592
+ #
1593
+ # @option params [required, String] :function_name
1594
+ # The name of the Lambda function.
1595
+ #
1596
+ # **Name formats**
1597
+ #
1598
+ # * **Function name** - `MyFunction`.
1599
+ #
1600
+ # * **Function ARN** -
1601
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
1602
+ #
1603
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
1604
+ #
1605
+ # The length constraint applies only to the full ARN. If you specify
1606
+ # only the function name, it is limited to 64 characters in length.
1607
+ #
1608
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1609
+ #
1610
+ # @example Request syntax with placeholder values
1611
+ #
1612
+ # resp = client.delete_function_code_signing_config({
1613
+ # function_name: "FunctionName", # required
1614
+ # })
1615
+ #
1616
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig AWS API Documentation
1617
+ #
1618
+ # @overload delete_function_code_signing_config(params = {})
1619
+ # @param [Hash] params ({})
1620
+ def delete_function_code_signing_config(params = {}, options = {})
1621
+ req = build_request(:delete_function_code_signing_config, params)
1622
+ req.send_request(options)
1623
+ end
1624
+
1419
1625
  # Removes a concurrent execution limit from a function.
1420
1626
  #
1421
1627
  # @option params [required, String] :function_name
@@ -1737,6 +1943,40 @@ module Aws::Lambda
1737
1943
  req.send_request(options)
1738
1944
  end
1739
1945
 
1946
+ # Returns information about the specified code signing configuration.
1947
+ #
1948
+ # @option params [required, String] :code_signing_config_arn
1949
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
1950
+ #
1951
+ # @return [Types::GetCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1952
+ #
1953
+ # * {Types::GetCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
1954
+ #
1955
+ # @example Request syntax with placeholder values
1956
+ #
1957
+ # resp = client.get_code_signing_config({
1958
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1959
+ # })
1960
+ #
1961
+ # @example Response structure
1962
+ #
1963
+ # resp.code_signing_config.code_signing_config_id #=> String
1964
+ # resp.code_signing_config.code_signing_config_arn #=> String
1965
+ # resp.code_signing_config.description #=> String
1966
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
1967
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
1968
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
1969
+ # resp.code_signing_config.last_modified #=> Time
1970
+ #
1971
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig AWS API Documentation
1972
+ #
1973
+ # @overload get_code_signing_config(params = {})
1974
+ # @param [Hash] params ({})
1975
+ def get_code_signing_config(params = {}, options = {})
1976
+ req = build_request(:get_code_signing_config, params)
1977
+ req.send_request(options)
1978
+ end
1979
+
1740
1980
  # Returns details about an event source mapping. You can get the
1741
1981
  # identifier of a mapping from the output of ListEventSourceMappings.
1742
1982
  #
@@ -1746,6 +1986,8 @@ module Aws::Lambda
1746
1986
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1747
1987
  #
1748
1988
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
1989
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
1990
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
1749
1991
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
1750
1992
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1751
1993
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -1757,6 +1999,8 @@ module Aws::Lambda
1757
1999
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
1758
2000
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
1759
2001
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
2002
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
2003
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
1760
2004
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1761
2005
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1762
2006
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -1797,6 +2041,8 @@ module Aws::Lambda
1797
2041
  # @example Response structure
1798
2042
  #
1799
2043
  # resp.uuid #=> String
2044
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
2045
+ # resp.starting_position_timestamp #=> Time
1800
2046
  # resp.batch_size #=> Integer
1801
2047
  # resp.maximum_batching_window_in_seconds #=> Integer
1802
2048
  # resp.parallelization_factor #=> Integer
@@ -1810,6 +2056,11 @@ module Aws::Lambda
1810
2056
  # resp.destination_config.on_failure.destination #=> String
1811
2057
  # resp.topics #=> Array
1812
2058
  # resp.topics[0] #=> String
2059
+ # resp.queues #=> Array
2060
+ # resp.queues[0] #=> String
2061
+ # resp.source_access_configurations #=> Array
2062
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
2063
+ # resp.source_access_configurations[0].uri #=> String
1813
2064
  # resp.maximum_record_age_in_seconds #=> Integer
1814
2065
  # resp.bisect_batch_on_function_error #=> Boolean
1815
2066
  # resp.maximum_retry_attempts #=> Integer
@@ -1942,17 +2193,31 @@ module Aws::Lambda
1942
2193
  # resp.configuration.layers #=> Array
1943
2194
  # resp.configuration.layers[0].arn #=> String
1944
2195
  # resp.configuration.layers[0].code_size #=> Integer
2196
+ # resp.configuration.layers[0].signing_profile_version_arn #=> String
2197
+ # resp.configuration.layers[0].signing_job_arn #=> String
1945
2198
  # resp.configuration.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1946
2199
  # resp.configuration.state_reason #=> String
1947
- # resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2200
+ # resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
1948
2201
  # resp.configuration.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
1949
2202
  # resp.configuration.last_update_status_reason #=> String
1950
- # resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2203
+ # resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
1951
2204
  # resp.configuration.file_system_configs #=> Array
1952
2205
  # resp.configuration.file_system_configs[0].arn #=> String
1953
2206
  # resp.configuration.file_system_configs[0].local_mount_path #=> String
2207
+ # resp.configuration.package_type #=> String, one of "Zip", "Image"
2208
+ # resp.configuration.image_config_response.image_config.entry_point #=> Array
2209
+ # resp.configuration.image_config_response.image_config.entry_point[0] #=> String
2210
+ # resp.configuration.image_config_response.image_config.command #=> Array
2211
+ # resp.configuration.image_config_response.image_config.command[0] #=> String
2212
+ # resp.configuration.image_config_response.image_config.working_directory #=> String
2213
+ # resp.configuration.image_config_response.error.error_code #=> String
2214
+ # resp.configuration.image_config_response.error.message #=> String
2215
+ # resp.configuration.signing_profile_version_arn #=> String
2216
+ # resp.configuration.signing_job_arn #=> String
1954
2217
  # resp.code.repository_type #=> String
1955
2218
  # resp.code.location #=> String
2219
+ # resp.code.image_uri #=> String
2220
+ # resp.code.resolved_image_uri #=> String
1956
2221
  # resp.tags #=> Hash
1957
2222
  # resp.tags["TagKey"] #=> String
1958
2223
  # resp.concurrency.reserved_concurrent_executions #=> Integer
@@ -1971,6 +2236,48 @@ module Aws::Lambda
1971
2236
  req.send_request(options)
1972
2237
  end
1973
2238
 
2239
+ # Returns the code signing configuration for the specified function.
2240
+ #
2241
+ # @option params [required, String] :function_name
2242
+ # The name of the Lambda function.
2243
+ #
2244
+ # **Name formats**
2245
+ #
2246
+ # * **Function name** - `MyFunction`.
2247
+ #
2248
+ # * **Function ARN** -
2249
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
2250
+ #
2251
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
2252
+ #
2253
+ # The length constraint applies only to the full ARN. If you specify
2254
+ # only the function name, it is limited to 64 characters in length.
2255
+ #
2256
+ # @return [Types::GetFunctionCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2257
+ #
2258
+ # * {Types::GetFunctionCodeSigningConfigResponse#code_signing_config_arn #code_signing_config_arn} => String
2259
+ # * {Types::GetFunctionCodeSigningConfigResponse#function_name #function_name} => String
2260
+ #
2261
+ # @example Request syntax with placeholder values
2262
+ #
2263
+ # resp = client.get_function_code_signing_config({
2264
+ # function_name: "FunctionName", # required
2265
+ # })
2266
+ #
2267
+ # @example Response structure
2268
+ #
2269
+ # resp.code_signing_config_arn #=> String
2270
+ # resp.function_name #=> String
2271
+ #
2272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig AWS API Documentation
2273
+ #
2274
+ # @overload get_function_code_signing_config(params = {})
2275
+ # @param [Hash] params ({})
2276
+ def get_function_code_signing_config(params = {}, options = {})
2277
+ req = build_request(:get_function_code_signing_config, params)
2278
+ req.send_request(options)
2279
+ end
2280
+
1974
2281
  # Returns details about the reserved concurrency configuration for a
1975
2282
  # function. To set a concurrency limit for a function, use
1976
2283
  # PutFunctionConcurrency.
@@ -2084,6 +2391,10 @@ module Aws::Lambda
2084
2391
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
2085
2392
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
2086
2393
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
2394
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
2395
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
2396
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
2397
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
2087
2398
  #
2088
2399
  #
2089
2400
  # @example Example: To get a Lambda function's event source mapping
@@ -2162,15 +2473,27 @@ module Aws::Lambda
2162
2473
  # resp.layers #=> Array
2163
2474
  # resp.layers[0].arn #=> String
2164
2475
  # resp.layers[0].code_size #=> Integer
2476
+ # resp.layers[0].signing_profile_version_arn #=> String
2477
+ # resp.layers[0].signing_job_arn #=> String
2165
2478
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
2166
2479
  # resp.state_reason #=> String
2167
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2480
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
2168
2481
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
2169
2482
  # resp.last_update_status_reason #=> String
2170
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
2483
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
2171
2484
  # resp.file_system_configs #=> Array
2172
2485
  # resp.file_system_configs[0].arn #=> String
2173
2486
  # resp.file_system_configs[0].local_mount_path #=> String
2487
+ # resp.package_type #=> String, one of "Zip", "Image"
2488
+ # resp.image_config_response.image_config.entry_point #=> Array
2489
+ # resp.image_config_response.image_config.entry_point[0] #=> String
2490
+ # resp.image_config_response.image_config.command #=> Array
2491
+ # resp.image_config_response.image_config.command[0] #=> String
2492
+ # resp.image_config_response.image_config.working_directory #=> String
2493
+ # resp.image_config_response.error.error_code #=> String
2494
+ # resp.image_config_response.error.message #=> String
2495
+ # resp.signing_profile_version_arn #=> String
2496
+ # resp.signing_job_arn #=> String
2174
2497
  #
2175
2498
  #
2176
2499
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2337,6 +2660,8 @@ module Aws::Lambda
2337
2660
  # resp.content.location #=> String
2338
2661
  # resp.content.code_sha_256 #=> String
2339
2662
  # resp.content.code_size #=> Integer
2663
+ # resp.content.signing_profile_version_arn #=> String
2664
+ # resp.content.signing_job_arn #=> String
2340
2665
  # resp.layer_arn #=> String
2341
2666
  # resp.layer_version_arn #=> String
2342
2667
  # resp.description #=> String
@@ -2413,6 +2738,8 @@ module Aws::Lambda
2413
2738
  # resp.content.location #=> String
2414
2739
  # resp.content.code_sha_256 #=> String
2415
2740
  # resp.content.code_size #=> Integer
2741
+ # resp.content.signing_profile_version_arn #=> String
2742
+ # resp.content.signing_job_arn #=> String
2416
2743
  # resp.layer_arn #=> String
2417
2744
  # resp.layer_version_arn #=> String
2418
2745
  # resp.description #=> String
@@ -2570,9 +2897,9 @@ module Aws::Lambda
2570
2897
  # * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
2571
2898
  #
2572
2899
  #
2573
- # @example Example: To view a provisioned concurrency configuration
2900
+ # @example Example: To get a provisioned concurrency configuration
2574
2901
  #
2575
- # # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
2902
+ # # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
2576
2903
  # # function.
2577
2904
  #
2578
2905
  # resp = client.get_provisioned_concurrency_config({
@@ -2589,9 +2916,9 @@ module Aws::Lambda
2589
2916
  # status: "READY",
2590
2917
  # }
2591
2918
  #
2592
- # @example Example: To get a provisioned concurrency configuration
2919
+ # @example Example: To view a provisioned concurrency configuration
2593
2920
  #
2594
- # # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
2921
+ # # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
2595
2922
  # # function.
2596
2923
  #
2597
2924
  # resp = client.get_provisioned_concurrency_config({
@@ -2963,6 +3290,56 @@ module Aws::Lambda
2963
3290
  req.send_request(options)
2964
3291
  end
2965
3292
 
3293
+ # Returns a list of [code signing configurations][1]. A request returns
3294
+ # up to 10,000 configurations per call. You can use the `MaxItems`
3295
+ # parameter to return fewer configurations per call.
3296
+ #
3297
+ #
3298
+ #
3299
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html
3300
+ #
3301
+ # @option params [String] :marker
3302
+ # Specify the pagination token that's returned by a previous request to
3303
+ # retrieve the next page of results.
3304
+ #
3305
+ # @option params [Integer] :max_items
3306
+ # Maximum number of items to return.
3307
+ #
3308
+ # @return [Types::ListCodeSigningConfigsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3309
+ #
3310
+ # * {Types::ListCodeSigningConfigsResponse#next_marker #next_marker} => String
3311
+ # * {Types::ListCodeSigningConfigsResponse#code_signing_configs #code_signing_configs} => Array&lt;Types::CodeSigningConfig&gt;
3312
+ #
3313
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3314
+ #
3315
+ # @example Request syntax with placeholder values
3316
+ #
3317
+ # resp = client.list_code_signing_configs({
3318
+ # marker: "String",
3319
+ # max_items: 1,
3320
+ # })
3321
+ #
3322
+ # @example Response structure
3323
+ #
3324
+ # resp.next_marker #=> String
3325
+ # resp.code_signing_configs #=> Array
3326
+ # resp.code_signing_configs[0].code_signing_config_id #=> String
3327
+ # resp.code_signing_configs[0].code_signing_config_arn #=> String
3328
+ # resp.code_signing_configs[0].description #=> String
3329
+ # resp.code_signing_configs[0].allowed_publishers.signing_profile_version_arns #=> Array
3330
+ # resp.code_signing_configs[0].allowed_publishers.signing_profile_version_arns[0] #=> String
3331
+ # resp.code_signing_configs[0].code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
3332
+ # resp.code_signing_configs[0].last_modified #=> Time
3333
+ #
3334
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs AWS API Documentation
3335
+ #
3336
+ # @overload list_code_signing_configs(params = {})
3337
+ # @param [Hash] params ({})
3338
+ def list_code_signing_configs(params = {}, options = {})
3339
+ req = build_request(:list_code_signing_configs, params)
3340
+ req.send_request(options)
3341
+ end
3342
+
2966
3343
  # Lists event source mappings. Specify an `EventSourceArn` to only show
2967
3344
  # event source mappings for a single event source.
2968
3345
  #
@@ -3048,6 +3425,8 @@ module Aws::Lambda
3048
3425
  # resp.next_marker #=> String
3049
3426
  # resp.event_source_mappings #=> Array
3050
3427
  # resp.event_source_mappings[0].uuid #=> String
3428
+ # resp.event_source_mappings[0].starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
3429
+ # resp.event_source_mappings[0].starting_position_timestamp #=> Time
3051
3430
  # resp.event_source_mappings[0].batch_size #=> Integer
3052
3431
  # resp.event_source_mappings[0].maximum_batching_window_in_seconds #=> Integer
3053
3432
  # resp.event_source_mappings[0].parallelization_factor #=> Integer
@@ -3061,6 +3440,11 @@ module Aws::Lambda
3061
3440
  # resp.event_source_mappings[0].destination_config.on_failure.destination #=> String
3062
3441
  # resp.event_source_mappings[0].topics #=> Array
3063
3442
  # resp.event_source_mappings[0].topics[0] #=> String
3443
+ # resp.event_source_mappings[0].queues #=> Array
3444
+ # resp.event_source_mappings[0].queues[0] #=> String
3445
+ # resp.event_source_mappings[0].source_access_configurations #=> Array
3446
+ # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
3447
+ # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
3064
3448
  # resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
3065
3449
  # resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
3066
3450
  # resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
@@ -3295,15 +3679,27 @@ module Aws::Lambda
3295
3679
  # resp.functions[0].layers #=> Array
3296
3680
  # resp.functions[0].layers[0].arn #=> String
3297
3681
  # resp.functions[0].layers[0].code_size #=> Integer
3682
+ # resp.functions[0].layers[0].signing_profile_version_arn #=> String
3683
+ # resp.functions[0].layers[0].signing_job_arn #=> String
3298
3684
  # resp.functions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3299
3685
  # resp.functions[0].state_reason #=> String
3300
- # resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
3686
+ # resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3301
3687
  # resp.functions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
3302
3688
  # resp.functions[0].last_update_status_reason #=> String
3303
- # resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
3689
+ # resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3304
3690
  # resp.functions[0].file_system_configs #=> Array
3305
3691
  # resp.functions[0].file_system_configs[0].arn #=> String
3306
3692
  # resp.functions[0].file_system_configs[0].local_mount_path #=> String
3693
+ # resp.functions[0].package_type #=> String, one of "Zip", "Image"
3694
+ # resp.functions[0].image_config_response.image_config.entry_point #=> Array
3695
+ # resp.functions[0].image_config_response.image_config.entry_point[0] #=> String
3696
+ # resp.functions[0].image_config_response.image_config.command #=> Array
3697
+ # resp.functions[0].image_config_response.image_config.command[0] #=> String
3698
+ # resp.functions[0].image_config_response.image_config.working_directory #=> String
3699
+ # resp.functions[0].image_config_response.error.error_code #=> String
3700
+ # resp.functions[0].image_config_response.error.message #=> String
3701
+ # resp.functions[0].signing_profile_version_arn #=> String
3702
+ # resp.functions[0].signing_job_arn #=> String
3307
3703
  #
3308
3704
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
3309
3705
  #
@@ -3314,6 +3710,50 @@ module Aws::Lambda
3314
3710
  req.send_request(options)
3315
3711
  end
3316
3712
 
3713
+ # List the functions that use the specified code signing configuration.
3714
+ # You can use this method prior to deleting a code signing
3715
+ # configuration, to verify that no functions are using it.
3716
+ #
3717
+ # @option params [required, String] :code_signing_config_arn
3718
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
3719
+ #
3720
+ # @option params [String] :marker
3721
+ # Specify the pagination token that's returned by a previous request to
3722
+ # retrieve the next page of results.
3723
+ #
3724
+ # @option params [Integer] :max_items
3725
+ # Maximum number of items to return.
3726
+ #
3727
+ # @return [Types::ListFunctionsByCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3728
+ #
3729
+ # * {Types::ListFunctionsByCodeSigningConfigResponse#next_marker #next_marker} => String
3730
+ # * {Types::ListFunctionsByCodeSigningConfigResponse#function_arns #function_arns} => Array&lt;String&gt;
3731
+ #
3732
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3733
+ #
3734
+ # @example Request syntax with placeholder values
3735
+ #
3736
+ # resp = client.list_functions_by_code_signing_config({
3737
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
3738
+ # marker: "String",
3739
+ # max_items: 1,
3740
+ # })
3741
+ #
3742
+ # @example Response structure
3743
+ #
3744
+ # resp.next_marker #=> String
3745
+ # resp.function_arns #=> Array
3746
+ # resp.function_arns[0] #=> String
3747
+ #
3748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfig AWS API Documentation
3749
+ #
3750
+ # @overload list_functions_by_code_signing_config(params = {})
3751
+ # @param [Hash] params ({})
3752
+ def list_functions_by_code_signing_config(params = {}, options = {})
3753
+ req = build_request(:list_functions_by_code_signing_config, params)
3754
+ req.send_request(options)
3755
+ end
3756
+
3317
3757
  # Lists the versions of an [AWS Lambda layer][1]. Versions that have
3318
3758
  # been deleted aren't listed. Specify a [runtime identifier][2] to list
3319
3759
  # only versions that indicate that they're compatible with that
@@ -3776,15 +4216,27 @@ module Aws::Lambda
3776
4216
  # resp.versions[0].layers #=> Array
3777
4217
  # resp.versions[0].layers[0].arn #=> String
3778
4218
  # resp.versions[0].layers[0].code_size #=> Integer
4219
+ # resp.versions[0].layers[0].signing_profile_version_arn #=> String
4220
+ # resp.versions[0].layers[0].signing_job_arn #=> String
3779
4221
  # resp.versions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3780
4222
  # resp.versions[0].state_reason #=> String
3781
- # resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4223
+ # resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3782
4224
  # resp.versions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
3783
4225
  # resp.versions[0].last_update_status_reason #=> String
3784
- # resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4226
+ # resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
3785
4227
  # resp.versions[0].file_system_configs #=> Array
3786
4228
  # resp.versions[0].file_system_configs[0].arn #=> String
3787
4229
  # resp.versions[0].file_system_configs[0].local_mount_path #=> String
4230
+ # resp.versions[0].package_type #=> String, one of "Zip", "Image"
4231
+ # resp.versions[0].image_config_response.image_config.entry_point #=> Array
4232
+ # resp.versions[0].image_config_response.image_config.entry_point[0] #=> String
4233
+ # resp.versions[0].image_config_response.image_config.command #=> Array
4234
+ # resp.versions[0].image_config_response.image_config.command[0] #=> String
4235
+ # resp.versions[0].image_config_response.image_config.working_directory #=> String
4236
+ # resp.versions[0].image_config_response.error.error_code #=> String
4237
+ # resp.versions[0].image_config_response.error.message #=> String
4238
+ # resp.versions[0].signing_profile_version_arn #=> String
4239
+ # resp.versions[0].signing_job_arn #=> String
3788
4240
  #
3789
4241
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
3790
4242
  #
@@ -3907,6 +4359,8 @@ module Aws::Lambda
3907
4359
  # resp.content.location #=> String
3908
4360
  # resp.content.code_sha_256 #=> String
3909
4361
  # resp.content.code_size #=> Integer
4362
+ # resp.content.signing_profile_version_arn #=> String
4363
+ # resp.content.signing_job_arn #=> String
3910
4364
  # resp.layer_arn #=> String
3911
4365
  # resp.layer_version_arn #=> String
3912
4366
  # resp.description #=> String
@@ -4001,6 +4455,10 @@ module Aws::Lambda
4001
4455
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
4002
4456
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
4003
4457
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
4458
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
4459
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
4460
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4461
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4004
4462
  #
4005
4463
  #
4006
4464
  # @example Example: To publish a version of a Lambda function
@@ -4082,15 +4540,27 @@ module Aws::Lambda
4082
4540
  # resp.layers #=> Array
4083
4541
  # resp.layers[0].arn #=> String
4084
4542
  # resp.layers[0].code_size #=> Integer
4543
+ # resp.layers[0].signing_profile_version_arn #=> String
4544
+ # resp.layers[0].signing_job_arn #=> String
4085
4545
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
4086
4546
  # resp.state_reason #=> String
4087
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4547
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
4088
4548
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
4089
4549
  # resp.last_update_status_reason #=> String
4090
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
4550
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
4091
4551
  # resp.file_system_configs #=> Array
4092
4552
  # resp.file_system_configs[0].arn #=> String
4093
4553
  # resp.file_system_configs[0].local_mount_path #=> String
4554
+ # resp.package_type #=> String, one of "Zip", "Image"
4555
+ # resp.image_config_response.image_config.entry_point #=> Array
4556
+ # resp.image_config_response.image_config.entry_point[0] #=> String
4557
+ # resp.image_config_response.image_config.command #=> Array
4558
+ # resp.image_config_response.image_config.command[0] #=> String
4559
+ # resp.image_config_response.image_config.working_directory #=> String
4560
+ # resp.image_config_response.error.error_code #=> String
4561
+ # resp.image_config_response.error.message #=> String
4562
+ # resp.signing_profile_version_arn #=> String
4563
+ # resp.signing_job_arn #=> String
4094
4564
  #
4095
4565
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
4096
4566
  #
@@ -4101,6 +4571,54 @@ module Aws::Lambda
4101
4571
  req.send_request(options)
4102
4572
  end
4103
4573
 
4574
+ # Update the code signing configuration for the function. Changes to the
4575
+ # code signing configuration take effect the next time a user tries to
4576
+ # deploy a code package to the function.
4577
+ #
4578
+ # @option params [required, String] :code_signing_config_arn
4579
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
4580
+ #
4581
+ # @option params [required, String] :function_name
4582
+ # The name of the Lambda function.
4583
+ #
4584
+ # **Name formats**
4585
+ #
4586
+ # * **Function name** - `MyFunction`.
4587
+ #
4588
+ # * **Function ARN** -
4589
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
4590
+ #
4591
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
4592
+ #
4593
+ # The length constraint applies only to the full ARN. If you specify
4594
+ # only the function name, it is limited to 64 characters in length.
4595
+ #
4596
+ # @return [Types::PutFunctionCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4597
+ #
4598
+ # * {Types::PutFunctionCodeSigningConfigResponse#code_signing_config_arn #code_signing_config_arn} => String
4599
+ # * {Types::PutFunctionCodeSigningConfigResponse#function_name #function_name} => String
4600
+ #
4601
+ # @example Request syntax with placeholder values
4602
+ #
4603
+ # resp = client.put_function_code_signing_config({
4604
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
4605
+ # function_name: "FunctionName", # required
4606
+ # })
4607
+ #
4608
+ # @example Response structure
4609
+ #
4610
+ # resp.code_signing_config_arn #=> String
4611
+ # resp.function_name #=> String
4612
+ #
4613
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfig AWS API Documentation
4614
+ #
4615
+ # @overload put_function_code_signing_config(params = {})
4616
+ # @param [Hash] params ({})
4617
+ def put_function_code_signing_config(params = {}, options = {})
4618
+ req = build_request(:put_function_code_signing_config, params)
4619
+ req.send_request(options)
4620
+ end
4621
+
4104
4622
  # Sets the maximum number of simultaneous executions for a function, and
4105
4623
  # reserves capacity for that concurrency level.
4106
4624
  #
@@ -4711,6 +5229,58 @@ module Aws::Lambda
4711
5229
  req.send_request(options)
4712
5230
  end
4713
5231
 
5232
+ # Update the code signing configuration. Changes to the code signing
5233
+ # configuration take effect the next time a user tries to deploy a code
5234
+ # package to the function.
5235
+ #
5236
+ # @option params [required, String] :code_signing_config_arn
5237
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
5238
+ #
5239
+ # @option params [String] :description
5240
+ # Descriptive name for this code signing configuration.
5241
+ #
5242
+ # @option params [Types::AllowedPublishers] :allowed_publishers
5243
+ # Signing profiles for this code signing configuration.
5244
+ #
5245
+ # @option params [Types::CodeSigningPolicies] :code_signing_policies
5246
+ # The code signing policy.
5247
+ #
5248
+ # @return [Types::UpdateCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5249
+ #
5250
+ # * {Types::UpdateCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
5251
+ #
5252
+ # @example Request syntax with placeholder values
5253
+ #
5254
+ # resp = client.update_code_signing_config({
5255
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
5256
+ # description: "Description",
5257
+ # allowed_publishers: {
5258
+ # signing_profile_version_arns: ["Arn"], # required
5259
+ # },
5260
+ # code_signing_policies: {
5261
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
5262
+ # },
5263
+ # })
5264
+ #
5265
+ # @example Response structure
5266
+ #
5267
+ # resp.code_signing_config.code_signing_config_id #=> String
5268
+ # resp.code_signing_config.code_signing_config_arn #=> String
5269
+ # resp.code_signing_config.description #=> String
5270
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
5271
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
5272
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
5273
+ # resp.code_signing_config.last_modified #=> Time
5274
+ #
5275
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfig AWS API Documentation
5276
+ #
5277
+ # @overload update_code_signing_config(params = {})
5278
+ # @param [Hash] params ({})
5279
+ def update_code_signing_config(params = {}, options = {})
5280
+ req = build_request(:update_code_signing_config, params)
5281
+ req.send_request(options)
5282
+ end
5283
+
4714
5284
  # Updates an event source mapping. You can change the function that AWS
4715
5285
  # Lambda invokes, or pause invocation and resume later from the same
4716
5286
  # location.
@@ -4725,11 +5295,12 @@ module Aws::Lambda
4725
5295
  # or Amazon SNS topic.
4726
5296
  #
4727
5297
  # * `MaximumRecordAgeInSeconds` - Discard records older than the
4728
- # specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
5298
+ # specified age. The default value is infinite (-1). When set to
5299
+ # infinite (-1), failed records are retried until the record expires
4729
5300
  #
4730
5301
  # * `MaximumRetryAttempts` - Discard records after the specified number
4731
- # of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
4732
- # infinite, failed records will be retried until the record expires.
5302
+ # of retries. The default value is infinite (-1). When set to infinite
5303
+ # (-1), failed records are retried until the record expires.
4733
5304
  #
4734
5305
  # * `ParallelizationFactor` - Process multiple batches from each shard
4735
5306
  # concurrently.
@@ -4796,9 +5367,24 @@ module Aws::Lambda
4796
5367
  # (Streams) The number of batches to process from each shard
4797
5368
  # concurrently.
4798
5369
  #
5370
+ # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
5371
+ # (MQ) The Secrets Manager secret that stores your broker credentials.
5372
+ # To store your secret, use the following format: ` \{ "username": "your
5373
+ # username", "password": "your password" \}`
5374
+ #
5375
+ # To reference the secret, use the following format: `[ \{ "Type":
5376
+ # "BASIC_AUTH", "URI": "secretARN" \} ]`
5377
+ #
5378
+ # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
5379
+ # can use customer or service managed keys. When using a customer
5380
+ # managed KMS key, the Lambda execution role requires `kms:Decrypt`
5381
+ # permissions.
5382
+ #
4799
5383
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4800
5384
  #
4801
5385
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
5386
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
5387
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
4802
5388
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
4803
5389
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
4804
5390
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -4810,6 +5396,8 @@ module Aws::Lambda
4810
5396
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
4811
5397
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
4812
5398
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
5399
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
5400
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
4813
5401
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
4814
5402
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
4815
5403
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -4858,11 +5446,19 @@ module Aws::Lambda
4858
5446
  # bisect_batch_on_function_error: false,
4859
5447
  # maximum_retry_attempts: 1,
4860
5448
  # parallelization_factor: 1,
5449
+ # source_access_configurations: [
5450
+ # {
5451
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH
5452
+ # uri: "Arn",
5453
+ # },
5454
+ # ],
4861
5455
  # })
4862
5456
  #
4863
5457
  # @example Response structure
4864
5458
  #
4865
5459
  # resp.uuid #=> String
5460
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
5461
+ # resp.starting_position_timestamp #=> Time
4866
5462
  # resp.batch_size #=> Integer
4867
5463
  # resp.maximum_batching_window_in_seconds #=> Integer
4868
5464
  # resp.parallelization_factor #=> Integer
@@ -4876,6 +5472,11 @@ module Aws::Lambda
4876
5472
  # resp.destination_config.on_failure.destination #=> String
4877
5473
  # resp.topics #=> Array
4878
5474
  # resp.topics[0] #=> String
5475
+ # resp.queues #=> Array
5476
+ # resp.queues[0] #=> String
5477
+ # resp.source_access_configurations #=> Array
5478
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
5479
+ # resp.source_access_configurations[0].uri #=> String
4879
5480
  # resp.maximum_record_age_in_seconds #=> Integer
4880
5481
  # resp.bisect_batch_on_function_error #=> Boolean
4881
5482
  # resp.maximum_retry_attempts #=> Integer
@@ -4889,11 +5490,23 @@ module Aws::Lambda
4889
5490
  req.send_request(options)
4890
5491
  end
4891
5492
 
4892
- # Updates a Lambda function's code.
5493
+ # Updates a Lambda function's code. If code signing is enabled for the
5494
+ # function, the code package must be signed by a trusted publisher. For
5495
+ # more information, see [Configuring code signing][1].
4893
5496
  #
4894
5497
  # The function's code is locked when you publish a version. You can't
4895
5498
  # modify the code of a published version, only the unpublished version.
4896
5499
  #
5500
+ # <note markdown="1"> For a function defined as a container image, Lambda resolves the image
5501
+ # tag to an image digest. In Amazon ECR, if you update the image tag to
5502
+ # a new image, Lambda does not automatically update the function.
5503
+ #
5504
+ # </note>
5505
+ #
5506
+ #
5507
+ #
5508
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
5509
+ #
4897
5510
  # @option params [required, String] :function_name
4898
5511
  # The name of the Lambda function.
4899
5512
  #
@@ -4924,6 +5537,9 @@ module Aws::Lambda
4924
5537
  # For versioned objects, the version of the deployment package object to
4925
5538
  # use.
4926
5539
  #
5540
+ # @option params [String] :image_uri
5541
+ # URI of a container image in the Amazon ECR registry.
5542
+ #
4927
5543
  # @option params [Boolean] :publish
4928
5544
  # Set to true to publish a new version of the function after updating
4929
5545
  # the code. This has the same effect as calling PublishVersion
@@ -4967,6 +5583,10 @@ module Aws::Lambda
4967
5583
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
4968
5584
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
4969
5585
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
5586
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
5587
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
5588
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5589
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4970
5590
  #
4971
5591
  #
4972
5592
  # @example Example: To update a Lambda function's code
@@ -5008,6 +5628,7 @@ module Aws::Lambda
5008
5628
  # s3_bucket: "S3Bucket",
5009
5629
  # s3_key: "S3Key",
5010
5630
  # s3_object_version: "S3ObjectVersion",
5631
+ # image_uri: "String",
5011
5632
  # publish: false,
5012
5633
  # dry_run: false,
5013
5634
  # revision_id: "String",
@@ -5044,15 +5665,27 @@ module Aws::Lambda
5044
5665
  # resp.layers #=> Array
5045
5666
  # resp.layers[0].arn #=> String
5046
5667
  # resp.layers[0].code_size #=> Integer
5668
+ # resp.layers[0].signing_profile_version_arn #=> String
5669
+ # resp.layers[0].signing_job_arn #=> String
5047
5670
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5048
5671
  # resp.state_reason #=> String
5049
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
5672
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5050
5673
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
5051
5674
  # resp.last_update_status_reason #=> String
5052
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
5675
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5053
5676
  # resp.file_system_configs #=> Array
5054
5677
  # resp.file_system_configs[0].arn #=> String
5055
5678
  # resp.file_system_configs[0].local_mount_path #=> String
5679
+ # resp.package_type #=> String, one of "Zip", "Image"
5680
+ # resp.image_config_response.image_config.entry_point #=> Array
5681
+ # resp.image_config_response.image_config.entry_point[0] #=> String
5682
+ # resp.image_config_response.image_config.command #=> Array
5683
+ # resp.image_config_response.image_config.command[0] #=> String
5684
+ # resp.image_config_response.image_config.working_directory #=> String
5685
+ # resp.image_config_response.error.error_code #=> String
5686
+ # resp.image_config_response.error.message #=> String
5687
+ # resp.signing_profile_version_arn #=> String
5688
+ # resp.signing_job_arn #=> String
5056
5689
  #
5057
5690
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
5058
5691
  #
@@ -5124,9 +5757,9 @@ module Aws::Lambda
5124
5757
  # 900 seconds.
5125
5758
  #
5126
5759
  # @option params [Integer] :memory_size
5127
- # The amount of memory that your function has access to. Increasing the
5128
- # function's memory also increases its CPU allocation. The default
5129
- # value is 128 MB. The value must be a multiple of 64 MB.
5760
+ # The amount of memory available to the function at runtime. Increasing
5761
+ # the function's memory also increases its CPU allocation. The default
5762
+ # value is 128 MB. The value can be any multiple of 1 MB.
5130
5763
  #
5131
5764
  # @option params [Types::VpcConfig] :vpc_config
5132
5765
  # For network connectivity to AWS resources in a VPC, specify a list of
@@ -5183,6 +5816,9 @@ module Aws::Lambda
5183
5816
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
5184
5817
  # Connection settings for an Amazon EFS file system.
5185
5818
  #
5819
+ # @option params [Types::ImageConfig] :image_config
5820
+ # Configuration values that override the container image Dockerfile.
5821
+ #
5186
5822
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5187
5823
  #
5188
5824
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -5212,6 +5848,10 @@ module Aws::Lambda
5212
5848
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
5213
5849
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
5214
5850
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
5851
+ # * {Types::FunctionConfiguration#package_type #package_type} => String
5852
+ # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
5853
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5854
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5215
5855
  #
5216
5856
  #
5217
5857
  # @example Example: To update a Lambda function's configuration
@@ -5278,6 +5918,11 @@ module Aws::Lambda
5278
5918
  # local_mount_path: "LocalMountPath", # required
5279
5919
  # },
5280
5920
  # ],
5921
+ # image_config: {
5922
+ # entry_point: ["String"],
5923
+ # command: ["String"],
5924
+ # working_directory: "WorkingDirectory",
5925
+ # },
5281
5926
  # })
5282
5927
  #
5283
5928
  # @example Response structure
@@ -5311,15 +5956,27 @@ module Aws::Lambda
5311
5956
  # resp.layers #=> Array
5312
5957
  # resp.layers[0].arn #=> String
5313
5958
  # resp.layers[0].code_size #=> Integer
5959
+ # resp.layers[0].signing_profile_version_arn #=> String
5960
+ # resp.layers[0].signing_job_arn #=> String
5314
5961
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5315
5962
  # resp.state_reason #=> String
5316
- # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
5963
+ # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5317
5964
  # resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
5318
5965
  # resp.last_update_status_reason #=> String
5319
- # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
5966
+ # resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup", "ImageDeleted", "ImageAccessDenied", "InvalidImage"
5320
5967
  # resp.file_system_configs #=> Array
5321
5968
  # resp.file_system_configs[0].arn #=> String
5322
5969
  # resp.file_system_configs[0].local_mount_path #=> String
5970
+ # resp.package_type #=> String, one of "Zip", "Image"
5971
+ # resp.image_config_response.image_config.entry_point #=> Array
5972
+ # resp.image_config_response.image_config.entry_point[0] #=> String
5973
+ # resp.image_config_response.image_config.command #=> Array
5974
+ # resp.image_config_response.image_config.command[0] #=> String
5975
+ # resp.image_config_response.image_config.working_directory #=> String
5976
+ # resp.image_config_response.error.error_code #=> String
5977
+ # resp.image_config_response.error.message #=> String
5978
+ # resp.signing_profile_version_arn #=> String
5979
+ # resp.signing_job_arn #=> String
5323
5980
  #
5324
5981
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
5325
5982
  #
@@ -5464,7 +6121,7 @@ module Aws::Lambda
5464
6121
  params: params,
5465
6122
  config: config)
5466
6123
  context[:gem_name] = 'aws-sdk-lambda'
5467
- context[:gem_version] = '1.51.0'
6124
+ context[:gem_version] = '1.56.0'
5468
6125
  Seahorse::Client::Request.new(handlers, context)
5469
6126
  end
5470
6127