aws-sdk-lambda 1.82.0 → 1.83.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28cd519a3e87a105f27fb37647a04227ecb6530e1303c7bc295e0cb03544ae2d
4
- data.tar.gz: 66bd2c883ef159b3f055337cd3ccd10a899e77004118907030634a594f4ad28f
3
+ metadata.gz: 7f378afd87356e54f74a7702f945567b86eb0cde0305bd4e08147732ee470956
4
+ data.tar.gz: b217dc0da5a60b6c1f8bc3591318bac37ad7446298346a1cbff02898c0fed7d1
5
5
  SHA512:
6
- metadata.gz: c441622320dd16bd405761826a4ed8316101b0321d7277cca5d7ab999818b0971c9ed4460ced5ed5c29b365507b3ed36637ec6c0448704b93b6027ec9dc4d24d
7
- data.tar.gz: b2f3a998f57930ee17565d7febffa9be22c52813365a5233a53ec07a31d24514c362d4c02af6f7208977e520a1343cfa968dadf57e3bfb9af950e29e45115259
6
+ metadata.gz: b1158775fe928900236297a931b1404251ad1c47af8c87942f620d508f072eb0c3fb3517d2b7d06f9beb4b1db7d28659bd7eaf8a0a1c0db652d558721d3892c0
7
+ data.tar.gz: 9c44a60d808e8d59255f4655b6eaa03ae0672c4f17a6fee164793e41e846cd403422dd8f7be20c40452c49428f5824aea2ce462a148595d08eeeb9ec7280c8a8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2022-04-06)
5
+ ------------------
6
+
7
+ * Feature - This release adds new APIs for creating and managing Lambda Function URLs and adds a new FunctionUrlAuthType parameter to the AddPermission API. Customers can use Function URLs to create built-in HTTPS endpoints on their functions.
8
+
4
9
  1.82.0 (2022-03-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.82.0
1
+ 1.83.0
@@ -512,6 +512,17 @@ module Aws::Lambda
512
512
  # grant permissions to all the Amazon Web Services accounts under this
513
513
  # organization.
514
514
  #
515
+ # @option params [String] :function_url_auth_type
516
+ # The type of authentication that your function URL uses. Set to
517
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM` users
518
+ # only. Set to `NONE` if you want to bypass IAM authentication to create
519
+ # a public endpoint. For more information, see [ Security and auth model
520
+ # for Lambda function URLs][1].
521
+ #
522
+ #
523
+ #
524
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
525
+ #
515
526
  # @return [Types::AddPermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
516
527
  #
517
528
  # * {Types::AddPermissionResponse#statement #statement} => String
@@ -529,6 +540,7 @@ module Aws::Lambda
529
540
  # qualifier: "Qualifier",
530
541
  # revision_id: "String",
531
542
  # principal_org_id: "PrincipalOrgID",
543
+ # function_url_auth_type: "NONE", # accepts NONE, AWS_IAM
532
544
  # })
533
545
  #
534
546
  # @example Response structure
@@ -1371,6 +1383,97 @@ module Aws::Lambda
1371
1383
  req.send_request(options)
1372
1384
  end
1373
1385
 
1386
+ # Creates a Lambda function URL with the specified configuration
1387
+ # parameters. A function URL is a dedicated HTTP(S) endpoint that you
1388
+ # can use to invoke your function.
1389
+ #
1390
+ # @option params [required, String] :function_name
1391
+ # The name of the Lambda function.
1392
+ #
1393
+ # **Name formats**
1394
+ #
1395
+ # * **Function name** - `my-function`.
1396
+ #
1397
+ # * **Function ARN** -
1398
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
1399
+ #
1400
+ # * **Partial ARN** - `123456789012:function:my-function`.
1401
+ #
1402
+ # The length constraint applies only to the full ARN. If you specify
1403
+ # only the function name, it is limited to 64 characters in length.
1404
+ #
1405
+ # @option params [String] :qualifier
1406
+ # The alias name.
1407
+ #
1408
+ # @option params [required, String] :auth_type
1409
+ # The type of authentication that your function URL uses. Set to
1410
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM` users
1411
+ # only. Set to `NONE` if you want to bypass IAM authentication to create
1412
+ # a public endpoint. For more information, see [ Security and auth model
1413
+ # for Lambda function URLs][1].
1414
+ #
1415
+ #
1416
+ #
1417
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
1418
+ #
1419
+ # @option params [Types::Cors] :cors
1420
+ # The [cross-origin resource sharing (CORS)][1] settings for your
1421
+ # function URL.
1422
+ #
1423
+ #
1424
+ #
1425
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
1426
+ #
1427
+ # @return [Types::CreateFunctionUrlConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1428
+ #
1429
+ # * {Types::CreateFunctionUrlConfigResponse#function_url #function_url} => String
1430
+ # * {Types::CreateFunctionUrlConfigResponse#function_arn #function_arn} => String
1431
+ # * {Types::CreateFunctionUrlConfigResponse#auth_type #auth_type} => String
1432
+ # * {Types::CreateFunctionUrlConfigResponse#cors #cors} => Types::Cors
1433
+ # * {Types::CreateFunctionUrlConfigResponse#creation_time #creation_time} => Time
1434
+ #
1435
+ # @example Request syntax with placeholder values
1436
+ #
1437
+ # resp = client.create_function_url_config({
1438
+ # function_name: "FunctionName", # required
1439
+ # qualifier: "FunctionUrlQualifier",
1440
+ # auth_type: "NONE", # required, accepts NONE, AWS_IAM
1441
+ # cors: {
1442
+ # allow_credentials: false,
1443
+ # allow_headers: ["Header"],
1444
+ # allow_methods: ["Method"],
1445
+ # allow_origins: ["Origin"],
1446
+ # expose_headers: ["Header"],
1447
+ # max_age: 1,
1448
+ # },
1449
+ # })
1450
+ #
1451
+ # @example Response structure
1452
+ #
1453
+ # resp.function_url #=> String
1454
+ # resp.function_arn #=> String
1455
+ # resp.auth_type #=> String, one of "NONE", "AWS_IAM"
1456
+ # resp.cors.allow_credentials #=> Boolean
1457
+ # resp.cors.allow_headers #=> Array
1458
+ # resp.cors.allow_headers[0] #=> String
1459
+ # resp.cors.allow_methods #=> Array
1460
+ # resp.cors.allow_methods[0] #=> String
1461
+ # resp.cors.allow_origins #=> Array
1462
+ # resp.cors.allow_origins[0] #=> String
1463
+ # resp.cors.expose_headers #=> Array
1464
+ # resp.cors.expose_headers[0] #=> String
1465
+ # resp.cors.max_age #=> Integer
1466
+ # resp.creation_time #=> Time
1467
+ #
1468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig AWS API Documentation
1469
+ #
1470
+ # @overload create_function_url_config(params = {})
1471
+ # @param [Hash] params ({})
1472
+ def create_function_url_config(params = {}, options = {})
1473
+ req = build_request(:create_function_url_config, params)
1474
+ req.send_request(options)
1475
+ end
1476
+
1374
1477
  # Deletes a Lambda function [alias][1].
1375
1478
  #
1376
1479
  #
@@ -1685,6 +1788,46 @@ module Aws::Lambda
1685
1788
  req.send_request(options)
1686
1789
  end
1687
1790
 
1791
+ # Deletes a Lambda function URL. When you delete a function URL, you
1792
+ # can't recover it. Creating a new function URL results in a different
1793
+ # URL address.
1794
+ #
1795
+ # @option params [required, String] :function_name
1796
+ # The name of the Lambda function.
1797
+ #
1798
+ # **Name formats**
1799
+ #
1800
+ # * **Function name** - `my-function`.
1801
+ #
1802
+ # * **Function ARN** -
1803
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
1804
+ #
1805
+ # * **Partial ARN** - `123456789012:function:my-function`.
1806
+ #
1807
+ # The length constraint applies only to the full ARN. If you specify
1808
+ # only the function name, it is limited to 64 characters in length.
1809
+ #
1810
+ # @option params [String] :qualifier
1811
+ # The alias name.
1812
+ #
1813
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1814
+ #
1815
+ # @example Request syntax with placeholder values
1816
+ #
1817
+ # resp = client.delete_function_url_config({
1818
+ # function_name: "FunctionName", # required
1819
+ # qualifier: "FunctionUrlQualifier",
1820
+ # })
1821
+ #
1822
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig AWS API Documentation
1823
+ #
1824
+ # @overload delete_function_url_config(params = {})
1825
+ # @param [Hash] params ({})
1826
+ def delete_function_url_config(params = {}, options = {})
1827
+ req = build_request(:delete_function_url_config, params)
1828
+ req.send_request(options)
1829
+ end
1830
+
1688
1831
  # Deletes a version of an [Lambda layer][1]. Deleted versions can no
1689
1832
  # longer be viewed or added to functions. To avoid breaking functions, a
1690
1833
  # copy of the version remains in Lambda until no functions refer to it.
@@ -2365,6 +2508,69 @@ module Aws::Lambda
2365
2508
  req.send_request(options)
2366
2509
  end
2367
2510
 
2511
+ # Returns details about a Lambda function URL.
2512
+ #
2513
+ # @option params [required, String] :function_name
2514
+ # The name of the Lambda function.
2515
+ #
2516
+ # **Name formats**
2517
+ #
2518
+ # * **Function name** - `my-function`.
2519
+ #
2520
+ # * **Function ARN** -
2521
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
2522
+ #
2523
+ # * **Partial ARN** - `123456789012:function:my-function`.
2524
+ #
2525
+ # The length constraint applies only to the full ARN. If you specify
2526
+ # only the function name, it is limited to 64 characters in length.
2527
+ #
2528
+ # @option params [String] :qualifier
2529
+ # The alias name.
2530
+ #
2531
+ # @return [Types::GetFunctionUrlConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2532
+ #
2533
+ # * {Types::GetFunctionUrlConfigResponse#function_url #function_url} => String
2534
+ # * {Types::GetFunctionUrlConfigResponse#function_arn #function_arn} => String
2535
+ # * {Types::GetFunctionUrlConfigResponse#auth_type #auth_type} => String
2536
+ # * {Types::GetFunctionUrlConfigResponse#cors #cors} => Types::Cors
2537
+ # * {Types::GetFunctionUrlConfigResponse#creation_time #creation_time} => Time
2538
+ # * {Types::GetFunctionUrlConfigResponse#last_modified_time #last_modified_time} => Time
2539
+ #
2540
+ # @example Request syntax with placeholder values
2541
+ #
2542
+ # resp = client.get_function_url_config({
2543
+ # function_name: "FunctionName", # required
2544
+ # qualifier: "FunctionUrlQualifier",
2545
+ # })
2546
+ #
2547
+ # @example Response structure
2548
+ #
2549
+ # resp.function_url #=> String
2550
+ # resp.function_arn #=> String
2551
+ # resp.auth_type #=> String, one of "NONE", "AWS_IAM"
2552
+ # resp.cors.allow_credentials #=> Boolean
2553
+ # resp.cors.allow_headers #=> Array
2554
+ # resp.cors.allow_headers[0] #=> String
2555
+ # resp.cors.allow_methods #=> Array
2556
+ # resp.cors.allow_methods[0] #=> String
2557
+ # resp.cors.allow_origins #=> Array
2558
+ # resp.cors.allow_origins[0] #=> String
2559
+ # resp.cors.expose_headers #=> Array
2560
+ # resp.cors.expose_headers[0] #=> String
2561
+ # resp.cors.max_age #=> Integer
2562
+ # resp.creation_time #=> Time
2563
+ # resp.last_modified_time #=> Time
2564
+ #
2565
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig AWS API Documentation
2566
+ #
2567
+ # @overload get_function_url_config(params = {})
2568
+ # @param [Hash] params ({})
2569
+ def get_function_url_config(params = {}, options = {})
2570
+ req = build_request(:get_function_url_config, params)
2571
+ req.send_request(options)
2572
+ end
2573
+
2368
2574
  # Returns information about a version of an [Lambda layer][1], with a
2369
2575
  # link to download the layer archive that's valid for 10 minutes.
2370
2576
  #
@@ -3095,6 +3301,76 @@ module Aws::Lambda
3095
3301
  req.send_request(options)
3096
3302
  end
3097
3303
 
3304
+ # Returns a list of Lambda function URLs for the specified function.
3305
+ #
3306
+ # @option params [required, String] :function_name
3307
+ # The name of the Lambda function.
3308
+ #
3309
+ # **Name formats**
3310
+ #
3311
+ # * **Function name** - `my-function`.
3312
+ #
3313
+ # * **Function ARN** -
3314
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
3315
+ #
3316
+ # * **Partial ARN** - `123456789012:function:my-function`.
3317
+ #
3318
+ # The length constraint applies only to the full ARN. If you specify
3319
+ # only the function name, it is limited to 64 characters in length.
3320
+ #
3321
+ # @option params [String] :marker
3322
+ # Specify the pagination token that's returned by a previous request to
3323
+ # retrieve the next page of results.
3324
+ #
3325
+ # @option params [Integer] :max_items
3326
+ # The maximum number of function URLs to return in the response. Note
3327
+ # that `ListFunctionUrlConfigs` returns a maximum of 50 items in each
3328
+ # response, even if you set the number higher.
3329
+ #
3330
+ # @return [Types::ListFunctionUrlConfigsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3331
+ #
3332
+ # * {Types::ListFunctionUrlConfigsResponse#function_url_configs #function_url_configs} => Array<Types::FunctionUrlConfig>
3333
+ # * {Types::ListFunctionUrlConfigsResponse#next_marker #next_marker} => String
3334
+ #
3335
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3336
+ #
3337
+ # @example Request syntax with placeholder values
3338
+ #
3339
+ # resp = client.list_function_url_configs({
3340
+ # function_name: "FunctionName", # required
3341
+ # marker: "String",
3342
+ # max_items: 1,
3343
+ # })
3344
+ #
3345
+ # @example Response structure
3346
+ #
3347
+ # resp.function_url_configs #=> Array
3348
+ # resp.function_url_configs[0].function_url #=> String
3349
+ # resp.function_url_configs[0].function_arn #=> String
3350
+ # resp.function_url_configs[0].creation_time #=> Time
3351
+ # resp.function_url_configs[0].last_modified_time #=> Time
3352
+ # resp.function_url_configs[0].cors.allow_credentials #=> Boolean
3353
+ # resp.function_url_configs[0].cors.allow_headers #=> Array
3354
+ # resp.function_url_configs[0].cors.allow_headers[0] #=> String
3355
+ # resp.function_url_configs[0].cors.allow_methods #=> Array
3356
+ # resp.function_url_configs[0].cors.allow_methods[0] #=> String
3357
+ # resp.function_url_configs[0].cors.allow_origins #=> Array
3358
+ # resp.function_url_configs[0].cors.allow_origins[0] #=> String
3359
+ # resp.function_url_configs[0].cors.expose_headers #=> Array
3360
+ # resp.function_url_configs[0].cors.expose_headers[0] #=> String
3361
+ # resp.function_url_configs[0].cors.max_age #=> Integer
3362
+ # resp.function_url_configs[0].auth_type #=> String, one of "NONE", "AWS_IAM"
3363
+ # resp.next_marker #=> String
3364
+ #
3365
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigs AWS API Documentation
3366
+ #
3367
+ # @overload list_function_url_configs(params = {})
3368
+ # @param [Hash] params ({})
3369
+ def list_function_url_configs(params = {}, options = {})
3370
+ req = build_request(:list_function_url_configs, params)
3371
+ req.send_request(options)
3372
+ end
3373
+
3098
3374
  # Returns a list of Lambda functions, with the version-specific
3099
3375
  # configuration of each. Lambda returns up to 50 functions per call.
3100
3376
  #
@@ -5302,6 +5578,97 @@ module Aws::Lambda
5302
5578
  req.send_request(options)
5303
5579
  end
5304
5580
 
5581
+ # Updates the configuration for a Lambda function URL.
5582
+ #
5583
+ # @option params [required, String] :function_name
5584
+ # The name of the Lambda function.
5585
+ #
5586
+ # **Name formats**
5587
+ #
5588
+ # * **Function name** - `my-function`.
5589
+ #
5590
+ # * **Function ARN** -
5591
+ # `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
5592
+ #
5593
+ # * **Partial ARN** - `123456789012:function:my-function`.
5594
+ #
5595
+ # The length constraint applies only to the full ARN. If you specify
5596
+ # only the function name, it is limited to 64 characters in length.
5597
+ #
5598
+ # @option params [String] :qualifier
5599
+ # The alias name.
5600
+ #
5601
+ # @option params [String] :auth_type
5602
+ # The type of authentication that your function URL uses. Set to
5603
+ # `AWS_IAM` if you want to restrict access to authenticated `IAM` users
5604
+ # only. Set to `NONE` if you want to bypass IAM authentication to create
5605
+ # a public endpoint. For more information, see [ Security and auth model
5606
+ # for Lambda function URLs][1].
5607
+ #
5608
+ #
5609
+ #
5610
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
5611
+ #
5612
+ # @option params [Types::Cors] :cors
5613
+ # The [cross-origin resource sharing (CORS)][1] settings for your
5614
+ # function URL.
5615
+ #
5616
+ #
5617
+ #
5618
+ # [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
5619
+ #
5620
+ # @return [Types::UpdateFunctionUrlConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5621
+ #
5622
+ # * {Types::UpdateFunctionUrlConfigResponse#function_url #function_url} => String
5623
+ # * {Types::UpdateFunctionUrlConfigResponse#function_arn #function_arn} => String
5624
+ # * {Types::UpdateFunctionUrlConfigResponse#auth_type #auth_type} => String
5625
+ # * {Types::UpdateFunctionUrlConfigResponse#cors #cors} => Types::Cors
5626
+ # * {Types::UpdateFunctionUrlConfigResponse#creation_time #creation_time} => Time
5627
+ # * {Types::UpdateFunctionUrlConfigResponse#last_modified_time #last_modified_time} => Time
5628
+ #
5629
+ # @example Request syntax with placeholder values
5630
+ #
5631
+ # resp = client.update_function_url_config({
5632
+ # function_name: "FunctionName", # required
5633
+ # qualifier: "FunctionUrlQualifier",
5634
+ # auth_type: "NONE", # accepts NONE, AWS_IAM
5635
+ # cors: {
5636
+ # allow_credentials: false,
5637
+ # allow_headers: ["Header"],
5638
+ # allow_methods: ["Method"],
5639
+ # allow_origins: ["Origin"],
5640
+ # expose_headers: ["Header"],
5641
+ # max_age: 1,
5642
+ # },
5643
+ # })
5644
+ #
5645
+ # @example Response structure
5646
+ #
5647
+ # resp.function_url #=> String
5648
+ # resp.function_arn #=> String
5649
+ # resp.auth_type #=> String, one of "NONE", "AWS_IAM"
5650
+ # resp.cors.allow_credentials #=> Boolean
5651
+ # resp.cors.allow_headers #=> Array
5652
+ # resp.cors.allow_headers[0] #=> String
5653
+ # resp.cors.allow_methods #=> Array
5654
+ # resp.cors.allow_methods[0] #=> String
5655
+ # resp.cors.allow_origins #=> Array
5656
+ # resp.cors.allow_origins[0] #=> String
5657
+ # resp.cors.expose_headers #=> Array
5658
+ # resp.cors.expose_headers[0] #=> String
5659
+ # resp.cors.max_age #=> Integer
5660
+ # resp.creation_time #=> Time
5661
+ # resp.last_modified_time #=> Time
5662
+ #
5663
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfig AWS API Documentation
5664
+ #
5665
+ # @overload update_function_url_config(params = {})
5666
+ # @param [Hash] params ({})
5667
+ def update_function_url_config(params = {}, options = {})
5668
+ req = build_request(:update_function_url_config, params)
5669
+ req.send_request(options)
5670
+ end
5671
+
5305
5672
  # @!endgroup
5306
5673
 
5307
5674
  # @param params ({})
@@ -5315,7 +5682,7 @@ module Aws::Lambda
5315
5682
  params: params,
5316
5683
  config: config)
5317
5684
  context[:gem_name] = 'aws-sdk-lambda'
5318
- context[:gem_version] = '1.82.0'
5685
+ context[:gem_version] = '1.83.0'
5319
5686
  Seahorse::Client::Request.new(handlers, context)
5320
5687
  end
5321
5688