aws-sdk-lambda 1.53.0 → 1.58.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,9 @@ module Aws::Lambda
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {CodeSigningConfigNotFoundException}
30
31
  # * {CodeStorageExceededException}
32
+ # * {CodeVerificationFailedException}
31
33
  # * {EC2AccessDeniedException}
32
34
  # * {EC2ThrottledException}
33
35
  # * {EC2UnexpectedException}
@@ -36,6 +38,7 @@ module Aws::Lambda
36
38
  # * {EFSMountFailureException}
37
39
  # * {EFSMountTimeoutException}
38
40
  # * {ENILimitReachedException}
41
+ # * {InvalidCodeSignatureException}
39
42
  # * {InvalidParameterValueException}
40
43
  # * {InvalidRequestContentException}
41
44
  # * {InvalidRuntimeException}
@@ -65,6 +68,26 @@ module Aws::Lambda
65
68
 
66
69
  extend Aws::Errors::DynamicErrors
67
70
 
71
+ class CodeSigningConfigNotFoundException < ServiceError
72
+
73
+ # @param [Seahorse::Client::RequestContext] context
74
+ # @param [String] message
75
+ # @param [Aws::Lambda::Types::CodeSigningConfigNotFoundException] data
76
+ def initialize(context, message, data = Aws::EmptyStructure.new)
77
+ super(context, message, data)
78
+ end
79
+
80
+ # @return [String]
81
+ def type
82
+ @data[:type]
83
+ end
84
+
85
+ # @return [String]
86
+ def message
87
+ @message || @data[:message]
88
+ end
89
+ end
90
+
68
91
  class CodeStorageExceededException < ServiceError
69
92
 
70
93
  # @param [Seahorse::Client::RequestContext] context
@@ -85,6 +108,26 @@ module Aws::Lambda
85
108
  end
86
109
  end
87
110
 
111
+ class CodeVerificationFailedException < ServiceError
112
+
113
+ # @param [Seahorse::Client::RequestContext] context
114
+ # @param [String] message
115
+ # @param [Aws::Lambda::Types::CodeVerificationFailedException] data
116
+ def initialize(context, message, data = Aws::EmptyStructure.new)
117
+ super(context, message, data)
118
+ end
119
+
120
+ # @return [String]
121
+ def type
122
+ @data[:type]
123
+ end
124
+
125
+ # @return [String]
126
+ def message
127
+ @message || @data[:message]
128
+ end
129
+ end
130
+
88
131
  class EC2AccessDeniedException < ServiceError
89
132
 
90
133
  # @param [Seahorse::Client::RequestContext] context
@@ -250,6 +293,26 @@ module Aws::Lambda
250
293
  end
251
294
  end
252
295
 
296
+ class InvalidCodeSignatureException < ServiceError
297
+
298
+ # @param [Seahorse::Client::RequestContext] context
299
+ # @param [String] message
300
+ # @param [Aws::Lambda::Types::InvalidCodeSignatureException] data
301
+ def initialize(context, message, data = Aws::EmptyStructure.new)
302
+ super(context, message, data)
303
+ end
304
+
305
+ # @return [String]
306
+ def type
307
+ @data[:type]
308
+ end
309
+
310
+ # @return [String]
311
+ def message
312
+ @message || @data[:message]
313
+ end
314
+ end
315
+
253
316
  class InvalidParameterValueException < ServiceError
254
317
 
255
318
  # @param [Seahorse::Client::RequestContext] context
@@ -327,6 +327,114 @@ module Aws::Lambda
327
327
  include Aws::Structure
328
328
  end
329
329
 
330
+ # List of signing profiles that can sign a code package.
331
+ #
332
+ # @note When making an API call, you may pass AllowedPublishers
333
+ # data as a hash:
334
+ #
335
+ # {
336
+ # signing_profile_version_arns: ["Arn"], # required
337
+ # }
338
+ #
339
+ # @!attribute [rw] signing_profile_version_arns
340
+ # The Amazon Resource Name (ARN) for each of the signing profiles. A
341
+ # signing profile defines a trusted user who can sign a code package.
342
+ # @return [Array<String>]
343
+ #
344
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AllowedPublishers AWS API Documentation
345
+ #
346
+ class AllowedPublishers < Struct.new(
347
+ :signing_profile_version_arns)
348
+ SENSITIVE = []
349
+ include Aws::Structure
350
+ end
351
+
352
+ # Details about a Code signing configuration.
353
+ #
354
+ # @!attribute [rw] code_signing_config_id
355
+ # Unique identifer for the Code signing configuration.
356
+ # @return [String]
357
+ #
358
+ # @!attribute [rw] code_signing_config_arn
359
+ # The Amazon Resource Name (ARN) of the Code signing configuration.
360
+ # @return [String]
361
+ #
362
+ # @!attribute [rw] description
363
+ # Code signing configuration description.
364
+ # @return [String]
365
+ #
366
+ # @!attribute [rw] allowed_publishers
367
+ # List of allowed publishers.
368
+ # @return [Types::AllowedPublishers]
369
+ #
370
+ # @!attribute [rw] code_signing_policies
371
+ # The code signing policy controls the validation failure action for
372
+ # signature mismatch or expiry.
373
+ # @return [Types::CodeSigningPolicies]
374
+ #
375
+ # @!attribute [rw] last_modified
376
+ # The date and time that the Code signing configuration was last
377
+ # modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
378
+ # @return [Time]
379
+ #
380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningConfig AWS API Documentation
381
+ #
382
+ class CodeSigningConfig < Struct.new(
383
+ :code_signing_config_id,
384
+ :code_signing_config_arn,
385
+ :description,
386
+ :allowed_publishers,
387
+ :code_signing_policies,
388
+ :last_modified)
389
+ SENSITIVE = []
390
+ include Aws::Structure
391
+ end
392
+
393
+ # The specified code signing configuration does not exist.
394
+ #
395
+ # @!attribute [rw] type
396
+ # @return [String]
397
+ #
398
+ # @!attribute [rw] message
399
+ # @return [String]
400
+ #
401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningConfigNotFoundException AWS API Documentation
402
+ #
403
+ class CodeSigningConfigNotFoundException < Struct.new(
404
+ :type,
405
+ :message)
406
+ SENSITIVE = []
407
+ include Aws::Structure
408
+ end
409
+
410
+ # Code signing configuration policies specifies the validation failure
411
+ # action for signature mismatch or expiry.
412
+ #
413
+ # @note When making an API call, you may pass CodeSigningPolicies
414
+ # data as a hash:
415
+ #
416
+ # {
417
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
418
+ # }
419
+ #
420
+ # @!attribute [rw] untrusted_artifact_on_deployment
421
+ # Code signing configuration policy for deployment validation failure.
422
+ # If you set the policy to `Enforce`, Lambda blocks the deployment
423
+ # request if signature validation checks fail. If you set the policy
424
+ # to `Warn`, Lambda allows the deployment and creates a CloudWatch
425
+ # log.
426
+ #
427
+ # Default value: `Warn`
428
+ # @return [String]
429
+ #
430
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningPolicies AWS API Documentation
431
+ #
432
+ class CodeSigningPolicies < Struct.new(
433
+ :untrusted_artifact_on_deployment)
434
+ SENSITIVE = []
435
+ include Aws::Structure
436
+ end
437
+
330
438
  # You have exceeded your maximum total code size per account. [Learn
