aws-sdk-lambda 1.82.0 → 1.85.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -165,6 +165,7 @@ module Aws::Lambda
165
165
  # qualifier: "Qualifier",
166
166
  # revision_id: "String",
167
167
  # principal_org_id: "PrincipalOrgID",
168
+ # function_url_auth_type: "NONE", # accepts NONE, AWS_IAM
168
169
  # }
169
170
  #
170
171
  # @!attribute [rw] function_name
@@ -240,6 +241,18 @@ module Aws::Lambda
240
241
  # organization.
241
242
  # @return [String]
242
243
  #
244
+ # @!attribute [rw] function_url_auth_type
245
+ # The type of authentication that your function URL uses. Set to
246
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
247
+ # users only. Set to `NONE` if you want to bypass IAM authentication
248
+ # to create a public endpoint. For more information, see [ Security
249
+ # and auth model for Lambda function URLs][1].
250
+ #
251
+ #
252
+ #
253
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
254
+ # @return [String]
255
+ #
243
256
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest AWS API Documentation
244
257
  #
245
258
  class AddPermissionRequest < Struct.new(
@@ -252,7 +265,8 @@ module Aws::Lambda
252
265
  :event_source_token,
253
266
  :qualifier,
254
267
  :revision_id,
255
- :principal_org_id)
268
+ :principal_org_id,
269
+ :function_url_auth_type)
256
270
  SENSITIVE = []
257
271
  include Aws::Structure
258
272
  end
@@ -366,6 +380,32 @@ module Aws::Lambda
366
380
  include Aws::Structure
367
381
  end
368
382
 
383
+ # Specific configuration settings for an Amazon Managed Streaming for
384
+ # Apache Kafka (Amazon MSK) event source.
385
+ #
386
+ # @note When making an API call, you may pass AmazonManagedKafkaEventSourceConfig
387
+ # data as a hash:
388
+ #
389
+ # {
390
+ # consumer_group_id: "URI",
391
+ # }
392
+ #
393
+ # @!attribute [rw] consumer_group_id
394
+ # The identifier for the Kafka consumer group to join. The consumer
395
+ # group ID must be unique among all your Kafka event sources. After
396
+ # creating a Kafka event source mapping with the consumer group ID
397
+ # specified, you cannot update this value. For more information, see
398
+ # services-msk-consumer-group-id.
399
+ # @return [String]
400
+ #
401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig AWS API Documentation
402
+ #
403
+ class AmazonManagedKafkaEventSourceConfig < Struct.new(
404
+ :consumer_group_id)
405
+ SENSITIVE = []
406
+ include Aws::Structure
407
+ end
408
+
369
409
  # Details about a [Code signing configuration][1].
370
410
  #
371
411
  #
@@ -519,6 +559,77 @@ module Aws::Lambda
519
559
  include Aws::Structure
520
560
  end
521
561
 
562
+ # The [cross-origin resource sharing (CORS)][1] settings for your Lambda
563
+ # function URL. Use CORS to grant access to your function URL from any
564
+ # origin. You can also use CORS to control access for specific HTTP
565
+ # headers and methods in requests to your function URL.
566
+ #
567
+ #
568
+ #
569
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
570
+ #
571
+ # @note When making an API call, you may pass Cors
572
+ # data as a hash:
573
+ #
574
+ # {
575
+ # allow_credentials: false,
576
+ # allow_headers: ["Header"],
577
+ # allow_methods: ["Method"],
578
+ # allow_origins: ["Origin"],
579
+ # expose_headers: ["Header"],
580
+ # max_age: 1,
581
+ # }
582
+ #
583
+ # @!attribute [rw] allow_credentials
584
+ # Whether to allow cookies or other credentials in requests to your
585
+ # function URL. The default is `false`.
586
+ # @return [Boolean]
587
+ #
588
+ # @!attribute [rw] allow_headers
589
+ # The HTTP headers that origins can include in requests to your
590
+ # function URL. For example: `Date`, `Keep-Alive`, `X-Custom-Header`.
591
+ # @return [Array<String>]
592
+ #
593
+ # @!attribute [rw] allow_methods
594
+ # The HTTP methods that are allowed when calling your function URL.
595
+ # For example: `GET`, `POST`, `DELETE`, or the wildcard character
596
+ # (`*`).
597
+ # @return [Array<String>]
598
+ #
599
+ # @!attribute [rw] allow_origins
600
+ # The origins that can access your function URL. You can list any
601
+ # number of specific origins, separated by a comma. For example:
602
+ # `https://www.example.com`, `http://localhost:60905`.
603
+ #
604
+ # Alternatively, you can grant access to all origins using the
605
+ # wildcard character (`*`).
606
+ # @return [Array<String>]
607
+ #
608
+ # @!attribute [rw] expose_headers
609
+ # The HTTP headers in your function response that you want to expose
610
+ # to origins that call your function URL. For example: `Date`,
611
+ # `Keep-Alive`, `X-Custom-Header`.
612
+ # @return [Array<String>]
613
+ #
614
+ # @!attribute [rw] max_age
615
+ # The maximum amount of time, in seconds, that web browsers can cache
616
+ # results of a preflight request. By default, this is set to `0`,
617
+ # which means that the browser doesn't cache results.
618
+ # @return [Integer]
619
+ #
620
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Cors AWS API Documentation
621
+ #
622
+ class Cors < Struct.new(
623
+ :allow_credentials,
624
+ :allow_headers,
625
+ :allow_methods,
626
+ :allow_origins,
627
+ :expose_headers,
628
+ :max_age)
629
+ SENSITIVE = []
630
+ include Aws::Structure
631
+ end
632
+
522
633
  # @note When making an API call, you may pass CreateAliasRequest
