aws-sdk-lambda 1.134.0 → 1.136.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: 7825bede9f95dd75cb14553e3b4512de2e01879761ab9ec41f79370ce863511b
4
- data.tar.gz: 18342290cc4d893c82d125357cace5c9142858af110de4fdc281294a3b2502c0
3
+ metadata.gz: dac65828325b5d8b2c010bb55ddb3e1654e3f2da02cdad9813b914980999a35c
4
+ data.tar.gz: 9a9dc770346d8be2dd064f67968fdecb6a794bb25b4050403433b65620aecd5e
5
5
  SHA512:
6
- metadata.gz: 68056a4b0702b9af4fe0bf5564de3f5e4338f1e936ea222978d301f43ab305c5c502fab3dba9405f2d6551e21c4000ca585858c6f87cc3a84e951e0734c577f3
7
- data.tar.gz: a508f236651acb58f1fa1fb99f7f2e46ae76d73dbe7bb5f2d496b77554b2d74f5ab07d08fe01d7fd6570e19e3e48237bd85606afcacb6a16f346705a25ffa16b
6
+ metadata.gz: 1e367e6748502fd4934959fc383623f88cd23e9a7b04948375acf78ebd9a04b3d6e04039c4141b60ccce74a2691cf857421da0d25323d53aab85b5a6e17b326d
7
+ data.tar.gz: 7704bb114d638fc28a40dd8ca401f4a6683a364e44f332ce462c51886fdc42513dc21f7c852e81c8defbaf73f250674384c39b288cdf25195345eaf00264205d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.136.0 (2024-09-26)
5
+ ------------------
6
+
7
+ * Feature - Reverting Lambda resource-based policy and block public access APIs.
8
+
9
+ 1.135.0 (2024-09-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.134.0 (2024-09-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.134.0
1
+ 1.136.0
@@ -37,8 +37,6 @@ require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
38
38
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
39
39
 
40
- Aws::Plugins::GlobalConfiguration.add_identifier(:lambda)
41
-
42
40
  module Aws::Lambda
43
41
  # An API client for Lambda. To construct a client, you need to configure a `:region` and `:credentials`.
44
42
  #
@@ -562,9 +560,9 @@ module Aws::Lambda
562
560
  # To grant permission to another account, specify the account ID as the
563
561
  # `Principal`. To grant permission to an organization defined in
564
562
  # Organizations, specify the organization ID as the `PrincipalOrgID`.
565
- # For Amazon Web Servicesservices, the principal is a domain-style
563
+ # For Amazon Web Services services, the principal is a domain-style
566
564
  # identifier that the service defines, such as `s3.amazonaws.com` or
567
- # `sns.amazonaws.com`. For Amazon Web Servicesservices, you can also
565
+ # `sns.amazonaws.com`. For Amazon Web Services services, you can also
568
566
  # specify the ARN of the associated resource as the `SourceArn`. If you
569
567
  # grant permission to a service principal without specifying the source,
570
568
  # other accounts could potentially configure resources in their account
@@ -605,13 +603,13 @@ module Aws::Lambda
605
603
  # `lambda:InvokeFunction` or `lambda:GetFunction`.
606
604
  #
607
605
  # @option params [required, String] :principal
608
- # The Amazon Web Servicesservice, Amazon Web Services account, IAM user,
609
- # or IAM role that invokes the function. If you specify a service, use
610
- # `SourceArn` or `SourceAccount` to limit who can invoke the function
611
- # through that service.
606
+ # The Amazon Web Services service, Amazon Web Services account, IAM
607
+ # user, or IAM role that invokes the function. If you specify a service,
608
+ # use `SourceArn` or `SourceAccount` to limit who can invoke the
609
+ # function through that service.
612
610
  #
613
611
  # @option params [String] :source_arn
614
- # For Amazon Web Servicesservices, the ARN of the Amazon Web Services
612
+ # For Amazon Web Services services, the ARN of the Amazon Web Services
615
613
  # resource that invokes the function. For example, an Amazon S3 bucket
616
614
  # or Amazon SNS topic.
617
615
  #
@@ -619,7 +617,7 @@ module Aws::Lambda
619
617
  # operator.
620
618
  #
621
619
  # @option params [String] :source_account
622
- # For Amazon Web Servicesservice, the ID of the Amazon Web Services
620
+ # For Amazon Web Services service, the ID of the Amazon Web Services
623
621
  # account that owns the resource. Use this together with `SourceArn` to
624
622
  # ensure that the specified account owns the resource. It is possible
625
623
  # for an Amazon S3 bucket to be deleted by its owner and recreated by
@@ -1323,7 +1321,7 @@ module Aws::Lambda
1323
1321
  # [deployment package][1] and an [execution role][2]. The deployment
1324
1322
  # package is a .zip file archive or container image that contains your
1325
1323
  # function code. The execution role grants the function permission to
1326
- # use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for
1324
+ # use Amazon Web Services services, such as Amazon CloudWatch Logs for
1327
1325
  # log streaming and X-Ray for request tracing.
1328
1326
  #
1329
1327
  # If the deployment package is a [container image][3], then you set the
@@ -1370,14 +1368,14 @@ module Aws::Lambda
1370
1368
  # configuration includes set of signing profiles, which define the
1371
1369
  # trusted publishers for this function.
1372
1370
  #
1373
- # If another Amazon Web Services account or an Amazon Web
1374
- # Servicesservice invokes your function, use AddPermission to grant
1375
- # permission by creating a resource-based Identity and Access Management
1376
- # (IAM) policy. You can grant permissions at the function level, on a
1377
- # version, or on an alias.
1371
+ # If another Amazon Web Services account or an Amazon Web Services
1372
+ # service invokes your function, use AddPermission to grant permission
1373
+ # by creating a resource-based Identity and Access Management (IAM)
1374
+ # policy. You can grant permissions at the function level, on a version,
1375
+ # or on an alias.
1378
1376
  #
1379
1377
  # To invoke your function directly, use Invoke. To invoke your function
1380
- # in response to events in other Amazon Web Servicesservices, create an
1378
+ # in response to events in other Amazon Web Services services, create an
1381
1379
  # event source mapping (CreateEventSourceMapping), or configure a
1382
1380
  # function trigger in the other service. For more information, see
1383
1381
  # [Invoking Lambda functions][6].
@@ -2140,7 +2138,7 @@ module Aws::Lambda
2140
2138
  # for DeleteAlias.
2141
2139
  #
2142
2140
  # To delete Lambda event source mappings that invoke a function, use
2143
- # DeleteEventSourceMapping. For Amazon Web Servicesservices and
2141
+ # DeleteEventSourceMapping. For Amazon Web Services services and
2144
2142
  # resources that invoke your function directly, delete the trigger in
2145
2143
  # the service where you originally configured it.
2146
2144
  #
@@ -2456,48 +2454,6 @@ module Aws::Lambda
2456
2454
  req.send_request(options)
2457
2455
  end
2458
2456
 
2459
- # <note markdown="1"> The option to create and modify full JSON resource-based policies, and
2460
- # to use the PutResourcePolicy, GetResourcePolicy, and
2461
- # DeleteResourcePolicy APIs, won't be available in all Amazon Web
2462
- # Services Regions until September 30, 2024.
2463
- #
2464
- # </note>
2465
- #
2466
- # Deletes a [resource-based policy][1] from a function.
2467
- #
2468
- #
2469
- #
2470
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
2471
- #
2472
- # @option params [required, String] :resource_arn
2473
- # The Amazon Resource Name (ARN) of the function you want to delete the
2474
- # policy from. You can use either a qualified or an unqualified ARN, but
2475
- # the value you specify must be a complete ARN and wildcard characters
2476
- # are not accepted.
2477
- #
2478
- # @option params [String] :revision_id
2479
- # Delete the existing policy only if its revision ID matches the string
2480
- # you specify. To find the revision ID of the policy currently attached
2481
- # to your function, use the GetResourcePolicy action.
2482
- #
2483
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2484
- #
2485
- # @example Request syntax with placeholder values
2486
- #
2487
- # resp = client.delete_resource_policy({
2488
- # resource_arn: "PolicyResourceArn", # required
2489
- # revision_id: "RevisionId",
2490
- # })
2491
- #
2492
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicy AWS API Documentation
2493
- #
2494
- # @overload delete_resource_policy(params = {})
2495
- # @param [Hash] params ({})
2496
- def delete_resource_policy(params = {}, options = {})
2497
- req = build_request(:delete_resource_policy, params)
2498
- req.send_request(options)
2499
- end
2500
-
2501
2457
  # Retrieves details about your account's [limits][1] and usage in an
2502
2458
  # Amazon Web Services Region.
2503
2459
  #
@@ -3812,86 +3768,6 @@ module Aws::Lambda
3812
3768
  req.send_request(options)
3813
3769
  end
3814
3770
 
3815
- # <note markdown="1"> The option to configure public-access settings, and to use the
3816
- # PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be
3817
- # available in all Amazon Web Services Regions until September 30, 2024.
3818
- #
3819
- # </note>
3820
- #
3821
- # Retrieve the public-access settings for a function.
3822
- #
3823
- # @option params [required, String] :resource_arn
3824
- # The Amazon Resource Name (ARN) of the function you want to retrieve
3825
- # public-access settings for.
3826
- #
3827
- # @return [Types::GetPublicAccessBlockConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3828
- #
3829
- # * {Types::GetPublicAccessBlockConfigResponse#public_access_block_config #public_access_block_config} => Types::PublicAccessBlockConfig
3830
- #
3831
- # @example Request syntax with placeholder values
3832
- #
3833
- # resp = client.get_public_access_block_config({
3834
- # resource_arn: "PublicAccessBlockResourceArn", # required
3835
- # })
3836
- #
3837
- # @example Response structure
3838
- #
3839
- # resp.public_access_block_config.block_public_policy #=> Boolean
3840
- # resp.public_access_block_config.restrict_public_resource #=> Boolean
3841
- #
3842
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfig AWS API Documentation
3843
- #
3844
- # @overload get_public_access_block_config(params = {})
3845
- # @param [Hash] params ({})
3846
- def get_public_access_block_config(params = {}, options = {})
3847
- req = build_request(:get_public_access_block_config, params)
3848
- req.send_request(options)
3849
- end
3850
-
3851
- # <note markdown="1"> The option to create and modify full JSON resource-based policies, and
3852
- # to use the PutResourcePolicy, GetResourcePolicy, and
3853
- # DeleteResourcePolicy APIs, won't be available in all Amazon Web
3854
- # Services Regions until September 30, 2024.
3855
- #
3856
- # </note>
3857
- #
3858
- # Retrieves the [resource-based policy][1] attached to a function.
3859
- #
3860
- #
3861
- #
3862
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
3863
- #
3864
- # @option params [required, String] :resource_arn
3865
- # The Amazon Resource Name (ARN) of the function you want to retrieve
3866
- # the policy for. You can use either a qualified or an unqualified ARN,
3867
- # but the value you specify must be a complete ARN and wildcard
3868
- # characters are not accepted.
3869
- #
3870
- # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3871
- #
3872
- # * {Types::GetResourcePolicyResponse#policy #policy} => String
3873
- # * {Types::GetResourcePolicyResponse#revision_id #revision_id} => String
3874
- #
3875
- # @example Request syntax with placeholder values
3876
- #
3877
- # resp = client.get_resource_policy({
3878
- # resource_arn: "PolicyResourceArn", # required
3879
- # })
3880
- #
3881
- # @example Response structure
3882
- #
3883
- # resp.policy #=> String
3884
- # resp.revision_id #=> String
3885
- #
3886
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicy AWS API Documentation
3887
- #
3888
- # @overload get_resource_policy(params = {})
3889
- # @param [Hash] params ({})
3890
- def get_resource_policy(params = {}, options = {})
3891
- req = build_request(:get_resource_policy, params)
3892
- req.send_request(options)
3893
- end
3894
-
3895
3771
  # Retrieves the runtime management configuration for a function's
3896
3772
  # version. If the runtime update mode is **Manual**, this includes the
3897
3773
  # ARN of the runtime version and the runtime update mode. If the runtime
@@ -5416,7 +5292,7 @@ module Aws::Lambda
5416
5292
  end
5417
5293
 
5418
5294
  # Returns a function, event source mapping, or code signing
5419
- # configuration's [tags][1]. You can also view funciton tags with
5295
+ # configuration's [tags][1]. You can also view function tags with
5420
5296
  # GetFunction.
5421
5297
  #
5422
5298
  #
@@ -6436,148 +6312,6 @@ module Aws::Lambda
6436
6312
  req.send_request(options)
6437
6313
  end
6438
6314
 
6439
- # <note markdown="1"> The option to configure public-access settings, and to use the
6440
- # PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be
6441
- # available in all Amazon Web Services Regions until September 30, 2024.
6442
- #
6443
- # </note>
6444
- #
6445
- # Configure your function's public-access settings.
6446
- #
6447
- # To control public access to a Lambda function, you can choose whether
6448
- # to allow the creation of [resource-based policies][1] that allow
6449
- # public access to that function. You can also block public access to a
6450
- # function, even if it has an existing resource-based policy that allows
6451
- # it.
6452
- #
6453
- #
6454
- #
6455
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
6456
- #
6457
- # @option params [required, String] :resource_arn
6458
- # The Amazon Resource Name (ARN) of the function you want to configure
6459
- # public-access settings for. Public-access settings are applied at the
6460
- # function level, so you can't apply different settings to function
6461
- # versions or aliases.
6462
- #
6463
- # @option params [required, Types::PublicAccessBlockConfig] :public_access_block_config
6464
- # An object defining the public-access settings you want to apply.
6465
- #
6466
- # To block the creation of resource-based policies that would grant
6467
- # public access to your function, set `BlockPublicPolicy` to `true`. To
6468
- # allow the creation of resource-based policies that would grant public
6469
- # access to your function, set `BlockPublicPolicy` to `false`.
6470
- #
6471
- # To block public access to your function, even if its resource-based
6472
- # policy allows it, set `RestrictPublicResource` to `true`. To allow
6473
- # public access to a function with a resource-based policy that permits
6474
- # it, set `RestrictPublicResource` to `false`.
6475
- #
6476
- # The default setting for both `BlockPublicPolicy` and
6477
- # `RestrictPublicResource` is `true`.
6478
- #
6479
- # @return [Types::PutPublicAccessBlockConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6480
- #
6481
- # * {Types::PutPublicAccessBlockConfigResponse#public_access_block_config #public_access_block_config} => Types::PublicAccessBlockConfig
6482
- #
6483
- # @example Request syntax with placeholder values
6484
- #
6485
- # resp = client.put_public_access_block_config({
6486
- # resource_arn: "PublicAccessBlockResourceArn", # required
6487
- # public_access_block_config: { # required
6488
- # block_public_policy: false,
6489
- # restrict_public_resource: false,
6490
- # },
6491
- # })
6492
- #
6493
- # @example Response structure
6494
- #
6495
- # resp.public_access_block_config.block_public_policy #=> Boolean
6496
- # resp.public_access_block_config.restrict_public_resource #=> Boolean
6497
- #
6498
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfig AWS API Documentation
6499
- #
6500
- # @overload put_public_access_block_config(params = {})
6501
- # @param [Hash] params ({})
6502
- def put_public_access_block_config(params = {}, options = {})
6503
- req = build_request(:put_public_access_block_config, params)
6504
- req.send_request(options)
6505
- end
6506
-
6507
- # <note markdown="1"> The option to create and modify full JSON resource-based policies, and
6508
- # to use the PutResourcePolicy, GetResourcePolicy, and
6509
- # DeleteResourcePolicy APIs, won't be available in all Amazon Web
6510
- # Services Regions until September 30, 2024.
6511
- #
6512
- # </note>
6513
- #
6514
- # Adds a [resource-based policy][1] to a function. You can use
6515
- # resource-based policies to grant access to other [Amazon Web Services
6516
- # accounts][2], [organizations][3], or [services][4]. Resource-based
6517
- # policies apply to a single function, version, or alias.
6518
- #
6519
- # Adding a resource-based policy using this API action replaces any
6520
- # existing policy you've previously created. This means that if you've
6521
- # previously added resource-based permissions to a function using the
6522
- # AddPermission action, those permissions will be overwritten by your
6523
- # new policy.
6524
- #
6525
- #
6526
- #
6527
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
6528
- # [2]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html
6529
- # [3]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html
6530
- # [4]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-services.html
6531
- #
6532
- # @option params [required, String] :resource_arn
6533
- # The Amazon Resource Name (ARN) of the function you want to add the
6534
- # policy to. You can use either a qualified or an unqualified ARN, but
6535
- # the value you specify must be a complete ARN and wildcard characters
6536
- # are not accepted.
6537
- #
6538
- # @option params [required, String] :policy
6539
- # The JSON resource-based policy you want to add to your function.
6540
- #
6541
- # To learn more about creating resource-based policies for controlling
6542
- # access to Lambda, see [Working with resource-based IAM policies in
6543
- # Lambda][1] in the *Lambda Developer Guide*.
6544
- #
6545
- #
6546
- #
6547
- # [1]: https://docs.aws.amazon.com/
6548
- #
6549
- # @option params [String] :revision_id
6550
- # Replace the existing policy only if its revision ID matches the string
6551
- # you specify. To find the revision ID of the policy currently attached
6552
- # to your function, use the GetResourcePolicy action.
6553
- #
6554
- # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6555
- #
6556
- # * {Types::PutResourcePolicyResponse#policy #policy} => String
6557
- # * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
6558
- #
6559
- # @example Request syntax with placeholder values
6560
- #
6561
- # resp = client.put_resource_policy({
6562
- # resource_arn: "PolicyResourceArn", # required
6563
- # policy: "ResourcePolicy", # required
6564
- # revision_id: "RevisionId",
6565
- # })
6566
- #
6567
- # @example Response structure
6568
- #
6569
- # resp.policy #=> String
6570
- # resp.revision_id #=> String
6571
- #
6572
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicy AWS API Documentation
6573
- #
6574
- # @overload put_resource_policy(params = {})
6575
- # @param [Hash] params ({})
6576
- def put_resource_policy(params = {}, options = {})
6577
- req = build_request(:put_resource_policy, params)
6578
- req.send_request(options)
6579
- end
6580
-
6581
6315
  # Sets the runtime management configuration for a function's version.
6582
6316
  # For more information, see [Runtime updates][1].
6583
6317
  #
@@ -6724,7 +6458,7 @@ module Aws::Lambda
6724
6458
  req.send_request(options)
6725
6459
  end
6726
6460
 
6727
- # Revokes function-use permission from an Amazon Web Servicesservice or
6461
+ # Revokes function-use permission from an Amazon Web Services service or
6728
6462
  # another Amazon Web Services account. You can get the ID of the
6729
6463
  # statement from the output of GetPolicy.
6730
6464
  #
@@ -7679,7 +7413,7 @@ module Aws::Lambda
7679
7413
  #
7680
7414
  # To configure function concurrency, use PutFunctionConcurrency. To
7681
7415
  # grant invoke permissions to an Amazon Web Services account or Amazon
7682
- # Web Servicesservice, use AddPermission.
7416
+ # Web Services service, use AddPermission.
7683
7417
  #
7684
7418
  #
7685
7419
  #
@@ -8297,7 +8031,7 @@ module Aws::Lambda
8297
8031
  tracer: tracer
8298
8032
  )
8299
8033
  context[:gem_name] = 'aws-sdk-lambda'
8300
- context[:gem_version] = '1.134.0'
8034
+ context[:gem_version] = '1.136.0'
8301
8035
  Seahorse::Client::Request.new(handlers, context)
8302
8036
  end
8303
8037
 
@@ -76,7 +76,6 @@ module Aws::Lambda
76
76
  DeleteFunctionUrlConfigRequest = Shapes::StructureShape.new(name: 'DeleteFunctionUrlConfigRequest')
77
77
  DeleteLayerVersionRequest = Shapes::StructureShape.new(name: 'DeleteLayerVersionRequest')
78
78
  DeleteProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedConcurrencyConfigRequest')
79
- DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
80
79
  Description = Shapes::StringShape.new(name: 'Description')
81
80
  DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
82
81
  DestinationConfig = Shapes::StructureShape.new(name: 'DestinationConfig')
@@ -161,10 +160,6 @@ module Aws::Lambda
161
160
  GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
162
161
  GetProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigRequest')
163
162
  GetProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigResponse')
164
- GetPublicAccessBlockConfigRequest = Shapes::StructureShape.new(name: 'GetPublicAccessBlockConfigRequest')
165
- GetPublicAccessBlockConfigResponse = Shapes::StructureShape.new(name: 'GetPublicAccessBlockConfigResponse')
166
- GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
167
- GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
168
163
  GetRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigRequest')
169
164
  GetRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigResponse')
170
165
  Handler = Shapes::StringShape.new(name: 'Handler')
@@ -275,7 +270,6 @@ module Aws::Lambda
275
270
  ParallelizationFactor = Shapes::IntegerShape.new(name: 'ParallelizationFactor')
276
271
  Pattern = Shapes::StringShape.new(name: 'Pattern')
277
272
  PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
278
- PolicyResourceArn = Shapes::StringShape.new(name: 'PolicyResourceArn')
279
273
  PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
280
274
  PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
281
275
  Principal = Shapes::StringShape.new(name: 'Principal')
@@ -284,9 +278,6 @@ module Aws::Lambda
284
278
  ProvisionedConcurrencyConfigListItem = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigListItem')
285
279
  ProvisionedConcurrencyConfigNotFoundException = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigNotFoundException')
286
280
  ProvisionedConcurrencyStatusEnum = Shapes::StringShape.new(name: 'ProvisionedConcurrencyStatusEnum')
287
- PublicAccessBlockConfig = Shapes::StructureShape.new(name: 'PublicAccessBlockConfig')
288
- PublicAccessBlockResourceArn = Shapes::StringShape.new(name: 'PublicAccessBlockResourceArn')
289
- PublicPolicyException = Shapes::StructureShape.new(name: 'PublicPolicyException')
290
281
  PublishLayerVersionRequest = Shapes::StructureShape.new(name: 'PublishLayerVersionRequest')
291
282
  PublishLayerVersionResponse = Shapes::StructureShape.new(name: 'PublishLayerVersionResponse')
292
283
  PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
@@ -298,10 +289,6 @@ module Aws::Lambda
298
289
  PutFunctionRecursionConfigResponse = Shapes::StructureShape.new(name: 'PutFunctionRecursionConfigResponse')
299
290
  PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
300
291
  PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
301
- PutPublicAccessBlockConfigRequest = Shapes::StructureShape.new(name: 'PutPublicAccessBlockConfigRequest')
302
- PutPublicAccessBlockConfigResponse = Shapes::StructureShape.new(name: 'PutPublicAccessBlockConfigResponse')
303
- PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
304
- PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
305
292
  PutRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigRequest')
306
293
  PutRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigResponse')
307
294
  Qualifier = Shapes::StringShape.new(name: 'Qualifier')
@@ -318,9 +305,7 @@ module Aws::Lambda
318
305
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
319
306
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
320
307
  ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
321
- ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
322
308
  ResponseStreamingInvocationType = Shapes::StringShape.new(name: 'ResponseStreamingInvocationType')
323
- RevisionId = Shapes::StringShape.new(name: 'RevisionId')
324
309
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
325
310
  Runtime = Shapes::StringShape.new(name: 'Runtime')
326
311
  RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
@@ -629,10 +614,6 @@ module Aws::Lambda
629
614
  DeleteProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
630
615
  DeleteProvisionedConcurrencyConfigRequest.struct_class = Types::DeleteProvisionedConcurrencyConfigRequest
631
616
 
632
- DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
633
- DeleteResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location: "querystring", location_name: "RevisionId"))
634
- DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
635
-
636
617
  DestinationConfig.add_member(:on_success, Shapes::ShapeRef.new(shape: OnSuccess, location_name: "OnSuccess"))