331
439
  # more][1]
332
440
  #
@@ -350,6 +458,25 @@ module Aws::Lambda
350
458
  include Aws::Structure
351
459
  end
352
460
 
461
+ # The code signature failed one or more of the validation checks for
462
+ # signature mismatch or expiry, and the code signing policy is set to
463
+ # ENFORCE. Lambda blocks the deployment.
464
+ #
465
+ # @!attribute [rw] type
466
+ # @return [String]
467
+ #
468
+ # @!attribute [rw] message
469
+ # @return [String]
470
+ #
471
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeVerificationFailedException AWS API Documentation
472
+ #
473
+ class CodeVerificationFailedException < Struct.new(
474
+ :type,
475
+ :message)
476
+ SENSITIVE = []
477
+ include Aws::Structure
478
+ end
479
+
353
480
  # @!attribute [rw] reserved_concurrent_executions
354
481
  # The number of concurrent executions that are reserved for this
355
482
  # function. For more information, see [Managing Concurrency][1].
@@ -430,11 +557,59 @@ module Aws::Lambda
430
557
  include Aws::Structure
431
558
  end
432
559
 
560
+ # @note When making an API call, you may pass CreateCodeSigningConfigRequest
561
+ # data as a hash:
562
+ #
563
+ # {
564
+ # description: "Description",
565
+ # allowed_publishers: { # required
566
+ # signing_profile_version_arns: ["Arn"], # required
567
+ # },
568
+ # code_signing_policies: {
569
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
570
+ # },
571
+ # }
572
+ #
573
+ # @!attribute [rw] description
574
+ # Descriptive name for this code signing configuration.
575
+ # @return [String]
576
+ #
577
+ # @!attribute [rw] allowed_publishers
578
+ # Signing profiles for this code signing configuration.
579
+ # @return [Types::AllowedPublishers]
580
+ #
581
+ # @!attribute [rw] code_signing_policies
582
+ # The code signing policies define the actions to take if the
583
+ # validation checks fail.
584
+ # @return [Types::CodeSigningPolicies]
585
+ #
586
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfigRequest AWS API Documentation
587
+ #
588
+ class CreateCodeSigningConfigRequest < Struct.new(
589
+ :description,
590
+ :allowed_publishers,
591
+ :code_signing_policies)
592
+ SENSITIVE = []
593
+ include Aws::Structure
594
+ end
595
+
596
+ # @!attribute [rw] code_signing_config
597
+ # The code signing configuration.
598
+ # @return [Types::CodeSigningConfig]
599
+ #
600
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfigResponse AWS API Documentation
601
+ #
602
+ class CreateCodeSigningConfigResponse < Struct.new(
603
+ :code_signing_config)
604
+ SENSITIVE = []
605
+ include Aws::Structure
606
+ end
607
+
433
608
  # @note When making an API call, you may pass CreateEventSourceMappingRequest
434
609
  # data as a hash:
435
610
  #
436
611
  # {
437
- # event_source_arn: "Arn", # required
612
+ # event_source_arn: "Arn",
438
613
  # function_name: "FunctionName", # required
439
614
  # enabled: false,
440
615
  # batch_size: 1,
@@ -453,14 +628,21 @@ module Aws::Lambda
453
628
  # maximum_record_age_in_seconds: 1,
454
629
  # bisect_batch_on_function_error: false,
455
630
  # maximum_retry_attempts: 1,
631
+ # tumbling_window_in_seconds: 1,
456
632
  # topics: ["Topic"],
457
633
  # queues: ["Queue"],
458
634
  # source_access_configurations: [
459
635
  # {
460
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
461
- # uri: "Arn",
636
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
637
+ # uri: "URI",
462
638
  # },
463
639
  # ],
640
+ # self_managed_event_source: {
641
+ # endpoints: {
642
+ # "KAFKA_BOOTSTRAP_SERVERS" => ["Endpoint"],
643
+ # },
644
+ # },
645
+ # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
464
646
  # }
465
647
  #
466
648
  # @!attribute [rw] event_source_arn
@@ -508,15 +690,18 @@ module Aws::Lambda
508
690
  #
509
691
  # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
510
692
  #
511
- # * **Amazon Simple Queue Service** - Default 10. Max 10.
693
+ # * **Amazon Simple Queue Service** - Default 10. For standard queues
694
+ # the max is 10,000. For FIFO queues the max is 10.
512
695
  #
513
696
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
514
697
  # 10,000.
698
+ #
699
+ # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
515
700
  # @return [Integer]
516
701
  #
517
702
  # @!attribute [rw] maximum_batching_window_in_seconds
518
- # (Streams) The maximum amount of time to gather records before
519
- # invoking the function, in seconds.
703
+ # (Streams and SQS standard queues) The maximum amount of time to
704
+ # gather records before invoking the function, in seconds.
520
705
  # @return [Integer]
521
706
  #
522
707
  # @!attribute [rw] parallelization_factor
@@ -556,8 +741,13 @@ module Aws::Lambda
556
741
  # records will be retried until the record expires.
557
742
  # @return [Integer]
558
743
  #
744
+ # @!attribute [rw] tumbling_window_in_seconds
745
+ # (Streams) The duration of a processing window in seconds. The range
746
+ # is between 1 second up to 15 minutes.
747
+ # @return [Integer]
748
+ #
559
749
  # @!attribute [rw] topics
560
- # (MSK) The name of the Kafka topic.
750
+ # The name of the Kafka topic.
561
751
  # @return [Array<String>]
562
752
  #
563
753
  # @!attribute [rw] queues
@@ -565,18 +755,18 @@ module Aws::Lambda
565
755
  # @return [Array<String>]
566
756
  #
567
757
  # @!attribute [rw] source_access_configurations
568
- # (MQ) The Secrets Manager secret that stores your broker credentials.
569
- # To store your secret, use the following format: ` \{ "username":
570
- # "your username", "password": "your password" \}`
758
+ # An array of the authentication protocol, or the VPC components to
759
+ # secure your event source.
760
+ # @return [Array<Types::SourceAccessConfiguration>]
571
761
  #
572
- # To reference the secret, use the following format: `[ \{ "Type":
573
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
762
+ # @!attribute [rw] self_managed_event_source
763
+ # The Self-Managed Apache Kafka cluster to send records.
764
+ # @return [Types::SelfManagedEventSource]
574
765
  #
575
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
576
- # you can use customer or service managed keys. When using a customer
577
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
578
- # permissions.
579
- # @return [Array<Types::SourceAccessConfiguration>]
766
+ # @!attribute [rw] function_response_types
767
+ # (Streams) A list of current response type enums applied to the event
768
+ # source mapping.
769
+ # @return [Array<String>]
580
770
  #
581
771
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
582
772
  #
@@ -593,9 +783,12 @@ module Aws::Lambda
593
783
  :maximum_record_age_in_seconds,
594
784
  :bisect_batch_on_function_error,
595
785
  :maximum_retry_attempts,
786
+ :tumbling_window_in_seconds,
596
787
  :topics,
597
788
  :queues,
598
- :source_access_configurations)
789
+ :source_access_configurations,
790
+ :self_managed_event_source,
791
+ :function_response_types)
599
792
  SENSITIVE = []
