aws-sdk-lambda 1.49.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f104d7acc549f3585980d67d72bf720e28e285b22ad92aebcff87a0377791471
4
- data.tar.gz: 346b0f7932cd5bf13b219b816f35717867926d9fbc001ace0c146305b6f9ff2b
3
+ metadata.gz: 01aadaff7ee188fd2834c001b2c384d6988b54a9645f2b2d3eff845fb07bf39a
4
+ data.tar.gz: e1e51237ad366eb2937f0b3ca7153ab9e4572636bc31b1d54c990fa6640db12a
5
5
  SHA512:
6
- metadata.gz: 3611002d8bd9429c7d8ecd7afb91eea81e8bfee7c124e7ce872053da72245444bc808decb52d914029765c2fdc4a91ce02c8e51ba9ef3b45067b9a86e73cd9dc
7
- data.tar.gz: 8c5e88da7eca74c53943e630a78cf204ff22c4b3a83cccfdb93287c92bd12ce84545af02399d7e96fb6106721c202cff668c34284164cfebce688df618ca5a02
6
+ metadata.gz: 5ee3af7b52c6c0e7da2d45508ebc4c2f17370b5dfef652a8388acb65dd5750caac181a6a6d7d0d4676c3768f992e41f8de6d21740e8c902b631665b3ab2b7814
7
+ data.tar.gz: 687840bfcae16359714078d01806cfaf700d62430371bfa197982e445acf5125ddf05c47e382c50ade988f6669f0cc673b0d0dbd6ba31b47165d73badcea0a97
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -48,6 +49,6 @@ require_relative 'aws-sdk-lambda/customizations'
48
49
  # @!group service
49
50
  module Aws::Lambda
50
51
 
51
- GEM_VERSION = '1.49.0'
52
+ GEM_VERSION = '1.54.0'
52
53
 
53
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
@@ -910,6 +1002,13 @@ module Aws::Lambda
910
1002
  # include tags (TagResource) and per-function concurrency limits
911
1003
  # (PutFunctionConcurrency).
912
1004
  #
1005
+ # To enable code signing for this function, specify the ARN of a
1006
+ # code-signing configuration. When a user attempts to deploy a code
1007
+ # package with UpdateFunctionCode, Lambda checks that the code package
1008
+ # has a valid signature from a trusted publisher. The code-signing
1009
+ # configuration includes set set of signing profiles, which define the
1010
+ # trusted publishers for this function.
1011
+ #
913
1012
  # If another account or an AWS service invokes your function, use
914
1013
  # AddPermission to grant permission by creating a resource-based IAM
915
1014
  # policy. You can grant permissions at the function level, on a version,
@@ -1032,6 +1131,12 @@ module Aws::Lambda
1032
1131
  # @option params [Array<Types::FileSystemConfig>] :file_system_configs
1033
1132
  # Connection settings for an Amazon EFS file system.
1034
1133
  #
1134
+ # @option params [String] :code_signing_config_arn
1135
+ # To enable code signing for this function, specify the ARN of a
1136
+ # code-signing configuration. A code-signing configuration includes set
1137
+ # set of signing profiles, which define the trusted publishers for this
1138
+ # function.
1139
+ #
1035
1140
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1036
1141
  #
1037
1142
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -1061,6 +1166,8 @@ module Aws::Lambda
1061
1166
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
1062
1167
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
1063
1168
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
1169
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
1170
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
1064
1171
  #
1065
1172
  #
1066
1173
  # @example Example: To create a function
@@ -1168,6 +1275,7 @@ module Aws::Lambda
1168
1275
  # local_mount_path: "LocalMountPath", # required
1169
1276
  # },
1170
1277
  # ],
1278
+ # code_signing_config_arn: "CodeSigningConfigArn",
1171
1279
  # })
1172
1280
  #
1173
1281
  # @example Response structure
@@ -1201,6 +1309,8 @@ module Aws::Lambda
1201
1309
  # resp.layers #=> Array
1202
1310
  # resp.layers[0].arn #=> String
1203
1311
  # resp.layers[0].code_size #=> Integer
1312
+ # resp.layers[0].signing_profile_version_arn #=> String
1313
+ # resp.layers[0].signing_job_arn #=> String
1204
1314
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1205
1315
  # resp.state_reason #=> String
1206
1316
  # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -1210,6 +1320,8 @@ module Aws::Lambda
1210
1320
  # resp.file_system_configs #=> Array
1211
1321
  # resp.file_system_configs[0].arn #=> String
1212
1322
  # resp.file_system_configs[0].local_mount_path #=> String
1323
+ # resp.signing_profile_version_arn #=> String
1324
+ # resp.signing_job_arn #=> String
1213
1325
  #
1214
1326
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
1215
1327
  #
@@ -1272,6 +1384,29 @@ module Aws::Lambda
1272
1384
  req.send_request(options)
1273
1385
  end
1274
1386
 
