aws-sdk-lambda 1.81.0 → 1.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -519,6 +533,77 @@ module Aws::Lambda
519
533
  include Aws::Structure
520
534
  end
521
535
 
536
+ # The [cross-origin resource sharing (CORS)][1] settings for your Lambda
537
+ # function URL. Use CORS to grant access to your function URL from any
538
+ # origin. You can also use CORS to control access for specific HTTP
539
+ # headers and methods in requests to your function URL.
540
+ #
541
+ #
542
+ #
543
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
544
+ #
545
+ # @note When making an API call, you may pass Cors
546
+ # data as a hash:
547
+ #
548
+ # {
549
+ # allow_credentials: false,
550
+ # allow_headers: ["Header"],
551
+ # allow_methods: ["Method"],
552
+ # allow_origins: ["Origin"],
553
+ # expose_headers: ["Header"],
554
+ # max_age: 1,
555
+ # }
556
+ #
557
+ # @!attribute [rw] allow_credentials
558
+ # Whether to allow cookies or other credentials in requests to your
559
+ # function URL. The default is `false`.
560
+ # @return [Boolean]
561
+ #
562
+ # @!attribute [rw] allow_headers
563
+ # The HTTP headers that origins can include in requests to your
564
+ # function URL. For example: `Date`, `Keep-Alive`, `X-Custom-Header`.
565
+ # @return [Array<String>]
566
+ #
567
+ # @!attribute [rw] allow_methods
568
+ # The HTTP methods that are allowed when calling your function URL.
569
+ # For example: `GET`, `POST`, `DELETE`, or the wildcard character
570
+ # (`*`).
571
+ # @return [Array<String>]
572
+ #
573
+ # @!attribute [rw] allow_origins
574
+ # The origins that can access your function URL. You can list any
575
+ # number of specific origins, separated by a comma. For example:
576
+ # `https://www.example.com`, `http://localhost:60905`.
577
+ #
578
+ # Alternatively, you can grant access to all origins using the
579
+ # wildcard character (`*`).
580
+ # @return [Array<String>]
581
+ #
582
+ # @!attribute [rw] expose_headers
583
+ # The HTTP headers in your function response that you want to expose
584
+ # to origins that call your function URL. For example: `Date`,
585
+ # `Keep-Alive`, `X-Custom-Header`.
586
+ # @return [Array<String>]
587
+ #
588
+ # @!attribute [rw] max_age
589
+ # The maximum amount of time, in seconds, that web browsers can cache
590
+ # results of a preflight request. By default, this is set to `0`,
591
+ # which means that the browser doesn't cache results.
592
+ # @return [Integer]
593
+ #
594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Cors AWS API Documentation
595
+ #
596
+ class Cors < Struct.new(
597
+ :allow_credentials,
598
+ :allow_headers,
599
+ :allow_methods,
600
+ :allow_origins,
601
+ :expose_headers,
602
+ :max_age)
603
+ SENSITIVE = []
604
+ include Aws::Structure
605
+ end
606
+
522
607
  # @note When making an API call, you may pass CreateAliasRequest
523
608
  # data as a hash:
524
609
  #
@@ -725,7 +810,7 @@ module Aws::Lambda
725
810
  #
726
811
  # * **Amazon Kinesis** - Default 100. Max 10,000.
727
812
  #
728
- # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
813
+ # * **Amazon DynamoDB Streams** - Default 100. Max 10,000.
729
814
  #
730
815
  # * **Amazon Simple Queue Service** - Default 10. For standard queues
731
816
  # the max is 10,000. For FIFO queues the max is 10.
@@ -854,7 +939,7 @@ module Aws::Lambda
854
939
  #
855
940
  # {
856
941
  # 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
942
+ # 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
943
  # role: "RoleArn", # required
859
944
  # handler: "Handler",
860
945
  # code: { # required
@@ -902,6 +987,9 @@ module Aws::Lambda
902
987
  # },
903
988
  # code_signing_config_arn: "CodeSigningConfigArn",
904
989
  # architectures: ["x86_64"], # accepts x86_64, arm64
990
+ # ephemeral_storage: {
991
+ # size: 1, # required
992
+ # },
905
993
  # }
906
994
  #
907
995
  # @!attribute [rw] function_name
@@ -1069,6 +1157,11 @@ module Aws::Lambda
1069
1157
  # default value is `x86_64`.