600
793
  include Aws::Structure
601
794
  end
@@ -605,14 +798,15 @@ module Aws::Lambda
605
798
  #
606
799
  # {
607
800
  # function_name: "FunctionName", # required
608
- # 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
801
+ # 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
609
802
  # role: "RoleArn", # required
610
- # handler: "Handler", # required
803
+ # handler: "Handler",
611
804
  # code: { # required
612
805
  # zip_file: "data",
613
806
  # s3_bucket: "S3Bucket",
614
807
  # s3_key: "S3Key",
615
808
  # s3_object_version: "S3ObjectVersion",
809
+ # image_uri: "String",
616
810
  # },
617
811
  # description: "Description",
618
812
  # timeout: 1,
@@ -622,6 +816,7 @@ module Aws::Lambda
622
816
  # subnet_ids: ["SubnetId"],
623
817
  # security_group_ids: ["SecurityGroupId"],
624
818
  # },
819
+ # package_type: "Zip", # accepts Zip, Image
625
820
  # dead_letter_config: {
626
821
  # target_arn: "ResourceArn",
627
822
  # },
@@ -644,6 +839,12 @@ module Aws::Lambda
644
839
  # local_mount_path: "LocalMountPath", # required
645
840
  # },
646
841
  # ],
842
+ # image_config: {
843
+ # entry_point: ["String"],
844
+ # command: ["String"],
845
+ # working_directory: "WorkingDirectory",
846
+ # },
847
+ # code_signing_config_arn: "CodeSigningConfigArn",
647
848
  # }
648
849
  #
649
850
  # @!attribute [rw] function_name
@@ -700,9 +901,9 @@ module Aws::Lambda
700
901
  # @return [Integer]
701
902
  #
702
903
  # @!attribute [rw] memory_size
703
- # The amount of memory that your function has access to. Increasing
704
- # the function's memory also increases its CPU allocation. The
705
- # default value is 128 MB. The value must be a multiple of 64 MB.
904
+ # The amount of memory available to the function at runtime.
905
+ # Increasing the function's memory also increases its CPU allocation.
906
+ # The default value is 128 MB. The value can be any multiple of 1 MB.
706
907
  # @return [Integer]
707
908
  #
708
909
  # @!attribute [rw] publish
@@ -721,6 +922,11 @@ module Aws::Lambda
721
922
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
722
923
  # @return [Types::VpcConfig]
723
924
  #
925
+ # @!attribute [rw] package_type
926
+ # The type of deployment package. Set to `Image` for container image
927
+ # and set `Zip` for ZIP archive.
928
+ # @return [String]
929
+ #
724
930
  # @!attribute [rw] dead_letter_config
725
931
  # A dead letter queue configuration that specifies the queue or topic
726
932
  # where Lambda sends asynchronous events when they fail processing.
@@ -768,6 +974,17 @@ module Aws::Lambda
768
974
  # Connection settings for an Amazon EFS file system.
769
975
  # @return [Array<Types::FileSystemConfig>]
770
976
  #
977
+ # @!attribute [rw] image_config
978
+ # Configuration values that override the container image Dockerfile.
979
+ # @return [Types::ImageConfig]
980
+ #
981
+ # @!attribute [rw] code_signing_config_arn
982
+ # To enable code signing for this function, specify the ARN of a
983
+ # code-signing configuration. A code-signing configuration includes a
984
+ # set of signing profiles, which define the trusted publishers for
985
+ # this function.
986
+ # @return [String]
987
+ #
771
988
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
772
989
  #
773
990
  class CreateFunctionRequest < Struct.new(
@@ -781,13 +998,16 @@ module Aws::Lambda
781
998
  :memory_size,
782
999
  :publish,
783
1000
  :vpc_config,
1001
+ :package_type,
784
1002
  :dead_letter_config,
785
1003
  :environment,
786
1004
  :kms_key_arn,
787
1005
  :tracing_config,
788
1006
  :tags,
789
1007
  :layers,
790
- :file_system_configs)
1008
+ :file_system_configs,
1009
+ :image_config,
1010
+ :code_signing_config_arn)
791
1011
  SENSITIVE = []
792
1012
  include Aws::Structure
793
1013
  end
@@ -855,6 +1075,30 @@ module Aws::Lambda
855
1075
  include Aws::Structure
856
1076
  end
857
1077
 
1078
+ # @note When making an API call, you may pass DeleteCodeSigningConfigRequest
1079
+ # data as a hash:
1080
+ #
1081
+ # {
1082
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
1083
+ # }
1084
+ #
1085
+ # @!attribute [rw] code_signing_config_arn
1086
+ # The The Amazon Resource Name (ARN) of the code signing
1087
+ # configuration.
1088
+ # @return [String]
1089
+ #
1090
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfigRequest AWS API Documentation
1091
+ #
1092
+ class DeleteCodeSigningConfigRequest < Struct.new(
1093
+ :code_signing_config_arn)
1094
+ SENSITIVE = []
1095
+ include Aws::Structure
1096
+ end
1097
+
1098
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfigResponse AWS API Documentation
1099
+ #
1100
+ class DeleteCodeSigningConfigResponse < Aws::EmptyStructure; end
1101
+
858
1102
  # @note When making an API call, you may pass DeleteEventSourceMappingRequest
859
1103
  # data as a hash:
860
1104
  #
@@ -874,6 +1118,37 @@ module Aws::Lambda
874
1118
  include Aws::Structure
875
1119
  end
876
1120
 
1121
+ # @note When making an API call, you may pass DeleteFunctionCodeSigningConfigRequest
1122
+ # data as a hash:
1123
+ #
1124
+ # {
1125
+ # function_name: "FunctionName", # required
1126
+ # }
1127
+ #
1128
+ # @!attribute [rw] function_name
1129
+ # The name of the Lambda function.
1130
+ #
1131
+ # **Name formats**
1132
+ #
1133
+ # * **Function name** - `MyFunction`.
1134
+ #
1135
+ # * **Function ARN** -
1136
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
1137
+ #
1138
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
1139
+ #
1140
+ # The length constraint applies only to the full ARN. If you specify
1141
+ # only the function name, it is limited to 64 characters in length.
1142
+ # @return [String]
1143
+ #
1144
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfigRequest AWS API Documentation
1145
+ #
1146
+ class DeleteFunctionCodeSigningConfigRequest < Struct.new(
1147
+ :function_name)
1148
+ SENSITIVE = []
1149
+ include Aws::Structure
1150
+ end
1151
+
877
1152
  # @note When making an API call, you may pass DeleteFunctionConcurrencyRequest
878
1153
  # data as a hash:
879
1154
  #
@@ -1314,8 +1589,9 @@ module Aws::Lambda
1314
1589
  # @return [Integer]
1315
1590
  #
1316
1591
  # @!attribute [rw] maximum_batching_window_in_seconds
1317
- # (Streams) The maximum amount of time to gather records before
1318
- # invoking the function, in seconds. The default value is zero.
1592
+ # (Streams and SQS standard queues) The maximum amount of time to
1593
+ # gather records before invoking the function, in seconds. The default
1594
+ # value is zero.
1319
1595
  # @return [Integer]
1320
1596
  #