1387
+ # Deletes the code signing configuration. You can delete the code
1388
+ # signing configuration only if no function is using it.
1389
+ #
1390
+ # @option params [required, String] :code_signing_config_arn
1391
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
1392
+ #
1393
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1394
+ #
1395
+ # @example Request syntax with placeholder values
1396
+ #
1397
+ # resp = client.delete_code_signing_config({
1398
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1399
+ # })
1400
+ #
1401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig AWS API Documentation
1402
+ #
1403
+ # @overload delete_code_signing_config(params = {})
1404
+ # @param [Hash] params ({})
1405
+ def delete_code_signing_config(params = {}, options = {})
1406
+ req = build_request(:delete_code_signing_config, params)
1407
+ req.send_request(options)
1408
+ end
1409
+
1275
1410
  # Deletes an [event source mapping][1]. You can get the identifier of a
1276
1411
  # mapping from the output of ListEventSourceMappings.
1277
1412
  #
@@ -1288,6 +1423,8 @@ module Aws::Lambda
1288
1423
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1289
1424
  #
1290
1425
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
1426
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
1427
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
1291
1428
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
1292
1429
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1293
1430
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -1299,6 +1436,8 @@ module Aws::Lambda
1299
1436
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
1300
1437
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
1301
1438
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1439
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1440
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
1302
1441
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1303
1442
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1304
1443
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -1332,6 +1471,8 @@ module Aws::Lambda
1332
1471
  # @example Response structure
1333
1472
  #
1334
1473
  # resp.uuid #=> String
1474
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
1475
+ # resp.starting_position_timestamp #=> Time
1335
1476
  # resp.batch_size #=> Integer
1336
1477
  # resp.maximum_batching_window_in_seconds #=> Integer
1337
1478
  # resp.parallelization_factor #=> Integer
@@ -1345,6 +1486,11 @@ module Aws::Lambda
1345
1486
  # resp.destination_config.on_failure.destination #=> String
1346
1487
  # resp.topics #=> Array
1347
1488
  # resp.topics[0] #=> String
1489
+ # resp.queues #=> Array
1490
+ # resp.queues[0] #=> String
1491
+ # resp.source_access_configurations #=> Array
1492
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
1493
+ # resp.source_access_configurations[0].uri #=> String
1348
1494
  # resp.maximum_record_age_in_seconds #=> Integer
1349
1495
  # resp.bisect_batch_on_function_error #=> Boolean
1350
1496
  # resp.maximum_retry_attempts #=> Integer
@@ -1416,6 +1562,40 @@ module Aws::Lambda
1416
1562
  req.send_request(options)
1417
1563
  end
1418
1564
 
1565
+ # Removes the code signing configuration from the function.
1566
+ #
1567
+ # @option params [required, String] :function_name
1568
+ # The name of the Lambda function.
1569
+ #
1570
+ # **Name formats**
1571
+ #
1572
+ # * **Function name** - `MyFunction`.
1573
+ #
1574
+ # * **Function ARN** -
1575
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
1576
+ #
1577
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
1578
+ #
1579
+ # The length constraint applies only to the full ARN. If you specify
1580
+ # only the function name, it is limited to 64 characters in length.
1581
+ #
1582
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1583
+ #
1584
+ # @example Request syntax with placeholder values
1585
+ #
1586
+ # resp = client.delete_function_code_signing_config({
1587
+ # function_name: "FunctionName", # required
1588
+ # })
1589
+ #
1590
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig AWS API Documentation
1591
+ #
1592
+ # @overload delete_function_code_signing_config(params = {})
1593
+ # @param [Hash] params ({})
1594
+ def delete_function_code_signing_config(params = {}, options = {})
1595
+ req = build_request(:delete_function_code_signing_config, params)
1596
+ req.send_request(options)
1597
+ end
1598
+
1419
1599
  # Removes a concurrent execution limit from a function.
1420
1600
  #
1421
1601
  # @option params [required, String] :function_name
@@ -1737,6 +1917,40 @@ module Aws::Lambda
1737
1917
  req.send_request(options)
1738
1918
  end
1739
1919
 
1920
+ # Returns information about the specified code signing configuration.
1921
+ #
1922
+ # @option params [required, String] :code_signing_config_arn
1923
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
1924
+ #
1925
+ # @return [Types::GetCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1926
+ #
1927
+ # * {Types::GetCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
1928
+ #
1929
+ # @example Request syntax with placeholder values
1930
+ #
1931
+ # resp = client.get_code_signing_config({
1932
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1933
+ # })
1934
+ #
1935
+ # @example Response structure
1936
+ #
1937
+ # resp.code_signing_config.code_signing_config_id #=> String
1938
+ # resp.code_signing_config.code_signing_config_arn #=> String
1939
+ # resp.code_signing_config.description #=> String
1940
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
1941
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
1942
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
1943
+ # resp.code_signing_config.last_modified #=> Time
1944
+ #
1945
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig AWS API Documentation
1946
+ #
1947
+ # @overload get_code_signing_config(params = {})
1948
+ # @param [Hash] params ({})
1949
+ def get_code_signing_config(params = {}, options = {})
1950
+ req = build_request(:get_code_signing_config, params)
1951
+ req.send_request(options)
1952
+ end
1953
+
1740
1954
  # Returns details about an event source mapping. You can get the