1070
1158
  # @return [Array<String>]
1071
1159
  #
1160
+ # @!attribute [rw] ephemeral_storage
1161
+ # The size of the function’s /tmp directory in MB. The default value
1162
+ # is 512, but can be any whole number between 512 and 10240 MB.
1163
+ # @return [Types::EphemeralStorage]
1164
+ #
1072
1165
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
1073
1166
  #
1074
1167
  class CreateFunctionRequest < Struct.new(
@@ -1092,7 +1185,127 @@ module Aws::Lambda
1092
1185
  :file_system_configs,
1093
1186
  :image_config,
1094
1187
  :code_signing_config_arn,
1095
- :architectures)
1188
+ :architectures,
1189
+ :ephemeral_storage)
1190
+ SENSITIVE = []
1191
+ include Aws::Structure
1192
+ end
1193
+
1194
+ # @note When making an API call, you may pass CreateFunctionUrlConfigRequest
1195
+ # data as a hash:
1196
+ #
1197
+ # {
1198
+ # function_name: "FunctionName", # required
1199
+ # qualifier: "FunctionUrlQualifier",
1200
+ # auth_type: "NONE", # required, accepts NONE, AWS_IAM
1201
+ # cors: {
1202
+ # allow_credentials: false,
1203
+ # allow_headers: ["Header"],
1204
+ # allow_methods: ["Method"],
1205
+ # allow_origins: ["Origin"],
1206
+ # expose_headers: ["Header"],
1207
+ # max_age: 1,
1208
+ # },
1209
+ # }
1210
+ #
1211
+ # @!attribute [rw] function_name
1212
+ # The name of the Lambda function.
1213
+ #
1214
+ # **Name formats**
1215
+ #
1216
+ # * **Function name** - `my-function`.
1217
+ #
1218
+ # * **Function ARN** -
1219
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
1220
+ #
1221
+ # * **Partial ARN** - `123456789012:function:my-function`.
1222
+ #
1223
+ # The length constraint applies only to the full ARN. If you specify
1224
+ # only the function name, it is limited to 64 characters in length.
1225
+ # @return [String]
1226
+ #
1227
+ # @!attribute [rw] qualifier
1228
+ # The alias name.
1229
+ # @return [String]
1230
+ #
1231
+ # @!attribute [rw] auth_type
1232
+ # The type of authentication that your function URL uses. Set to
1233
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
1234
+ # users only. Set to `NONE` if you want to bypass IAM authentication
1235
+ # to create a public endpoint. For more information, see [ Security
1236
+ # and auth model for Lambda function URLs][1].
1237
+ #
1238
+ #
1239
+ #
1240
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
1241
+ # @return [String]
1242
+ #
1243
+ # @!attribute [rw] cors
1244
+ # The [cross-origin resource sharing (CORS)][1] settings for your
1245
+ # function URL.
1246
+ #
1247
+ #
1248
+ #
1249
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
1250
+ # @return [Types::Cors]
1251
+ #
1252
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfigRequest AWS API Documentation
1253
+ #
1254
+ class CreateFunctionUrlConfigRequest < Struct.new(
1255
+ :function_name,
1256
+ :qualifier,
1257
+ :auth_type,
1258
+ :cors)
1259
+ SENSITIVE = []
1260
+ include Aws::Structure
1261
+ end
1262
+
1263
+ # @!attribute [rw] function_url
1264
+ # The HTTP URL endpoint for your function.
1265
+ # @return [String]
1266
+ #
1267
+ # @!attribute [rw] function_arn
1268
+ # The Amazon Resource Name (ARN) of your function.
1269
+ # @return [String]
1270
+ #
1271
+ # @!attribute [rw] auth_type
1272
+ # The type of authentication that your function URL uses. Set to
1273
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
1274
+ # users only. Set to `NONE` if you want to bypass IAM authentication
1275
+ # to create a public endpoint. For more information, see [ Security
1276
+ # and auth model for Lambda function URLs][1].
1277
+ #
1278
+ #
1279
+ #
1280
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
1281
+ # @return [String]
1282
+ #
1283
+ # @!attribute [rw] cors
1284
+ # The [cross-origin resource sharing (CORS)][1] settings for your
1285
+ # function URL.
1286
+ #
1287
+ #
1288
+ #
1289
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
1290
+ # @return [Types::Cors]
1291
+ #
1292
+ # @!attribute [rw] creation_time
1293
+ # When the function URL was created, in [ISO-8601 format][1]
1294
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
1295
+ #
1296
+ #
1297
+ #
1298
+ # [1]: https://www.w3.org/TR/NOTE-datetime
1299
+ # @return [Time]
1300
+ #
1301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfigResponse AWS API Documentation
1302
+ #
1303
+ class CreateFunctionUrlConfigResponse < Struct.new(
1304
+ :function_url,
1305
+ :function_arn,
1306
+ :auth_type,
1307
+ :cors,
1308
+ :creation_time)
1096
1309
  SENSITIVE = []