1321
1597
  # @!attribute [rw] parallelization_factor
@@ -1358,7 +1634,7 @@ module Aws::Lambda
1358
1634
  # @return [Types::DestinationConfig]
1359
1635
  #
1360
1636
  # @!attribute [rw] topics
1361
- # (MSK) The name of the Kafka topic to consume.
1637
+ # The name of the Kafka topic.
1362
1638
  # @return [Array<String>]
1363
1639
  #
1364
1640
  # @!attribute [rw] queues
@@ -1366,19 +1642,14 @@ module Aws::Lambda
1366
1642
  # @return [Array<String>]
1367
1643
  #
1368
1644
  # @!attribute [rw] source_access_configurations
1369
- # (MQ) The Secrets Manager secret that stores your broker credentials.
1370
- # To store your secret, use the following format: ` \{ "username":
1371
- # "your username", "password": "your password" \}`
1372
- #
1373
- # To reference the secret, use the following format: `[ \{ "Type":
1374
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
1375
- #
1376
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
1377
- # you can use customer or service managed keys. When using a customer
1378
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
1379
- # permissions.
1645
+ # An array of the authentication protocol, or the VPC components to
1646
+ # secure your event source.
1380
1647
  # @return [Array<Types::SourceAccessConfiguration>]
1381
1648
  #
1649
+ # @!attribute [rw] self_managed_event_source
1650
+ # The Self-Managed Apache Kafka cluster for your event source.
1651
+ # @return [Types::SelfManagedEventSource]
1652
+ #
1382
1653
  # @!attribute [rw] maximum_record_age_in_seconds
1383
1654
  # (Streams) Discard records older than the specified age. The default
1384
1655
  # value is infinite (-1). When set to infinite (-1), failed records
@@ -1396,6 +1667,16 @@ module Aws::Lambda
1396
1667
  # records are retried until the record expires.
1397
1668
  # @return [Integer]
1398
1669
  #
1670
+ # @!attribute [rw] tumbling_window_in_seconds
1671
+ # (Streams) The duration of a processing window in seconds. The range
1672
+ # is between 1 second up to 15 minutes.
1673
+ # @return [Integer]
1674
+ #
1675
+ # @!attribute [rw] function_response_types
1676
+ # (Streams) A list of current response type enums applied to the event
1677
+ # source mapping.
1678
+ # @return [Array<String>]
1679
+ #
1399
1680
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
1400
1681
  #
1401
1682
  class EventSourceMappingConfiguration < Struct.new(
@@ -1415,9 +1696,12 @@ module Aws::Lambda
1415
1696
  :topics,
1416
1697
  :queues,
1417
1698
  :source_access_configurations,
1699
+ :self_managed_event_source,
1418
1700
  :maximum_record_age_in_seconds,
1419
1701
  :bisect_batch_on_function_error,
1420
- :maximum_retry_attempts)
1702
+ :maximum_retry_attempts,
1703
+ :tumbling_window_in_seconds,
1704
+ :function_response_types)
1421
1705
  SENSITIVE = []
1422
1706
  include Aws::Structure
1423
1707
  end
@@ -1453,7 +1737,8 @@ module Aws::Lambda
1453
1737
  end
1454
1738
 
1455
1739
  # The code for the Lambda function. You can specify either an object in
1456
- # Amazon S3, or upload a deployment package directly.
1740
+ # Amazon S3, upload a .zip file archive deployment package directly, or
1741
+ # specify the URI of a container image.
1457
1742
  #
1458
1743
  # @note When making an API call, you may pass FunctionCode
1459
1744
  # data as a hash:
@@ -1463,6 +1748,7 @@ module Aws::Lambda
1463
1748
  # s3_bucket: "S3Bucket",
1464
1749
  # s3_key: "S3Key",
1465
1750
  # s3_object_version: "S3ObjectVersion",
1751
+ # image_uri: "String",
1466
1752
  # }
1467
1753
  #
1468
1754
  # @!attribute [rw] zip_file
@@ -1484,13 +1770,18 @@ module Aws::Lambda
1484
1770
  # to use.
1485
1771
  # @return [String]
1486
1772
  #
1773
+ # @!attribute [rw] image_uri
1774
+ # URI of a container image in the Amazon ECR registry.
1775
+ # @return [String]
1776
+ #
1487
1777
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCode AWS API Documentation
1488
1778
  #
1489
1779
  class FunctionCode < Struct.new(
1490
1780
  :zip_file,
1491
1781
  :s3_bucket,
1492
1782
  :s3_key,
1493
- :s3_object_version)
1783
+ :s3_object_version,
1784
+ :image_uri)
1494
1785
  SENSITIVE = [:zip_file]
1495
1786
  include Aws::Structure
1496
1787
  end
@@ -1505,11 +1796,21 @@ module Aws::Lambda
1505
1796
  # A presigned URL that you can use to download the deployment package.
1506
1797
  # @return [String]
1507
1798
  #
1799
+ # @!attribute [rw] image_uri
1800
+ # URI of a container image in the Amazon ECR registry.
1801
+ # @return [String]
1802
+ #
1803
+ # @!attribute [rw] resolved_image_uri
1804
+ # The resolved URI for the image.
1805
+ # @return [String]
1806
+ #
1508
1807
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCodeLocation AWS API Documentation
1509
1808
  #
1510
1809
  class FunctionCodeLocation < Struct.new(
1511
1810
  :repository_type,
1512
- :location)
1811
+ :location,
1812
+ :image_uri,
1813
+ :resolved_image_uri)
1513
1814
  SENSITIVE = []
1514
1815
  include Aws::Structure
1515
1816
  end
@@ -1550,7 +1851,7 @@ module Aws::Lambda
1550
1851
  # @return [Integer]
1551
1852
  #
1552
1853
  # @!attribute [rw] memory_size
1553
- # The memory that's allocated to the function.
1854
+ # The amount of memory available to the function at runtime.
1554
1855
  # @return [Integer]
1555
1856
  #
1556
1857
  # @!attribute [rw] last_modified
@@ -1640,6 +1941,23 @@ module Aws::Lambda
1640
1941
  # Connection settings for an Amazon EFS file system.
1641
1942
  # @return [Array<Types::FileSystemConfig>]
1642
1943
  #
1944
+ # @!attribute [rw] package_type
1945
+ # The type of deployment package. Set to `Image` for container image
1946
+ # and set `Zip` for .zip file archive.
1947
+ # @return [String]
1948
+ #
1949
+ # @!attribute [rw] image_config_response
1950
+ # The function's image configuration values.
1951
+ # @return [Types::ImageConfigResponse]
1952
+ #
1953
+ # @!attribute [rw] signing_profile_version_arn
1954
+ # The ARN of the signing profile version.
1955
+ # @return [String]
1956
+ #
1957
+ # @!attribute [rw] signing_job_arn
1958
+ # The ARN of the signing job.
1959
+ # @return [String]
1960
+ #
1643
1961
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
1644
1962
  #
1645
1963
  class FunctionConfiguration < Struct.new(
@@ -1669,7 +1987,11 @@ module Aws::Lambda
1669
1987
  :last_update_status,
1670
1988
  :last_update_status_reason,
1671
1989
  :last_update_status_reason_code,
1672
- :file_system_configs)
1990
+ :file_system_configs,
1991
+ :package_type,
1992
+ :image_config_response,
1993
+ :signing_profile_version_arn,
1994
+ :signing_job_arn)
1673
1995
  SENSITIVE = []