637
618
  DestinationConfig.add_member(:on_failure, Shapes::ShapeRef.new(shape: OnFailure, location_name: "OnFailure"))
638
619
  DestinationConfig.struct_class = Types::DestinationConfig
@@ -941,19 +922,6 @@ module Aws::Lambda
941
922
  GetProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
942
923
  GetProvisionedConcurrencyConfigResponse.struct_class = Types::GetProvisionedConcurrencyConfigResponse
943
924
 
944
- GetPublicAccessBlockConfigRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PublicAccessBlockResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
945
- GetPublicAccessBlockConfigRequest.struct_class = Types::GetPublicAccessBlockConfigRequest
946
-
947
- GetPublicAccessBlockConfigResponse.add_member(:public_access_block_config, Shapes::ShapeRef.new(shape: PublicAccessBlockConfig, location_name: "PublicAccessBlockConfig"))
948
- GetPublicAccessBlockConfigResponse.struct_class = Types::GetPublicAccessBlockConfigResponse
949
-
950
- GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
951
- GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
952
-
953
- GetResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
954
- GetResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
955
- GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
956
-
957
925
  GetRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
958
926
  GetRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
959
927
  GetRuntimeManagementConfigRequest.struct_class = Types::GetRuntimeManagementConfigRequest