1097
1310
  include Aws::Structure
1098
1311
  end
@@ -1344,6 +1557,43 @@ module Aws::Lambda
1344
1557
  include Aws::Structure
1345
1558
  end
1346
1559
 
1560
+ # @note When making an API call, you may pass DeleteFunctionUrlConfigRequest
1561
+ # data as a hash:
1562
+ #
1563
+ # {
1564
+ # function_name: "FunctionName", # required
1565
+ # qualifier: "FunctionUrlQualifier",
1566
+ # }
1567
+ #
1568
+ # @!attribute [rw] function_name
1569
+ # The name of the Lambda function.
1570
+ #
1571
+ # **Name formats**
1572
+ #
1573
+ # * **Function name** - `my-function`.
1574
+ #
1575
+ # * **Function ARN** -
1576
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
1577
+ #
1578
+ # * **Partial ARN** - `123456789012:function:my-function`.
1579
+ #
1580
+ # The length constraint applies only to the full ARN. If you specify
1581
+ # only the function name, it is limited to 64 characters in length.
1582
+ # @return [String]
1583
+ #
1584
+ # @!attribute [rw] qualifier
1585
+ # The alias name.
1586
+ # @return [String]
1587
+ #
1588
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfigRequest AWS API Documentation
1589
+ #
1590
+ class DeleteFunctionUrlConfigRequest < Struct.new(
1591
+ :function_name,
1592
+ :qualifier)
1593
+ SENSITIVE = []
1594
+ include Aws::Structure
1595
+ end
1596
+
1347
1597
  # @note When making an API call, you may pass DeleteLayerVersionRequest
1348
1598
  # data as a hash:
1349
1599
  #
@@ -1659,6 +1909,28 @@ module Aws::Lambda
1659
1909
  include Aws::Structure
1660
1910
  end
1661
1911
 
1912
+ # The size of the function’s /tmp directory in MB. The default value is
1913
+ # 512, but can be any whole number between 512 and 10240 MB.
1914
+ #
1915
+ # @note When making an API call, you may pass EphemeralStorage
1916
+ # data as a hash:
1917
+ #
1918
+ # {
1919
+ # size: 1, # required
1920
+ # }
1921
+ #
1922
+ # @!attribute [rw] size
1923
+ # The size of the function’s /tmp directory.
1924
+ # @return [Integer]
1925
+ #
1926
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EphemeralStorage AWS API Documentation
1927
+ #
1928
+ class EphemeralStorage < Struct.new(
1929
+ :size)
1930
+ SENSITIVE = []
1931
+ include Aws::Structure
1932
+ end
1933
+
1662
1934
  # A mapping between an Amazon Web Services resource and a Lambda
1663
1935
  # function. For details, see CreateEventSourceMapping.
1664
1936
  #
@@ -1791,8 +2063,8 @@ module Aws::Lambda
1791
2063
  # @return [Integer]
1792
2064
  #
1793
2065
  # @!attribute [rw] function_response_types
1794
- # (Streams only) A list of current response type enums applied to the
1795
- # event source mapping.
2066
+ # (Streams and Amazon SQS) A list of current response type enums
2067
+ # applied to the event source mapping.
1796
2068
  # @return [Array<String>]
1797
2069
  #
1798
2070
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
@@ -2153,6 +2425,11 @@ module Aws::Lambda
2153
2425
  # default architecture value is `x86_64`.
2154
2426
  # @return [Array<String>]
2155
2427
  #
2428
+ # @!attribute [rw] ephemeral_storage
2429
+ # The size of the function’s /tmp directory in MB. The default value
2430
+ # is 512, but can be any whole number between 512 and 10240 MB.
2431
+ # @return [Types::EphemeralStorage]
2432
+ #
2156
2433
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
2157
2434
  #