523
634
  # data as a hash:
524
635
  #
@@ -675,6 +786,12 @@ module Aws::Lambda
675
786
  # },
676
787
  # },
677
788
  # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
789
+ # amazon_managed_kafka_event_source_config: {
790
+ # consumer_group_id: "URI",
791
+ # },
792
+ # self_managed_kafka_event_source_config: {
793
+ # consumer_group_id: "URI",
794
+ # },
678
795
  # }
679
796
  #
680
797
  # @!attribute [rw] event_source_arn
@@ -725,7 +842,7 @@ module Aws::Lambda
725
842
  #
726
843
  # * **Amazon Kinesis** - Default 100. Max 10,000.
727
844
  #
728
- # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
845
+ # * **Amazon DynamoDB Streams** - Default 100. Max 10,000.
729
846
  #
730
847
  # * **Amazon Simple Queue Service** - Default 10. For standard queues
731
848
  # the max is 10,000. For FIFO queues the max is 10.
@@ -733,7 +850,7 @@ module Aws::Lambda
733
850
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
734
851
  # 10,000.
735
852
  #
736
- # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
853
+ # * **Self-managed Apache Kafka** - Default 100. Max 10,000.
737
854
  #
738
855
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
739
856
  # @return [Integer]
@@ -767,7 +884,7 @@ module Aws::Lambda
767
884
  # @!attribute [rw] starting_position
768
885
  # The position in a stream from which to start reading. Required for
769
886
  # Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
770
- # `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
887
+ # `AT_TIMESTAMP` is supported only for Amazon Kinesis streams.
771
888
  # @return [String]
772
889
  #
773
890
  # @!attribute [rw] starting_position_timestamp
@@ -793,12 +910,12 @@ module Aws::Lambda
793
910
  # @!attribute [rw] maximum_retry_attempts
794
911
  # (Streams only) Discard records after the specified number of
795
912
  # retries. The default value is infinite (-1). When set to infinite
796
- # (-1), failed records will be retried until the record expires.
913
+ # (-1), failed records are retried until the record expires.
797
914
  # @return [Integer]
798
915
  #
799
916
  # @!attribute [rw] tumbling_window_in_seconds
800
917
  # (Streams only) The duration in seconds of a processing window. The
801
- # range is between 1 second up to 900 seconds.
918
+ # range is between 1 second and 900 seconds.
802
919
  # @return [Integer]
803
920
  #
804
921
  # @!attribute [rw] topics
@@ -815,7 +932,7 @@ module Aws::Lambda
815
932
  # @return [Array<Types::SourceAccessConfiguration>]
816
933
  #
817
934
  # @!attribute [rw] self_managed_event_source
818
- # The Self-Managed Apache Kafka cluster to send records.
935
+ # The self-managed Apache Kafka cluster to receive records from.
819
936
  # @return [Types::SelfManagedEventSource]
820
937
  #
821
938
  # @!attribute [rw] function_response_types
@@ -823,6 +940,16 @@ module Aws::Lambda
823
940
  # applied to the event source mapping.
824
941
  # @return [Array<String>]
825
942
  #
943
+ # @!attribute [rw] amazon_managed_kafka_event_source_config
944
+ # Specific configuration settings for an Amazon Managed Streaming for
945
+ # Apache Kafka (Amazon MSK) event source.
946
+ # @return [Types::AmazonManagedKafkaEventSourceConfig]
947
+ #
948
+ # @!attribute [rw] self_managed_kafka_event_source_config
949
+ # Specific configuration settings for a self-managed Apache Kafka
950
+ # event source.
951
+ # @return [Types::SelfManagedKafkaEventSourceConfig]
952
+ #
826
953
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
827
954
  #