1674
1996
  include Aws::Structure
1675
1997
  end
@@ -1780,6 +2102,38 @@ module Aws::Lambda
1780
2102
  include Aws::Structure
1781
2103
  end
1782
2104
 
2105
+ # @note When making an API call, you may pass GetCodeSigningConfigRequest
2106
+ # data as a hash:
2107
+ #
2108
+ # {
2109
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
2110
+ # }
2111
+ #
2112
+ # @!attribute [rw] code_signing_config_arn
2113
+ # The The Amazon Resource Name (ARN) of the code signing
2114
+ # configuration.
2115
+ # @return [String]
2116
+ #
2117
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfigRequest AWS API Documentation
2118
+ #
2119
+ class GetCodeSigningConfigRequest < Struct.new(
2120
+ :code_signing_config_arn)
2121
+ SENSITIVE = []
2122
+ include Aws::Structure
2123
+ end
2124
+
2125
+ # @!attribute [rw] code_signing_config
2126
+ # The code signing configuration
2127
+ # @return [Types::CodeSigningConfig]
2128
+ #
2129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfigResponse AWS API Documentation
2130
+ #
2131
+ class GetCodeSigningConfigResponse < Struct.new(
2132
+ :code_signing_config)
2133
+ SENSITIVE = []
2134
+ include Aws::Structure
2135
+ end
2136
+
1783
2137
  # @note When making an API call, you may pass GetEventSourceMappingRequest
1784
2138
  # data as a hash:
1785
2139
  #
@@ -1799,6 +2153,67 @@ module Aws::Lambda
1799
2153
  include Aws::Structure
1800
2154
  end
1801
2155
 
2156
+ # @note When making an API call, you may pass GetFunctionCodeSigningConfigRequest
2157
+ # data as a hash:
2158
+ #
2159
+ # {
2160
+ # function_name: "FunctionName", # required
2161
+ # }
2162
+ #
2163
+ # @!attribute [rw] function_name
2164
+ # The name of the Lambda function.
2165
+ #
2166
+ # **Name formats**
2167
+ #
2168
+ # * **Function name** - `MyFunction`.
2169
+ #
2170
+ # * **Function ARN** -
2171
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
2172
+ #
2173
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
2174
+ #
2175
+ # The length constraint applies only to the full ARN. If you specify
2176
+ # only the function name, it is limited to 64 characters in length.
2177
+ # @return [String]
2178
+ #
2179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfigRequest AWS API Documentation
2180
+ #
2181
+ class GetFunctionCodeSigningConfigRequest < Struct.new(
2182
+ :function_name)
2183
+ SENSITIVE = []
2184
+ include Aws::Structure
2185
+ end
2186
+
2187
+ # @!attribute [rw] code_signing_config_arn
2188
+ # The The Amazon Resource Name (ARN) of the code signing
2189
+ # configuration.
2190
+ # @return [String]
2191
+ #
2192
+ # @!attribute [rw] function_name
2193
+ # The name of the Lambda function.
2194
+ #
2195
+ # **Name formats**
2196
+ #
2197
+ # * **Function name** - `MyFunction`.
2198
+ #
2199
+ # * **Function ARN** -
2200
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
2201
+ #
2202
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
2203
+ #
2204
+ # The length constraint applies only to the full ARN. If you specify
2205
+ # only the function name, it is limited to 64 characters in length.
2206
+ # @return [String]
2207
+ #
2208
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfigResponse AWS API Documentation
2209
+ #
2210
+ class GetFunctionCodeSigningConfigResponse < Struct.new(
2211
+ :code_signing_config_arn,
2212
+ :function_name)
2213
+ SENSITIVE = []
2214
+ include Aws::Structure
2215
+ end
2216
+
1802
2217
  # @note When making an API call, you may pass GetFunctionConcurrencyRequest
1803
2218
  # data as a hash:
1804
2219
  #
@@ -2271,6 +2686,102 @@ module Aws::Lambda
2271
2686
  include Aws::Structure
2272
2687
  end
2273
2688
 
2689
+ # Configuration values that override the container image Dockerfile
2690
+ # settings. See [Container settings][1].
2691
+ #
2692
+ #
2693
+ #
2694
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html
2695
+ #
2696
+ # @note When making an API call, you may pass ImageConfig
2697
+ # data as a hash:
2698
+ #
2699
+ # {
2700
+ # entry_point: ["String"],
2701
+ # command: ["String"],
2702
+ # working_directory: "WorkingDirectory",
2703
+ # }
2704
+ #
2705
+ # @!attribute [rw] entry_point
2706
+ # Specifies the entry point to their application, which is typically
2707
+ # the location of the runtime executable.
2708
+ # @return [Array<String>]
2709
+ #
2710
+ # @!attribute [rw] command
2711
+ # Specifies parameters that you want to pass in with ENTRYPOINT.
2712
+ # @return [Array<String>]
2713
+ #
2714
+ # @!attribute [rw] working_directory
2715
+ # Specifies the working directory.
2716
+ # @return [String]
2717
+ #
2718
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ImageConfig AWS API Documentation
2719
+ #
2720
+ class ImageConfig < Struct.new(
2721
+ :entry_point,
2722
+ :command,
2723
+ :working_directory)
2724
+ SENSITIVE = []
2725
+ include Aws::Structure
2726
+ end
2727
+
2728
+ # Error response to GetFunctionConfiguration.
2729
+ #
2730
+ # @!attribute [rw] error_code
2731
+ # Error code.
2732
+ # @return [String]
2733
+ #
2734
+ # @!attribute [rw] message
2735
+ # Error message.
2736
+ # @return [String]
2737
+ #
2738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ImageConfigError AWS API Documentation
2739
+ #
2740
+ class ImageConfigError < Struct.new(
2741
+ :error_code,
2742
+ :message)
2743
+ SENSITIVE = [:message]
2744
+ include Aws::Structure
2745
+ end
2746
+
2747
+ # Response to GetFunctionConfiguration request.
2748
+ #
2749
+ # @!attribute [rw] image_config
2750
+ # Configuration values that override the container image Dockerfile.
2751
+ # @return [Types::ImageConfig]
2752
+ #
2753
+ # @!attribute [rw] error
2754
+ # Error response to GetFunctionConfiguration.
2755
+ # @return [Types::ImageConfigError]
2756
+ #
2757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ImageConfigResponse AWS API Documentation
2758
+ #
2759
+ class ImageConfigResponse < Struct.new(
2760
+ :image_config,
2761
+ :error)
2762
+ SENSITIVE = []
2763
+ include Aws::Structure
2764
+ end
2765
+
2766
+ # The code signature failed the integrity check. Lambda always blocks
2767
+ # deployment if the integrity check fails, even if code signing policy
2768
+ # is set to WARN.
2769
+ #
2770
+ # @!attribute [rw] type
2771
+ # @return [String]
2772
+ #
2773
+ # @!attribute [rw] message
2774
+ # @return [String]
2775
+ #
2776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvalidCodeSignatureException AWS API Documentation
2777
+ #
2778
+ class InvalidCodeSignatureException < Struct.new(
2779
+ :type,
2780
+ :message)
2781
+ SENSITIVE = []
2782
+ include Aws::Structure
2783
+ end
2784
+
2274
2785
  # One of the parameters in the request is invalid.