2158
2435
  class FunctionConfiguration < Struct.new(
@@ -2187,7 +2464,8 @@ module Aws::Lambda
2187
2464
  :image_config_response,
2188
2465
  :signing_profile_version_arn,
2189
2466
  :signing_job_arn,
2190
- :architectures)
2467
+ :architectures,
2468
+ :ephemeral_storage)
2191
2469
  SENSITIVE = []
2192
2470
  include Aws::Structure
2193
2471
  end
@@ -2238,6 +2516,68 @@ module Aws::Lambda
2238
2516
  include Aws::Structure
2239
2517
  end
2240
2518
 
2519
+ # Details about a Lambda function URL.
2520
+ #
2521
+ # @!attribute [rw] function_url
2522
+ # The HTTP URL endpoint for your function.
2523
+ # @return [String]
2524
+ #
2525
+ # @!attribute [rw] function_arn
2526
+ # The Amazon Resource Name (ARN) of your function.
2527
+ # @return [String]
2528
+ #
2529
+ # @!attribute [rw] creation_time
2530
+ # When the function URL was created, in [ISO-8601 format][1]
2531
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
2532
+ #
2533
+ #
2534
+ #
2535
+ # [1]: https://www.w3.org/TR/NOTE-datetime
2536
+ # @return [Time]
2537
+ #
2538
+ # @!attribute [rw] last_modified_time
2539
+ # When the function URL configuration was last updated, in [ISO-8601
2540
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
2541
+ #
2542
+ #
2543
+ #
2544
+ # [1]: https://www.w3.org/TR/NOTE-datetime
2545
+ # @return [Time]
2546
+ #
2547
+ # @!attribute [rw] cors
2548
+ # The [cross-origin resource sharing (CORS)][1] settings for your
2549
+ # function URL.
2550
+ #
2551
+ #
2552
+ #
2553
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
2554
+ # @return [Types::Cors]
2555
+ #
2556
+ # @!attribute [rw] auth_type
2557
+ # The type of authentication that your function URL uses. Set to
2558
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
2559
+ # users only. Set to `NONE` if you want to bypass IAM authentication
2560
+ # to create a public endpoint. For more information, see [ Security
2561
+ # and auth model for Lambda function URLs][1].
2562
+ #
2563
+ #
2564
+ #
2565
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
2566
+ # @return [String]
2567
+ #
2568
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionUrlConfig AWS API Documentation
2569
+ #
2570
+ class FunctionUrlConfig < Struct.new(
2571
+ :function_url,
2572
+ :function_arn,
2573
+ :creation_time,
2574
+ :last_modified_time,
2575
+ :cors,
2576
+ :auth_type)
2577
+ SENSITIVE = []
2578
+ include Aws::Structure
2579
+ end
2580
+
2241
2581
  # @api private
2242
2582
  #
2243
2583
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest AWS API Documentation
@@ -2608,6 +2948,103 @@ module Aws::Lambda
2608
2948
  include Aws::Structure
2609
2949
  end
2610
2950
 