828
955
  class CreateEventSourceMappingRequest < Struct.new(
@@ -844,7 +971,9 @@ module Aws::Lambda
844
971
  :queues,
845
972
  :source_access_configurations,
846
973
  :self_managed_event_source,
847
- :function_response_types)
974
+ :function_response_types,
975
+ :amazon_managed_kafka_event_source_config,
976
+ :self_managed_kafka_event_source_config)
848
977
  SENSITIVE = []
849
978
  include Aws::Structure
850
979
  end
@@ -854,7 +983,7 @@ module Aws::Lambda
854
983
  #
855
984
  # {
856
985
  # function_name: "FunctionName", # required
857
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
986
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
858
987
  # role: "RoleArn", # required
859
988
  # handler: "Handler",
860
989
  # code: { # required
@@ -1106,6 +1235,125 @@ module Aws::Lambda
1106
1235
  include Aws::Structure
1107
1236
  end
1108
1237
 
1238
+ # @note When making an API call, you may pass CreateFunctionUrlConfigRequest
1239
+ # data as a hash:
1240
+ #
1241
+ # {
1242
+ # function_name: "FunctionName", # required
1243
+ # qualifier: "FunctionUrlQualifier",
1244
+ # auth_type: "NONE", # required, accepts NONE, AWS_IAM
1245
+ # cors: {
1246
+ # allow_credentials: false,
1247
+ # allow_headers: ["Header"],
1248
+ # allow_methods: ["Method"],
1249
+ # allow_origins: ["Origin"],
1250
+ # expose_headers: ["Header"],
1251
+ # max_age: 1,
1252
+ # },
1253
+ # }
1254
+ #
1255
+ # @!attribute [rw] function_name
1256
+ # The name of the Lambda function.
1257
+ #
1258
+ # **Name formats**
1259
+ #
1260
+ # * **Function name** - `my-function`.
1261
+ #
1262
+ # * **Function ARN** -
1263
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
1264
+ #
1265
+ # * **Partial ARN** - `123456789012:function:my-function`.
1266
+ #
1267
+ # The length constraint applies only to the full ARN. If you specify
1268
+ # only the function name, it is limited to 64 characters in length.
1269
+ # @return [String]
1270
+ #
1271
+ # @!attribute [rw] qualifier
1272
+ # The alias name.
1273
+ # @return [String]
1274
+ #
1275
+ # @!attribute [rw] auth_type
1276
+ # The type of authentication that your function URL uses. Set to
1277
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
1278
+ # users only. Set to `NONE` if you want to bypass IAM authentication
1279
+ # to create a public endpoint. For more information, see [ Security
1280
+ # and auth model for Lambda function URLs][1].
1281
+ #
1282
+ #
1283
+ #
1284
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
1285
+ # @return [String]
1286
+ #
1287
+ # @!attribute [rw] cors
1288
+ # The [cross-origin resource sharing (CORS)][1] settings for your
1289
+ # function URL.
1290
+ #
1291
+ #
1292
+ #
1293
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
1294
+ # @return [Types::Cors]
1295
+ #
1296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfigRequest AWS API Documentation
1297
+ #
1298
+ class CreateFunctionUrlConfigRequest < Struct.new(
1299
+ :function_name,
1300
+ :qualifier,
1301
+ :auth_type,
1302
+ :cors)
1303
+ SENSITIVE = []
1304
+ include Aws::Structure
1305
+ end
1306
+
1307
+ # @!attribute [rw] function_url
1308
+ # The HTTP URL endpoint for your function.
1309
+ # @return [String]
1310
+ #
1311
+ # @!attribute [rw] function_arn
1312
+ # The Amazon Resource Name (ARN) of your function.
1313
+ # @return [String]
1314
+ #
1315
+ # @!attribute [rw] auth_type
1316
+ # The type of authentication that your function URL uses. Set to
1317
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
1318
+ # users only. Set to `NONE` if you want to bypass IAM authentication
1319
+ # to create a public endpoint. For more information, see [ Security
1320
+ # and auth model for Lambda function URLs][1].
1321
+ #
1322
+ #
1323
+ #
1324
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
1325
+ # @return [String]
1326
+ #
1327
+ # @!attribute [rw] cors
1328
+ # The [cross-origin resource sharing (CORS)][1] settings for your
1329
+ # function URL.
1330
+ #
1331
+ #
1332
+ #
1333
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
1334
+ # @return [Types::Cors]
1335
+ #
1336
+ # @!attribute [rw] creation_time
1337
+ # When the function URL was created, in [ISO-8601 format][1]
1338
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
1339
+ #
1340
+ #
1341
+ #
1342
+ # [1]: https://www.w3.org/TR/NOTE-datetime
1343
+ # @return [Time]
1344
+ #
1345
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfigResponse AWS API Documentation
1346
+ #
1347
+ class CreateFunctionUrlConfigResponse < Struct.new(
1348
+ :function_url,
1349
+ :function_arn,
1350
+ :auth_type,
1351
+ :cors,
1352
+ :creation_time)
1353
+ SENSITIVE = []
1354
+ include Aws::Structure
1355
+ end
1356
+
1109
1357
  # The [dead-letter queue][1] for failed asynchronous invocations.