2275
2786
  #
2276
2787
  # @!attribute [rw] type
@@ -2634,11 +3145,21 @@ module Aws::Lambda
2634
3145
  # The size of the layer archive in bytes.
2635
3146
  # @return [Integer]
2636
3147
  #
3148
+ # @!attribute [rw] signing_profile_version_arn
3149
+ # The Amazon Resource Name (ARN) for a signing profile version.
3150
+ # @return [String]
3151
+ #
3152
+ # @!attribute [rw] signing_job_arn
3153
+ # The Amazon Resource Name (ARN) of a signing job.
3154
+ # @return [String]
3155
+ #
2637
3156
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Layer AWS API Documentation
2638
3157
  #
2639
3158
  class Layer < Struct.new(
2640
3159
  :arn,
2641
- :code_size)
3160
+ :code_size,
3161
+ :signing_profile_version_arn,
3162
+ :signing_job_arn)
2642
3163
  SENSITIVE = []
2643
3164
  include Aws::Structure
2644
3165
  end
@@ -2709,12 +3230,22 @@ module Aws::Lambda
2709
3230
  # The size of the layer archive in bytes.
2710
3231
  # @return [Integer]
2711
3232
  #
3233
+ # @!attribute [rw] signing_profile_version_arn
3234
+ # The Amazon Resource Name (ARN) for a signing profile version.
3235
+ # @return [String]
3236
+ #
3237
+ # @!attribute [rw] signing_job_arn
3238
+ # The Amazon Resource Name (ARN) of a signing job.
3239
+ # @return [String]
3240
+ #
2712
3241
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentOutput AWS API Documentation
2713
3242
  #
2714
3243
  class LayerVersionContentOutput < Struct.new(
2715
3244
  :location,
2716
3245
  :code_sha_256,
2717
- :code_size)
3246
+ :code_size,
3247
+ :signing_profile_version_arn,
3248
+ :signing_job_arn)
2718
3249
  SENSITIVE = []
2719
3250
  include Aws::Structure
2720
3251
  end
@@ -2859,6 +3390,49 @@ module Aws::Lambda
2859
3390
  include Aws::Structure
2860
3391
  end
2861
3392
 
3393
+ # @note When making an API call, you may pass ListCodeSigningConfigsRequest
3394
+ # data as a hash:
3395
+ #
3396
+ # {
3397
+ # marker: "String",
3398
+ # max_items: 1,
3399
+ # }
3400
+ #
3401
+ # @!attribute [rw] marker
3402
+ # Specify the pagination token that's returned by a previous request
3403
+ # to retrieve the next page of results.
3404
+ # @return [String]
3405
+ #
3406
+ # @!attribute [rw] max_items
3407
+ # Maximum number of items to return.
3408
+ # @return [Integer]
3409
+ #
3410
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigsRequest AWS API Documentation
3411
+ #
3412
+ class ListCodeSigningConfigsRequest < Struct.new(
3413
+ :marker,
3414
+ :max_items)
3415
+ SENSITIVE = []
3416
+ include Aws::Structure
3417
+ end
3418
+
3419
+ # @!attribute [rw] next_marker
3420
+ # The pagination token that's included if more results are available.
3421
+ # @return [String]
3422
+ #
3423
+ # @!attribute [rw] code_signing_configs
3424
+ # The code signing configurations
3425
+ # @return [Array<Types::CodeSigningConfig>]
3426
+ #
3427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigsResponse AWS API Documentation
3428
+ #
3429
+ class ListCodeSigningConfigsResponse < Struct.new(
3430
+ :next_marker,
3431
+ :code_signing_configs)
3432
+ SENSITIVE = []
3433
+ include Aws::Structure
3434
+ end
3435
+
2862
3436
  # @note When making an API call, you may pass ListEventSourceMappingsRequest
2863
3437
  # data as a hash:
2864
3438
  #
@@ -3000,6 +3574,56 @@ module Aws::Lambda
3000
3574
  include Aws::Structure
3001
3575
  end
3002
3576
 
3577
+ # @note When making an API call, you may pass ListFunctionsByCodeSigningConfigRequest
3578
+ # data as a hash:
3579
+ #
3580
+ # {
3581
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
3582
+ # marker: "String",
3583
+ # max_items: 1,
3584
+ # }
3585
+ #
3586
+ # @!attribute [rw] code_signing_config_arn
3587
+ # The The Amazon Resource Name (ARN) of the code signing
3588
+ # configuration.
3589
+ # @return [String]
3590
+ #
3591
+ # @!attribute [rw] marker
3592
+ # Specify the pagination token that's returned by a previous request
3593
+ # to retrieve the next page of results.
3594
+ # @return [String]
3595
+ #
3596
+ # @!attribute [rw] max_items
3597
+ # Maximum number of items to return.
3598
+ # @return [Integer]
3599
+ #
3600
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfigRequest AWS API Documentation
3601
+ #
3602
+ class ListFunctionsByCodeSigningConfigRequest < Struct.new(
3603
+ :code_signing_config_arn,
3604
+ :marker,
3605
+ :max_items)
3606
+ SENSITIVE = []
3607
+ include Aws::Structure
3608
+ end
3609
+
3610
+ # @!attribute [rw] next_marker
3611
+ # The pagination token that's included if more results are available.
3612
+ # @return [String]
3613
+ #
3614
+ # @!attribute [rw] function_arns
3615
+ # The function ARNs.
3616
+ # @return [Array<String>]
3617
+ #
3618
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfigResponse AWS API Documentation
3619
+ #
3620
+ class ListFunctionsByCodeSigningConfigResponse < Struct.new(
3621
+ :next_marker,
3622
+ :function_arns)
3623
+ SENSITIVE = []
3624
+ include Aws::Structure
3625
+ end
3626
+
3003
3627
  # @note When making an API call, you may pass ListFunctionsRequest
3004
3628
  # data as a hash:
3005
3629
  #
@@ -3643,6 +4267,74 @@ module Aws::Lambda
3643
4267
  include Aws::Structure
3644
4268
  end
3645
4269
 