1741
1955
  # identifier of a mapping from the output of ListEventSourceMappings.
1742
1956
  #
@@ -1746,6 +1960,8 @@ module Aws::Lambda
1746
1960
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1747
1961
  #
1748
1962
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
1963
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
1964
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
1749
1965
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
1750
1966
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1751
1967
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -1757,6 +1973,8 @@ module Aws::Lambda
1757
1973
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
1758
1974
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
1759
1975
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
1976
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
1977
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
1760
1978
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
1761
1979
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
1762
1980
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -1797,6 +2015,8 @@ module Aws::Lambda
1797
2015
  # @example Response structure
1798
2016
  #
1799
2017
  # resp.uuid #=> String
2018
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
2019
+ # resp.starting_position_timestamp #=> Time
1800
2020
  # resp.batch_size #=> Integer
1801
2021
  # resp.maximum_batching_window_in_seconds #=> Integer
1802
2022
  # resp.parallelization_factor #=> Integer
@@ -1810,6 +2030,11 @@ module Aws::Lambda
1810
2030
  # resp.destination_config.on_failure.destination #=> String
1811
2031
  # resp.topics #=> Array
1812
2032
  # resp.topics[0] #=> String
2033
+ # resp.queues #=> Array
2034
+ # resp.queues[0] #=> String
2035
+ # resp.source_access_configurations #=> Array
2036
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
2037
+ # resp.source_access_configurations[0].uri #=> String
1813
2038
  # resp.maximum_record_age_in_seconds #=> Integer
1814
2039
  # resp.bisect_batch_on_function_error #=> Boolean
1815
2040
  # resp.maximum_retry_attempts #=> Integer
@@ -1942,6 +2167,8 @@ module Aws::Lambda
1942
2167
  # resp.configuration.layers #=> Array
1943
2168
  # resp.configuration.layers[0].arn #=> String
1944
2169
  # resp.configuration.layers[0].code_size #=> Integer
2170
+ # resp.configuration.layers[0].signing_profile_version_arn #=> String
2171
+ # resp.configuration.layers[0].signing_job_arn #=> String
1945
2172
  # resp.configuration.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
1946
2173
  # resp.configuration.state_reason #=> String
1947
2174
  # resp.configuration.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -1951,6 +2178,8 @@ module Aws::Lambda
1951
2178
  # resp.configuration.file_system_configs #=> Array
1952
2179
  # resp.configuration.file_system_configs[0].arn #=> String
1953
2180
  # resp.configuration.file_system_configs[0].local_mount_path #=> String
2181
+ # resp.configuration.signing_profile_version_arn #=> String
2182
+ # resp.configuration.signing_job_arn #=> String
1954
2183
  # resp.code.repository_type #=> String
1955
2184
  # resp.code.location #=> String
1956
2185
  # resp.tags #=> Hash
@@ -1971,6 +2200,48 @@ module Aws::Lambda
1971
2200
  req.send_request(options)
1972
2201
  end
1973
2202
 
2203
+ # Returns the code signing configuration for the specified function.
2204
+ #
2205
+ # @option params [required, String] :function_name
2206
+ # The name of the Lambda function.
2207
+ #
2208
+ # **Name formats**
2209
+ #
2210
+ # * **Function name** - `MyFunction`.
2211
+ #
2212
+ # * **Function ARN** -
2213
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
2214
+ #
2215
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
2216
+ #
2217
+ # The length constraint applies only to the full ARN. If you specify
2218
+ # only the function name, it is limited to 64 characters in length.
2219
+ #
2220
+ # @return [Types::GetFunctionCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2221
+ #
2222
+ # * {Types::GetFunctionCodeSigningConfigResponse#code_signing_config_arn #code_signing_config_arn} => String
2223
+ # * {Types::GetFunctionCodeSigningConfigResponse#function_name #function_name} => String
2224
+ #
2225
+ # @example Request syntax with placeholder values
2226
+ #
2227
+ # resp = client.get_function_code_signing_config({
2228
+ # function_name: "FunctionName", # required
2229
+ # })
2230
+ #
2231
+ # @example Response structure
2232
+ #
2233
+ # resp.code_signing_config_arn #=> String
2234
+ # resp.function_name #=> String
2235
+ #
2236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig AWS API Documentation
2237
+ #
2238
+ # @overload get_function_code_signing_config(params = {})
2239
+ # @param [Hash] params ({})
2240
+ def get_function_code_signing_config(params = {}, options = {})
2241
+ req = build_request(:get_function_code_signing_config, params)
2242
+ req.send_request(options)
2243
+ end
2244
+
1974
2245
  # Returns details about the reserved concurrency configuration for a
1975
2246
  # function. To set a concurrency limit for a function, use
