aws-sdk-lambda 1.80.0 → 1.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +416 -14
- data/lib/aws-sdk-lambda/client_api.rb +179 -0
- data/lib/aws-sdk-lambda/types.rb +650 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +2 -2
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -164,6 +164,8 @@ module Aws::Lambda
|
|
164
164
|
# event_source_token: "EventSourceToken",
|
165
165
|
# qualifier: "Qualifier",
|
166
166
|
# revision_id: "String",
|
167
|
+
# principal_org_id: "PrincipalOrgID",
|
168
|
+
# function_url_auth_type: "NONE", # accepts NONE, AWS_IAM
|
167
169
|
# }
|
168
170
|
#
|
169
171
|
# @!attribute [rw] function_name
|
@@ -233,6 +235,24 @@ module Aws::Lambda
|
|
233
235
|
# changed since you last read it.
|
234
236
|
# @return [String]
|
235
237
|
#
|
238
|
+
# @!attribute [rw] principal_org_id
|
239
|
+
# The identifier for your organization in Organizations. Use this to
|
240
|
+
# grant permissions to all the Amazon Web Services accounts under this
|
241
|
+
# organization.
|
242
|
+
# @return [String]
|
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
|
+
#
|
236
256
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest AWS API Documentation
|
237
257
|
#
|
238
258
|
class AddPermissionRequest < Struct.new(
|
@@ -244,7 +264,9 @@ module Aws::Lambda
|
|
244
264
|
:source_account,
|
245
265
|
:event_source_token,
|
246
266
|
:qualifier,
|
247
|
-
:revision_id
|
267
|
+
:revision_id,
|
268
|
+
:principal_org_id,
|
269
|
+
:function_url_auth_type)
|
248
270
|
SENSITIVE = []
|
249
271
|
include Aws::Structure
|
250
272
|
end
|
@@ -511,6 +533,77 @@ module Aws::Lambda
|
|
511
533
|
include Aws::Structure
|
512
534
|
end
|
513
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
|
+
|
514
607
|
# @note When making an API call, you may pass CreateAliasRequest
|
515
608
|
# data as a hash:
|
516
609
|
#
|
@@ -894,6 +987,9 @@ module Aws::Lambda
|
|
894
987
|
# },
|
895
988
|
# code_signing_config_arn: "CodeSigningConfigArn",
|
896
989
|
# architectures: ["x86_64"], # accepts x86_64, arm64
|
990
|
+
# ephemeral_storage: {
|
991
|
+
# size: 1, # required
|
992
|
+
# },
|
897
993
|
# }
|
898
994
|
#
|
899
995
|
# @!attribute [rw] function_name
|
@@ -1061,6 +1157,11 @@ module Aws::Lambda
|
|
1061
1157
|
# default value is `x86_64`.
|
1062
1158
|
# @return [Array<String>]
|
1063
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
|
+
#
|
1064
1165
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
1065
1166
|
#
|
1066
1167
|
class CreateFunctionRequest < Struct.new(
|
@@ -1084,7 +1185,127 @@ module Aws::Lambda
|
|
1084
1185
|
:file_system_configs,
|
1085
1186
|
:image_config,
|
1086
1187
|
:code_signing_config_arn,
|
1087
|
-
: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)
|
1088
1309
|
SENSITIVE = []
|
1089
1310
|
include Aws::Structure
|
1090
1311
|
end
|
@@ -1336,6 +1557,43 @@ module Aws::Lambda
|
|
1336
1557
|
include Aws::Structure
|
1337
1558
|
end
|
1338
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
|
+
|
1339
1597
|
# @note When making an API call, you may pass DeleteLayerVersionRequest
|
1340
1598
|
# data as a hash:
|
1341
1599
|
#
|
@@ -1651,6 +1909,28 @@ module Aws::Lambda
|
|
1651
1909
|
include Aws::Structure
|
1652
1910
|
end
|
1653
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
|
+
|
1654
1934
|
# A mapping between an Amazon Web Services resource and a Lambda
|
1655
1935
|
# function. For details, see CreateEventSourceMapping.
|
1656
1936
|
#
|
@@ -2145,6 +2425,11 @@ module Aws::Lambda
|
|
2145
2425
|
# default architecture value is `x86_64`.
|
2146
2426
|
# @return [Array<String>]
|
2147
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
|
+
#
|
2148
2433
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
2149
2434
|
#
|
2150
2435
|
class FunctionConfiguration < Struct.new(
|
@@ -2179,7 +2464,8 @@ module Aws::Lambda
|
|
2179
2464
|
:image_config_response,
|
2180
2465
|
:signing_profile_version_arn,
|
2181
2466
|
:signing_job_arn,
|
2182
|
-
:architectures
|
2467
|
+
:architectures,
|
2468
|
+
:ephemeral_storage)
|
2183
2469
|
SENSITIVE = []
|
2184
2470
|
include Aws::Structure
|
2185
2471
|
end
|
@@ -2230,6 +2516,68 @@ module Aws::Lambda
|
|
2230
2516
|
include Aws::Structure
|
2231
2517
|
end
|
2232
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
|
+
|
2233
2581
|
# @api private
|
2234
2582
|
#
|
2235
2583
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest AWS API Documentation
|
@@ -2600,6 +2948,103 @@ module Aws::Lambda
|
|
2600
2948
|
include Aws::Structure
|
2601
2949
|
end
|
2602
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
|
+
|
2603
3048
|
# @note When making an API call, you may pass GetLayerVersionByArnRequest
|
2604
3049
|
# data as a hash:
|
2605
3050
|
#
|
@@ -3788,6 +4233,69 @@ module Aws::Lambda
|
|
3788
4233
|
include Aws::Structure
|
3789
4234
|
end
|
3790
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
|
+
|
3791
4299
|
# @note When making an API call, you may pass ListFunctionsByCodeSigningConfigRequest
|
3792
4300
|
# data as a hash:
|
3793
4301
|
#
|
@@ -5688,6 +6196,9 @@ module Aws::Lambda
|
|
5688
6196
|
# command: ["String"],
|
5689
6197
|
# working_directory: "WorkingDirectory",
|
5690
6198
|
# },
|
6199
|
+
# ephemeral_storage: {
|
6200
|
+
# size: 1, # required
|
6201
|
+
# },
|
5691
6202
|
# }
|
5692
6203
|
#
|
5693
6204
|
# @!attribute [rw] function_name
|
@@ -5826,6 +6337,11 @@ module Aws::Lambda
|
|
5826
6337
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html
|
5827
6338
|
# @return [Types::ImageConfig]
|
5828
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
|
+
#
|
5829
6345
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
|
5830
6346
|
#
|
5831
6347
|
class UpdateFunctionConfigurationRequest < Struct.new(
|
@@ -5844,7 +6360,8 @@ module Aws::Lambda
|
|
5844
6360
|
:revision_id,
|
5845
6361
|
:layers,
|
5846
6362
|
:file_system_configs,
|
5847
|
-
:image_config
|
6363
|
+
:image_config,
|
6364
|
+
:ephemeral_storage)
|
5848
6365
|
SENSITIVE = []
|
5849
6366
|
include Aws::Structure
|
5850
6367
|
end
|
@@ -5927,6 +6444,135 @@ module Aws::Lambda
|
|
5927
6444
|
include Aws::Structure
|
5928
6445
|
end
|
5929
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
|
+
|
5930
6576
|
# The VPC security groups and subnets that are attached to a Lambda
|
5931
6577
|
# function. For more information, see [VPC Settings][1].
|
5932
6578
|
#
|