@@ -1266,14 +1234,6 @@ module Aws::Lambda
1266
1234
  ProvisionedConcurrencyConfigNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1267
1235
  ProvisionedConcurrencyConfigNotFoundException.struct_class = Types::ProvisionedConcurrencyConfigNotFoundException
1268
1236
 
1269
- PublicAccessBlockConfig.add_member(:block_public_policy, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "BlockPublicPolicy"))
1270
- PublicAccessBlockConfig.add_member(:restrict_public_resource, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "RestrictPublicResource"))
1271
- PublicAccessBlockConfig.struct_class = Types::PublicAccessBlockConfig
1272
-
1273
- PublicPolicyException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
1274
- PublicPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1275
- PublicPolicyException.struct_class = Types::PublicPolicyException
1276
-
1277
1237
  PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
1278
1238
  PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
1279
1239
  PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
@@ -1338,22 +1298,6 @@ module Aws::Lambda
1338
1298
  PutProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
1339
1299
  PutProvisionedConcurrencyConfigResponse.struct_class = Types::PutProvisionedConcurrencyConfigResponse
1340
1300
 
1341
- PutPublicAccessBlockConfigRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PublicAccessBlockResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
1342
- PutPublicAccessBlockConfigRequest.add_member(:public_access_block_config, Shapes::ShapeRef.new(shape: PublicAccessBlockConfig, required: true, location_name: "PublicAccessBlockConfig"))
1343
- PutPublicAccessBlockConfigRequest.struct_class = Types::PutPublicAccessBlockConfigRequest
1344
-
1345
- PutPublicAccessBlockConfigResponse.add_member(:public_access_block_config, Shapes::ShapeRef.new(shape: PublicAccessBlockConfig, location_name: "PublicAccessBlockConfig"))
1346
- PutPublicAccessBlockConfigResponse.struct_class = Types::PutPublicAccessBlockConfigResponse
1347
-
1348
- PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
1349
- PutResourcePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, required: true, location_name: "Policy"))
1350
- PutResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
1351
- PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
1352
-
1353
- PutResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
1354
- PutResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
1355
- PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
1356
-
1357
1301
  PutRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