1976
2247
  # PutFunctionConcurrency.
@@ -2084,6 +2355,8 @@ module Aws::Lambda
2084
2355
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
2085
2356
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
2086
2357
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
2358
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
2359
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
2087
2360
  #
2088
2361
  #
2089
2362
  # @example Example: To get a Lambda function's event source mapping
@@ -2162,6 +2435,8 @@ module Aws::Lambda
2162
2435
  # resp.layers #=> Array
2163
2436
  # resp.layers[0].arn #=> String
2164
2437
  # resp.layers[0].code_size #=> Integer
2438
+ # resp.layers[0].signing_profile_version_arn #=> String
2439
+ # resp.layers[0].signing_job_arn #=> String
2165
2440
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
2166
2441
  # resp.state_reason #=> String
2167
2442
  # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -2171,6 +2446,8 @@ module Aws::Lambda
2171
2446
  # resp.file_system_configs #=> Array
2172
2447
  # resp.file_system_configs[0].arn #=> String
2173
2448
  # resp.file_system_configs[0].local_mount_path #=> String
2449
+ # resp.signing_profile_version_arn #=> String
2450
+ # resp.signing_job_arn #=> String
2174
2451
  #
2175
2452
  #
2176
2453
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2337,6 +2614,8 @@ module Aws::Lambda
2337
2614
  # resp.content.location #=> String
2338
2615
  # resp.content.code_sha_256 #=> String
2339
2616
  # resp.content.code_size #=> Integer
2617
+ # resp.content.signing_profile_version_arn #=> String
2618
+ # resp.content.signing_job_arn #=> String
2340
2619
  # resp.layer_arn #=> String
2341
2620
  # resp.layer_version_arn #=> String
2342
2621
  # resp.description #=> String
@@ -2413,6 +2692,8 @@ module Aws::Lambda
2413
2692
  # resp.content.location #=> String
2414
2693
  # resp.content.code_sha_256 #=> String
2415
2694
  # resp.content.code_size #=> Integer
2695
+ # resp.content.signing_profile_version_arn #=> String
2696
+ # resp.content.signing_job_arn #=> String
2416
2697
  # resp.layer_arn #=> String
2417
2698
  # resp.layer_version_arn #=> String
2418
2699
  # resp.description #=> String
@@ -2963,6 +3244,57 @@ module Aws::Lambda
2963
3244
  req.send_request(options)
2964
3245
  end
2965
3246
 
3247
+ # Returns a list of [code signing configurations][1] for the specified
3248
+ # function. A request returns up to 10,000 configurations per call. You
3249
+ # can use the `MaxItems` parameter to return fewer configurations per
3250
+ # call.
3251
+ #
3252
+ #
3253
+ #
3254
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html
3255
+ #
3256
+ # @option params [String] :marker
3257
+ # Specify the pagination token that's returned by a previous request to
3258
+ # retrieve the next page of results.
3259
+ #
3260
+ # @option params [Integer] :max_items
3261
+ # Maximum number of items to return.
3262
+ #
3263
+ # @return [Types::ListCodeSigningConfigsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3264
+ #
3265
+ # * {Types::ListCodeSigningConfigsResponse#next_marker #next_marker} => String
3266
+ # * {Types::ListCodeSigningConfigsResponse#code_signing_configs #code_signing_configs} => Array&lt;Types::CodeSigningConfig&gt;
3267
+ #
3268
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3269
+ #
3270
+ # @example Request syntax with placeholder values
3271
+ #
3272
+ # resp = client.list_code_signing_configs({
3273
+ # marker: "String",
3274
+ # max_items: 1,
3275
+ # })
3276
+ #
3277
+ # @example Response structure
3278
+ #
3279
+ # resp.next_marker #=> String
3280
+ # resp.code_signing_configs #=> Array
3281
+ # resp.code_signing_configs[0].code_signing_config_id #=> String
3282
+ # resp.code_signing_configs[0].code_signing_config_arn #=> String
3283
+ # resp.code_signing_configs[0].description #=> String
3284
+ # resp.code_signing_configs[0].allowed_publishers.signing_profile_version_arns #=> Array
3285
+ # resp.code_signing_configs[0].allowed_publishers.signing_profile_version_arns[0] #=> String
3286
+ # resp.code_signing_configs[0].code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
3287
+ # resp.code_signing_configs[0].last_modified #=> Time
3288
+ #
3289
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs AWS API Documentation
3290
+ #
3291
+ # @overload list_code_signing_configs(params = {})
3292
+ # @param [Hash] params ({})
3293
+ def list_code_signing_configs(params = {}, options = {})
3294
+ req = build_request(:list_code_signing_configs, params)
3295
+ req.send_request(options)
3296
+ end
3297
+
2966
3298
  # Lists event source mappings. Specify an `EventSourceArn` to only show
2967
3299
  # event source mappings for a single event source.
2968
3300
  #
@@ -3048,6 +3380,8 @@ module Aws::Lambda
3048
3380
  # resp.next_marker #=> String