1110
1358
  #
1111
1359
  #
@@ -1353,6 +1601,43 @@ module Aws::Lambda
1353
1601
  include Aws::Structure
1354
1602
  end
1355
1603
 
1604
+ # @note When making an API call, you may pass DeleteFunctionUrlConfigRequest
1605
+ # data as a hash:
1606
+ #
1607
+ # {
1608
+ # function_name: "FunctionName", # required
1609
+ # qualifier: "FunctionUrlQualifier",
1610
+ # }
1611
+ #
1612
+ # @!attribute [rw] function_name
1613
+ # The name of the Lambda function.
1614
+ #
1615
+ # **Name formats**
1616
+ #
1617
+ # * **Function name** - `my-function`.
1618
+ #
1619
+ # * **Function ARN** -
1620
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
1621
+ #
1622
+ # * **Partial ARN** - `123456789012:function:my-function`.
1623
+ #
1624
+ # The length constraint applies only to the full ARN. If you specify
1625
+ # only the function name, it is limited to 64 characters in length.
1626
+ # @return [String]
1627
+ #
1628
+ # @!attribute [rw] qualifier
1629
+ # The alias name.
1630
+ # @return [String]
1631
+ #
1632
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfigRequest AWS API Documentation
1633
+ #
1634
+ class DeleteFunctionUrlConfigRequest < Struct.new(
1635
+ :function_name,
1636
+ :qualifier)
1637
+ SENSITIVE = []
1638
+ include Aws::Structure
1639
+ end
1640
+
1356
1641
  # @note When making an API call, you may pass DeleteLayerVersionRequest
1357
1642
  # data as a hash:
1358
1643
  #
@@ -1822,10 +2107,20 @@ module Aws::Lambda
1822
2107
  # @return [Integer]
1823
2108
  #
1824
2109
  # @!attribute [rw] function_response_types
1825
- # (Streams only) A list of current response type enums applied to the
1826
- # event source mapping.
2110
+ # (Streams and Amazon SQS) A list of current response type enums
2111
+ # applied to the event source mapping.
1827
2112
  # @return [Array<String>]
1828
2113
  #
2114
+ # @!attribute [rw] amazon_managed_kafka_event_source_config
2115
+ # Specific configuration settings for an Amazon Managed Streaming for
2116
+ # Apache Kafka (Amazon MSK) event source.
2117
+ # @return [Types::AmazonManagedKafkaEventSourceConfig]
2118
+ #
2119
+ # @!attribute [rw] self_managed_kafka_event_source_config
2120
+ # Specific configuration settings for a self-managed Apache Kafka
2121
+ # event source.
2122
+ # @return [Types::SelfManagedKafkaEventSourceConfig]
2123
+ #
1829
2124
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
1830
2125
  #
1831
2126
  class EventSourceMappingConfiguration < Struct.new(
@@ -1851,7 +2146,9 @@ module Aws::Lambda
1851
2146
  :bisect_batch_on_function_error,
1852
2147
  :maximum_retry_attempts,
1853
2148
  :tumbling_window_in_seconds,
1854
- :function_response_types)
2149
+ :function_response_types,
2150
+ :amazon_managed_kafka_event_source_config,
2151
+ :self_managed_kafka_event_source_config)
1855
2152
  SENSITIVE = []
1856
2153
  include Aws::Structure
1857
2154
  end
@@ -2275,6 +2572,68 @@ module Aws::Lambda
2275
2572
  include Aws::Structure
2276
2573
  end
2277
2574
 