1358
1302
  PutRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
1359
1303
  PutRuntimeManagementConfigRequest.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, required: true, location_name: "UpdateRuntimeOn"))
@@ -1641,7 +1585,6 @@ module Aws::Lambda
1641
1585
  o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
1642
1586
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1643
1587
  o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
1644
- o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
1645
1588
  end)
1646
1589
 
1647
1590
  api.add_operation(:create_alias, Seahorse::Model::Operation.new.tap do |o|
@@ -1836,20 +1779,6 @@ module Aws::Lambda
1836
1779
  o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1837
1780
  end)
1838
1781
 
1839
- api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1840
- o.name = "DeleteResourcePolicy"
1841
- o.http_method = "DELETE"
1842
- o.http_request_uri = "/2024-09-16/resource-policy/{ResourceArn}"
1843
- o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
1844
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1845
- o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1846
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1847
- o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
1848
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1849
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1850
- o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
1851
- end)
1852
-
1853
1782
  api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
1854
1783
  o.name = "GetAccountSettings"
1855
1784
  o.http_method = "GET"
@@ -2040,30 +1969,6 @@ module Aws::Lambda
2040
1969
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedConcurrencyConfigNotFoundException)
2041
1970
  end)
2042
1971
 
2043
- api.add_operation(:get_public_access_block_config, Seahorse::Model::Operation.new.tap do |o|
2044
- o.name = "GetPublicAccessBlockConfig"
2045
- o.http_method = "GET"
2046
- o.http_request_uri = "/2024-09-16/public-access-block/{ResourceArn}"
2047
- o.input = Shapes::ShapeRef.new(shape: GetPublicAccessBlockConfigRequest)
2048
- o.output = Shapes::ShapeRef.new(shape: GetPublicAccessBlockConfigResponse)
2049
- o.errors << Shapes::ShapeRef.new(shape: ServiceException)
2050
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2051
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2052
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
2053
- end)
2054
-
2055
- api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2056
- o.name = "GetResourcePolicy"
2057
- o.http_method = "GET"
2058
- o.http_request_uri = "/2024-09-16/resource-policy/{ResourceArn}"
2059
- o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
2060
- o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
2061
- o.errors << Shapes::ShapeRef.new(shape: ServiceException)
2062
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2063
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2064
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
2065
- end)
2066
-
2067
1972
  api.add_operation(:get_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
2068
1973
  o.name = "GetRuntimeManagementConfig"
2069
1974
  o.http_method = "GET"
@@ -2465,35 +2370,6 @@ module Aws::Lambda
2465
2370
  o.errors << Shapes::ShapeRef.new(shape: ServiceException)
2466
2371
  end)