3049
3381
  # resp.event_source_mappings #=> Array
3050
3382
  # resp.event_source_mappings[0].uuid #=> String
3383
+ # resp.event_source_mappings[0].starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
3384
+ # resp.event_source_mappings[0].starting_position_timestamp #=> Time
3051
3385
  # resp.event_source_mappings[0].batch_size #=> Integer
3052
3386
  # resp.event_source_mappings[0].maximum_batching_window_in_seconds #=> Integer
3053
3387
  # resp.event_source_mappings[0].parallelization_factor #=> Integer
@@ -3061,6 +3395,11 @@ module Aws::Lambda
3061
3395
  # resp.event_source_mappings[0].destination_config.on_failure.destination #=> String
3062
3396
  # resp.event_source_mappings[0].topics #=> Array
3063
3397
  # resp.event_source_mappings[0].topics[0] #=> String
3398
+ # resp.event_source_mappings[0].queues #=> Array
3399
+ # resp.event_source_mappings[0].queues[0] #=> String
3400
+ # resp.event_source_mappings[0].source_access_configurations #=> Array
3401
+ # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
3402
+ # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
3064
3403
  # resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
3065
3404
  # resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
3066
3405
  # resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
@@ -3295,6 +3634,8 @@ module Aws::Lambda
3295
3634
  # resp.functions[0].layers #=> Array
3296
3635
  # resp.functions[0].layers[0].arn #=> String
3297
3636
  # resp.functions[0].layers[0].code_size #=> Integer
3637
+ # resp.functions[0].layers[0].signing_profile_version_arn #=> String
3638
+ # resp.functions[0].layers[0].signing_job_arn #=> String
3298
3639
  # resp.functions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3299
3640
  # resp.functions[0].state_reason #=> String
3300
3641
  # resp.functions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -3304,6 +3645,8 @@ module Aws::Lambda
3304
3645
  # resp.functions[0].file_system_configs #=> Array
3305
3646
  # resp.functions[0].file_system_configs[0].arn #=> String
3306
3647
  # resp.functions[0].file_system_configs[0].local_mount_path #=> String
3648
+ # resp.functions[0].signing_profile_version_arn #=> String
3649
+ # resp.functions[0].signing_job_arn #=> String
3307
3650
  #
3308
3651
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
3309
3652
  #
@@ -3314,6 +3657,50 @@ module Aws::Lambda
3314
3657
  req.send_request(options)
3315
3658
  end
3316
3659
 
3660
+ # List the functions that use the specified code signing configuration.
3661
+ # You can use this method prior to deleting a code signing
3662
+ # configuration, to verify that no functions are using it.
3663
+ #
3664
+ # @option params [required, String] :code_signing_config_arn
3665
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
3666
+ #
3667
+ # @option params [String] :marker
3668
+ # Specify the pagination token that's returned by a previous request to
3669
+ # retrieve the next page of results.
3670
+ #
3671
+ # @option params [Integer] :max_items
3672
+ # Maximum number of items to return.
3673
+ #
3674
+ # @return [Types::ListFunctionsByCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3675
+ #
3676
+ # * {Types::ListFunctionsByCodeSigningConfigResponse#next_marker #next_marker} => String
3677
+ # * {Types::ListFunctionsByCodeSigningConfigResponse#function_arns #function_arns} => Array&lt;String&gt;
3678
+ #
3679
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3680
+ #
3681
+ # @example Request syntax with placeholder values
3682
+ #
3683
+ # resp = client.list_functions_by_code_signing_config({
3684
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
3685
+ # marker: "String",
3686
+ # max_items: 1,
3687
+ # })
3688
+ #
3689
+ # @example Response structure
3690
+ #
3691
+ # resp.next_marker #=> String
3692
+ # resp.function_arns #=> Array
3693
+ # resp.function_arns[0] #=> String
3694
+ #
3695
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfig AWS API Documentation
3696
+ #
3697
+ # @overload list_functions_by_code_signing_config(params = {})
3698
+ # @param [Hash] params ({})
3699
+ def list_functions_by_code_signing_config(params = {}, options = {})
3700
+ req = build_request(:list_functions_by_code_signing_config, params)
3701
+ req.send_request(options)
3702
+ end
3703
+
3317
3704
  # Lists the versions of an [AWS Lambda layer][1]. Versions that have
3318
3705
  # been deleted aren't listed. Specify a [runtime identifier][2] to list
3319
3706
  # only versions that indicate that they're compatible with that
@@ -3776,6 +4163,8 @@ module Aws::Lambda
3776
4163
  # resp.versions[0].layers #=> Array
3777
4164
  # resp.versions[0].layers[0].arn #=> String
3778
4165
  # resp.versions[0].layers[0].code_size #=> Integer
4166
+ # resp.versions[0].layers[0].signing_profile_version_arn #=> String
4167
+ # resp.versions[0].layers[0].signing_job_arn #=> String
3779
4168
  # resp.versions[0].state #=> String, one of "Pending", "Active", "Inactive", "Failed"