2575
+ # Details about a Lambda function URL.
2576
+ #
2577
+ # @!attribute [rw] function_url
2578
+ # The HTTP URL endpoint for your function.
2579
+ # @return [String]
2580
+ #
2581
+ # @!attribute [rw] function_arn
2582
+ # The Amazon Resource Name (ARN) of your function.
2583
+ # @return [String]
2584
+ #
2585
+ # @!attribute [rw] creation_time
2586
+ # When the function URL was created, in [ISO-8601 format][1]
2587
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
2588
+ #
2589
+ #
2590
+ #
2591
+ # [1]: https://www.w3.org/TR/NOTE-datetime
2592
+ # @return [Time]
2593
+ #
2594
+ # @!attribute [rw] last_modified_time
2595
+ # When the function URL configuration was last updated, in [ISO-8601
2596
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
2597
+ #
2598
+ #
2599
+ #
2600
+ # [1]: https://www.w3.org/TR/NOTE-datetime
2601
+ # @return [Time]
2602
+ #
2603
+ # @!attribute [rw] cors
2604
+ # The [cross-origin resource sharing (CORS)][1] settings for your
2605
+ # function URL.
2606
+ #
2607
+ #
2608
+ #
2609
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
2610
+ # @return [Types::Cors]
2611
+ #
2612
+ # @!attribute [rw] auth_type
2613
+ # The type of authentication that your function URL uses. Set to
2614
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
2615
+ # users only. Set to `NONE` if you want to bypass IAM authentication
2616
+ # to create a public endpoint. For more information, see [ Security
2617
+ # and auth model for Lambda function URLs][1].
2618
+ #
2619
+ #
2620
+ #
2621
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
2622
+ # @return [String]
2623
+ #
2624
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionUrlConfig AWS API Documentation
2625
+ #
2626
+ class FunctionUrlConfig < Struct.new(
2627
+ :function_url,
2628
+ :function_arn,
2629
+ :creation_time,
2630
+ :last_modified_time,
2631
+ :cors,
2632
+ :auth_type)
2633
+ SENSITIVE = []
2634
+ include Aws::Structure
2635
+ end
2636
+
2278
2637
  # @api private
2279
2638
  #
2280
2639
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest AWS API Documentation
@@ -2645,6 +3004,103 @@ module Aws::Lambda
2645
3004
  include Aws::Structure
2646
3005
  end
2647
3006
 
3007
+ # @note When making an API call, you may pass GetFunctionUrlConfigRequest
3008
+ # data as a hash:
3009
+ #
3010
+ # {
3011
+ # function_name: "FunctionName", # required
3012
+ # qualifier: "FunctionUrlQualifier",
3013
+ # }
3014
+ #
3015
+ # @!attribute [rw] function_name
3016
+ # The name of the Lambda function.
3017
+ #
3018
+ # **Name formats**
3019
+ #
3020
+ # * **Function name** - `my-function`.
3021
+ #
3022
+ # * **Function ARN** -
3023
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
3024
+ #
3025
+ # * **Partial ARN** - `123456789012:function:my-function`.
3026
+ #
3027
+ # The length constraint applies only to the full ARN. If you specify
3028
+ # only the function name, it is limited to 64 characters in length.
3029
+ # @return [String]
3030
+ #
3031
+ # @!attribute [rw] qualifier
3032
+ # The alias name.
3033
+ # @return [String]
3034
+ #
3035
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfigRequest AWS API Documentation
3036
+ #
3037
+ class GetFunctionUrlConfigRequest < Struct.new(
3038
+ :function_name,
3039
+ :qualifier)
3040
+ SENSITIVE = []
3041
+ include Aws::Structure
3042
+ end
3043
+
3044
+ # @!attribute [rw] function_url
3045
+ # The HTTP URL endpoint for your function.
3046
+ # @return [String]
3047
+ #
3048
+ # @!attribute [rw] function_arn
3049
+ # The Amazon Resource Name (ARN) of your function.
3050
+ # @return [String]
3051
+ #
3052
+ # @!attribute [rw] auth_type
3053
+ # The type of authentication that your function URL uses. Set to
3054
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
3055
+ # users only. Set to `NONE` if you want to bypass IAM authentication
3056
+ # to create a public endpoint. For more information, see [ Security
3057
+ # and auth model for Lambda function URLs][1].
3058
+ #
3059
+ #
3060
+ #
3061
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
3062
+ # @return [String]
3063
+ #
3064
+ # @!attribute [rw] cors
3065
+ # The [cross-origin resource sharing (CORS)][1] settings for your
3066
+ # function URL.
3067
+ #
3068
+ #
3069
+ #
3070
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
3071
+ # @return [Types::Cors]
3072
+ #
3073
+ # @!attribute [rw] creation_time
3074
+ # When the function URL was created, in [ISO-8601 format][1]
3075
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
3076
+ #
3077
+ #
3078
+ #
3079
+ # [1]: https://www.w3.org/TR/NOTE-datetime
3080
+ # @return [Time]
3081
+ #
3082
+ # @!attribute [rw] last_modified_time
3083
+ # When the function URL configuration was last updated, in [ISO-8601
3084
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
3085
+ #
3086
+ #
3087
+ #
3088
+ # [1]: https://www.w3.org/TR/NOTE-datetime
3089
+ # @return [Time]
3090
+ #
3091
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfigResponse AWS API Documentation
3092
+ #
3093
+ class GetFunctionUrlConfigResponse < Struct.new(
3094
+ :function_url,
3095
+ :function_arn,
3096
+ :auth_type,
3097
+ :cors,
3098
+ :creation_time,
3099
+ :last_modified_time)
3100
+ SENSITIVE = []
3101
+ include Aws::Structure
3102
+ end
3103
+
2648
3104
  # @note When making an API call, you may pass GetLayerVersionByArnRequest