2951
+ # @note When making an API call, you may pass GetFunctionUrlConfigRequest
2952
+ # data as a hash:
2953
+ #
2954
+ # {
2955
+ # function_name: "FunctionName", # required
2956
+ # qualifier: "FunctionUrlQualifier",
2957
+ # }
2958
+ #
2959
+ # @!attribute [rw] function_name
2960
+ # The name of the Lambda function.
2961
+ #
2962
+ # **Name formats**
2963
+ #
2964
+ # * **Function name** - `my-function`.
2965
+ #
2966
+ # * **Function ARN** -
2967
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
2968
+ #
2969
+ # * **Partial ARN** - `123456789012:function:my-function`.
2970
+ #
2971
+ # The length constraint applies only to the full ARN. If you specify
2972
+ # only the function name, it is limited to 64 characters in length.
2973
+ # @return [String]
2974
+ #
2975
+ # @!attribute [rw] qualifier
2976
+ # The alias name.
2977
+ # @return [String]
2978
+ #
2979
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfigRequest AWS API Documentation
2980
+ #
2981
+ class GetFunctionUrlConfigRequest < Struct.new(
2982
+ :function_name,
2983
+ :qualifier)
2984
+ SENSITIVE = []
2985
+ include Aws::Structure
2986
+ end
2987
+
2988
+ # @!attribute [rw] function_url
2989
+ # The HTTP URL endpoint for your function.
2990
+ # @return [String]
2991
+ #
2992
+ # @!attribute [rw] function_arn
2993
+ # The Amazon Resource Name (ARN) of your function.
2994
+ # @return [String]
2995
+ #
2996
+ # @!attribute [rw] auth_type
2997
+ # The type of authentication that your function URL uses. Set to
2998
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
2999
+ # users only. Set to `NONE` if you want to bypass IAM authentication
3000
+ # to create a public endpoint. For more information, see [ Security
3001
+ # and auth model for Lambda function URLs][1].
3002
+ #
3003
+ #
3004
+ #
3005
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
3006
+ # @return [String]
3007
+ #
3008
+ # @!attribute [rw] cors
3009
+ # The [cross-origin resource sharing (CORS)][1] settings for your
3010
+ # function URL.
3011
+ #
3012
+ #
3013
+ #
3014
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
3015
+ # @return [Types::Cors]
3016
+ #
3017
+ # @!attribute [rw] creation_time
3018
+ # When the function URL was created, in [ISO-8601 format][1]
3019
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
3020
+ #
3021
+ #
3022
+ #
3023
+ # [1]: https://www.w3.org/TR/NOTE-datetime
3024
+ # @return [Time]
3025
+ #
3026
+ # @!attribute [rw] last_modified_time
3027
+ # When the function URL configuration was last updated, in [ISO-8601
3028
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
3029
+ #
3030
+ #
3031
+ #
3032
+ # [1]: https://www.w3.org/TR/NOTE-datetime
3033
+ # @return [Time]
3034
+ #
3035
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfigResponse AWS API Documentation
3036
+ #
3037
+ class GetFunctionUrlConfigResponse < Struct.new(
3038
+ :function_url,
3039
+ :function_arn,
3040
+ :auth_type,
3041
+ :cors,
3042
+ :creation_time,
3043
+ :last_modified_time)
3044
+ SENSITIVE = []
3045
+ include Aws::Structure
3046
+ end
3047
+
2611
3048
  # @note When making an API call, you may pass GetLayerVersionByArnRequest
2612
3049
  # data as a hash:
2613
3050
  #
@@ -3796,6 +4233,69 @@ module Aws::Lambda
3796
4233
  include Aws::Structure
3797
4234
  end
3798
4235
 
4236
+ # @note When making an API call, you may pass ListFunctionUrlConfigsRequest
4237
+ # data as a hash:
4238
+ #
4239
+ # {
4240
+ # function_name: "FunctionName", # required
4241
+ # marker: "String",
4242
+ # max_items: 1,
4243
+ # }
4244
+ #
4245
+ # @!attribute [rw] function_name
4246
+ # The name of the Lambda function.
4247
+ #
4248
+ # **Name formats**
4249
+ #
4250
+ # * **Function name** - `my-function`.
4251
+ #
4252
+ # * **Function ARN** -
4253
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
4254
+ #
4255
+ # * **Partial ARN** - `123456789012:function:my-function`.
4256
+ #
4257
+ # The length constraint applies only to the full ARN. If you specify
4258
+ # only the function name, it is limited to 64 characters in length.
4259
+ # @return [String]
4260
+ #
4261
+ # @!attribute [rw] marker
4262
+ # Specify the pagination token that's returned by a previous request
4263
+ # to retrieve the next page of results.
4264
+ # @return [String]
4265
+ #
4266
+ # @!attribute [rw] max_items
4267
+ # The maximum number of function URLs to return in the response. Note
4268
+ # that `ListFunctionUrlConfigs` returns a maximum of 50 items in each
4269
+ # response, even if you set the number higher.
4270
+ # @return [Integer]
4271
+ #
4272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigsRequest AWS API Documentation
4273
+ #
4274
+ class ListFunctionUrlConfigsRequest < Struct.new(
4275
+ :function_name,
4276
+ :marker,
4277
+ :max_items)
4278
+ SENSITIVE = []
4279
+ include Aws::Structure
4280
+ end
4281
+
4282
+ # @!attribute [rw] function_url_configs
4283
+ # A list of function URL configurations.
4284
+ # @return [Array<Types::FunctionUrlConfig>]
4285
+ #
4286
+ # @!attribute [rw] next_marker
4287
+ # The pagination token that's included if more results are available.
4288
+ # @return [String]
4289
+ #
4290
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigsResponse AWS API Documentation
4291
+ #
4292
+ class ListFunctionUrlConfigsResponse < Struct.new(
4293
+ :function_url_configs,
4294
+ :next_marker)
4295
+ SENSITIVE = []
4296
+ include Aws::Structure
4297
+ end
4298
+
3799
4299
  # @note When making an API call, you may pass ListFunctionsByCodeSigningConfigRequest