3780
4169
  # resp.versions[0].state_reason #=> String
3781
4170
  # resp.versions[0].state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -3785,6 +4174,8 @@ module Aws::Lambda
3785
4174
  # resp.versions[0].file_system_configs #=> Array
3786
4175
  # resp.versions[0].file_system_configs[0].arn #=> String
3787
4176
  # resp.versions[0].file_system_configs[0].local_mount_path #=> String
4177
+ # resp.versions[0].signing_profile_version_arn #=> String
4178
+ # resp.versions[0].signing_job_arn #=> String
3788
4179
  #
3789
4180
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
3790
4181
  #
@@ -3907,6 +4298,8 @@ module Aws::Lambda
3907
4298
  # resp.content.location #=> String
3908
4299
  # resp.content.code_sha_256 #=> String
3909
4300
  # resp.content.code_size #=> Integer
4301
+ # resp.content.signing_profile_version_arn #=> String
4302
+ # resp.content.signing_job_arn #=> String
3910
4303
  # resp.layer_arn #=> String
3911
4304
  # resp.layer_version_arn #=> String
3912
4305
  # resp.description #=> String
@@ -4001,6 +4394,8 @@ module Aws::Lambda
4001
4394
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
4002
4395
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
4003
4396
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
4397
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4398
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4004
4399
  #
4005
4400
  #
4006
4401
  # @example Example: To publish a version of a Lambda function
@@ -4082,6 +4477,8 @@ module Aws::Lambda
4082
4477
  # resp.layers #=> Array
4083
4478
  # resp.layers[0].arn #=> String
4084
4479
  # resp.layers[0].code_size #=> Integer
4480
+ # resp.layers[0].signing_profile_version_arn #=> String
4481
+ # resp.layers[0].signing_job_arn #=> String
4085
4482
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
4086
4483
  # resp.state_reason #=> String
4087
4484
  # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -4091,6 +4488,8 @@ module Aws::Lambda
4091
4488
  # resp.file_system_configs #=> Array
4092
4489
  # resp.file_system_configs[0].arn #=> String
4093
4490
  # resp.file_system_configs[0].local_mount_path #=> String
4491
+ # resp.signing_profile_version_arn #=> String
4492
+ # resp.signing_job_arn #=> String
4094
4493
  #
4095
4494
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
4096
4495
  #
@@ -4101,6 +4500,54 @@ module Aws::Lambda
4101
4500
  req.send_request(options)
4102
4501
  end
4103
4502
 
4503
+ # Update the code signing configuration for the function. Changes to the
4504
+ # code signing configuration take effect the next time a user tries to
4505
+ # deploy a code package to the function.
4506
+ #
4507
+ # @option params [required, String] :code_signing_config_arn
4508
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
4509
+ #
4510
+ # @option params [required, String] :function_name
4511
+ # The name of the Lambda function.
4512
+ #
4513
+ # **Name formats**
4514
+ #
4515
+ # * **Function name** - `MyFunction`.
4516
+ #
4517
+ # * **Function ARN** -
4518
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
4519
+ #
4520
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
4521
+ #
4522
+ # The length constraint applies only to the full ARN. If you specify
4523
+ # only the function name, it is limited to 64 characters in length.
4524
+ #
4525
+ # @return [Types::PutFunctionCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4526
+ #
4527
+ # * {Types::PutFunctionCodeSigningConfigResponse#code_signing_config_arn #code_signing_config_arn} => String
4528
+ # * {Types::PutFunctionCodeSigningConfigResponse#function_name #function_name} => String
4529
+ #
4530
+ # @example Request syntax with placeholder values
4531
+ #
4532
+ # resp = client.put_function_code_signing_config({
4533
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
4534
+ # function_name: "FunctionName", # required
4535
+ # })
4536
+ #
4537
+ # @example Response structure
4538
+ #
4539
+ # resp.code_signing_config_arn #=> String
4540
+ # resp.function_name #=> String
4541
+ #
4542
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfig AWS API Documentation
4543
+ #
4544
+ # @overload put_function_code_signing_config(params = {})
4545
+ # @param [Hash] params ({})
4546
+ def put_function_code_signing_config(params = {}, options = {})
4547
+ req = build_request(:put_function_code_signing_config, params)
4548
+ req.send_request(options)
4549
+ end
4550
+
4104
4551
  # Sets the maximum number of simultaneous executions for a function, and
4105
4552
  # reserves capacity for that concurrency level.
4106
4553
  #
@@ -4711,6 +5158,58 @@ module Aws::Lambda
4711
5158
  req.send_request(options)
4712
5159
  end
4713
5160
 