2467
2372
 
2468
- api.add_operation(:put_public_access_block_config, Seahorse::Model::Operation.new.tap do |o|
2469
- o.name = "PutPublicAccessBlockConfig"
2470
- o.http_method = "PUT"
2471
- o.http_request_uri = "/2024-09-16/public-access-block/{ResourceArn}"
2472
- o.input = Shapes::ShapeRef.new(shape: PutPublicAccessBlockConfigRequest)
2473
- o.output = Shapes::ShapeRef.new(shape: PutPublicAccessBlockConfigResponse)
2474
- o.errors << Shapes::ShapeRef.new(shape: ServiceException)
2475
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2476
- o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
2477
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
2478
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2479
- end)
2480
-
2481
- api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2482
- o.name = "PutResourcePolicy"
2483
- o.http_method = "PUT"
2484
- o.http_request_uri = "/2024-09-16/resource-policy/{ResourceArn}"
2485
- o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
2486
- o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
2487
- o.errors << Shapes::ShapeRef.new(shape: ServiceException)
2488
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2489
- o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
2490
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
2491
- o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
2492
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2493
- o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
2494
- o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
2495
- end)
2496
-
2497
2373
  api.add_operation(:put_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
2498
2374
  o.name = "PutRuntimeManagementConfig"
2499
2375
  o.http_method = "PUT"
@@ -2531,7 +2407,6 @@ module Aws::Lambda
2531
2407
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
2532
2408
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2533
2409
  o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
2534
- o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
2535
2410
  end)
2536
2411
 
2537
2412
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -199,17 +199,6 @@ module Aws::Lambda
199
199
  end
200
200
  end
201
201
 
202
- class DeleteResourcePolicy
203
- def self.build(context)
204
- Aws::Lambda::EndpointParameters.new(
205
- region: context.config.region,
206
- use_dual_stack: context.config.use_dualstack_endpoint,
207
- use_fips: context.config.use_fips_endpoint,
208
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
209
- )
210
- end
211
- end
212
-
213
202
  class GetAccountSettings
214
203
  def self.build(context)