3800
4300
  # data as a hash:
3801
4301
  #
@@ -3914,7 +4414,7 @@ module Aws::Lambda
3914
4414
  # data as a hash:
3915
4415
  #
3916
4416
  # {
3917
- # 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
4417
+ # 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
3918
4418
  # layer_name: "LayerName", # required
3919
4419
  # marker: "String",
3920
4420
  # max_items: 1,
@@ -3979,7 +4479,7 @@ module Aws::Lambda
3979
4479
  # data as a hash:
3980
4480
  #
3981
4481
  # {
3982
- # 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
4482
+ # 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
3983
4483
  # marker: "String",
3984
4484
  # max_items: 1,
3985
4485
  # compatible_architecture: "x86_64", # accepts x86_64, arm64
@@ -4354,7 +4854,7 @@ module Aws::Lambda
4354
4854
  # s3_object_version: "S3ObjectVersion",
4355
4855
  # zip_file: "data",
4356
4856
  # },
4357
- # 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
4857
+ # 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
4358
4858
  # license_info: "LicenseInfo",
4359
4859
  # compatible_architectures: ["x86_64"], # accepts x86_64, arm64
4360
4860
  # }
@@ -5459,7 +5959,7 @@ module Aws::Lambda
5459
5959
  #
5460
5960
  # * **Amazon Kinesis** - Default 100. Max 10,000.
5461
5961
  #
5462
- # * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
5962
+ # * **Amazon DynamoDB Streams** - Default 100. Max 10,000.
5463
5963
  #
5464
5964
  # * **Amazon Simple Queue Service** - Default 10. For standard queues
5465
5965
  # the max is 10,000. For FIFO queues the max is 10.
@@ -5675,7 +6175,7 @@ module Aws::Lambda
5675
6175
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
5676
6176
  # },
5677
6177
  # },
5678
- # 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
6178
+ # 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
5679
6179
  # dead_letter_config: {
5680
6180
  # target_arn: "ResourceArn",
5681
6181
  # },
@@ -5696,6 +6196,9 @@ module Aws::Lambda
5696
6196
  # command: ["String"],
5697
6197
  # working_directory: "WorkingDirectory",
5698
6198
  # },
6199
+ # ephemeral_storage: {
6200
+ # size: 1, # required
6201
+ # },
5699
6202
  # }
5700
6203
  #
5701
6204
  # @!attribute [rw] function_name
@@ -5834,6 +6337,11 @@ module Aws::Lambda
5834
6337
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html
5835
6338
  # @return [Types::ImageConfig]
5836
6339
  #
6340
+ # @!attribute [rw] ephemeral_storage
6341
+ # The size of the function’s /tmp directory in MB. The default value
6342
+ # is 512, but can be any whole number between 512 and 10240 MB.
6343
+ # @return [Types::EphemeralStorage]
6344
+ #
5837
6345
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
5838
6346
  #
5839
6347
  class UpdateFunctionConfigurationRequest < Struct.new(
@@ -5852,7 +6360,8 @@ module Aws::Lambda
5852
6360
  :revision_id,
5853
6361
  :layers,
5854
6362
  :file_system_configs,
5855
- :image_config)
6363
+ :image_config,
6364
+ :ephemeral_storage)
5856
6365
  SENSITIVE = []
5857
6366
  include Aws::Structure
5858
6367
  end
@@ -5935,6 +6444,135 @@ module Aws::Lambda
5935
6444
  include Aws::Structure
5936
6445
  end
5937
6446
 