5161
+ # Update the code signing configuration. Changes to the code signing
5162
+ # configuration take effect the next time a user tries to deploy a code
5163
+ # package to the function.
5164
+ #
5165
+ # @option params [required, String] :code_signing_config_arn
5166
+ # The The Amazon Resource Name (ARN) of the code signing configuration.
5167
+ #
5168
+ # @option params [String] :description
5169
+ # Descriptive name for this code signing configuration.
5170
+ #
5171
+ # @option params [Types::AllowedPublishers] :allowed_publishers
5172
+ # Signing profiles for this code signing configuration.
5173
+ #
5174
+ # @option params [Types::CodeSigningPolicies] :code_signing_policies
5175
+ # The code signing policy.
5176
+ #
5177
+ # @return [Types::UpdateCodeSigningConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5178
+ #
5179
+ # * {Types::UpdateCodeSigningConfigResponse#code_signing_config #code_signing_config} => Types::CodeSigningConfig
5180
+ #
5181
+ # @example Request syntax with placeholder values
5182
+ #
5183
+ # resp = client.update_code_signing_config({
5184
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
5185
+ # description: "Description",
5186
+ # allowed_publishers: {
5187
+ # signing_profile_version_arns: ["Arn"], # required
5188
+ # },
5189
+ # code_signing_policies: {
5190
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
5191
+ # },
5192
+ # })
5193
+ #
5194
+ # @example Response structure
5195
+ #
5196
+ # resp.code_signing_config.code_signing_config_id #=> String
5197
+ # resp.code_signing_config.code_signing_config_arn #=> String
5198
+ # resp.code_signing_config.description #=> String
5199
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns #=> Array
5200
+ # resp.code_signing_config.allowed_publishers.signing_profile_version_arns[0] #=> String
5201
+ # resp.code_signing_config.code_signing_policies.untrusted_artifact_on_deployment #=> String, one of "Warn", "Enforce"
5202
+ # resp.code_signing_config.last_modified #=> Time
5203
+ #
5204
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfig AWS API Documentation
5205
+ #
5206
+ # @overload update_code_signing_config(params = {})
5207
+ # @param [Hash] params ({})
5208
+ def update_code_signing_config(params = {}, options = {})
5209
+ req = build_request(:update_code_signing_config, params)
5210
+ req.send_request(options)
5211
+ end
5212
+
4714
5213
  # Updates an event source mapping. You can change the function that AWS
4715
5214
  # Lambda invokes, or pause invocation and resume later from the same
4716
5215
  # location.
@@ -4725,11 +5224,12 @@ module Aws::Lambda
4725
5224
  # or Amazon SNS topic.
4726
5225
  #
4727
5226
  # * `MaximumRecordAgeInSeconds` - Discard records older than the
4728
- # specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
5227
+ # specified age. The default value is infinite (-1). When set to
5228
+ # infinite (-1), failed records are retried until the record expires
4729
5229
  #
4730
5230
  # * `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.
5231
+ # of retries. The default value is infinite (-1). When set to infinite
5232
+ # (-1), failed records are retried until the record expires.
4733
5233
  #
4734
5234
  # * `ParallelizationFactor` - Process multiple batches from each shard
4735
5235
  # concurrently.
@@ -4796,9 +5296,24 @@ module Aws::Lambda
4796
5296
  # (Streams) The number of batches to process from each shard
4797
5297
  # concurrently.
4798
5298
  #
5299
+ # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
5300
+ # (MQ) The Secrets Manager secret that stores your broker credentials.
5301
+ # To store your secret, use the following format: ` \{ "username": "your
5302
+ # username", "password": "your password" \}`
5303
+ #
5304
+ # To reference the secret, use the following format: `[ \{ "Type":
5305
+ # "BASIC_AUTH", "URI": "secretARN" \} ]`
5306
+ #
5307
+ # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
5308
+ # can use customer or service managed keys. When using a customer
5309
+ # managed KMS key, the Lambda execution role requires `kms:Decrypt`
5310
+ # permissions.
5311
+ #
4799
5312
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4800
5313
  #
4801
5314
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
5315
+ # * {Types::EventSourceMappingConfiguration#starting_position #starting_position} => String
5316
+ # * {Types::EventSourceMappingConfiguration#starting_position_timestamp #starting_position_timestamp} => Time
4802
5317
  # * {Types::EventSourceMappingConfiguration#batch_size #batch_size} => Integer
4803
5318
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
4804
5319
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
@@ -4810,6 +5325,8 @@ module Aws::Lambda
4810
5325
  # * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
4811
5326
  # * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
4812
5327
  # * {Types::EventSourceMappingConfiguration#topics #topics} => Array&lt;String&gt;
5328
+ # * {Types::EventSourceMappingConfiguration#queues #queues} => Array&lt;String&gt;
5329
+ # * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array&lt;Types::SourceAccessConfiguration&gt;
4813
5330
  # * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
4814
5331
  # * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
4815
5332
  # * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
@@ -4858,11 +5375,19 @@ module Aws::Lambda
4858
5375
  # bisect_batch_on_function_error: false,
4859
5376
  # maximum_retry_attempts: 1,
4860
5377
  # parallelization_factor: 1,
5378
+ # source_access_configurations: [
5379
+ # {
5380
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH
5381
+ # uri: "Arn",
5382
+ # },
5383
+ # ],
4861
5384
  # })