2649
3105
  # data as a hash:
2650
3106
  #
@@ -3833,6 +4289,69 @@ module Aws::Lambda
3833
4289
  include Aws::Structure
3834
4290
  end
3835
4291
 
4292
+ # @note When making an API call, you may pass ListFunctionUrlConfigsRequest
4293
+ # data as a hash:
4294
+ #
4295
+ # {
4296
+ # function_name: "FunctionName", # required
4297
+ # marker: "String",
4298
+ # max_items: 1,
4299
+ # }
4300
+ #
4301
+ # @!attribute [rw] function_name
4302
+ # The name of the Lambda function.
4303
+ #
4304
+ # **Name formats**
4305
+ #
4306
+ # * **Function name** - `my-function`.
4307
+ #
4308
+ # * **Function ARN** -
4309
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
4310
+ #
4311
+ # * **Partial ARN** - `123456789012:function:my-function`.
4312
+ #
4313
+ # The length constraint applies only to the full ARN. If you specify
4314
+ # only the function name, it is limited to 64 characters in length.
4315
+ # @return [String]
4316
+ #
4317
+ # @!attribute [rw] marker
4318
+ # Specify the pagination token that's returned by a previous request
4319
+ # to retrieve the next page of results.
4320
+ # @return [String]
4321
+ #
4322
+ # @!attribute [rw] max_items
4323
+ # The maximum number of function URLs to return in the response. Note
4324
+ # that `ListFunctionUrlConfigs` returns a maximum of 50 items in each
4325
+ # response, even if you set the number higher.
4326
+ # @return [Integer]
4327
+ #
4328
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigsRequest AWS API Documentation
4329
+ #
4330
+ class ListFunctionUrlConfigsRequest < Struct.new(
4331
+ :function_name,
4332
+ :marker,
4333
+ :max_items)
4334
+ SENSITIVE = []
4335
+ include Aws::Structure
4336
+ end
4337
+
4338
+ # @!attribute [rw] function_url_configs
4339
+ # A list of function URL configurations.
4340
+ # @return [Array<Types::FunctionUrlConfig>]
4341
+ #
4342
+ # @!attribute [rw] next_marker
4343
+ # The pagination token that's included if more results are available.
4344
+ # @return [String]
4345
+ #
4346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigsResponse AWS API Documentation
4347
+ #
4348
+ class ListFunctionUrlConfigsResponse < Struct.new(
4349
+ :function_url_configs,
4350
+ :next_marker)
4351
+ SENSITIVE = []
4352
+ include Aws::Structure
4353
+ end
4354
+
3836
4355
  # @note When making an API call, you may pass ListFunctionsByCodeSigningConfigRequest
3837
4356
  # data as a hash:
3838
4357
  #
@@ -3951,7 +4470,7 @@ module Aws::Lambda
3951
4470
  # data as a hash:
3952
4471
  #
3953
4472
  # {
3954
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4473
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3955
4474
  # layer_name: "LayerName", # required
3956
4475
  # marker: "String",
3957
4476
  # max_items: 1,
@@ -4016,7 +4535,7 @@ module Aws::Lambda
4016
4535
  # data as a hash:
4017
4536
  #
4018
4537
  # {
4019
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4538
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4020
4539
  # marker: "String",
4021
4540
  # max_items: 1,
4022
4541
  # compatible_architecture: "x86_64", # accepts x86_64, arm64
@@ -4391,7 +4910,7 @@ module Aws::Lambda
4391
4910
  # s3_object_version: "S3ObjectVersion",
4392
4911
  # zip_file: "data",
4393
4912
  # },
4394
- # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4913
+ # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4395
4914
  # license_info: "LicenseInfo",