215
204
  Aws::Lambda::EndpointParameters.new(
@@ -386,28 +375,6 @@ module Aws::Lambda
386
375
  end
387
376
  end
388
377
 
389
- class GetPublicAccessBlockConfig
390
- def self.build(context)
391
- Aws::Lambda::EndpointParameters.new(
392
- region: context.config.region,
393
- use_dual_stack: context.config.use_dualstack_endpoint,
394
- use_fips: context.config.use_fips_endpoint,
395
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
396
- )
397
- end
398
- end
399
-
400
- class GetResourcePolicy
401
- def self.build(context)
402
- Aws::Lambda::EndpointParameters.new(
403
- region: context.config.region,
404
- use_dual_stack: context.config.use_dualstack_endpoint,
405
- use_fips: context.config.use_fips_endpoint,
406
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
407
- )
408
- end
409
- end
410
-
411
378
  class GetRuntimeManagementConfig
412
379
  def self.build(context)
413
380
  Aws::Lambda::EndpointParameters.new(
@@ -661,28 +628,6 @@ module Aws::Lambda
661
628
  end
662
629
  end
663
630
 
664
- class PutPublicAccessBlockConfig
665
- def self.build(context)
666
- Aws::Lambda::EndpointParameters.new(
667
- region: context.config.region,
668
- use_dual_stack: context.config.use_dualstack_endpoint,
669
- use_fips: context.config.use_fips_endpoint,
670
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
671
- )
672
- end
673
- end
674
-
675
- class PutResourcePolicy
676
- def self.build(context)
677
- Aws::Lambda::EndpointParameters.new(
678
- region: context.config.region,
679
- use_dual_stack: context.config.use_dualstack_endpoint,
680
- use_fips: context.config.use_fips_endpoint,
681
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
682
- )
683
- end
684
- end
685
-
686
631
  class PutRuntimeManagementConfig
687
632
  def self.build(context)
688
633
  Aws::Lambda::EndpointParameters.new(
@@ -52,7 +52,6 @@ module Aws::Lambda
52
52
  # * {PolicyLengthExceededException}
53
53
  # * {PreconditionFailedException}
54
54
  # * {ProvisionedConcurrencyConfigNotFoundException}
55
- # * {PublicPolicyException}
56
55
  # * {RecursiveInvocationException}
57
56
  # * {RequestTooLargeException}
58
57
  # * {ResourceConflictException}
@@ -578,26 +577,6 @@ module Aws::Lambda
578
577
  end
579
578
  end
580
579
 
581
- class PublicPolicyException < ServiceError
582
-
583
- # @param [Seahorse::Client::RequestContext] context
584
- # @param [String] message
585
- # @param [Aws::Lambda::Types::PublicPolicyException] data
586
- def initialize(context, message, data = Aws::EmptyStructure.new)
587
- super(context, message, data)
588
- end
589
-
590
- # @return [String]
591
- def type
592
- @data[:type]
593
- end
594
-
595
- # @return [String]
596
- def message
597
- @message || @data[:message]
598
- end
599
- end
600
-
601
580
  class RecursiveInvocationException < ServiceError
602
581
 
603
582
  # @param [Seahorse::Client::RequestContext] context
@@ -104,8 +104,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
104
104
  Aws::Lambda::Endpoints::DeleteLayerVersion.build(context)
105
105
  when :delete_provisioned_concurrency_config
106
106
  Aws::Lambda::Endpoints::DeleteProvisionedConcurrencyConfig.build(context)
107
- when :delete_resource_policy
108
- Aws::Lambda::Endpoints::DeleteResourcePolicy.build(context)
109
107
  when :get_account_settings
110
108
  Aws::Lambda::Endpoints::GetAccountSettings.build(context)
111
109
  when :get_alias
@@ -138,10 +136,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
138
136
  Aws::Lambda::Endpoints::GetPolicy.build(context)
139
137
  when :get_provisioned_concurrency_config
140
138
  Aws::Lambda::Endpoints::GetProvisionedConcurrencyConfig.build(context)
141
- when :get_public_access_block_config
142
- Aws::Lambda::Endpoints::GetPublicAccessBlockConfig.build(context)
143
- when :get_resource_policy
144
- Aws::Lambda::Endpoints::GetResourcePolicy.build(context)
145
139
  when :get_runtime_management_config
146
140
  Aws::Lambda::Endpoints::GetRuntimeManagementConfig.build(context)
147
141
  when :invoke
@@ -188,10 +182,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
188
182
  Aws::Lambda::Endpoints::PutFunctionRecursionConfig.build(context)
189
183
  when :put_provisioned_concurrency_config
190
184
  Aws::Lambda::Endpoints::PutProvisionedConcurrencyConfig.build(context)
191
- when :put_public_access_block_config
192
- Aws::Lambda::Endpoints::PutPublicAccessBlockConfig.build(context)
193
- when :put_resource_policy
194
- Aws::Lambda::Endpoints::PutResourcePolicy.build(context)
195
185
  when :put_runtime_management_config
196
186
  Aws::Lambda::Endpoints::PutRuntimeManagementConfig.build(context)
197
187
  when :remove_layer_version_permission
@@ -167,14 +167,14 @@ module Aws::Lambda
167
167
  # @return [String]
168
168
  #
169
169
  # @!attribute [rw] principal
170
- # The Amazon Web Servicesservice, Amazon Web Services account, IAM
170
+ # The Amazon Web Services service, Amazon Web Services account, IAM
171
171
  # user, or IAM role that invokes the function. If you specify a
172
172
  # service, use `SourceArn` or `SourceAccount` to limit who can invoke
173
173
  # the function through that service.
174
174
  # @return [String]
175
175
  #
176
176
  # @!attribute [rw] source_arn
177
- # For Amazon Web Servicesservices, the ARN of the Amazon Web Services
177
+ # For Amazon Web Services services, the ARN of the Amazon Web Services
178
178
  # resource that invokes the function. For example, an Amazon S3 bucket
179
179
  # or Amazon SNS topic.
180
180
  #
@@ -183,7 +183,7 @@ module Aws::Lambda
183
183
  # @return [String]
184
184
  #
185
185
  # @!attribute [rw] source_account
186
- # For Amazon Web Servicesservice, the ID of the Amazon Web Services
186
+ # For Amazon Web Services service, the ID of the Amazon Web Services
187
187
  # account that owns the resource. Use this together with `SourceArn`
188
188
  # to ensure that the specified account owns the resource. It is
189
189
  # possible for an Amazon S3 bucket to be deleted by its owner and
@@ -1542,28 +1542,6 @@ module Aws::Lambda
1542
1542
  include Aws::Structure
1543
1543
  end
1544
1544
 
1545
- # @!attribute [rw] resource_arn
1546
- # The Amazon Resource Name (ARN) of the function you want to delete
1547
- # the policy from. You can use either a qualified or an unqualified
1548
- # ARN, but the value you specify must be a complete ARN and wildcard
1549
- # characters are not accepted.
1550
- # @return [String]
1551
- #
1552
- # @!attribute [rw] revision_id
1553
- # Delete the existing policy only if its revision ID matches the
1554
- # string you specify. To find the revision ID of the policy currently
1555
- # attached to your function, use the GetResourcePolicy action.
1556
- # @return [String]
1557
- #
1558
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicyRequest AWS API Documentation
1559
- #
1560
- class DeleteResourcePolicyRequest < Struct.new(
1561
- :resource_arn,
1562
- :revision_id)
1563
- SENSITIVE = []
1564
- include Aws::Structure
1565
- end
1566
-
1567
1545
  # A configuration object that specifies the destination of an event
1568
1546
  # after Lambda processes it.
1569
1547
  #
@@ -3337,63 +3315,6 @@ module Aws::Lambda
3337
3315
  include Aws::Structure
3338
3316
  end
3339
3317
 
3340
- # @!attribute [rw] resource_arn
3341
- # The Amazon Resource Name (ARN) of the function you want to retrieve
3342
- # public-access settings for.
3343
- # @return [String]
3344
- #
3345
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfigRequest AWS API Documentation
3346
- #
3347
- class GetPublicAccessBlockConfigRequest < Struct.new(
3348
- :resource_arn)
3349
- SENSITIVE = []
3350
- include Aws::Structure
3351
- end
3352
-
3353
- # @!attribute [rw] public_access_block_config
3354
- # The public-access settings configured for the function you specified
3355
- # @return [Types::PublicAccessBlockConfig]
3356
- #
3357
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfigResponse AWS API Documentation
3358
- #
3359
- class GetPublicAccessBlockConfigResponse < Struct.new(
3360
- :public_access_block_config)
3361
- SENSITIVE = []
3362
- include Aws::Structure
3363
- end
3364
-
3365
- # @!attribute [rw] resource_arn
3366
- # The Amazon Resource Name (ARN) of the function you want to retrieve
3367
- # the policy for. You can use either a qualified or an unqualified
3368
- # ARN, but the value you specify must be a complete ARN and wildcard
3369
- # characters are not accepted.
3370
- # @return [String]
3371
- #
3372
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyRequest AWS API Documentation
3373
- #
3374
- class GetResourcePolicyRequest < Struct.new(
3375
- :resource_arn)
3376
- SENSITIVE = []
3377
- include Aws::Structure
3378
- end
3379
-
3380
- # @!attribute [rw] policy
3381
- # The resource-based policy attached to the function you specified.
3382
- # @return [String]
3383
- #
3384
- # @!attribute [rw] revision_id
3385
- # The revision ID of the policy.
3386
- # @return [String]
3387
- #
3388
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyResponse AWS API Documentation
3389
- #
3390
- class GetResourcePolicyResponse < Struct.new(
3391
- :policy,
3392
- :revision_id)
3393
- SENSITIVE = []
3394
- include Aws::Structure
3395
- end
3396
-
3397
3318
  # @!attribute [rw] function_name
3398
3319
  # The name or ARN of the Lambda function.
3399
3320
  #
@@ -5045,52 +4966,6 @@ module Aws::Lambda
5045
4966
  include Aws::Structure
5046
4967
  end
5047
4968
 
5048
- # An object that defines the public-access settings for a function.
5049
- #
5050
- # @!attribute [rw] block_public_policy
5051
- # To block the creation of resource-based policies that would grant
5052
- # public access to your function, set `BlockPublicPolicy` to `true`.
5053
- # To allow the creation of resource-based policies that would grant
5054
- # public access to your function, set `BlockPublicPolicy` to `false`.
5055
- # @return [Boolean]
5056
- #
5057
- # @!attribute [rw] restrict_public_resource
5058
- # To block public access to your function, even if its resource-based
5059
- # policy allows it, set `RestrictPublicResource` to `true`. To allow
5060
- # public access to a function with a resource-based policy that
5061
- # permits it, set `RestrictPublicResource` to `false`.
5062
- # @return [Boolean]
5063
- #
5064
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublicAccessBlockConfig AWS API Documentation
5065
- #
5066
- class PublicAccessBlockConfig < Struct.new(
5067
- :block_public_policy,
5068
- :restrict_public_resource)
5069
- SENSITIVE = []
5070
- include Aws::Structure
5071
- end
5072
-
5073
- # Lambda prevented your policy from being created because it would grant
5074
- # public access to your function. If you intended to create a public
5075
- # policy, use the PutPublicAccessBlockConfig API action to configure
5076
- # your function's public-access settings to allow public policies.
5077
- #
5078
- # @!attribute [rw] type
5079
- # The exception type.
5080
- # @return [String]
5081
- #
5082
- # @!attribute [rw] message
5083
- # @return [String]
5084
- #
5085
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublicPolicyException AWS API Documentation
5086
- #
5087
- class PublicPolicyException < Struct.new(
5088
- :type,
5089
- :message)
5090
- SENSITIVE = []
5091
- include Aws::Structure
5092
- end
5093
-
5094
4969
  # @!attribute [rw] layer_name
5095
4970
  # The name or Amazon Resource Name (ARN) of the layer.
5096
4971
  # @return [String]
@@ -5575,103 +5450,6 @@ module Aws::Lambda
5575
5450
  include Aws::Structure
5576
5451
  end
5577
5452
 
5578
- # @!attribute [rw] resource_arn
5579
- # The Amazon Resource Name (ARN) of the function you want to configure
5580
- # public-access settings for. Public-access settings are applied at
5581
- # the function level, so you can't apply different settings to
5582
- # function versions or aliases.
5583
- # @return [String]
5584
- #
5585
- # @!attribute [rw] public_access_block_config
5586
- # An object defining the public-access settings you want to apply.
5587
- #
5588
- # To block the creation of resource-based policies that would grant
5589
- # public access to your function, set `BlockPublicPolicy` to `true`.
5590
- # To allow the creation of resource-based policies that would grant
5591
- # public access to your function, set `BlockPublicPolicy` to `false`.
5592
- #
5593
- # To block public access to your function, even if its resource-based
5594
- # policy allows it, set `RestrictPublicResource` to `true`. To allow
5595
- # public access to a function with a resource-based policy that
5596
- # permits it, set `RestrictPublicResource` to `false`.
5597
- #
5598
- # The default setting for both `BlockPublicPolicy` and
5599
- # `RestrictPublicResource` is `true`.
5600
- # @return [Types::PublicAccessBlockConfig]
5601
- #
5602
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfigRequest AWS API Documentation
5603
- #
5604
- class PutPublicAccessBlockConfigRequest < Struct.new(
5605
- :resource_arn,
5606
- :public_access_block_config)
5607
- SENSITIVE = []
5608
- include Aws::Structure
5609
- end
5610
-
5611
- # @!attribute [rw] public_access_block_config
5612
- # The public-access settings Lambda applied to your function.
5613
- # @return [Types::PublicAccessBlockConfig]
5614
- #
5615
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfigResponse AWS API Documentation
5616
- #
5617
- class PutPublicAccessBlockConfigResponse < Struct.new(
5618
- :public_access_block_config)
5619
- SENSITIVE = []
5620
- include Aws::Structure
5621
- end
5622
-
5623
- # @!attribute [rw] resource_arn
5624
- # The Amazon Resource Name (ARN) of the function you want to add the
5625
- # policy to. You can use either a qualified or an unqualified ARN, but
5626
- # the value you specify must be a complete ARN and wildcard characters
5627
- # are not accepted.
5628
- # @return [String]
5629
- #
5630
- # @!attribute [rw] policy
5631
- # The JSON resource-based policy you want to add to your function.
5632
- #
5633
- # To learn more about creating resource-based policies for controlling
5634
- # access to Lambda, see [Working with resource-based IAM policies in
5635
- # Lambda][1] in the *Lambda Developer Guide*.
5636
- #
5637
- #
5638
- #
5639
- # [1]: https://docs.aws.amazon.com/
5640
- # @return [String]
5641
- #
5642
- # @!attribute [rw] revision_id
5643
- # Replace the existing policy only if its revision ID matches the
5644
- # string you specify. To find the revision ID of the policy currently
5645
- # attached to your function, use the GetResourcePolicy action.
5646
- # @return [String]
5647
- #
5648
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyRequest AWS API Documentation
5649
- #
5650
- class PutResourcePolicyRequest < Struct.new(
5651
- :resource_arn,
5652
- :policy,
5653
- :revision_id)
5654
- SENSITIVE = []
5655
- include Aws::Structure
5656
- end
5657
-
5658
- # @!attribute [rw] policy
5659
- # The policy Lambda added to your function.
5660
- # @return [String]
5661
- #
5662
- # @!attribute [rw] revision_id
5663
- # The revision ID of the policy Lambda added to your function.
5664
- # @return [String]
5665
- #
5666
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyResponse AWS API Documentation
5667
- #
5668
- class PutResourcePolicyResponse < Struct.new(
5669
- :policy,
5670
- :revision_id)
5671
- SENSITIVE = []
5672
- include Aws::Structure
5673
- end
5674
-
5675
5453
  # @!attribute [rw] function_name
5676
5454
  # The name or ARN of the Lambda function.
5677
5455
  #
@@ -11,6 +11,8 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:lambda)
15
+
14
16
  # This module provides support for AWS Lambda. This module is available in the
15
17
  # `aws-sdk-lambda` gem.
16
18
  #
@@ -54,7 +56,7 @@ module Aws::Lambda
54
56
  autoload :Endpoints, 'aws-sdk-lambda/endpoints'
55
57
  autoload :EventStreams, 'aws-sdk-lambda/event_streams'
56
58
 
57
- GEM_VERSION = '1.134.0'
59
+ GEM_VERSION = '1.136.0'
58
60
 
59
61
  end
60
62
 
data/sig/client.rbs CHANGED
@@ -476,13 +476,6 @@ module Aws
476
476
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
477
477
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
478
478
 
479
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_resource_policy-instance_method
480
- def delete_resource_policy: (
481
- resource_arn: ::String,
482
- ?revision_id: ::String
483
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
484
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
485
-
486
479
  interface _GetAccountSettingsResponseSuccess
487
480
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountSettingsResponse]
488
481
  def account_limit: () -> Types::AccountLimit
@@ -758,27 +751,6 @@ module Aws
758
751
  ) -> _GetProvisionedConcurrencyConfigResponseSuccess
759
752
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedConcurrencyConfigResponseSuccess
760
753
 
761
- interface _GetPublicAccessBlockConfigResponseSuccess
762
- include ::Seahorse::Client::_ResponseSuccess[Types::GetPublicAccessBlockConfigResponse]
763
- def public_access_block_config: () -> Types::PublicAccessBlockConfig
764
- end
765
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_public_access_block_config-instance_method
766
- def get_public_access_block_config: (
767
- resource_arn: ::String
768
- ) -> _GetPublicAccessBlockConfigResponseSuccess
769
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicAccessBlockConfigResponseSuccess
770
-
771
- interface _GetResourcePolicyResponseSuccess
772
- include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
773
- def policy: () -> ::String
774
- def revision_id: () -> ::String
775
- end
776
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_resource_policy-instance_method
777
- def get_resource_policy: (
778
- resource_arn: ::String
779
- ) -> _GetResourcePolicyResponseSuccess
780
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
781
-
782
754
  interface _GetRuntimeManagementConfigResponseSuccess
783
755
  include ::Seahorse::Client::_ResponseSuccess[Types::GetRuntimeManagementConfigResponse]
784
756
  def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
@@ -1150,33 +1122,6 @@ module Aws
1150
1122
  ) -> _PutProvisionedConcurrencyConfigResponseSuccess
