aws-sdk-lambda 1.192.0 → 1.193.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +146 -5
- data/lib/aws-sdk-lambda/client_api.rb +70 -0
- data/lib/aws-sdk-lambda/types.rb +119 -13
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +31 -0
- data/sig/types.rbs +30 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cd651e6a16ecea8f1c270ee3ccafa92d0c1fb998a2abc4626d62503110743dc
|
|
4
|
+
data.tar.gz: 953b04a9f88e251ac6f5728b8845f2d6996799c3850ff8c580d5355c4ba559a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed4618eeb2301da0fdbfdd2b3873c5f542efeafd890f72a00f4b7c6150958f8fe285674b7d50750122f91e97dc4fe08e24c5d383de3837976613545b799ebb13
|
|
7
|
+
data.tar.gz: b3ca1348825130da50a344f544e482075d3861bfd47efdfb95e135bdf738a1a07ecd83a551c13c560936763d6d979d55cc7bd8b9cfcd426a010602c4ea8e034c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.193.0 (2026-08-20)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents.
|
|
8
|
+
|
|
4
9
|
1.192.0 (2026-07-30)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.193.0
|
|
@@ -2999,6 +2999,42 @@ module Aws::Lambda
|
|
|
2999
2999
|
req.send_request(options)
|
|
3000
3000
|
end
|
|
3001
3001
|
|
|
3002
|
+
# Deletes a [resource-based policy][1] from a Lambda resource.
|
|
3003
|
+
#
|
|
3004
|
+
#
|
|
3005
|
+
#
|
|
3006
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
|
3007
|
+
#
|
|
3008
|
+
# @option params [required, String] :resource_arn
|
|
3009
|
+
# The Amazon Resource Name (ARN) of the Lambda resource you want to
|
|
3010
|
+
# delete the policy from. You can use a qualified or an unqualified ARN.
|
|
3011
|
+
# The value must be a complete ARN, and the operation does not accept
|
|
3012
|
+
# wildcard characters.
|
|
3013
|
+
#
|
|
3014
|
+
# @option params [String] :revision_id
|
|
3015
|
+
# The revision ID that the existing policy must match for the deletion
|
|
3016
|
+
# to proceed. If the revision ID doesn't match, the operation fails
|
|
3017
|
+
# with a `PreconditionFailedException` error. To retrieve the current
|
|
3018
|
+
# revision ID, use the GetResourcePolicy operation.
|
|
3019
|
+
#
|
|
3020
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
3021
|
+
#
|
|
3022
|
+
# @example Request syntax with placeholder values
|
|
3023
|
+
#
|
|
3024
|
+
# resp = client.delete_resource_policy({
|
|
3025
|
+
# resource_arn: "PolicyResourceArn", # required
|
|
3026
|
+
# revision_id: "RevisionId",
|
|
3027
|
+
# })
|
|
3028
|
+
#
|
|
3029
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicy AWS API Documentation
|
|
3030
|
+
#
|
|
3031
|
+
# @overload delete_resource_policy(params = {})
|
|
3032
|
+
# @param [Hash] params ({})
|
|
3033
|
+
def delete_resource_policy(params = {}, options = {})
|
|
3034
|
+
req = build_request(:delete_resource_policy, params)
|
|
3035
|
+
req.send_request(options)
|
|
3036
|
+
end
|
|
3037
|
+
|
|
3002
3038
|
# Retrieves details about your account's [limits][1] and usage in an
|
|
3003
3039
|
# Amazon Web Services Region.
|
|
3004
3040
|
#
|
|
@@ -4762,9 +4798,9 @@ module Aws::Lambda
|
|
|
4762
4798
|
# * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
|
|
4763
4799
|
#
|
|
4764
4800
|
#
|
|
4765
|
-
# @example Example: To
|
|
4801
|
+
# @example Example: To view a provisioned concurrency configuration
|
|
4766
4802
|
#
|
|
4767
|
-
# # The following example
|
|
4803
|
+
# # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
|
|
4768
4804
|
# # function.
|
|
4769
4805
|
#
|
|
4770
4806
|
# resp = client.get_provisioned_concurrency_config({
|
|
@@ -4781,9 +4817,9 @@ module Aws::Lambda
|
|
|
4781
4817
|
# status: "READY",
|
|
4782
4818
|
# }
|
|
4783
4819
|
#
|
|
4784
|
-
# @example Example: To
|
|
4820
|
+
# @example Example: To get a provisioned concurrency configuration
|
|
4785
4821
|
#
|
|
4786
|
-
# # The following example
|
|
4822
|
+
# # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
|
|
4787
4823
|
# # function.
|
|
4788
4824
|
#
|
|
4789
4825
|
# resp = client.get_provisioned_concurrency_config({
|
|
@@ -4825,6 +4861,44 @@ module Aws::Lambda
|
|
|
4825
4861
|
req.send_request(options)
|
|
4826
4862
|
end
|
|
4827
4863
|
|
|
4864
|
+
# Retrieves the [resource-based policy][1] attached to a Lambda
|
|
4865
|
+
# resource.
|
|
4866
|
+
#
|
|
4867
|
+
#
|
|
4868
|
+
#
|
|
4869
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
|
4870
|
+
#
|
|
4871
|
+
# @option params [required, String] :resource_arn
|
|
4872
|
+
# The Amazon Resource Name (ARN) of the Lambda resource you want to
|
|
4873
|
+
# retrieve the policy for. You can use a qualified or an unqualified
|
|
4874
|
+
# ARN. The value must be a complete ARN, and the operation does not
|
|
4875
|
+
# accept wildcard characters.
|
|
4876
|
+
#
|
|
4877
|
+
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4878
|
+
#
|
|
4879
|
+
# * {Types::GetResourcePolicyResponse#policy #policy} => String
|
|
4880
|
+
# * {Types::GetResourcePolicyResponse#revision_id #revision_id} => String
|
|
4881
|
+
#
|
|
4882
|
+
# @example Request syntax with placeholder values
|
|
4883
|
+
#
|
|
4884
|
+
# resp = client.get_resource_policy({
|
|
4885
|
+
# resource_arn: "PolicyResourceArn", # required
|
|
4886
|
+
# })
|
|
4887
|
+
#
|
|
4888
|
+
# @example Response structure
|
|
4889
|
+
#
|
|
4890
|
+
# resp.policy #=> String
|
|
4891
|
+
# resp.revision_id #=> String
|
|
4892
|
+
#
|
|
4893
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicy AWS API Documentation
|
|
4894
|
+
#
|
|
4895
|
+
# @overload get_resource_policy(params = {})
|
|
4896
|
+
# @param [Hash] params ({})
|
|
4897
|
+
def get_resource_policy(params = {}, options = {})
|
|
4898
|
+
req = build_request(:get_resource_policy, params)
|
|
4899
|
+
req.send_request(options)
|
|
4900
|
+
end
|
|
4901
|
+
|
|
4828
4902
|
# Retrieves the runtime management configuration for a function's
|
|
4829
4903
|
# version. If the runtime update mode is **Manual**, this includes the
|
|
4830
4904
|
# ARN of the runtime version and the runtime update mode. If the runtime
|
|
@@ -7737,6 +7811,73 @@ module Aws::Lambda
|
|
|
7737
7811
|
req.send_request(options)
|
|
7738
7812
|
end
|
|
7739
7813
|
|
|
7814
|
+
# Adds a [resource-based policy][1] to a Lambda resource. Resource-based
|
|
7815
|
+
# policies grant access to other [Amazon Web Services accounts][2],
|
|
7816
|
+
# [organizations][3], or [services][4]. Resource-based policies apply to
|
|
7817
|
+
# a single Lambda resource (for example, a function, function version,
|
|
7818
|
+
# or function alias).
|
|
7819
|
+
#
|
|
7820
|
+
# This operation replaces any existing policy on the Lambda resource. If
|
|
7821
|
+
# you previously added permissions using the AddPermission operation,
|
|
7822
|
+
# the new policy overwrites those permissions.
|
|
7823
|
+
#
|
|
7824
|
+
#
|
|
7825
|
+
#
|
|
7826
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
|
7827
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html
|
|
7828
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html
|
|
7829
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-services.html
|
|
7830
|
+
#
|
|
7831
|
+
# @option params [required, String] :resource_arn
|
|
7832
|
+
# The Amazon Resource Name (ARN) of the Lambda resource you want to add
|
|
7833
|
+
# the policy to. You can use a qualified or an unqualified ARN. The
|
|
7834
|
+
# value must be a complete ARN, and the operation does not accept
|
|
7835
|
+
# wildcard characters.
|
|
7836
|
+
#
|
|
7837
|
+
# @option params [required, String] :policy
|
|
7838
|
+
# The policy document you want to add to your Lambda resource. This is
|
|
7839
|
+
# formatted as a JSON string.
|
|
7840
|
+
#
|
|
7841
|
+
# For more information, see [Working with resource-based policies in
|
|
7842
|
+
# Lambda][1] in the *Lambda Developer Guide*.
|
|
7843
|
+
#
|
|
7844
|
+
#
|
|
7845
|
+
#
|
|
7846
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
|
7847
|
+
#
|
|
7848
|
+
# @option params [String] :revision_id
|
|
7849
|
+
# The revision ID that the existing policy must match for the
|
|
7850
|
+
# replacement to proceed. If the revision ID doesn't match, the
|
|
7851
|
+
# operation fails with a `PreconditionFailedException` error. To
|
|
7852
|
+
# retrieve the current revision ID, use the GetResourcePolicy operation.
|
|
7853
|
+
#
|
|
7854
|
+
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
7855
|
+
#
|
|
7856
|
+
# * {Types::PutResourcePolicyResponse#policy #policy} => String
|
|
7857
|
+
# * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
|
|
7858
|
+
#
|
|
7859
|
+
# @example Request syntax with placeholder values
|
|
7860
|
+
#
|
|
7861
|
+
# resp = client.put_resource_policy({
|
|
7862
|
+
# resource_arn: "PolicyResourceArn", # required
|
|
7863
|
+
# policy: "ResourcePolicy", # required
|
|
7864
|
+
# revision_id: "RevisionId",
|
|
7865
|
+
# })
|
|
7866
|
+
#
|
|
7867
|
+
# @example Response structure
|
|
7868
|
+
#
|
|
7869
|
+
# resp.policy #=> String
|
|
7870
|
+
# resp.revision_id #=> String
|
|
7871
|
+
#
|
|
7872
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicy AWS API Documentation
|
|
7873
|
+
#
|
|
7874
|
+
# @overload put_resource_policy(params = {})
|
|
7875
|
+
# @param [Hash] params ({})
|
|
7876
|
+
def put_resource_policy(params = {}, options = {})
|
|
7877
|
+
req = build_request(:put_resource_policy, params)
|
|
7878
|
+
req.send_request(options)
|
|
7879
|
+
end
|
|
7880
|
+
|
|
7740
7881
|
# Sets the runtime management configuration for a function's version.
|
|
7741
7882
|
# For more information, see [Runtime updates][1].
|
|
7742
7883
|
#
|
|
@@ -9875,7 +10016,7 @@ module Aws::Lambda
|
|
|
9875
10016
|
tracer: tracer
|
|
9876
10017
|
)
|
|
9877
10018
|
context[:gem_name] = 'aws-sdk-lambda'
|
|
9878
|
-
context[:gem_version] = '1.
|
|
10019
|
+
context[:gem_version] = '1.193.0'
|
|
9879
10020
|
Seahorse::Client::Request.new(handlers, context)
|
|
9880
10021
|
end
|
|
9881
10022
|
|
|
@@ -132,6 +132,7 @@ module Aws::Lambda
|
|
|
132
132
|
DeleteFunctionUrlConfigRequest = Shapes::StructureShape.new(name: 'DeleteFunctionUrlConfigRequest')
|
|
133
133
|
DeleteLayerVersionRequest = Shapes::StructureShape.new(name: 'DeleteLayerVersionRequest')
|
|
134
134
|
DeleteProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedConcurrencyConfigRequest')
|
|
135
|
+
DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
|
|
135
136
|
Description = Shapes::StringShape.new(name: 'Description')
|
|
136
137
|
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
|
137
138
|
DestinationConfig = Shapes::StructureShape.new(name: 'DestinationConfig')
|
|
@@ -270,6 +271,8 @@ module Aws::Lambda
|
|
|
270
271
|
GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
|
|
271
272
|
GetProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigRequest')
|
|
272
273
|
GetProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigResponse')
|
|
274
|
+
GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
|
|
275
|
+
GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
|
|
273
276
|
GetRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigRequest')
|
|
274
277
|
GetRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigResponse')
|
|
275
278
|
Handler = Shapes::StringShape.new(name: 'Handler')
|
|
@@ -423,6 +426,7 @@ module Aws::Lambda
|
|
|
423
426
|
Pattern = Shapes::StringShape.new(name: 'Pattern')
|
|
424
427
|
PerExecutionEnvironmentMaxConcurrency = Shapes::IntegerShape.new(name: 'PerExecutionEnvironmentMaxConcurrency')
|
|
425
428
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
|
429
|
+
PolicyResourceArn = Shapes::StringShape.new(name: 'PolicyResourceArn')
|
|
426
430
|
PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
|
|
427
431
|
PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
|
|
428
432
|
Principal = Shapes::StringShape.new(name: 'Principal')
|
|
@@ -451,6 +455,8 @@ module Aws::Lambda
|
|
|
451
455
|
PutFunctionScalingConfigResponse = Shapes::StructureShape.new(name: 'PutFunctionScalingConfigResponse')
|
|
452
456
|
PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
|
|
453
457
|
PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
|
|
458
|
+
PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
|
|
459
|
+
PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
|
|
454
460
|
PutRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigRequest')
|
|
455
461
|
PutRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigResponse')
|
|
456
462
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
|
@@ -469,10 +475,12 @@ module Aws::Lambda
|
|
|
469
475
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
|
470
476
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
471
477
|
ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
|
|
478
|
+
ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
|
|
472
479
|
ResponseStreamingInvocationType = Shapes::StringShape.new(name: 'ResponseStreamingInvocationType')
|
|
473
480
|
RetentionPeriodInDays = Shapes::IntegerShape.new(name: 'RetentionPeriodInDays')
|
|
474
481
|
RetryDetails = Shapes::StructureShape.new(name: 'RetryDetails')
|
|
475
482
|
ReverseOrder = Shapes::BooleanShape.new(name: 'ReverseOrder')
|
|
483
|
+
RevisionId = Shapes::StringShape.new(name: 'RevisionId')
|
|
476
484
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
|
477
485
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
|
478
486
|
RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
|
|
@@ -1005,6 +1013,10 @@ module Aws::Lambda
|
|
|
1005
1013
|
DeleteProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
|
|
1006
1014
|
DeleteProvisionedConcurrencyConfigRequest.struct_class = Types::DeleteProvisionedConcurrencyConfigRequest
|
|
1007
1015
|
|
|
1016
|
+
DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
|
1017
|
+
DeleteResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location: "querystring", location_name: "RevisionId"))
|
|
1018
|
+
DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
|
|
1019
|
+
|
|
1008
1020
|
DestinationConfig.add_member(:on_success, Shapes::ShapeRef.new(shape: OnSuccess, location_name: "OnSuccess"))
|
|
1009
1021
|
DestinationConfig.add_member(:on_failure, Shapes::ShapeRef.new(shape: OnFailure, location_name: "OnFailure"))
|
|
1010
1022
|
DestinationConfig.struct_class = Types::DestinationConfig
|
|
@@ -1505,6 +1517,13 @@ module Aws::Lambda
|
|
|
1505
1517
|
GetProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
|
1506
1518
|
GetProvisionedConcurrencyConfigResponse.struct_class = Types::GetProvisionedConcurrencyConfigResponse
|
|
1507
1519
|
|
|
1520
|
+
GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
|
1521
|
+
GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
|
|
1522
|
+
|
|
1523
|
+
GetResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
|
|
1524
|
+
GetResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
|
|
1525
|
+
GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
|
|
1526
|
+
|
|
1508
1527
|
GetRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
|
1509
1528
|
GetRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: NumericLatestPublishedOrAliasQualifier, location: "querystring", location_name: "Qualifier"))
|
|
1510
1529
|
GetRuntimeManagementConfigRequest.struct_class = Types::GetRuntimeManagementConfigRequest
|
|
@@ -2024,6 +2043,15 @@ module Aws::Lambda
|
|
|
2024
2043
|
PutProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
|
2025
2044
|
PutProvisionedConcurrencyConfigResponse.struct_class = Types::PutProvisionedConcurrencyConfigResponse
|
|
2026
2045
|
|
|
2046
|
+
PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyResourceArn, required: true, location: "uri", location_name: "ResourceArn"))
|
|
2047
|
+
PutResourcePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, required: true, location_name: "Policy"))
|
|
2048
|
+
PutResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
|
|
2049
|
+
PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
|
|
2050
|
+
|
|
2051
|
+
PutResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
|
|
2052
|
+
PutResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "RevisionId"))
|
|
2053
|
+
PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
|
|
2054
|
+
|
|
2027
2055
|
PutRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
|
2028
2056
|
PutRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: NumericLatestPublishedOrAliasQualifier, location: "querystring", location_name: "Qualifier"))
|
|
2029
2057
|
PutRuntimeManagementConfigRequest.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, required: true, location_name: "UpdateRuntimeOn"))
|
|
@@ -2688,6 +2716,20 @@ module Aws::Lambda
|
|
|
2688
2716
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
2689
2717
|
end)
|
|
2690
2718
|
|
|
2719
|
+
api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
2720
|
+
o.name = "DeleteResourcePolicy"
|
|
2721
|
+
o.http_method = "DELETE"
|
|
2722
|
+
o.http_request_uri = "/2026-07-09/resource-policy/{ResourceArn}"
|
|
2723
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
|
|
2724
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
|
2725
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
2726
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
|
2727
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
|
2728
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
2729
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
2730
|
+
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
|
2731
|
+
end)
|
|
2732
|
+
|
|
2691
2733
|
api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
|
2692
2734
|
o.name = "GetAccountSettings"
|
|
2693
2735
|
o.http_method = "GET"
|
|
@@ -2962,6 +3004,18 @@ module Aws::Lambda
|
|
|
2962
3004
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
2963
3005
|
end)
|
|
2964
3006
|
|
|
3007
|
+
api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
3008
|
+
o.name = "GetResourcePolicy"
|
|
3009
|
+
o.http_method = "GET"
|
|
3010
|
+
o.http_request_uri = "/2026-07-09/resource-policy/{ResourceArn}"
|
|
3011
|
+
o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
|
|
3012
|
+
o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
|
|
3013
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
3014
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
|
3015
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
3016
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
3017
|
+
end)
|
|
3018
|
+
|
|
2965
3019
|
api.add_operation(:get_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
|
|
2966
3020
|
o.name = "GetRuntimeManagementConfig"
|
|
2967
3021
|
o.http_method = "GET"
|
|
@@ -3474,6 +3528,22 @@ module Aws::Lambda
|
|
|
3474
3528
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
3475
3529
|
end)
|
|
3476
3530
|
|
|
3531
|
+
api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
3532
|
+
o.name = "PutResourcePolicy"
|
|
3533
|
+
o.http_method = "PUT"
|
|
3534
|
+
o.http_request_uri = "/2026-07-09/resource-policy/{ResourceArn}"
|
|
3535
|
+
o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
|
|
3536
|
+
o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
|
|
3537
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
3538
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
|
3539
|
+
o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
|
|
3540
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
|
3541
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
3542
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
|
|
3543
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
3544
|
+
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
|
3545
|
+
end)
|
|
3546
|
+
|
|
3477
3547
|
api.add_operation(:put_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
|
|
3478
3548
|
o.name = "PutRuntimeManagementConfig"
|
|
3479
3549
|
o.http_method = "PUT"
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
|
@@ -2461,6 +2461,29 @@ module Aws::Lambda
|
|
|
2461
2461
|
include Aws::Structure
|
|
2462
2462
|
end
|
|
2463
2463
|
|
|
2464
|
+
# @!attribute [rw] resource_arn
|
|
2465
|
+
# The Amazon Resource Name (ARN) of the Lambda resource you want to
|
|
2466
|
+
# delete the policy from. You can use a qualified or an unqualified
|
|
2467
|
+
# ARN. The value must be a complete ARN, and the operation does not
|
|
2468
|
+
# accept wildcard characters.
|
|
2469
|
+
# @return [String]
|
|
2470
|
+
#
|
|
2471
|
+
# @!attribute [rw] revision_id
|
|
2472
|
+
# The revision ID that the existing policy must match for the deletion
|
|
2473
|
+
# to proceed. If the revision ID doesn't match, the operation fails
|
|
2474
|
+
# with a `PreconditionFailedException` error. To retrieve the current
|
|
2475
|
+
# revision ID, use the GetResourcePolicy operation.
|
|
2476
|
+
# @return [String]
|
|
2477
|
+
#
|
|
2478
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicyRequest AWS API Documentation
|
|
2479
|
+
#
|
|
2480
|
+
class DeleteResourcePolicyRequest < Struct.new(
|
|
2481
|
+
:resource_arn,
|
|
2482
|
+
:revision_id)
|
|
2483
|
+
SENSITIVE = []
|
|
2484
|
+
include Aws::Structure
|
|
2485
|
+
end
|
|
2486
|
+
|
|
2464
2487
|
# A configuration object that specifies the destination of an event
|
|
2465
2488
|
# after Lambda processes it. For more information, see [Adding a
|
|
2466
2489
|
# destination][1].
|
|
@@ -5351,6 +5374,41 @@ module Aws::Lambda
|
|
|
5351
5374
|
include Aws::Structure
|
|
5352
5375
|
end
|
|
5353
5376
|
|
|
5377
|
+
# @!attribute [rw] resource_arn
|
|
5378
|
+
# The Amazon Resource Name (ARN) of the Lambda resource you want to
|
|
5379
|
+
# retrieve the policy for. You can use a qualified or an unqualified
|
|
5380
|
+
# ARN. The value must be a complete ARN, and the operation does not
|
|
5381
|
+
# accept wildcard characters.
|
|
5382
|
+
# @return [String]
|
|
5383
|
+
#
|
|
5384
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyRequest AWS API Documentation
|
|
5385
|
+
#
|
|
5386
|
+
class GetResourcePolicyRequest < Struct.new(
|
|
5387
|
+
:resource_arn)
|
|
5388
|
+
SENSITIVE = []
|
|
5389
|
+
include Aws::Structure
|
|
5390
|
+
end
|
|
5391
|
+
|
|
5392
|
+
# @!attribute [rw] policy
|
|
5393
|
+
# The resource-based policy attached to the Lambda resource you
|
|
5394
|
+
# specified.
|
|
5395
|
+
# @return [String]
|
|
5396
|
+
#
|
|
5397
|
+
# @!attribute [rw] revision_id
|
|
5398
|
+
# The revision ID of the policy. Pass this value as the `RevisionId`
|
|
5399
|
+
# in a PutResourcePolicy or DeleteResourcePolicy request. Doing so
|
|
5400
|
+
# ensures the operation acts on the expected version of the policy.
|
|
5401
|
+
# @return [String]
|
|
5402
|
+
#
|
|
5403
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyResponse AWS API Documentation
|
|
5404
|
+
#
|
|
5405
|
+
class GetResourcePolicyResponse < Struct.new(
|
|
5406
|
+
:policy,
|
|
5407
|
+
:revision_id)
|
|
5408
|
+
SENSITIVE = []
|
|
5409
|
+
include Aws::Structure
|
|
5410
|
+
end
|
|
5411
|
+
|
|
5354
5412
|
# @!attribute [rw] function_name
|
|
5355
5413
|
# The name or ARN of the Lambda function.
|
|
5356
5414
|
#
|
|
@@ -7707,10 +7765,10 @@ module Aws::Lambda
|
|
|
7707
7765
|
#
|
|
7708
7766
|
# @!attribute [rw] maximum_pollers
|
|
7709
7767
|
# The maximum number of event pollers this event source can scale up
|
|
7710
|
-
# to. For Amazon SQS
|
|
7711
|
-
#
|
|
7712
|
-
# Kafka event source mappings,
|
|
7713
|
-
#
|
|
7768
|
+
# to. For Amazon SQS event source mappings, the accepted range is
|
|
7769
|
+
# between 2 and 10,000, with a default of 200. For Amazon MSK and
|
|
7770
|
+
# self-managed Apache Kafka event source mappings, the accepted range
|
|
7771
|
+
# is between 1 and 2,000, with a default of 200.
|
|
7714
7772
|
# @return [Integer]
|
|
7715
7773
|
#
|
|
7716
7774
|
# @!attribute [rw] poller_group_name
|
|
@@ -7733,15 +7791,8 @@ module Aws::Lambda
|
|
|
7733
7791
|
include Aws::Structure
|
|
7734
7792
|
end
|
|
7735
7793
|
|
|
7736
|
-
# The resource-based policy you tried to add to the Lambda
|
|
7737
|
-
# would grant public access to it,
|
|
7738
|
-
# `BlockPublicAccess` setting prevents public access. For more
|
|
7739
|
-
# information about blocking public access to Lambda functions, see
|
|
7740
|
-
# [Block public access to Lambda resources][1].
|
|
7741
|
-
#
|
|
7742
|
-
#
|
|
7743
|
-
#
|
|
7744
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-block-public-access
|
|
7794
|
+
# The resource-based policy you tried to add to the Lambda resource
|
|
7795
|
+
# would grant public access to it, which isn't allowed.
|
|
7745
7796
|
#
|
|
7746
7797
|
# @!attribute [rw] type
|
|
7747
7798
|
# The exception type.
|
|
@@ -8293,6 +8344,61 @@ module Aws::Lambda
|
|
|
8293
8344
|
include Aws::Structure
|
|
8294
8345
|
end
|
|
8295
8346
|
|
|
8347
|
+
# @!attribute [rw] resource_arn
|
|
8348
|
+
# The Amazon Resource Name (ARN) of the Lambda resource you want to
|
|
8349
|
+
# add the policy to. You can use a qualified or an unqualified ARN.
|
|
8350
|
+
# The value must be a complete ARN, and the operation does not accept
|
|
8351
|
+
# wildcard characters.
|
|
8352
|
+
# @return [String]
|
|
8353
|
+
#
|
|
8354
|
+
# @!attribute [rw] policy
|
|
8355
|
+
# The policy document you want to add to your Lambda resource. This is
|
|
8356
|
+
# formatted as a JSON string.
|
|
8357
|
+
#
|
|
8358
|
+
# For more information, see [Working with resource-based policies in
|
|
8359
|
+
# Lambda][1] in the *Lambda Developer Guide*.
|
|
8360
|
+
#
|
|
8361
|
+
#
|
|
8362
|
+
#
|
|
8363
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html
|
|
8364
|
+
# @return [String]
|
|
8365
|
+
#
|
|
8366
|
+
# @!attribute [rw] revision_id
|
|
8367
|
+
# The revision ID that the existing policy must match for the
|
|
8368
|
+
# replacement to proceed. If the revision ID doesn't match, the
|
|
8369
|
+
# operation fails with a `PreconditionFailedException` error. To
|
|
8370
|
+
# retrieve the current revision ID, use the GetResourcePolicy
|
|
8371
|
+
# operation.
|
|
8372
|
+
# @return [String]
|
|
8373
|
+
#
|
|
8374
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyRequest AWS API Documentation
|
|
8375
|
+
#
|
|
8376
|
+
class PutResourcePolicyRequest < Struct.new(
|
|
8377
|
+
:resource_arn,
|
|
8378
|
+
:policy,
|
|
8379
|
+
:revision_id)
|
|
8380
|
+
SENSITIVE = []
|
|
8381
|
+
include Aws::Structure
|
|
8382
|
+
end
|
|
8383
|
+
|
|
8384
|
+
# @!attribute [rw] policy
|
|
8385
|
+
# The resource-based policy that Lambda adds to the resource.
|
|
8386
|
+
# @return [String]
|
|
8387
|
+
#
|
|
8388
|
+
# @!attribute [rw] revision_id
|
|
8389
|
+
# The revision ID of the policy that Lambda adds to your Lambda
|
|
8390
|
+
# resource.
|
|
8391
|
+
# @return [String]
|
|
8392
|
+
#
|
|
8393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyResponse AWS API Documentation
|
|
8394
|
+
#
|
|
8395
|
+
class PutResourcePolicyResponse < Struct.new(
|
|
8396
|
+
:policy,
|
|
8397
|
+
:revision_id)
|
|
8398
|
+
SENSITIVE = []
|
|
8399
|
+
include Aws::Structure
|
|
8400
|
+
end
|
|
8401
|
+
|
|
8296
8402
|
# @!attribute [rw] function_name
|
|
8297
8403
|
# The name or ARN of the Lambda function.
|
|
8298
8404
|
#
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -597,6 +597,13 @@ module Aws
|
|
|
597
597
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
598
598
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
599
599
|
|
|
600
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_resource_policy-instance_method
|
|
601
|
+
def delete_resource_policy: (
|
|
602
|
+
resource_arn: ::String,
|
|
603
|
+
?revision_id: ::String
|
|
604
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
605
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
606
|
+
|
|
600
607
|
interface _GetAccountSettingsResponseSuccess
|
|
601
608
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountSettingsResponse]
|
|
602
609
|
def account_limit: () -> Types::AccountLimit
|
|
@@ -954,6 +961,17 @@ module Aws
|
|
|
954
961
|
) -> _GetProvisionedConcurrencyConfigResponseSuccess
|
|
955
962
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedConcurrencyConfigResponseSuccess
|
|
956
963
|
|
|
964
|
+
interface _GetResourcePolicyResponseSuccess
|
|
965
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
|
|
966
|
+
def policy: () -> ::String
|
|
967
|
+
def revision_id: () -> ::String
|
|
968
|
+
end
|
|
969
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_resource_policy-instance_method
|
|
970
|
+
def get_resource_policy: (
|
|
971
|
+
resource_arn: ::String
|
|
972
|
+
) -> _GetResourcePolicyResponseSuccess
|
|
973
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
|
|
974
|
+
|
|
957
975
|
interface _GetRuntimeManagementConfigResponseSuccess
|
|
958
976
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetRuntimeManagementConfigResponse]
|
|
959
977
|
def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
|
|
@@ -1389,6 +1407,19 @@ module Aws
|
|
|
1389
1407
|
) -> _PutProvisionedConcurrencyConfigResponseSuccess
|
|
1390
1408
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutProvisionedConcurrencyConfigResponseSuccess
|
|
1391
1409
|
|
|
1410
|
+
interface _PutResourcePolicyResponseSuccess
|
|
1411
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
|
|
1412
|
+
def policy: () -> ::String
|
|
1413
|
+
def revision_id: () -> ::String
|
|
1414
|
+
end
|
|
1415
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_resource_policy-instance_method
|
|
1416
|
+
def put_resource_policy: (
|
|
1417
|
+
resource_arn: ::String,
|
|
1418
|
+
policy: ::String,
|
|
1419
|
+
?revision_id: ::String
|
|
1420
|
+
) -> _PutResourcePolicyResponseSuccess
|
|
1421
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
|
|
1422
|
+
|
|
1392
1423
|
interface _PutRuntimeManagementConfigResponseSuccess
|
|
1393
1424
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutRuntimeManagementConfigResponse]
|
|
1394
1425
|
def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
|
data/sig/types.rbs
CHANGED
|
@@ -542,6 +542,12 @@ module Aws::Lambda
|
|
|
542
542
|
SENSITIVE: []
|
|
543
543
|
end
|
|
544
544
|
|
|
545
|
+
class DeleteResourcePolicyRequest
|
|
546
|
+
attr_accessor resource_arn: ::String
|
|
547
|
+
attr_accessor revision_id: ::String
|
|
548
|
+
SENSITIVE: []
|
|
549
|
+
end
|
|
550
|
+
|
|
545
551
|
class DestinationConfig
|
|
546
552
|
attr_accessor on_success: Types::OnSuccess
|
|
547
553
|
attr_accessor on_failure: Types::OnFailure
|
|
@@ -1171,6 +1177,17 @@ module Aws::Lambda
|
|
|
1171
1177
|
SENSITIVE: []
|
|
1172
1178
|
end
|
|
1173
1179
|
|
|
1180
|
+
class GetResourcePolicyRequest
|
|
1181
|
+
attr_accessor resource_arn: ::String
|
|
1182
|
+
SENSITIVE: []
|
|
1183
|
+
end
|
|
1184
|
+
|
|
1185
|
+
class GetResourcePolicyResponse
|
|
1186
|
+
attr_accessor policy: ::String
|
|
1187
|
+
attr_accessor revision_id: ::String
|
|
1188
|
+
SENSITIVE: []
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1174
1191
|
class GetRuntimeManagementConfigRequest
|
|
1175
1192
|
attr_accessor function_name: ::String
|
|
1176
1193
|
attr_accessor qualifier: ::String
|
|
@@ -1837,6 +1854,19 @@ module Aws::Lambda
|
|
|
1837
1854
|
SENSITIVE: []
|
|
1838
1855
|
end
|
|
1839
1856
|
|
|
1857
|
+
class PutResourcePolicyRequest
|
|
1858
|
+
attr_accessor resource_arn: ::String
|
|
1859
|
+
attr_accessor policy: ::String
|
|
1860
|
+
attr_accessor revision_id: ::String
|
|
1861
|
+
SENSITIVE: []
|
|
1862
|
+
end
|
|
1863
|
+
|
|
1864
|
+
class PutResourcePolicyResponse
|
|
1865
|
+
attr_accessor policy: ::String
|
|
1866
|
+
attr_accessor revision_id: ::String
|
|
1867
|
+
SENSITIVE: []
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1840
1870
|
class PutRuntimeManagementConfigRequest
|
|
1841
1871
|
attr_accessor function_name: ::String
|
|
1842
1872
|
attr_accessor qualifier: ::String
|