4396
4915
  # compatible_architectures: ["x86_64"], # accepts x86_64, arm64
4397
4916
  # }
@@ -5056,6 +5575,32 @@ module Aws::Lambda
5056
5575
  include Aws::Structure
5057
5576
  end
5058
5577
 
5578
+ # Specific configuration settings for a self-managed Apache Kafka event
5579
+ # source.
5580
+ #
5581
+ # @note When making an API call, you may pass SelfManagedKafkaEventSourceConfig
5582
+ # data as a hash:
5583
+ #
5584
+ # {
5585
+ # consumer_group_id: "URI",
5586
+ # }
5587
+ #
5588
+ # @!attribute [rw] consumer_group_id
5589
+ # The identifier for the Kafka consumer group to join. The consumer
5590
+ # group ID must be unique among all your Kafka event sources. After
5591
+ # creating a Kafka event source mapping with the consumer group ID
5592
+ # specified, you cannot update this value. For more information, see
5593
+ # services-msk-consumer-group-id.
5594
+ # @return [String]
5595
+ #
5596
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SelfManagedKafkaEventSourceConfig AWS API Documentation
5597
+ #
5598
+ class SelfManagedKafkaEventSourceConfig < Struct.new(
5599
+ :consumer_group_id)
5600
+ SENSITIVE = []
5601
+ include Aws::Structure
5602
+ end
5603
+
5059
5604
  # The Lambda service encountered an internal error.
5060
5605
  #
5061
5606
  # @!attribute [rw] type
@@ -5115,7 +5660,7 @@ module Aws::Lambda
5115
5660
  # source. This property cannot be specified in an
5116
5661
  # UpdateEventSourceMapping API call.
5117
5662
  #
5118
- # * `CLIENT_CERTIFICATE_TLS_AUTH` - (Amazon MSK, Self-managed Apache
5663
+ # * `CLIENT_CERTIFICATE_TLS_AUTH` - (Amazon MSK, self-managed Apache
5119
5664
  # Kafka) The Secrets Manager ARN of your secret key containing the
5120
5665
  # certificate chain (X.509 PEM), private key (PKCS#8 PEM), and
5121
5666
  # private key password (optional) used for mutual TLS authentication
@@ -5496,7 +6041,7 @@ module Aws::Lambda
5496
6041
  #
5497
6042
  # * **Amazon Kinesis** - Default 100. Max 10,000.
5498
6043
  #
5499
- # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
6044
+ # * **Amazon DynamoDB Streams** - Default 100. Max 10,000.
5500
6045
  #
5501
6046
  # * **Amazon Simple Queue Service** - Default 10. For standard queues
5502
6047
  # the max is 10,000. For FIFO queues the max is 10.
@@ -5504,7 +6049,7 @@ module Aws::Lambda
5504
6049
  # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
5505
6050
  # 10,000.
5506
6051
  #
5507
- # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
6052
+ # * **Self-managed Apache Kafka** - Default 100. Max 10,000.
5508
6053
  #
5509
6054
  # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
5510
6055
  # @return [Integer]
@@ -5548,7 +6093,7 @@ module Aws::Lambda
5548
6093
  # @!attribute [rw] maximum_retry_attempts
5549
6094
  # (Streams only) Discard records after the specified number of
5550
6095
  # retries. The default value is infinite (-1). When set to infinite
5551
- # (-1), failed records will be retried until the record expires.
6096
+ # (-1), failed records are retried until the record expires.
5552
6097
  # @return [Integer]
5553
6098
  #
5554
6099
  # @!attribute [rw] parallelization_factor
@@ -5563,7 +6108,7 @@ module Aws::Lambda
5563
6108
  #
5564
6109
  # @!attribute [rw] tumbling_window_in_seconds
5565
6110
  # (Streams only) The duration in seconds of a processing window. The
5566
- # range is between 1 second up to 900 seconds.
6111
+ # range is between 1 second and 900 seconds.
5567
6112
  # @return [Integer]
5568
6113
  #
5569
6114
  # @!attribute [rw] function_response_types
@@ -5712,7 +6257,7 @@ module Aws::Lambda
5712
6257
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
5713
6258
  # },
5714
6259
  # },
5715
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
6260
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
5716
6261
  # dead_letter_config: {
5717
6262
  # target_arn: "ResourceArn",
5718
6263
  # },
@@ -5981,6 +6526,135 @@ module Aws::Lambda
5981
6526
  include Aws::Structure
5982
6527
  end
5983
6528
 