1151
1123
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutProvisionedConcurrencyConfigResponseSuccess
1152
1124
 
1153
- interface _PutPublicAccessBlockConfigResponseSuccess
1154
- include ::Seahorse::Client::_ResponseSuccess[Types::PutPublicAccessBlockConfigResponse]
1155
- def public_access_block_config: () -> Types::PublicAccessBlockConfig
1156
- end
1157
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_public_access_block_config-instance_method
1158
- def put_public_access_block_config: (
1159
- resource_arn: ::String,
1160
- public_access_block_config: {
1161
- block_public_policy: bool?,
1162
- restrict_public_resource: bool?
1163
- }
1164
- ) -> _PutPublicAccessBlockConfigResponseSuccess
1165
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutPublicAccessBlockConfigResponseSuccess
1166
-
1167
- interface _PutResourcePolicyResponseSuccess
1168
- include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
1169
- def policy: () -> ::String
1170
- def revision_id: () -> ::String
1171
- end
1172
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_resource_policy-instance_method
1173
- def put_resource_policy: (
1174
- resource_arn: ::String,
1175
- policy: ::String,
1176
- ?revision_id: ::String
1177
- ) -> _PutResourcePolicyResponseSuccess
1178
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
1179
-
1180
1125
  interface _PutRuntimeManagementConfigResponseSuccess