4270
+ # @note When making an API call, you may pass PutFunctionCodeSigningConfigRequest
4271
+ # data as a hash:
4272
+ #
4273
+ # {
4274
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
4275
+ # function_name: "FunctionName", # required
4276
+ # }
4277
+ #
4278
+ # @!attribute [rw] code_signing_config_arn
4279
+ # The The Amazon Resource Name (ARN) of the code signing
4280
+ # configuration.
4281
+ # @return [String]
4282
+ #
4283
+ # @!attribute [rw] function_name
4284
+ # The name of the Lambda function.
4285
+ #
4286
+ # **Name formats**
4287
+ #
4288
+ # * **Function name** - `MyFunction`.
4289
+ #
4290
+ # * **Function ARN** -
4291
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
4292
+ #
4293
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
4294
+ #
4295
+ # The length constraint applies only to the full ARN. If you specify
4296
+ # only the function name, it is limited to 64 characters in length.
4297
+ # @return [String]
4298
+ #
4299
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfigRequest AWS API Documentation
4300
+ #
4301
+ class PutFunctionCodeSigningConfigRequest < Struct.new(
4302
+ :code_signing_config_arn,
4303
+ :function_name)
4304
+ SENSITIVE = []
4305
+ include Aws::Structure
4306
+ end
4307
+
4308
+ # @!attribute [rw] code_signing_config_arn
4309
+ # The The Amazon Resource Name (ARN) of the code signing
4310
+ # configuration.
4311
+ # @return [String]
4312
+ #
4313
+ # @!attribute [rw] function_name
4314
+ # The name of the Lambda function.
4315
+ #
4316
+ # **Name formats**
4317
+ #
4318
+ # * **Function name** - `MyFunction`.
4319
+ #
4320
+ # * **Function ARN** -
4321
+ # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
4322
+ #
4323
+ # * **Partial ARN** - `123456789012:function:MyFunction`.
4324
+ #
4325
+ # The length constraint applies only to the full ARN. If you specify
4326
+ # only the function name, it is limited to 64 characters in length.
4327
+ # @return [String]
4328
+ #
4329
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfigResponse AWS API Documentation
4330
+ #
4331
+ class PutFunctionCodeSigningConfigResponse < Struct.new(
4332
+ :code_signing_config_arn,
4333
+ :function_name)
4334
+ SENSITIVE = []
4335
+ include Aws::Structure
4336
+ end
4337
+
3646
4338
  # @note When making an API call, you may pass PutFunctionConcurrencyRequest
3647
4339
  # data as a hash:
3648
4340
  #
@@ -4036,6 +4728,31 @@ module Aws::Lambda
4036
4728
  include Aws::Structure
4037
4729
  end
4038
4730
 
4731
+ # The Self-Managed Apache Kafka cluster for your event source.
4732
+ #
4733
+ # @note When making an API call, you may pass SelfManagedEventSource
4734
+ # data as a hash:
4735
+ #
4736
+ # {
4737
+ # endpoints: {
4738
+ # "KAFKA_BOOTSTRAP_SERVERS" => ["Endpoint"],
4739
+ # },
4740
+ # }
4741
+ #
4742
+ # @!attribute [rw] endpoints
4743
+ # The list of bootstrap servers for your Kafka brokers in the
4744
+ # following format: `"KAFKA_BOOTSTRAP_SERVERS":
4745
+ # ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`.
4746
+ # @return [Hash<String,Array<String>>]
4747
+ #
4748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SelfManagedEventSource AWS API Documentation
4749
+ #
4750
+ class SelfManagedEventSource < Struct.new(
4751
+ :endpoints)
4752
+ SENSITIVE = []
4753
+ include Aws::Structure
4754
+ end
4755
+
4039
4756
  # The AWS Lambda service encountered an internal error.
4040
4757
  #
4041
4758
  # @!attribute [rw] type
@@ -4053,36 +4770,41 @@ module Aws::Lambda
4053
4770
  include Aws::Structure
4054
4771
  end
4055
4772
 
4056
- # (MQ) The Secrets Manager secret that stores your broker credentials.
4057
- # To store your secret, use the following format: ` \{ "username": "your
4058
- # username", "password": "your password" \}`
4773
+ # You can specify the authentication protocol, or the VPC components to
4774
+ # secure access to your event source.
4059
4775
  #
4060
4776
  # @note When making an API call, you may pass SourceAccessConfiguration
4061
4777
  # data as a hash:
4062
4778
  #
4063
4779
  # {
4064
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
4065
- # uri: "Arn",
4780
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
4781
+ # uri: "URI",
4066
4782
  # }
4067
4783
  #
4068
4784
  # @!attribute [rw] type
4069
- # To reference the secret, use the following format: `[ \{ "Type":
4070
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
4785
+ # The type of authentication protocol or the VPC components for your
4786
+ # event source. For example: `"Type":"SASL_SCRAM_512_AUTH"`.
4787
+ #
4788
+ # * `BASIC_AUTH` - (MQ) The Secrets Manager secret that stores your
4789
+ # broker credentials.
4790
+ #
4791
+ # * `VPC_SUBNET` - The subnets associated with your VPC. Lambda
4792
+ # connects to these subnets to fetch data from your Kafka cluster.
4793
+ #
4794
+ # * `VPC_SECURITY_GROUP` - The VPC security group used to manage
4795
+ # access to your Kafka brokers.
4796
+ #
4797
+ # * `SASL_SCRAM_256_AUTH` - The ARN of your secret key used for SASL
4798
+ # SCRAM-256 authentication of your Kafka brokers.
4071
4799
  #
4072
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
4073
- # you can use customer or service managed keys. When using a customer
4074
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
4075
- # permissions.
4800
+ # * `SASL_SCRAM_512_AUTH` - The ARN of your secret key used for SASL
4801
+ # SCRAM-512 authentication of your Kafka brokers.
4076
4802
  # @return [String]
4077
4803
  #
4078
4804
  # @!attribute [rw] uri
4079
- # To reference the secret, use the following format: `[ \{ "Type":
4080
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
4081
- #
4082
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
4083
- # you can use customer or service managed keys. When using a customer
4084
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
4085
- # permissions.
4805
+ # The value for your chosen configuration in `Type`. For example:
4806
+ # `"URI":
4807
+ # "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"`.
4086
4808
  # @return [String]
4087
4809
  #
4088
4810
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SourceAccessConfiguration AWS API Documentation
@@ -4314,6 +5036,60 @@ module Aws::Lambda
4314
5036
  include Aws::Structure
4315
5037
  end
4316
5038
 
5039
+ # @note When making an API call, you may pass UpdateCodeSigningConfigRequest
5040
+ # data as a hash:
5041
+ #
5042
+ # {
5043
+ # code_signing_config_arn: "CodeSigningConfigArn", # required
5044
+ # description: "Description",
5045
+ # allowed_publishers: {
5046
+ # signing_profile_version_arns: ["Arn"], # required
5047
+ # },
5048
+ # code_signing_policies: {
5049
+ # untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
5050
+ # },
5051
+ # }
5052
+ #
5053
+ # @!attribute [rw] code_signing_config_arn
5054
+ # The The Amazon Resource Name (ARN) of the code signing
5055
+ # configuration.
5056
+ # @return [String]
5057
+ #
5058
+ # @!attribute [rw] description
5059
+ # Descriptive name for this code signing configuration.
5060
+ # @return [String]
5061
+ #
5062
+ # @!attribute [rw] allowed_publishers
5063
+ # Signing profiles for this code signing configuration.
5064
+ # @return [Types::AllowedPublishers]
5065
+ #
5066
+ # @!attribute [rw] code_signing_policies
5067
+ # The code signing policy.
5068
+ # @return [Types::CodeSigningPolicies]
5069
+ #
5070
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfigRequest AWS API Documentation
5071
+ #
5072
+ class UpdateCodeSigningConfigRequest < Struct.new(
5073
+ :code_signing_config_arn,
5074
+ :description,
5075
+ :allowed_publishers,
5076
+ :code_signing_policies)
5077
+ SENSITIVE = []
5078
+ include Aws::Structure
5079
+ end
5080
+
5081
+ # @!attribute [rw] code_signing_config
5082
+ # The code signing configuration
5083
+ # @return [Types::CodeSigningConfig]
5084
+ #
5085
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfigResponse AWS API Documentation
5086
+ #
5087
+ class UpdateCodeSigningConfigResponse < Struct.new(
5088
+ :code_signing_config)
5089
+ SENSITIVE = []
5090
+ include Aws::Structure
5091
+ end
5092
+
4317
5093
  # @note When making an API call, you may pass UpdateEventSourceMappingRequest