6529
+ # @note When making an API call, you may pass UpdateFunctionUrlConfigRequest
6530
+ # data as a hash:
6531
+ #
6532
+ # {
6533
+ # function_name: "FunctionName", # required
6534
+ # qualifier: "FunctionUrlQualifier",
6535
+ # auth_type: "NONE", # accepts NONE, AWS_IAM
6536
+ # cors: {
6537
+ # allow_credentials: false,
6538
+ # allow_headers: ["Header"],
6539
+ # allow_methods: ["Method"],
6540
+ # allow_origins: ["Origin"],
6541
+ # expose_headers: ["Header"],
6542
+ # max_age: 1,
6543
+ # },
6544
+ # }
6545
+ #
6546
+ # @!attribute [rw] function_name
6547
+ # The name of the Lambda function.
6548
+ #
6549
+ # **Name formats**
6550
+ #
6551
+ # * **Function name** - `my-function`.
6552
+ #
6553
+ # * **Function ARN** -
6554
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
6555
+ #
6556
+ # * **Partial ARN** - `123456789012:function:my-function`.
6557
+ #
6558
+ # The length constraint applies only to the full ARN. If you specify
6559
+ # only the function name, it is limited to 64 characters in length.
6560
+ # @return [String]
6561
+ #
6562
+ # @!attribute [rw] qualifier
6563
+ # The alias name.
6564
+ # @return [String]
6565
+ #
6566
+ # @!attribute [rw] auth_type
6567
+ # The type of authentication that your function URL uses. Set to
6568
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
6569
+ # users only. Set to `NONE` if you want to bypass IAM authentication
6570
+ # to create a public endpoint. For more information, see [ Security
6571
+ # and auth model for Lambda function URLs][1].
6572
+ #
6573
+ #
6574
+ #
6575
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
6576
+ # @return [String]
6577
+ #
6578
+ # @!attribute [rw] cors
6579
+ # The [cross-origin resource sharing (CORS)][1] settings for your
6580
+ # function URL.
6581
+ #
6582
+ #
6583
+ #
6584
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
6585
+ # @return [Types::Cors]
6586
+ #
6587
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigRequest AWS API Documentation
6588
+ #
6589
+ class UpdateFunctionUrlConfigRequest < Struct.new(
6590
+ :function_name,
6591
+ :qualifier,
6592
+ :auth_type,
6593
+ :cors)
6594
+ SENSITIVE = []
6595
+ include Aws::Structure
6596
+ end
6597
+
6598
+ # @!attribute [rw] function_url
6599
+ # The HTTP URL endpoint for your function.
6600
+ # @return [String]
6601
+ #
6602
+ # @!attribute [rw] function_arn
6603
+ # The Amazon Resource Name (ARN) of your function.
6604
+ # @return [String]
6605
+ #
6606
+ # @!attribute [rw] auth_type
6607
+ # The type of authentication that your function URL uses. Set to
6608
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
6609
+ # users only. Set to `NONE` if you want to bypass IAM authentication
6610
+ # to create a public endpoint. For more information, see [ Security
6611
+ # and auth model for Lambda function URLs][1].
6612
+ #
6613
+ #
6614
+ #
6615
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
6616
+ # @return [String]
6617
+ #
6618
+ # @!attribute [rw] cors
6619
+ # The [cross-origin resource sharing (CORS)][1] settings for your
6620
+ # function URL.
6621
+ #
6622
+ #
6623
+ #
6624
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
6625
+ # @return [Types::Cors]
6626
+ #
6627
+ # @!attribute [rw] creation_time
6628
+ # When the function URL was created, in [ISO-8601 format][1]
6629
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
6630
+ #
6631
+ #
6632
+ #
6633
+ # [1]: https://www.w3.org/TR/NOTE-datetime
6634
+ # @return [Time]
6635
+ #
6636
+ # @!attribute [rw] last_modified_time
6637
+ # When the function URL configuration was last updated, in [ISO-8601
6638
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
6639
+ #
6640
+ #
6641
+ #
6642
+ # [1]: https://www.w3.org/TR/NOTE-datetime
6643
+ # @return [Time]
6644
+ #
6645
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigResponse AWS API Documentation
6646
+ #
6647
+ class UpdateFunctionUrlConfigResponse < Struct.new(
6648
+ :function_url,
6649
+ :function_arn,
6650
+ :auth_type,
6651
+ :cors,
6652
+ :creation_time,
6653
+ :last_modified_time)
6654
+ SENSITIVE = []
6655
+ include Aws::Structure
6656
+ end
6657
+
5984
6658
  # The VPC security groups and subnets that are attached to a Lambda
5985
6659
  # function. For more information, see [VPC Settings][1].
5986
6660
  #