aws-sdk-lambda 1.129.0 → 1.131.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +232 -1
- data/lib/aws-sdk-lambda/client_api.rb +123 -0
- data/lib/aws-sdk-lambda/endpoints.rb +123 -272
- data/lib/aws-sdk-lambda/errors.rb +21 -0
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +20 -1
- data/lib/aws-sdk-lambda/types.rb +222 -0
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +55 -0
- data/sig/errors.rbs +4 -0
- data/sig/types.rbs +63 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2325a1f7266afce8abd7e4f97535445bc1beb806ff93f82b816a21df828dffe7
|
4
|
+
data.tar.gz: '0950c000fd8da2c6d68c1b71fc84fe95e8b5e0ead0691a1fb1993b4950061ab5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae8584979cc1cc80a0f21684986f24aec353fd2422eef0e35af2772d91aa5e28dfb69bcc21eeaf057442b2672148b85d301a7b77cb4e77169e766d26dc230cf6
|
7
|
+
data.tar.gz: aaaa56afad2d37595c44f10cd6d9aeaab0a3b20f25473b9ea830ac412ab7dffdc30d62bc01e8257b46fd67f14b424cbc6e89631c4144767502f203ff4ead2884
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.131.0 (2024-09-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Support for JSON resource-based policies and block public access
|
8
|
+
|
9
|
+
1.130.0 (2024-09-11)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.129.0 (2024-09-10)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.131.0
|
@@ -2192,6 +2192,41 @@ module Aws::Lambda
|
|
2192
2192
|
req.send_request(options)
|
2193
2193
|
end
|
2194
2194
|
|
2195
|
+
# Deletes a [resource-based policy][1] from a function.
|
2196
|
+
#
|
2197
|
+
#
|
2198
|
+
#
|
2199
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
2200
|
+
#
|
2201
|
+
# @option params [required, String] :resource_arn
|
2202
|
+
# The Amazon Resource Name (ARN) of the function you want to delete the
|
2203
|
+
# policy from. You can use either a qualified or an unqualified ARN, but
|
2204
|
+
# the value you specify must be a complete ARN and wildcard characters
|
2205
|
+
# are not accepted.
|
2206
|
+
#
|
2207
|
+
# @option params [String] :revision_id
|
2208
|
+
# Delete the existing policy only if its revision ID matches the string
|
2209
|
+
# you specify. To find the revision ID of the policy currently attached
|
2210
|
+
# to your function, use the GetResourcePolicy action.
|
2211
|
+
#
|
2212
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2213
|
+
#
|
2214
|
+
# @example Request syntax with placeholder values
|
2215
|
+
#
|
2216
|
+
# resp = client.delete_resource_policy({
|
2217
|
+
# resource_arn: "PolicyResourceArn", # required
|
2218
|
+
# revision_id: "RevisionId",
|
2219
|
+
# })
|
2220
|
+
#
|
2221
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicy AWS API Documentation
|
2222
|
+
#
|
2223
|
+
# @overload delete_resource_policy(params = {})
|
2224
|
+
# @param [Hash] params ({})
|
2225
|
+
def delete_resource_policy(params = {}, options = {})
|
2226
|
+
req = build_request(:delete_resource_policy, params)
|
2227
|
+
req.send_request(options)
|
2228
|
+
end
|
2229
|
+
|
2195
2230
|
# Retrieves details about your account's [limits][1] and usage in an
|
2196
2231
|
# Amazon Web Services Region.
|
2197
2232
|
#
|
@@ -3198,6 +3233,73 @@ module Aws::Lambda
|
|
3198
3233
|
req.send_request(options)
|
3199
3234
|
end
|
3200
3235
|
|
3236
|
+
# Retrieve the public-access settings for a function.
|
3237
|
+
#
|
3238
|
+
# @option params [required, String] :resource_arn
|
3239
|
+
# The Amazon Resource Name (ARN) of the function you want to retrieve
|
3240
|
+
# public-access settings for.
|
3241
|
+
#
|
3242
|
+
# @return [Types::GetPublicAccessBlockConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3243
|
+
#
|
3244
|
+
# * {Types::GetPublicAccessBlockConfigResponse#public_access_block_config #public_access_block_config} => Types::PublicAccessBlockConfig
|
3245
|
+
#
|
3246
|
+
# @example Request syntax with placeholder values
|
3247
|
+
#
|
3248
|
+
# resp = client.get_public_access_block_config({
|
3249
|
+
# resource_arn: "PublicAccessBlockResourceArn", # required
|
3250
|
+
# })
|
3251
|
+
#
|
3252
|
+
# @example Response structure
|
3253
|
+
#
|
3254
|
+
# resp.public_access_block_config.block_public_policy #=> Boolean
|
3255
|
+
# resp.public_access_block_config.restrict_public_resource #=> Boolean
|
3256
|
+
#
|
3257
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfig AWS API Documentation
|
3258
|
+
#
|
3259
|
+
# @overload get_public_access_block_config(params = {})
|
3260
|
+
# @param [Hash] params ({})
|
3261
|
+
def get_public_access_block_config(params = {}, options = {})
|
3262
|
+
req = build_request(:get_public_access_block_config, params)
|
3263
|
+
req.send_request(options)
|
3264
|
+
end
|
3265
|
+
|
3266
|
+
# Retrieves the [resource-based policy][1] attached to a function.
|
3267
|
+
#
|
3268
|
+
#
|
3269
|
+
#
|
3270
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
3271
|
+
#
|
3272
|
+
# @option params [required, String] :resource_arn
|
3273
|
+
# The Amazon Resource Name (ARN) of the function you want to retrieve
|
3274
|
+
# the policy for. You can use either a qualified or an unqualified ARN,
|
3275
|
+
# but the value you specify must be a complete ARN and wildcard
|
3276
|
+
# characters are not accepted.
|
3277
|
+
#
|
3278
|
+
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3279
|
+
#
|
3280
|
+
# * {Types::GetResourcePolicyResponse#policy #policy} => String
|
3281
|
+
# * {Types::GetResourcePolicyResponse#revision_id #revision_id} => String
|
3282
|
+
#
|
3283
|
+
# @example Request syntax with placeholder values
|
3284
|
+
#
|
3285
|
+
# resp = client.get_resource_policy({
|
3286
|
+
# resource_arn: "PolicyResourceArn", # required
|
3287
|
+
# })
|
3288
|
+
#
|
3289
|
+
# @example Response structure
|
3290
|
+
#
|
3291
|
+
# resp.policy #=> String
|
3292
|
+
# resp.revision_id #=> String
|
3293
|
+
#
|
3294
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicy AWS API Documentation
|
3295
|
+
#
|
3296
|
+
# @overload get_resource_policy(params = {})
|
3297
|
+
# @param [Hash] params ({})
|
3298
|
+
def get_resource_policy(params = {}, options = {})
|
3299
|
+
req = build_request(:get_resource_policy, params)
|
3300
|
+
req.send_request(options)
|
3301
|
+
end
|
3302
|
+
|
3201
3303
|
# Retrieves the runtime management configuration for a function's
|
3202
3304
|
# version. If the runtime update mode is **Manual**, this includes the
|
3203
3305
|
# ARN of the runtime version and the runtime update mode. If the runtime
|
@@ -5235,6 +5337,135 @@ module Aws::Lambda
|
|
5235
5337
|
req.send_request(options)
|
5236
5338
|
end
|
5237
5339
|
|
5340
|
+
# Configure your function's public-access settings.
|
5341
|
+
#
|
5342
|
+
# To control public access to a Lambda function, you can choose whether
|
5343
|
+
# to allow the creation of [resource-based policies][1] that allow
|
5344
|
+
# public access to that function. You can also block public access to a
|
5345
|
+
# function, even if it has an existing resource-based policy that allows
|
5346
|
+
# it.
|
5347
|
+
#
|
5348
|
+
#
|
5349
|
+
#
|
5350
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
5351
|
+
#
|
5352
|
+
# @option params [required, String] :resource_arn
|
5353
|
+
# The Amazon Resource Name (ARN) of the function you want to configure
|
5354
|
+
# public-access settings for. Public-access settings are applied at the
|
5355
|
+
# function level, so you can't apply different settings to function
|
5356
|
+
# versions or aliases.
|
5357
|
+
#
|
5358
|
+
# @option params [required, Types::PublicAccessBlockConfig] :public_access_block_config
|
5359
|
+
# An object defining the public-access settings you want to apply.
|
5360
|
+
#
|
5361
|
+
# To block the creation of resource-based policies that would grant
|
5362
|
+
# public access to your function, set `BlockPublicPolicy` to `true`. To
|
5363
|
+
# allow the creation of resource-based policies that would grant public
|
5364
|
+
# access to your function, set `BlockPublicPolicy` to `false`.
|
5365
|
+
#
|
5366
|
+
# To block public access to your function, even if its resource-based
|
5367
|
+
# policy allows it, set `RestrictPublicResource` to `true`. To allow
|
5368
|
+
# public access to a function with a resource-based policy that permits
|
5369
|
+
# it, set `RestrictPublicResource` to `false`.
|
5370
|
+
#
|
5371
|
+
# The default setting for both `BlockPublicPolicy` and
|
5372
|
+
# `RestrictPublicResource` is `true`.
|
5373
|
+
#
|
5374
|
+
# @return [Types::PutPublicAccessBlockConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5375
|
+
#
|
5376
|
+
# * {Types::PutPublicAccessBlockConfigResponse#public_access_block_config #public_access_block_config} => Types::PublicAccessBlockConfig
|
5377
|
+
#
|
5378
|
+
# @example Request syntax with placeholder values
|
5379
|
+
#
|
5380
|
+
# resp = client.put_public_access_block_config({
|
5381
|
+
# resource_arn: "PublicAccessBlockResourceArn", # required
|
5382
|
+
# public_access_block_config: { # required
|
5383
|
+
# block_public_policy: false,
|
5384
|
+
# restrict_public_resource: false,
|
5385
|
+
# },
|
5386
|
+
# })
|
5387
|
+
#
|
5388
|
+
# @example Response structure
|
5389
|
+
#
|
5390
|
+
# resp.public_access_block_config.block_public_policy #=> Boolean
|
5391
|
+
# resp.public_access_block_config.restrict_public_resource #=> Boolean
|
5392
|
+
#
|
5393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfig AWS API Documentation
|
5394
|
+
#
|
5395
|
+
# @overload put_public_access_block_config(params = {})
|
5396
|
+
# @param [Hash] params ({})
|
5397
|
+
def put_public_access_block_config(params = {}, options = {})
|
5398
|
+
req = build_request(:put_public_access_block_config, params)
|
5399
|
+
req.send_request(options)
|
5400
|
+
end
|
5401
|
+
|
5402
|
+
# Adds a [resource-based policy][1] to a function. You can use
|
5403
|
+
# resource-based policies to grant access to other [Amazon Web Services
|
5404
|
+
# accounts][2], [organizations][3], or [services][4]. Resource-based
|
5405
|
+
# policies apply to a single function, version, or alias.
|
5406
|
+
#
|
5407
|
+
# Adding a resource-based policy using this API action replaces any
|
5408
|
+
# existing policy you've previously created. This means that if you've
|
5409
|
+
# previously added resource-based permissions to a function using the
|
5410
|
+
# AddPermission action, those permissions will be overwritten by your
|
5411
|
+
# new policy.
|
5412
|
+
#
|
5413
|
+
#
|
5414
|
+
#
|
5415
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
5416
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html
|
5417
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html
|
5418
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-services.html
|
5419
|
+
#
|
5420
|
+
# @option params [required, String] :resource_arn
|
5421
|
+
# The Amazon Resource Name (ARN) of the function you want to add the
|
5422
|
+
# policy to. You can use either a qualified or an unqualified ARN, but
|
5423
|
+
# the value you specify must be a complete ARN and wildcard characters
|
5424
|
+
# are not accepted.
|
5425
|
+
#
|
5426
|
+
# @option params [required, String] :policy
|
5427
|
+
# The JSON resource-based policy you want to add to your function.
|
5428
|
+
#
|
5429
|
+
# To learn more about creating resource-based policies for controlling
|
5430
|
+
# access to Lambda, see [Working with resource-based IAM policies in
|
5431
|
+
# Lambda][1] in the *Lambda Developer Guide*.
|
5432
|
+
#
|
5433
|
+
#
|
5434
|
+
#
|
5435
|
+
# [1]: https://docs.aws.amazon.com/
|
5436
|
+
#
|
5437
|
+
# @option params [String] :revision_id
|
5438
|
+
# Replace the existing policy only if its revision ID matches the string
|
5439
|
+
# you specify. To find the revision ID of the policy currently attached
|
5440
|
+
# to your function, use the GetResourcePolicy action.
|
5441
|
+
#
|
5442
|
+
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5443
|
+
#
|
5444
|
+
# * {Types::PutResourcePolicyResponse#policy #policy} => String
|
5445
|
+
# * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
|
5446
|
+
#
|
5447
|
+
# @example Request syntax with placeholder values
|
5448
|
+
#
|
5449
|
+
# resp = client.put_resource_policy({
|
5450
|
+
# resource_arn: "PolicyResourceArn", # required
|
5451
|
+
# policy: "ResourcePolicy", # required
|
5452
|
+
# revision_id: "RevisionId",
|
5453
|
+
# })
|
5454
|
+
#
|
5455
|
+
# @example Response structure
|
5456
|
+
#
|
5457
|
+
# resp.policy #=> String
|
5458
|
+
# resp.revision_id #=> String
|
5459
|
+
#
|
5460
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicy AWS API Documentation
|
5461
|
+
#
|
5462
|
+
# @overload put_resource_policy(params = {})
|
5463
|
+
# @param [Hash] params ({})
|
5464
|
+
def put_resource_policy(params = {}, options = {})
|
5465
|
+
req = build_request(:put_resource_policy, params)
|
5466
|
+
req.send_request(options)
|
5467
|
+
end
|
5468
|
+
|
5238
5469
|
# Sets the runtime management configuration for a function's version.
|
5239
5470
|
# For more information, see [Runtime updates][1].
|
5240
5471
|
#
|
@@ -6755,7 +6986,7 @@ module Aws::Lambda
|
|
6755
6986
|
tracer: tracer
|
6756
6987
|
)
|
6757
6988
|
context[:gem_name] = 'aws-sdk-lambda'
|
6758
|
-
context[:gem_version] = '1.
|
6989
|
+
context[:gem_version] = '1.131.0'
|
6759
6990
|
Seahorse::Client::Request.new(handlers, context)
|
6760
6991
|
end
|
6761
6992
|
|
@@ -75,6 +75,7 @@ module Aws::Lambda
|
|
75
75
|
DeleteFunctionUrlConfigRequest = Shapes::StructureShape.new(name: 'DeleteFunctionUrlConfigRequest')
|
76
76
|
DeleteLayerVersionRequest = Shapes::StructureShape.new(name: 'DeleteLayerVersionRequest')
|
77
77
|
DeleteProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedConcurrencyConfigRequest')
|
78
|
+
DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
|
78
79
|
Description = Shapes::StringShape.new(name: 'Description')
|
79
80
|
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
80
81
|
DestinationConfig = Shapes::StructureShape.new(name: 'DestinationConfig')
|
@@ -158,6 +159,10 @@ module Aws::Lambda
|
|
158
159
|
GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
|
159
160
|
GetProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigRequest')
|
160
161
|
GetProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigResponse')
|
162
|
+
GetPublicAccessBlockConfigRequest = Shapes::StructureShape.new(name: 'GetPublicAccessBlockConfigRequest')
|
163
|
+
GetPublicAccessBlockConfigResponse = Shapes::StructureShape.new(name: 'GetPublicAccessBlockConfigResponse')
|
164
|
+
GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
|
165
|
+
GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
|
161
166
|
GetRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigRequest')
|
162
167
|
GetRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigResponse')
|
163
168
|
Handler = Shapes::StringShape.new(name: 'Handler')
|
@@ -268,6 +273,7 @@ module Aws::Lambda
|
|
268
273
|
ParallelizationFactor = Shapes::IntegerShape.new(name: 'ParallelizationFactor')
|
269
274
|
Pattern = Shapes::StringShape.new(name: 'Pattern')
|
270
275
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
276
|
+
PolicyResourceArn = Shapes::StringShape.new(name: 'PolicyResourceArn')
|
271
277
|
PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
|
272
278
|
PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
|
273
279
|
Principal = Shapes::StringShape.new(name: 'Principal')
|
@@ -276,6 +282,9 @@ module Aws::Lambda
|
|
276
282
|
ProvisionedConcurrencyConfigListItem = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigListItem')
|
277
283
|
ProvisionedConcurrencyConfigNotFoundException = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigNotFoundException')
|
278
284
|
ProvisionedConcurrencyStatusEnum = Shapes::StringShape.new(name: 'ProvisionedConcurrencyStatusEnum')
|
285
|
+
PublicAccessBlockConfig = Shapes::StructureShape.new(name: 'PublicAccessBlockConfig')
|
286
|
+
PublicAccessBlockResourceArn = Shapes::StringShape.new(name: 'PublicAccessBlockResourceArn')
|
287
|
+
PublicPolicyException = Shapes::StructureShape.new(name: 'PublicPolicyException')
|
279
288
|
PublishLayerVersionRequest = Shapes::StructureShape.new(name: 'PublishLayerVersionRequest')
|
280
289
|
PublishLayerVersionResponse = Shapes::StructureShape.new(name: 'PublishLayerVersionResponse')
|
281
290
|
PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
|
@@ -287,6 +296,10 @@ module Aws::Lambda
|
|
287
296
|
PutFunctionRecursionConfigResponse = Shapes::StructureShape.new(name: 'PutFunctionRecursionConfigResponse')
|
288
297
|
PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
|
289
298
|
PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
|
299
|
+
PutPublicAccessBlockConfigRequest = Shapes::StructureShape.new(name: 'PutPublicAccessBlockConfigRequest')
|
300
|
+
PutPublicAccessBlockConfigResponse = Shapes::StructureShape.new(name: 'PutPublicAccessBlockConfigResponse')
|
301
|
+
PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
|
302
|
+
PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
|
290
303
|
PutRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigRequest')
|
291
304
|
PutRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigResponse')
|
292
305
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
@@ -303,7 +316,9 @@ module Aws::Lambda
|
|
303
316
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
304
317
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
305
318
|
ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
|
319
|
+
ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
|
306
320
|
ResponseStreamingInvocationType = Shapes::StringShape.new(name: 'ResponseStreamingInvocationType')
|
321
|
+
RevisionId = Shapes::StringShape.new(name: 'RevisionId')
|
307
322
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
308
323
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
309
324
|
RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
|
@@ -609,6 +624,10 @@ module Aws::Lambda
|
|
609
624
|
DeleteProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
|
610
625
|
DeleteProvisionedConcurrencyConfigRequest.struct_class = Types::DeleteProvisionedConcurrencyConfigRequest
|
611
626
|
|
627
|
+
DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
628
|
+
DeleteResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location: "querystring", location_name: "RevisionId"))
|
629
|
+
DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
|
630
|
+
|
612
631
|
DestinationConfig.add_member(:on_success, Shapes::ShapeRef.new(shape: OnSuccess, location_name: "OnSuccess"))
|
613
632
|
DestinationConfig.add_member(:on_failure, Shapes::ShapeRef.new(shape: OnFailure, location_name: "OnFailure"))
|
614
633
|
DestinationConfig.struct_class = Types::DestinationConfig
|
@@ -916,6 +935,19 @@ module Aws::Lambda
|
|
916
935
|
GetProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
917
936
|
GetProvisionedConcurrencyConfigResponse.struct_class = Types::GetProvisionedConcurrencyConfigResponse
|
918
937
|
|
938
|
+
GetPublicAccessBlockConfigRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PublicAccessBlockResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
939
|
+
GetPublicAccessBlockConfigRequest.struct_class = Types::GetPublicAccessBlockConfigRequest
|
940
|
+
|
941
|
+
GetPublicAccessBlockConfigResponse.add_member(:public_access_block_config, Shapes::ShapeRef.new(shape: PublicAccessBlockConfig, location_name: "PublicAccessBlockConfig"))
|
942
|
+
GetPublicAccessBlockConfigResponse.struct_class = Types::GetPublicAccessBlockConfigResponse
|
943
|
+
|
944
|
+
GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
945
|
+
GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
|
946
|
+
|
947
|
+
GetResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
|
948
|
+
GetResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
|
949
|
+
GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
|
950
|
+
|
919
951
|
GetRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
920
952
|
GetRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
921
953
|
GetRuntimeManagementConfigRequest.struct_class = Types::GetRuntimeManagementConfigRequest
|
@@ -1228,6 +1260,14 @@ module Aws::Lambda
|
|
1228
1260
|
ProvisionedConcurrencyConfigNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
1229
1261
|
ProvisionedConcurrencyConfigNotFoundException.struct_class = Types::ProvisionedConcurrencyConfigNotFoundException
|
1230
1262
|
|
1263
|
+
PublicAccessBlockConfig.add_member(:block_public_policy, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "BlockPublicPolicy"))
|
1264
|
+
PublicAccessBlockConfig.add_member(:restrict_public_resource, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "RestrictPublicResource"))
|
1265
|
+
PublicAccessBlockConfig.struct_class = Types::PublicAccessBlockConfig
|
1266
|
+
|
1267
|
+
PublicPolicyException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
1268
|
+
PublicPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
1269
|
+
PublicPolicyException.struct_class = Types::PublicPolicyException
|
1270
|
+
|
1231
1271
|
PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
1232
1272
|
PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
1233
1273
|
PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
|
@@ -1292,6 +1332,22 @@ module Aws::Lambda
|
|
1292
1332
|
PutProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
1293
1333
|
PutProvisionedConcurrencyConfigResponse.struct_class = Types::PutProvisionedConcurrencyConfigResponse
|
1294
1334
|
|
1335
|
+
PutPublicAccessBlockConfigRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PublicAccessBlockResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
1336
|
+
PutPublicAccessBlockConfigRequest.add_member(:public_access_block_config, Shapes::ShapeRef.new(shape: PublicAccessBlockConfig, required: true, location_name: "PublicAccessBlockConfig"))
|
1337
|
+
PutPublicAccessBlockConfigRequest.struct_class = Types::PutPublicAccessBlockConfigRequest
|
1338
|
+
|
1339
|
+
PutPublicAccessBlockConfigResponse.add_member(:public_access_block_config, Shapes::ShapeRef.new(shape: PublicAccessBlockConfig, location_name: "PublicAccessBlockConfig"))
|
1340
|
+
PutPublicAccessBlockConfigResponse.struct_class = Types::PutPublicAccessBlockConfigResponse
|
1341
|
+
|
1342
|
+
PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
1343
|
+
PutResourcePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, required: true, location_name: "Policy"))
|
1344
|
+
PutResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
|
1345
|
+
PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
|
1346
|
+
|
1347
|
+
PutResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
|
1348
|
+
PutResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
|
1349
|
+
PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
|
1350
|
+
|
1295
1351
|
PutRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
1296
1352
|
PutRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
1297
1353
|
PutRuntimeManagementConfigRequest.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, required: true, location_name: "UpdateRuntimeOn"))
|
@@ -1773,6 +1829,20 @@ module Aws::Lambda
|
|
1773
1829
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1774
1830
|
end)
|
1775
1831
|
|
1832
|
+
api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
1833
|
+
o.name = "DeleteResourcePolicy"
|
1834
|
+
o.http_method = "DELETE"
|
1835
|
+
o.http_request_uri = "/2024-09-16/resource-policy/{ResourceArn}"
|
1836
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
|
1837
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1838
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1839
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1840
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1841
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1842
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1843
|
+
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
1844
|
+
end)
|
1845
|
+
|
1776
1846
|
api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
1777
1847
|
o.name = "GetAccountSettings"
|
1778
1848
|
o.http_method = "GET"
|
@@ -1963,6 +2033,30 @@ module Aws::Lambda
|
|
1963
2033
|
o.errors << Shapes::ShapeRef.new(shape: ProvisionedConcurrencyConfigNotFoundException)
|
1964
2034
|
end)
|
1965
2035
|
|
2036
|
+
api.add_operation(:get_public_access_block_config, Seahorse::Model::Operation.new.tap do |o|
|
2037
|
+
o.name = "GetPublicAccessBlockConfig"
|
2038
|
+
o.http_method = "GET"
|
2039
|
+
o.http_request_uri = "/2024-09-16/public-access-block/{ResourceArn}"
|
2040
|
+
o.input = Shapes::ShapeRef.new(shape: GetPublicAccessBlockConfigRequest)
|
2041
|
+
o.output = Shapes::ShapeRef.new(shape: GetPublicAccessBlockConfigResponse)
|
2042
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2043
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2044
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
2045
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2046
|
+
end)
|
2047
|
+
|
2048
|
+
api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
2049
|
+
o.name = "GetResourcePolicy"
|
2050
|
+
o.http_method = "GET"
|
2051
|
+
o.http_request_uri = "/2024-09-16/resource-policy/{ResourceArn}"
|
2052
|
+
o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
|
2053
|
+
o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
|
2054
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2055
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2056
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
2057
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2058
|
+
end)
|
2059
|
+
|
1966
2060
|
api.add_operation(:get_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
|
1967
2061
|
o.name = "GetRuntimeManagementConfig"
|
1968
2062
|
o.http_method = "GET"
|
@@ -2364,6 +2458,35 @@ module Aws::Lambda
|
|
2364
2458
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2365
2459
|
end)
|
2366
2460
|
|
2461
|
+
api.add_operation(:put_public_access_block_config, Seahorse::Model::Operation.new.tap do |o|
|
2462
|
+
o.name = "PutPublicAccessBlockConfig"
|
2463
|
+
o.http_method = "PUT"
|
2464
|
+
o.http_request_uri = "/2024-09-16/public-access-block/{ResourceArn}"
|
2465
|
+
o.input = Shapes::ShapeRef.new(shape: PutPublicAccessBlockConfigRequest)
|
2466
|
+
o.output = Shapes::ShapeRef.new(shape: PutPublicAccessBlockConfigResponse)
|
2467
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2468
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2469
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
2470
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2471
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
2472
|
+
end)
|
2473
|
+
|
2474
|
+
api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
2475
|
+
o.name = "PutResourcePolicy"
|
2476
|
+
o.http_method = "PUT"
|
2477
|
+
o.http_request_uri = "/2024-09-16/resource-policy/{ResourceArn}"
|
2478
|
+
o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
|
2479
|
+
o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
|
2480
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2481
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2482
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
2483
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2484
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
|
2485
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
2486
|
+
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
2487
|
+
o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
|
2488
|
+
end)
|
2489
|
+
|
2367
2490
|
api.add_operation(:put_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
|
2368
2491
|
o.name = "PutRuntimeManagementConfig"
|
2369
2492
|
o.http_method = "PUT"
|