4862
5385
  #
4863
5386
  # @example Response structure
4864
5387
  #
4865
5388
  # resp.uuid #=> String
5389
+ # resp.starting_position #=> String, one of "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP"
5390
+ # resp.starting_position_timestamp #=> Time
4866
5391
  # resp.batch_size #=> Integer
4867
5392
  # resp.maximum_batching_window_in_seconds #=> Integer
4868
5393
  # resp.parallelization_factor #=> Integer
@@ -4876,6 +5401,11 @@ module Aws::Lambda
4876
5401
  # resp.destination_config.on_failure.destination #=> String
4877
5402
  # resp.topics #=> Array
4878
5403
  # resp.topics[0] #=> String
5404
+ # resp.queues #=> Array
5405
+ # resp.queues[0] #=> String
5406
+ # resp.source_access_configurations #=> Array
5407
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
5408
+ # resp.source_access_configurations[0].uri #=> String
4879
5409
  # resp.maximum_record_age_in_seconds #=> Integer
4880
5410
  # resp.bisect_batch_on_function_error #=> Boolean
4881
5411
  # resp.maximum_retry_attempts #=> Integer
@@ -4889,11 +5419,17 @@ module Aws::Lambda
4889
5419
  req.send_request(options)
4890
5420
  end
4891
5421
 
4892
- # Updates a Lambda function's code.
5422
+ # Updates a Lambda function's code. If code signing is enabled for the
5423
+ # function, the code package must be signed by a trusted publisher. For
5424
+ # more information, see [Configuring code signing][1].
4893
5425
  #
4894
5426
  # The function's code is locked when you publish a version. You can't
4895
5427
  # modify the code of a published version, only the unpublished version.
4896
5428
  #
5429
+ #
5430
+ #
5431
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
5432
+ #
4897
5433
  # @option params [required, String] :function_name
4898
5434
  # The name of the Lambda function.
4899
5435
  #
@@ -4967,6 +5503,8 @@ module Aws::Lambda
4967
5503
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
4968
5504
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
4969
5505
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
5506
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5507
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4970
5508
  #
4971
5509
  #
4972
5510
  # @example Example: To update a Lambda function's code
@@ -5044,6 +5582,8 @@ module Aws::Lambda
5044
5582
  # resp.layers #=> Array
5045
5583
  # resp.layers[0].arn #=> String
5046
5584
  # resp.layers[0].code_size #=> Integer
5585
+ # resp.layers[0].signing_profile_version_arn #=> String
5586
+ # resp.layers[0].signing_job_arn #=> String
5047
5587
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5048
5588
  # resp.state_reason #=> String
5049
5589
  # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -5053,6 +5593,8 @@ module Aws::Lambda
5053
5593
  # resp.file_system_configs #=> Array
5054
5594
  # resp.file_system_configs[0].arn #=> String
5055
5595
  # resp.file_system_configs[0].local_mount_path #=> String
5596
+ # resp.signing_profile_version_arn #=> String
5597
+ # resp.signing_job_arn #=> String
5056
5598
  #
5057
5599
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
5058
5600
  #
@@ -5212,6 +5754,8 @@ module Aws::Lambda
5212
5754
  # * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
5213
5755
  # * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
5214
5756
  # * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array&lt;Types::FileSystemConfig&gt;
5757
+ # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5758
+ # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5215
5759
  #
5216
5760
  #
5217
5761
  # @example Example: To update a Lambda function's configuration
@@ -5311,6 +5855,8 @@ module Aws::Lambda
5311
5855
  # resp.layers #=> Array
5312
5856
  # resp.layers[0].arn #=> String
5313
5857
  # resp.layers[0].code_size #=> Integer
5858
+ # resp.layers[0].signing_profile_version_arn #=> String
5859
+ # resp.layers[0].signing_job_arn #=> String
5314
5860
  # resp.state #=> String, one of "Pending", "Active", "Inactive", "Failed"
5315
5861
  # resp.state_reason #=> String
5316
5862
  # resp.state_reason_code #=> String, one of "Idle", "Creating", "Restoring", "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
@@ -5320,6 +5866,8 @@ module Aws::Lambda
5320
5866
  # resp.file_system_configs #=> Array
5321
5867
  # resp.file_system_configs[0].arn #=> String
5322
5868
  # resp.file_system_configs[0].local_mount_path #=> String
5869
+ # resp.signing_profile_version_arn #=> String
5870
+ # resp.signing_job_arn #=> String
5323
5871
  #
5324
5872
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
5325
5873
  #
@@ -5464,7 +6012,7 @@ module Aws::Lambda
5464
6012
  params: params,
5465
6013
  config: config)
5466
6014
  context[:gem_name] = 'aws-sdk-lambda'
5467
- context[:gem_version] = '1.49.0'
6015
+ context[:gem_version] = '1.54.0'
5468
6016
  Seahorse::Client::Request.new(handlers, context)
5469
6017
  end
5470
6018