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
@@ -52,6 +52,7 @@ module Aws::Lambda
|
|
52
52
|
# * {PolicyLengthExceededException}
|
53
53
|
# * {PreconditionFailedException}
|
54
54
|
# * {ProvisionedConcurrencyConfigNotFoundException}
|
55
|
+
# * {PublicPolicyException}
|
55
56
|
# * {RecursiveInvocationException}
|
56
57
|
# * {RequestTooLargeException}
|
57
58
|
# * {ResourceConflictException}
|
@@ -577,6 +578,26 @@ module Aws::Lambda
|
|
577
578
|
end
|
578
579
|
end
|
579
580
|
|
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
|
+
|
580
601
|
class RecursiveInvocationException < ServiceError
|
581
602
|
|
582
603
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -40,11 +40,20 @@ module Aws::Lambda
|
|
40
40
|
context[:auth_scheme] =
|
41
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
42
42
|
|
43
|
-
@handler.call(context)
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
47
47
|
|
48
|
+
def with_metrics(context, &block)
|
49
|
+
metrics = []
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
53
|
+
end
|
54
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
55
|
+
end
|
56
|
+
|
48
57
|
def apply_endpoint_headers(context, headers)
|
49
58
|
headers.each do |key, values|
|
50
59
|
value = values
|
@@ -92,6 +101,8 @@ module Aws::Lambda
|
|
92
101
|
Aws::Lambda::Endpoints::DeleteLayerVersion.build(context)
|
93
102
|
when :delete_provisioned_concurrency_config
|
94
103
|
Aws::Lambda::Endpoints::DeleteProvisionedConcurrencyConfig.build(context)
|
104
|
+
when :delete_resource_policy
|
105
|
+
Aws::Lambda::Endpoints::DeleteResourcePolicy.build(context)
|
95
106
|
when :get_account_settings
|
96
107
|
Aws::Lambda::Endpoints::GetAccountSettings.build(context)
|
97
108
|
when :get_alias
|
@@ -124,6 +135,10 @@ module Aws::Lambda
|
|
124
135
|
Aws::Lambda::Endpoints::GetPolicy.build(context)
|
125
136
|
when :get_provisioned_concurrency_config
|
126
137
|
Aws::Lambda::Endpoints::GetProvisionedConcurrencyConfig.build(context)
|
138
|
+
when :get_public_access_block_config
|
139
|
+
Aws::Lambda::Endpoints::GetPublicAccessBlockConfig.build(context)
|
140
|
+
when :get_resource_policy
|
141
|
+
Aws::Lambda::Endpoints::GetResourcePolicy.build(context)
|
127
142
|
when :get_runtime_management_config
|
128
143
|
Aws::Lambda::Endpoints::GetRuntimeManagementConfig.build(context)
|
129
144
|
when :invoke
|
@@ -170,6 +185,10 @@ module Aws::Lambda
|
|
170
185
|
Aws::Lambda::Endpoints::PutFunctionRecursionConfig.build(context)
|
171
186
|
when :put_provisioned_concurrency_config
|
172
187
|
Aws::Lambda::Endpoints::PutProvisionedConcurrencyConfig.build(context)
|
188
|
+
when :put_public_access_block_config
|
189
|
+
Aws::Lambda::Endpoints::PutPublicAccessBlockConfig.build(context)
|
190
|
+
when :put_resource_policy
|
191
|
+
Aws::Lambda::Endpoints::PutResourcePolicy.build(context)
|
173
192
|
when :put_runtime_management_config
|
174
193
|
Aws::Lambda::Endpoints::PutRuntimeManagementConfig.build(context)
|
175
194
|
when :remove_layer_version_permission
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -1532,6 +1532,28 @@ module Aws::Lambda
|
|
1532
1532
|
include Aws::Structure
|
1533
1533
|
end
|
1534
1534
|
|
1535
|
+
# @!attribute [rw] resource_arn
|
1536
|
+
# The Amazon Resource Name (ARN) of the function you want to delete
|
1537
|
+
# the policy from. You can use either a qualified or an unqualified
|
1538
|
+
# ARN, but the value you specify must be a complete ARN and wildcard
|
1539
|
+
# characters are not accepted.
|
1540
|
+
# @return [String]
|
1541
|
+
#
|
1542
|
+
# @!attribute [rw] revision_id
|
1543
|
+
# Delete the existing policy only if its revision ID matches the
|
1544
|
+
# string you specify. To find the revision ID of the policy currently
|
1545
|
+
# attached to your function, use the GetResourcePolicy action.
|
1546
|
+
# @return [String]
|
1547
|
+
#
|
1548
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicyRequest AWS API Documentation
|
1549
|
+
#
|
1550
|
+
class DeleteResourcePolicyRequest < Struct.new(
|
1551
|
+
:resource_arn,
|
1552
|
+
:revision_id)
|
1553
|
+
SENSITIVE = []
|
1554
|
+
include Aws::Structure
|
1555
|
+
end
|
1556
|
+
|
1535
1557
|
# A configuration object that specifies the destination of an event
|
1536
1558
|
# after Lambda processes it.
|
1537
1559
|
#
|
@@ -3300,6 +3322,63 @@ module Aws::Lambda
|
|
3300
3322
|
include Aws::Structure
|
3301
3323
|
end
|
3302
3324
|
|
3325
|
+
# @!attribute [rw] resource_arn
|
3326
|
+
# The Amazon Resource Name (ARN) of the function you want to retrieve
|
3327
|
+
# public-access settings for.
|
3328
|
+
# @return [String]
|
3329
|
+
#
|
3330
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfigRequest AWS API Documentation
|
3331
|
+
#
|
3332
|
+
class GetPublicAccessBlockConfigRequest < Struct.new(
|
3333
|
+
:resource_arn)
|
3334
|
+
SENSITIVE = []
|
3335
|
+
include Aws::Structure
|
3336
|
+
end
|
3337
|
+
|
3338
|
+
# @!attribute [rw] public_access_block_config
|
3339
|
+
# The public-access settings configured for the function you specified
|
3340
|
+
# @return [Types::PublicAccessBlockConfig]
|
3341
|
+
#
|
3342
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfigResponse AWS API Documentation
|
3343
|
+
#
|
3344
|
+
class GetPublicAccessBlockConfigResponse < Struct.new(
|
3345
|
+
:public_access_block_config)
|
3346
|
+
SENSITIVE = []
|
3347
|
+
include Aws::Structure
|
3348
|
+
end
|
3349
|
+
|
3350
|
+
# @!attribute [rw] resource_arn
|
3351
|
+
# The Amazon Resource Name (ARN) of the function you want to retrieve
|
3352
|
+
# the policy for. You can use either a qualified or an unqualified
|
3353
|
+
# ARN, but the value you specify must be a complete ARN and wildcard
|
3354
|
+
# characters are not accepted.
|
3355
|
+
# @return [String]
|
3356
|
+
#
|
3357
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyRequest AWS API Documentation
|
3358
|
+
#
|
3359
|
+
class GetResourcePolicyRequest < Struct.new(
|
3360
|
+
:resource_arn)
|
3361
|
+
SENSITIVE = []
|
3362
|
+
include Aws::Structure
|
3363
|
+
end
|
3364
|
+
|
3365
|
+
# @!attribute [rw] policy
|
3366
|
+
# The resource-based policy attached to the function you specified.
|
3367
|
+
# @return [String]
|
3368
|
+
#
|
3369
|
+
# @!attribute [rw] revision_id
|
3370
|
+
# The revision ID of the policy.
|
3371
|
+
# @return [String]
|
3372
|
+
#
|
3373
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyResponse AWS API Documentation
|
3374
|
+
#
|
3375
|
+
class GetResourcePolicyResponse < Struct.new(
|
3376
|
+
:policy,
|
3377
|
+
:revision_id)
|
3378
|
+
SENSITIVE = []
|
3379
|
+
include Aws::Structure
|
3380
|
+
end
|
3381
|
+
|
3303
3382
|
# @!attribute [rw] function_name
|
3304
3383
|
# The name or ARN of the Lambda function.
|
3305
3384
|
#
|
@@ -4951,6 +5030,52 @@ module Aws::Lambda
|
|
4951
5030
|
include Aws::Structure
|
4952
5031
|
end
|
4953
5032
|
|
5033
|
+
# An object that defines the public-access settings for a function.
|
5034
|
+
#
|
5035
|
+
# @!attribute [rw] block_public_policy
|
5036
|
+
# To block the creation of resource-based policies that would grant
|
5037
|
+
# public access to your function, set `BlockPublicPolicy` to `true`.
|
5038
|
+
# To allow the creation of resource-based policies that would grant
|
5039
|
+
# public access to your function, set `BlockPublicPolicy` to `false`.
|
5040
|
+
# @return [Boolean]
|
5041
|
+
#
|
5042
|
+
# @!attribute [rw] restrict_public_resource
|
5043
|
+
# To block public access to your function, even if its resource-based
|
5044
|
+
# policy allows it, set `RestrictPublicResource` to `true`. To allow
|
5045
|
+
# public access to a function with a resource-based policy that
|
5046
|
+
# permits it, set `RestrictPublicResource` to `false`.
|
5047
|
+
# @return [Boolean]
|
5048
|
+
#
|
5049
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublicAccessBlockConfig AWS API Documentation
|
5050
|
+
#
|
5051
|
+
class PublicAccessBlockConfig < Struct.new(
|
5052
|
+
:block_public_policy,
|
5053
|
+
:restrict_public_resource)
|
5054
|
+
SENSITIVE = []
|
5055
|
+
include Aws::Structure
|
5056
|
+
end
|
5057
|
+
|
5058
|
+
# Lambda prevented your policy from being created because it would grant
|
5059
|
+
# public access to your function. If you intended to create a public
|
5060
|
+
# policy, use the PutPublicAccessBlockConfig API action to configure
|
5061
|
+
# your function's public-access settings to allow public policies.
|
5062
|
+
#
|
5063
|
+
# @!attribute [rw] type
|
5064
|
+
# The exception type.
|
5065
|
+
# @return [String]
|
5066
|
+
#
|
5067
|
+
# @!attribute [rw] message
|
5068
|
+
# @return [String]
|
5069
|
+
#
|
5070
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublicPolicyException AWS API Documentation
|
5071
|
+
#
|
5072
|
+
class PublicPolicyException < Struct.new(
|
5073
|
+
:type,
|
5074
|
+
:message)
|
5075
|
+
SENSITIVE = []
|
5076
|
+
include Aws::Structure
|
5077
|
+
end
|
5078
|
+
|
4954
5079
|
# @!attribute [rw] layer_name
|
4955
5080
|
# The name or Amazon Resource Name (ARN) of the layer.
|
4956
5081
|
# @return [String]
|
@@ -5435,6 +5560,103 @@ module Aws::Lambda
|
|
5435
5560
|
include Aws::Structure
|
5436
5561
|
end
|
5437
5562
|
|
5563
|
+
# @!attribute [rw] resource_arn
|
5564
|
+
# The Amazon Resource Name (ARN) of the function you want to configure
|
5565
|
+
# public-access settings for. Public-access settings are applied at
|
5566
|
+
# the function level, so you can't apply different settings to
|
5567
|
+
# function versions or aliases.
|
5568
|
+
# @return [String]
|
5569
|
+
#
|
5570
|
+
# @!attribute [rw] public_access_block_config
|
5571
|
+
# An object defining the public-access settings you want to apply.
|
5572
|
+
#
|
5573
|
+
# To block the creation of resource-based policies that would grant
|
5574
|
+
# public access to your function, set `BlockPublicPolicy` to `true`.
|
5575
|
+
# To allow the creation of resource-based policies that would grant
|
5576
|
+
# public access to your function, set `BlockPublicPolicy` to `false`.
|
5577
|
+
#
|
5578
|
+
# To block public access to your function, even if its resource-based
|
5579
|
+
# policy allows it, set `RestrictPublicResource` to `true`. To allow
|
5580
|
+
# public access to a function with a resource-based policy that
|
5581
|
+
# permits it, set `RestrictPublicResource` to `false`.
|
5582
|
+
#
|
5583
|
+
# The default setting for both `BlockPublicPolicy` and
|
5584
|
+
# `RestrictPublicResource` is `true`.
|
5585
|
+
# @return [Types::PublicAccessBlockConfig]
|
5586
|
+
#
|
5587
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfigRequest AWS API Documentation
|
5588
|
+
#
|
5589
|
+
class PutPublicAccessBlockConfigRequest < Struct.new(
|
5590
|
+
:resource_arn,
|
5591
|
+
:public_access_block_config)
|
5592
|
+
SENSITIVE = []
|
5593
|
+
include Aws::Structure
|
5594
|
+
end
|
5595
|
+
|
5596
|
+
# @!attribute [rw] public_access_block_config
|
5597
|
+
# The public-access settings Lambda applied to your function.
|
5598
|
+
# @return [Types::PublicAccessBlockConfig]
|
5599
|
+
#
|
5600
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfigResponse AWS API Documentation
|
5601
|
+
#
|
5602
|
+
class PutPublicAccessBlockConfigResponse < Struct.new(
|
5603
|
+
:public_access_block_config)
|
5604
|
+
SENSITIVE = []
|
5605
|
+
include Aws::Structure
|
5606
|
+
end
|
5607
|
+
|
5608
|
+
# @!attribute [rw] resource_arn
|
5609
|
+
# The Amazon Resource Name (ARN) of the function you want to add the
|
5610
|
+
# policy to. You can use either a qualified or an unqualified ARN, but
|
5611
|
+
# the value you specify must be a complete ARN and wildcard characters
|
5612
|
+
# are not accepted.
|
5613
|
+
# @return [String]
|
5614
|
+
#
|
5615
|
+
# @!attribute [rw] policy
|
5616
|
+
# The JSON resource-based policy you want to add to your function.
|
5617
|
+
#
|
5618
|
+
# To learn more about creating resource-based policies for controlling
|
5619
|
+
# access to Lambda, see [Working with resource-based IAM policies in
|
5620
|
+
# Lambda][1] in the *Lambda Developer Guide*.
|
5621
|
+
#
|
5622
|
+
#
|
5623
|
+
#
|
5624
|
+
# [1]: https://docs.aws.amazon.com/
|
5625
|
+
# @return [String]
|
5626
|
+
#
|
5627
|
+
# @!attribute [rw] revision_id
|
5628
|
+
# Replace the existing policy only if its revision ID matches the
|
5629
|
+
# string you specify. To find the revision ID of the policy currently
|
5630
|
+
# attached to your function, use the GetResourcePolicy action.
|
5631
|
+
# @return [String]
|
5632
|
+
#
|
5633
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyRequest AWS API Documentation
|
5634
|
+
#
|
5635
|
+
class PutResourcePolicyRequest < Struct.new(
|
5636
|
+
:resource_arn,
|
5637
|
+
:policy,
|
5638
|
+
:revision_id)
|
5639
|
+
SENSITIVE = []
|
5640
|
+
include Aws::Structure
|
5641
|
+
end
|
5642
|
+
|
5643
|
+
# @!attribute [rw] policy
|
5644
|
+
# The policy Lambda added to your function.
|
5645
|
+
# @return [String]
|
5646
|
+
#
|
5647
|
+
# @!attribute [rw] revision_id
|
5648
|
+
# The revision ID of the policy Lambda added to your function.
|
5649
|
+
# @return [String]
|
5650
|
+
#
|
5651
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyResponse AWS API Documentation
|
5652
|
+
#
|
5653
|
+
class PutResourcePolicyResponse < Struct.new(
|
5654
|
+
:policy,
|
5655
|
+
:revision_id)
|
5656
|
+
SENSITIVE = []
|
5657
|
+
include Aws::Structure
|
5658
|
+
end
|
5659
|
+
|
5438
5660
|
# @!attribute [rw] function_name
|
5439
5661
|
# The name or ARN of the Lambda function.
|
5440
5662
|
#
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -471,6 +471,13 @@ module Aws
|
|
471
471
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
472
472
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
473
473
|
|
474
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_resource_policy-instance_method
|
475
|
+
def delete_resource_policy: (
|
476
|
+
resource_arn: ::String,
|
477
|
+
?revision_id: ::String
|
478
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
479
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
480
|
+
|
474
481
|
interface _GetAccountSettingsResponseSuccess
|
475
482
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountSettingsResponse]
|
476
483
|
def account_limit: () -> Types::AccountLimit
|
@@ -745,6 +752,27 @@ module Aws
|
|
745
752
|
) -> _GetProvisionedConcurrencyConfigResponseSuccess
|
746
753
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedConcurrencyConfigResponseSuccess
|
747
754
|
|
755
|
+
interface _GetPublicAccessBlockConfigResponseSuccess
|
756
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetPublicAccessBlockConfigResponse]
|
757
|
+
def public_access_block_config: () -> Types::PublicAccessBlockConfig
|
758
|
+
end
|
759
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_public_access_block_config-instance_method
|
760
|
+
def get_public_access_block_config: (
|
761
|
+
resource_arn: ::String
|
762
|
+
) -> _GetPublicAccessBlockConfigResponseSuccess
|
763
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicAccessBlockConfigResponseSuccess
|
764
|
+
|
765
|
+
interface _GetResourcePolicyResponseSuccess
|
766
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
|
767
|
+
def policy: () -> ::String
|
768
|
+
def revision_id: () -> ::String
|
769
|
+
end
|
770
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_resource_policy-instance_method
|
771
|
+
def get_resource_policy: (
|
772
|
+
resource_arn: ::String
|
773
|
+
) -> _GetResourcePolicyResponseSuccess
|
774
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
|
775
|
+
|
748
776
|
interface _GetRuntimeManagementConfigResponseSuccess
|
749
777
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetRuntimeManagementConfigResponse]
|
750
778
|
def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
|
@@ -1116,6 +1144,33 @@ module Aws
|
|
1116
1144
|
) -> _PutProvisionedConcurrencyConfigResponseSuccess
|
1117
1145
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutProvisionedConcurrencyConfigResponseSuccess
|
1118
1146
|
|
1147
|
+
interface _PutPublicAccessBlockConfigResponseSuccess
|
1148
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutPublicAccessBlockConfigResponse]
|
1149
|
+
def public_access_block_config: () -> Types::PublicAccessBlockConfig
|
1150
|
+
end
|
1151
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_public_access_block_config-instance_method
|
1152
|
+
def put_public_access_block_config: (
|
1153
|
+
resource_arn: ::String,
|
1154
|
+
public_access_block_config: {
|
1155
|
+
block_public_policy: bool?,
|
1156
|
+
restrict_public_resource: bool?
|
1157
|
+
}
|
1158
|
+
) -> _PutPublicAccessBlockConfigResponseSuccess
|
1159
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutPublicAccessBlockConfigResponseSuccess
|
1160
|
+
|
1161
|
+
interface _PutResourcePolicyResponseSuccess
|
1162
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
|
1163
|
+
def policy: () -> ::String
|
1164
|
+
def revision_id: () -> ::String
|
1165
|
+
end
|
1166
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_resource_policy-instance_method
|
1167
|
+
def put_resource_policy: (
|
1168
|
+
resource_arn: ::String,
|
1169
|
+
policy: ::String,
|
1170
|
+
?revision_id: ::String
|
1171
|
+
) -> _PutResourcePolicyResponseSuccess
|
1172
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
|
1173
|
+
|
1119
1174
|
interface _PutRuntimeManagementConfigResponseSuccess
|
1120
1175
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutRuntimeManagementConfigResponse]
|
1121
1176
|
def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
|
data/sig/errors.rbs
CHANGED
@@ -112,6 +112,10 @@ 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
|
115
119
|
class RecursiveInvocationException < ::Aws::Errors::ServiceError
|
116
120
|
def type: () -> ::String
|
117
121
|
def message: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -293,6 +293,12 @@ module Aws::Lambda
|
|
293
293
|
SENSITIVE: []
|
294
294
|
end
|
295
295
|
|
296
|
+
class DeleteResourcePolicyRequest
|
297
|
+
attr_accessor resource_arn: ::String
|
298
|
+
attr_accessor revision_id: ::String
|
299
|
+
SENSITIVE: []
|
300
|
+
end
|
301
|
+
|
296
302
|
class DestinationConfig
|
297
303
|
attr_accessor on_success: Types::OnSuccess
|
298
304
|
attr_accessor on_failure: Types::OnFailure
|
@@ -677,6 +683,27 @@ module Aws::Lambda
|
|
677
683
|
SENSITIVE: []
|
678
684
|
end
|
679
685
|
|
686
|
+
class GetPublicAccessBlockConfigRequest
|
687
|
+
attr_accessor resource_arn: ::String
|
688
|
+
SENSITIVE: []
|
689
|
+
end
|
690
|
+
|
691
|
+
class GetPublicAccessBlockConfigResponse
|
692
|
+
attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
|
693
|
+
SENSITIVE: []
|
694
|
+
end
|
695
|
+
|
696
|
+
class GetResourcePolicyRequest
|
697
|
+
attr_accessor resource_arn: ::String
|
698
|
+
SENSITIVE: []
|
699
|
+
end
|
700
|
+
|
701
|
+
class GetResourcePolicyResponse
|
702
|
+
attr_accessor policy: ::String
|
703
|
+
attr_accessor revision_id: ::String
|
704
|
+
SENSITIVE: []
|
705
|
+
end
|
706
|
+
|
680
707
|
class GetRuntimeManagementConfigRequest
|
681
708
|
attr_accessor function_name: ::String
|
682
709
|
attr_accessor qualifier: ::String
|
@@ -1085,6 +1112,18 @@ module Aws::Lambda
|
|
1085
1112
|
SENSITIVE: []
|
1086
1113
|
end
|
1087
1114
|
|
1115
|
+
class PublicAccessBlockConfig
|
1116
|
+
attr_accessor block_public_policy: bool
|
1117
|
+
attr_accessor restrict_public_resource: bool
|
1118
|
+
SENSITIVE: []
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
class PublicPolicyException
|
1122
|
+
attr_accessor type: ::String
|
1123
|
+
attr_accessor message: ::String
|
1124
|
+
SENSITIVE: []
|
1125
|
+
end
|
1126
|
+
|
1088
1127
|
class PublishLayerVersionRequest
|
1089
1128
|
attr_accessor layer_name: ::String
|
1090
1129
|
attr_accessor description: ::String
|
@@ -1171,6 +1210,30 @@ module Aws::Lambda
|
|
1171
1210
|
SENSITIVE: []
|
1172
1211
|
end
|
1173
1212
|
|
1213
|
+
class PutPublicAccessBlockConfigRequest
|
1214
|
+
attr_accessor resource_arn: ::String
|
1215
|
+
attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
|
1216
|
+
SENSITIVE: []
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
class PutPublicAccessBlockConfigResponse
|
1220
|
+
attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
|
1221
|
+
SENSITIVE: []
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
class PutResourcePolicyRequest
|
1225
|
+
attr_accessor resource_arn: ::String
|
1226
|
+
attr_accessor policy: ::String
|
1227
|
+
attr_accessor revision_id: ::String
|
1228
|
+
SENSITIVE: []
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
class PutResourcePolicyResponse
|
1232
|
+
attr_accessor policy: ::String
|
1233
|
+
attr_accessor revision_id: ::String
|
1234
|
+
SENSITIVE: []
|
1235
|
+
end
|
1236
|
+
|
1174
1237
|
class PutRuntimeManagementConfigRequest
|
1175
1238
|
attr_accessor function_name: ::String
|
1176
1239
|
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.
|
4
|
+
version: 1.131.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-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.205.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.205.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|