4318
5094
  # data as a hash:
4319
5095
  #
@@ -4337,10 +5113,12 @@ module Aws::Lambda
4337
5113
  # parallelization_factor: 1,
4338
5114
  # source_access_configurations: [
4339
5115
  # {
4340
- # type: "BASIC_AUTH", # accepts BASIC_AUTH
4341
- # uri: "Arn",
5116
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
5117
+ # uri: "URI",
4342
5118
  # },
4343
5119
  # ],
5120
+ # tumbling_window_in_seconds: 1,
5121
+ # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
4344
5122
  # }
4345
5123
  #
4346
5124
  # @!attribute [rw] uuid
@@ -4378,15 +5156,18 @@ module Aws::Lambda
4378
5156
  #
4379
5157
  # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
4380
5158
  #
4381
- # * **Amazon Simple Queue Service** - Default 10. Max 10.
5159
+ # * **Amazon Simple Queue Service** - Default 10. For standard queues
5160
+ # the max is 10,000. For FIFO queues the max is 10.
4382
5161
  #
4383
5162
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
4384
5163
  # 10,000.
5164
+ #
5165
+ # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
4385
5166
  # @return [Integer]
4386
5167
  #
4387
5168
  # @!attribute [rw] maximum_batching_window_in_seconds
4388
- # (Streams) The maximum amount of time to gather records before
4389
- # invoking the function, in seconds.
5169
+ # (Streams and SQS standard queues) The maximum amount of time to
5170
+ # gather records before invoking the function, in seconds.
4390
5171
  # @return [Integer]
4391
5172
  #
4392
5173
  # @!attribute [rw] destination_config
@@ -4416,18 +5197,19 @@ module Aws::Lambda
4416
5197
  # @return [Integer]
4417
5198
  #
4418
5199
  # @!attribute [rw] source_access_configurations
4419
- # (MQ) The Secrets Manager secret that stores your broker credentials.
4420
- # To store your secret, use the following format: ` \{ "username":
4421
- # "your username", "password": "your password" \}`
5200
+ # An array of the authentication protocol, or the VPC components to
5201
+ # secure your event source.
5202
+ # @return [Array<Types::SourceAccessConfiguration>]
4422
5203
  #
4423
- # To reference the secret, use the following format: `[ \{ "Type":
4424
- # "BASIC_AUTH", "URI": "secretARN" \} ]`
5204
+ # @!attribute [rw] tumbling_window_in_seconds
5205
+ # (Streams) The duration of a processing window in seconds. The range
5206
+ # is between 1 second up to 15 minutes.
5207
+ # @return [Integer]
4425
5208
  #
4426
- # The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
4427
- # you can use customer or service managed keys. When using a customer
4428
- # managed KMS key, the Lambda execution role requires `kms:Decrypt`
4429
- # permissions.
4430
- # @return [Array<Types::SourceAccessConfiguration>]
5209
+ # @!attribute [rw] function_response_types
5210
+ # (Streams) A list of current response type enums applied to the event
5211
+ # source mapping.
5212
+ # @return [Array<String>]
4431
5213
  #
4432
5214
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
4433
5215
  #
@@ -4442,7 +5224,9 @@ module Aws::Lambda
4442
5224
  :bisect_batch_on_function_error,
4443
5225
  :maximum_retry_attempts,
4444
5226
  :parallelization_factor,
4445
- :source_access_configurations)
5227
+ :source_access_configurations,
5228
+ :tumbling_window_in_seconds,
5229
+ :function_response_types)
4446
5230
  SENSITIVE = []
4447
5231
  include Aws::Structure
4448
5232
  end
@@ -4456,6 +5240,7 @@ module Aws::Lambda
4456
5240
  # s3_bucket: "S3Bucket",
4457
5241
  # s3_key: "S3Key",
4458
5242
  # s3_object_version: "S3ObjectVersion",
5243
+ # image_uri: "String",
4459
5244
  # publish: false,
4460
5245
  # dry_run: false,
4461
5246
  # revision_id: "String",
@@ -4496,6 +5281,10 @@ module Aws::Lambda
4496
5281
  # to use.
4497
5282
  # @return [String]
4498
5283
  #
5284
+ # @!attribute [rw] image_uri
5285
+ # URI of a container image in the Amazon ECR registry.
5286
+ # @return [String]
5287
+ #
4499
5288
  # @!attribute [rw] publish
4500
5289
  # Set to true to publish a new version of the function after updating
4501
5290
  # the code. This has the same effect as calling PublishVersion
@@ -4521,6 +5310,7 @@ module Aws::Lambda
4521
5310
  :s3_bucket,
4522
5311
  :s3_key,
4523
5312
  :s3_object_version,
5313
+ :image_uri,
4524
5314
  :publish,
4525
5315
  :dry_run,
4526
5316
  :revision_id)
@@ -4563,6 +5353,11 @@ module Aws::Lambda
4563
5353
  # local_mount_path: "LocalMountPath", # required
4564
5354
  # },
4565
5355
  # ],
5356
+ # image_config: {
5357
+ # entry_point: ["String"],
5358
+ # command: ["String"],
5359
+ # working_directory: "WorkingDirectory",
5360
+ # },
4566
5361
  # }
4567
5362
  #
4568
5363
  # @!attribute [rw] function_name
@@ -4607,9 +5402,9 @@ module Aws::Lambda
4607
5402
  # @return [Integer]
4608
5403
  #
4609
5404
  # @!attribute [rw] memory_size
4610
- # The amount of memory that your function has access to. Increasing
4611
- # the function's memory also increases its CPU allocation. The
4612
- # default value is 128 MB. The value must be a multiple of 64 MB.
5405
+ # The amount of memory available to the function at runtime.
5406
+ # Increasing the function's memory also increases its CPU allocation.
5407
+ # The default value is 128 MB. The value can be any multiple of 1 MB.
4613
5408
  # @return [Integer]
4614
5409
  #
4615
5410
  # @!attribute [rw] vpc_config
@@ -4676,6 +5471,10 @@ module Aws::Lambda
4676
5471
  # Connection settings for an Amazon EFS file system.
4677
5472
  # @return [Array<Types::FileSystemConfig>]
4678
5473
  #
5474
+ # @!attribute [rw] image_config
5475
+ # Configuration values that override the container image Dockerfile.
5476
+ # @return [Types::ImageConfig]
5477
+ #
4679
5478
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
4680
5479
  #
4681
5480
  class UpdateFunctionConfigurationRequest < Struct.new(
@@ -4693,7 +5492,8 @@ module Aws::Lambda
4693
5492
  :tracing_config,
4694
5493
  :revision_id,
4695
5494
  :layers,
4696
- :file_system_configs)
5495
+ :file_system_configs,
5496
+ :image_config)
4697
5497
  SENSITIVE = []
4698
5498
  include Aws::Structure
4699
5499
  end