1181
1126
  include ::Seahorse::Client::_ResponseSuccess[Types::PutRuntimeManagementConfigResponse]
1182
1127
  def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
data/sig/errors.rbs CHANGED
@@ -112,10 +112,6 @@ module Aws
112
112
  def type: () -> ::String
113
113
  def message: () -> ::String
114
114
  end
115
- class PublicPolicyException < ::Aws::Errors::ServiceError
116
- def type: () -> ::String
117
- def message: () -> ::String
118
- end
119
115
  class RecursiveInvocationException < ::Aws::Errors::ServiceError
120
116
  def type: () -> ::String
121
117
  def message: () -> ::String
data/sig/types.rbs CHANGED
@@ -295,12 +295,6 @@ module Aws::Lambda
295
295
  SENSITIVE: []
296
296
  end
297
297
 
298
- class DeleteResourcePolicyRequest
299
- attr_accessor resource_arn: ::String
300
- attr_accessor revision_id: ::String
301
- SENSITIVE: []
302
- end
303
-
304
298
  class DestinationConfig
305
299
  attr_accessor on_success: Types::OnSuccess
306
300
  attr_accessor on_failure: Types::OnFailure
@@ -686,27 +680,6 @@ module Aws::Lambda
686
680
  SENSITIVE: []
687
681
  end
688
682
 
689
- class GetPublicAccessBlockConfigRequest
690
- attr_accessor resource_arn: ::String
691
- SENSITIVE: []
692
- end
693
-
694
- class GetPublicAccessBlockConfigResponse
695
- attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
696
- SENSITIVE: []
697
- end
698
-
699
- class GetResourcePolicyRequest
700
- attr_accessor resource_arn: ::String
701
- SENSITIVE: []
702
- end
703
-
704
- class GetResourcePolicyResponse
705
- attr_accessor policy: ::String
706
- attr_accessor revision_id: ::String
707
- SENSITIVE: []
708
- end
709
-
710
683
  class GetRuntimeManagementConfigRequest
711
684
  attr_accessor function_name: ::String
712
685
  attr_accessor qualifier: ::String
@@ -1115,18 +1088,6 @@ module Aws::Lambda
1115
1088
  SENSITIVE: []
1116
1089
  end
1117
1090
 
1118
- class PublicAccessBlockConfig
1119
- attr_accessor block_public_policy: bool
1120
- attr_accessor restrict_public_resource: bool
1121
- SENSITIVE: []
1122
- end
1123
-
1124
- class PublicPolicyException
1125
- attr_accessor type: ::String
1126
- attr_accessor message: ::String
1127
- SENSITIVE: []
1128
- end
1129
-
1130
1091
  class PublishLayerVersionRequest
1131
1092
  attr_accessor layer_name: ::String
1132
1093
  attr_accessor description: ::String
@@ -1213,30 +1174,6 @@ module Aws::Lambda
1213
1174
  SENSITIVE: []
1214
1175
  end
1215
1176
 
1216
- class PutPublicAccessBlockConfigRequest
1217
- attr_accessor resource_arn: ::String
1218
- attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
1219
- SENSITIVE: []
1220
- end
1221
-
1222
- class PutPublicAccessBlockConfigResponse
1223
- attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
1224
- SENSITIVE: []
1225
- end
1226
-
1227
- class PutResourcePolicyRequest
1228
- attr_accessor resource_arn: ::String
1229
- attr_accessor policy: ::String
1230
- attr_accessor revision_id: ::String
1231
- SENSITIVE: []
1232
- end
1233
-
1234
- class PutResourcePolicyResponse
1235
- attr_accessor policy: ::String
1236
- attr_accessor revision_id: ::String
1237
- SENSITIVE: []
1238
- end
1239
-
1240
1177
  class PutRuntimeManagementConfigRequest
1241
1178
  attr_accessor function_name: ::String
1242
1179
  attr_accessor qualifier: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lambda
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.134.0
4
+ version: 1.136.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-23 00:00:00.000000000 Z
11
+ date: 2024-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core