6447
+ # @note When making an API call, you may pass UpdateFunctionUrlConfigRequest
6448
+ # data as a hash:
6449
+ #
6450
+ # {
6451
+ # function_name: "FunctionName", # required
6452
+ # qualifier: "FunctionUrlQualifier",
6453
+ # auth_type: "NONE", # accepts NONE, AWS_IAM
6454
+ # cors: {
6455
+ # allow_credentials: false,
6456
+ # allow_headers: ["Header"],
6457
+ # allow_methods: ["Method"],
6458
+ # allow_origins: ["Origin"],
6459
+ # expose_headers: ["Header"],
6460
+ # max_age: 1,
6461
+ # },
6462
+ # }
6463
+ #
6464
+ # @!attribute [rw] function_name
6465
+ # The name of the Lambda function.
6466
+ #
6467
+ # **Name formats**
6468
+ #
6469
+ # * **Function name** - `my-function`.
6470
+ #
6471
+ # * **Function ARN** -
6472
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
6473
+ #
6474
+ # * **Partial ARN** - `123456789012:function:my-function`.
6475
+ #
6476
+ # The length constraint applies only to the full ARN. If you specify
6477
+ # only the function name, it is limited to 64 characters in length.
6478
+ # @return [String]
6479
+ #
6480
+ # @!attribute [rw] qualifier
6481
+ # The alias name.
6482
+ # @return [String]
6483
+ #
6484
+ # @!attribute [rw] auth_type
6485
+ # The type of authentication that your function URL uses. Set to
6486
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
6487
+ # users only. Set to `NONE` if you want to bypass IAM authentication
6488
+ # to create a public endpoint. For more information, see [ Security
6489
+ # and auth model for Lambda function URLs][1].
6490
+ #
6491
+ #
6492
+ #
6493
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
6494
+ # @return [String]
6495
+ #
6496
+ # @!attribute [rw] cors
6497
+ # The [cross-origin resource sharing (CORS)][1] settings for your
6498
+ # function URL.
6499
+ #
6500
+ #
6501
+ #
6502
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
6503
+ # @return [Types::Cors]
6504
+ #
6505
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigRequest AWS API Documentation
6506
+ #
6507
+ class UpdateFunctionUrlConfigRequest < Struct.new(
6508
+ :function_name,
6509
+ :qualifier,
6510
+ :auth_type,
6511
+ :cors)
6512
+ SENSITIVE = []
6513
+ include Aws::Structure
6514
+ end
6515
+
6516
+ # @!attribute [rw] function_url
6517
+ # The HTTP URL endpoint for your function.
6518
+ # @return [String]
6519
+ #
6520
+ # @!attribute [rw] function_arn
6521
+ # The Amazon Resource Name (ARN) of your function.
6522
+ # @return [String]
6523
+ #
6524
+ # @!attribute [rw] auth_type
6525
+ # The type of authentication that your function URL uses. Set to
6526
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM`
6527
+ # users only. Set to `NONE` if you want to bypass IAM authentication
6528
+ # to create a public endpoint. For more information, see [ Security
6529
+ # and auth model for Lambda function URLs][1].
6530
+ #
6531
+ #
6532
+ #
6533
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
6534
+ # @return [String]
6535
+ #
6536
+ # @!attribute [rw] cors
6537
+ # The [cross-origin resource sharing (CORS)][1] settings for your
6538
+ # function URL.
6539
+ #
6540
+ #
6541
+ #
6542
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
6543
+ # @return [Types::Cors]
6544
+ #
6545
+ # @!attribute [rw] creation_time
6546
+ # When the function URL was created, in [ISO-8601 format][1]
6547
+ # (YYYY-MM-DDThh:mm:ss.sTZD).
6548
+ #
6549
+ #
6550
+ #
6551
+ # [1]: https://www.w3.org/TR/NOTE-datetime
6552
+ # @return [Time]
6553
+ #
6554
+ # @!attribute [rw] last_modified_time
6555
+ # When the function URL configuration was last updated, in [ISO-8601
6556
+ # format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
6557
+ #
6558
+ #
6559
+ #
6560
+ # [1]: https://www.w3.org/TR/NOTE-datetime
6561
+ # @return [Time]
6562
+ #
6563
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfigResponse AWS API Documentation
6564
+ #
6565
+ class UpdateFunctionUrlConfigResponse < Struct.new(
6566
+ :function_url,
6567
+ :function_arn,
6568
+ :auth_type,
6569
+ :cors,
6570
+ :creation_time,
6571
+ :last_modified_time)
6572
+ SENSITIVE = []
6573
+ include Aws::Structure
6574
+ end
6575
+
5938
6576
  # The VPC security groups and subnets that are attached to a Lambda
5939
6577
  # function. For more information, see [VPC Settings][1].
5940
6578
  #