aws-sdk-lambda 0.10.0__tar.gz → 0.11.0__tar.gz

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.
Files changed (27) hide show
  1. aws_sdk_lambda-0.11.0/.changes/0.11.0.json +20 -0
  2. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/CHANGELOG.md +12 -0
  3. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/PKG-INFO +5 -3
  4. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/pyproject.toml +8 -3
  5. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/scripts/docs/generate_doc_stubs.py +38 -4
  6. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/__init__.py +1 -1
  7. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/_private/schemas.py +321 -9
  8. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/client.py +675 -1
  9. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/config.py +11 -2
  10. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/models.py +458 -8
  11. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/.changes/0.10.0.json +0 -0
  12. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/.changes/0.8.0.json +0 -0
  13. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/.changes/0.9.0.json +0 -0
  14. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/.gitignore +0 -0
  15. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/LICENSE +0 -0
  16. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/Makefile +0 -0
  17. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/NOTICE +0 -0
  18. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/README.md +0 -0
  19. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/docs/README.md +0 -0
  20. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/docs/index.md +0 -0
  21. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/docs/stylesheets/extra.css +0 -0
  22. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/_private/__init__.py +0 -0
  23. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/auth.py +0 -0
  24. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/src/aws_sdk_lambda/user_agent.py +0 -0
  25. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/tests/__init__.py +0 -0
  26. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/tests/test_restjson_protocol.py +0 -0
  27. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.11.0}/zensical.toml +0 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "api-change",
5
+ "description": "Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents."
6
+ },
7
+ {
8
+ "type": "enhancement",
9
+ "description": "Re-generated with smithy-python 0.5.0"
10
+ },
11
+ {
12
+ "type": "dependency",
13
+ "description": "Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`."
14
+ },
15
+ {
16
+ "type": "dependency",
17
+ "description": "Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`."
18
+ }
19
+ ]
20
+ }
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.11.0
4
+
5
+ ### API Changes
6
+ * Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents.
7
+
8
+ ### Enhancements
9
+ * Re-generated with smithy-python 0.5.0
10
+
11
+ ### Dependencies
12
+ * Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`.
13
+ * Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`.
14
+
3
15
  ## v0.10.0
4
16
 
5
17
  ### Dependencies
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: aws_sdk_lambda
3
- Version: 0.10.0
3
+ Version: 0.11.0
4
4
  Summary: aws_sdk_lambda client
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -18,9 +18,11 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.14
20
20
  Requires-Python: >=3.12
21
- Requires-Dist: smithy-aws-core[eventstream,json]~=0.10.0
21
+ Requires-Dist: smithy-aws-core[eventstream,json]~=0.11.0
22
22
  Requires-Dist: smithy-core~=0.8.0
23
- Requires-Dist: smithy-http[awscrt]~=0.4.0
23
+ Requires-Dist: smithy-http[aiohttp]~=0.5.0
24
+ Provides-Extra: awscrt
25
+ Requires-Dist: smithy-http[awscrt]~=0.5.0; extra == 'awscrt'
24
26
  Description-Content-Type: text/markdown
25
27
 
26
28
  ## AWS Lambda Client
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = "aws_sdk_lambda"
5
- version = "0.10.0"
5
+ version = "0.11.0"
6
6
  description = "aws_sdk_lambda client"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.12"
@@ -23,9 +23,14 @@ classifiers = [
23
23
  ]
24
24
 
25
25
  dependencies = [
26
- "smithy_aws_core[eventstream, json]~=0.10.0",
26
+ "smithy_aws_core[eventstream, json]~=0.11.0",
27
27
  "smithy_core~=0.8.0",
28
- "smithy_http[awscrt]~=0.4.0"
28
+ "smithy_http[aiohttp]~=0.5.0"
29
+ ]
30
+
31
+ [project.optional-dependencies]
32
+ awscrt = [
33
+ "smithy_http[awscrt]~=0.5.0"
29
34
  ]
30
35
 
31
36
  [dependency-groups]
@@ -40,6 +40,7 @@ logger = logging.getLogger("generate_doc_stubs")
40
40
 
41
41
  ENUM_BASE_CLASSES = ("StrEnum", "IntEnum")
42
42
  ERROR_BASE_CLASSES = ("ServiceError", "ModeledError")
43
+ CLIENT_METHOD_NAMES = ("close",)
43
44
 
44
45
 
45
46
  class StreamType(Enum):
@@ -90,6 +91,14 @@ class OperationInfo:
90
91
  event_output_type: str | None # For output/duplex streams
91
92
 
92
93
 
94
+ @dataclass
95
+ class ClientMethodInfo:
96
+ """Information about a non-operation client method."""
97
+
98
+ name: str
99
+ module_path: str
100
+
101
+
93
102
  @dataclass
94
103
  class ModelsInfo:
95
104
  """Information about all modeled types."""
@@ -109,6 +118,7 @@ class ClientInfo:
109
118
  package_name: str # e.g., "aws_sdk_bedrock_runtime"
110
119
  config: TypeInfo
111
120
  plugin: TypeInfo
121
+ client_methods: list[ClientMethodInfo]
112
122
  operations: list[OperationInfo]
113
123
  models: ModelsInfo
114
124
 
@@ -202,11 +212,13 @@ class DocStubGenerator:
202
212
  config = TypeInfo(name=config_class.name, module_path=config_class.path)
203
213
  plugin = TypeInfo(name=plugin_alias.name, module_path=plugin_alias.path)
204
214
 
215
+ client_methods = self._extract_client_methods(client_class)
205
216
  operations = self._extract_operations(client_class)
206
217
  models = self._extract_models(models_module, operations)
207
218
 
208
219
  logger.info(
209
- f"Analyzed {client_class.name}: {len(operations)} operations, "
220
+ f"Analyzed {client_class.name}: {len(client_methods)} client methods, "
221
+ f"{len(operations)} operations, "
210
222
  f"{len(models.structures)} structures, {len(models.errors)} errors, "
211
223
  f"{len(models.unions)} unions, {len(models.enums)} enums"
212
224
  )
@@ -217,6 +229,7 @@ class DocStubGenerator:
217
229
  package_name=package_name,
218
230
  config=config,
219
231
  plugin=plugin,
232
+ client_methods=client_methods,
220
233
  operations=operations,
221
234
  models=models,
222
235
  )
@@ -236,11 +249,24 @@ class DocStubGenerator:
236
249
  """Extract operation information from client class."""
237
250
  operations = []
238
251
  for op in client_class.functions.values():
239
- if op.is_private or op.is_init_method:
252
+ if (
253
+ op.is_private
254
+ or op.is_init_method
255
+ or op.is_special
256
+ or op.name in CLIENT_METHOD_NAMES
257
+ ):
240
258
  continue
241
259
  operations.append(self._analyze_operation(op))
242
260
  return operations
243
261
 
262
+ def _extract_client_methods(self, client_class: Class) -> list[ClientMethodInfo]:
263
+ """Extract public client methods that are not service operations."""
264
+ return [
265
+ ClientMethodInfo(name=method.name, module_path=method.path)
266
+ for method in client_class.functions.values()
267
+ if not method.is_private and method.name in CLIENT_METHOD_NAMES
268
+ ]
269
+
244
270
  def _analyze_operation(self, operation: Function) -> OperationInfo:
245
271
  """Analyze an operation method to extract information."""
246
272
  stream_type = None
@@ -271,7 +297,8 @@ class DocStubGenerator:
271
297
  event_output_type = stream_args[idx].canonical_name
272
298
 
273
299
  output_info = TypeInfo(
274
- name=stream_args[-1].canonical_name, module_path=stream_args[-1].canonical_path
300
+ name=stream_args[-1].canonical_name,
301
+ module_path=stream_args[-1].canonical_path,
275
302
  )
276
303
  else:
277
304
  output_info = TypeInfo(name=output_type, module_path=returns.canonical_path)
@@ -434,6 +461,9 @@ class DocStubGenerator:
434
461
  "",
435
462
  ]
436
463
 
464
+ for method in sorted(client_info.client_methods, key=lambda x: x.name):
465
+ lines.extend([*self._mkdocs_directive(method.module_path, heading_level=4), ""])
466
+
437
467
  # Operations section
438
468
  if client_info.operations:
439
469
  lines.append("## Operations")
@@ -639,7 +669,11 @@ def main() -> int:
639
669
  description="Generate API documentation stubs for AWS SDK Python client."
640
670
  )
641
671
  parser.add_argument(
642
- "-c", "--client-dir", type=Path, required=True, help="Path to the client source package"
672
+ "-c",
673
+ "--client-dir",
674
+ type=Path,
675
+ required=True,
676
+ help="Path to the client source package",
643
677
  )
644
678
  parser.add_argument(
645
679
  "-o",
@@ -1,3 +1,3 @@
1
1
  # Code generated by smithy-python-codegen DO NOT EDIT.
2
2
 
3
- __version__: str = "0.10.0"
3
+ __version__: str = "0.11.0"
@@ -3863,6 +3863,114 @@ DELETE_FUNCTION_EVENT_INVOKE_CONFIG = Schema(
3863
3863
  ],
3864
3864
  )
3865
3865
 
3866
+ POLICY_RESOURCE_ARN = Schema(
3867
+ id=ShapeID("com.amazonaws.lambda#PolicyResourceArn"),
3868
+ shape_type=ShapeType.STRING,
3869
+ traits=[
3870
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
3871
+ Trait.new(
3872
+ id=ShapeID("smithy.api#length"),
3873
+ value=MappingProxyType({"min": 0, "max": 256}),
3874
+ ),
3875
+ Trait.new(
3876
+ id=ShapeID("smithy.api#pattern"),
3877
+ value="^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_])+)?$",
3878
+ ),
3879
+ ],
3880
+ )
3881
+
3882
+ REVISION_ID = Schema(
3883
+ id=ShapeID("com.amazonaws.lambda#RevisionId"),
3884
+ shape_type=ShapeType.STRING,
3885
+ traits=[
3886
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
3887
+ Trait.new(
3888
+ id=ShapeID("smithy.api#length"),
3889
+ value=MappingProxyType({"min": 36, "max": 36}),
3890
+ ),
3891
+ Trait.new(
3892
+ id=ShapeID("smithy.api#pattern"),
3893
+ value="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
3894
+ ),
3895
+ ],
3896
+ )
3897
+
3898
+ DELETE_RESOURCE_POLICY_INPUT = Schema.collection(
3899
+ id=ShapeID("com.amazonaws.lambda#DeleteResourcePolicyInput"),
3900
+ traits=[
3901
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
3902
+ Trait.new(
3903
+ id=ShapeID("smithy.synthetic#originalShapeId"),
3904
+ value="com.amazonaws.lambda#DeleteResourcePolicyRequest",
3905
+ ),
3906
+ Trait.new(id=ShapeID("smithy.api#input")),
3907
+ ],
3908
+ members={
3909
+ "ResourceArn": {
3910
+ "target": POLICY_RESOURCE_ARN,
3911
+ "traits": [
3912
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
3913
+ Trait.new(id=ShapeID("smithy.api#required")),
3914
+ Trait.new(id=ShapeID("smithy.api#httpLabel")),
3915
+ ],
3916
+ },
3917
+ "RevisionId": {
3918
+ "target": REVISION_ID,
3919
+ "traits": [
3920
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
3921
+ Trait.new(id=ShapeID("smithy.api#httpQuery"), value="RevisionId"),
3922
+ ],
3923
+ },
3924
+ },
3925
+ )
3926
+
3927
+ DELETE_RESOURCE_POLICY_OUTPUT = Schema.collection(
3928
+ id=ShapeID("com.amazonaws.lambda#DeleteResourcePolicyOutput"),
3929
+ traits=[
3930
+ Trait.new(
3931
+ id=ShapeID("smithy.synthetic#originalShapeId"), value="smithy.api#Unit"
3932
+ ),
3933
+ Trait.new(id=ShapeID("smithy.api#output")),
3934
+ ],
3935
+ )
3936
+
3937
+ DELETE_RESOURCE_POLICY = Schema(
3938
+ id=ShapeID("com.amazonaws.lambda#DeleteResourcePolicy"),
3939
+ shape_type=ShapeType.OPERATION,
3940
+ traits=[
3941
+ Trait.new(id=ShapeID("aws.iam#conditionKeys"), value=("lambda:Principal",)),
3942
+ Trait.new(id=ShapeID("smithy.api#idempotent")),
3943
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
3944
+ Trait.new(
3945
+ id=ShapeID("aws.iam#iamAction"),
3946
+ value=MappingProxyType(
3947
+ {
3948
+ "documentation": "Grants permission to detach a policy from an AWS Lambda resource",
3949
+ "relativeDocumentation": "API_DeleteResourcePolicy.html",
3950
+ "requiredActions": ("lambda:RemovePermission",),
3951
+ "resources": MappingProxyType(
3952
+ {
3953
+ "required": MappingProxyType(
3954
+ {"function": MappingProxyType({})}
3955
+ )
3956
+ }
3957
+ ),
3958
+ }
3959
+ ),
3960
+ ),
3961
+ Trait.new(
3962
+ id=ShapeID("smithy.api#http"),
3963
+ value=MappingProxyType(
3964
+ {
3965
+ "method": "DELETE",
3966
+ "uri": "/2026-07-09/resource-policy/{ResourceArn}",
3967
+ "code": 204,
3968
+ }
3969
+ ),
3970
+ ),
3971
+ ],
3972
+ )
3973
+
3866
3974
  CHECKPOINT_TOKEN = Schema(
3867
3975
  id=ShapeID("com.amazonaws.lambda#CheckpointToken"),
3868
3976
  shape_type=ShapeType.STRING,
@@ -5018,7 +5126,7 @@ DURABLE_CONFIG = Schema.collection(
5018
5126
  "KMSKeyArn": {
5019
5127
  "target": KMS_KEY_ARN,
5020
5128
  "traits": [
5021
- Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:public",))
5129
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:dar-cmkms",))
5022
5130
  ],
5023
5131
  },
5024
5132
  "RetentionPeriodInDays": {
@@ -9647,7 +9755,7 @@ EPHEMERAL_STORAGE_SIZE = Schema(
9647
9755
  Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:public",)),
9648
9756
  Trait.new(
9649
9757
  id=ShapeID("smithy.api#range"),
9650
- value=MappingProxyType({"min": 512, "max": 10240}),
9758
+ value=MappingProxyType({"min": 512, "max": 32768}),
9651
9759
  ),
9652
9760
  ],
9653
9761
  )
@@ -10308,21 +10416,27 @@ RUNTIME = Schema.collection(
10308
10416
  "java8al2023": {
10309
10417
  "target": UNIT,
10310
10418
  "traits": [
10311
- Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:public",)),
10419
+ Trait.new(
10420
+ id=ShapeID("smithy.api#tags"), value=("feature:java-al2023",)
10421
+ ),
10312
10422
  Trait.new(id=ShapeID("smithy.api#enumValue"), value="java8.al2023"),
10313
10423
  ],
10314
10424
  },
10315
10425
  "java11al2023": {
10316
10426
  "target": UNIT,
10317
10427
  "traits": [
10318
- Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:public",)),
10428
+ Trait.new(
10429
+ id=ShapeID("smithy.api#tags"), value=("feature:java-al2023",)
10430
+ ),
10319
10431
  Trait.new(id=ShapeID("smithy.api#enumValue"), value="java11.al2023"),
10320
10432
  ],
10321
10433
  },
10322
10434
  "java17al2023": {
10323
10435
  "target": UNIT,
10324
10436
  "traits": [
10325
- Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:public",)),
10437
+ Trait.new(
10438
+ id=ShapeID("smithy.api#tags"), value=("feature:java-al2023",)
10439
+ ),
10326
10440
  Trait.new(id=ShapeID("smithy.api#enumValue"), value="java17.al2023"),
10327
10441
  ],
10328
10442
  },
@@ -20181,6 +20295,103 @@ GET_FUNCTION_EVENT_INVOKE_CONFIG = Schema(
20181
20295
  ],
20182
20296
  )
20183
20297
 
20298
+ GET_RESOURCE_POLICY_INPUT = Schema.collection(
20299
+ id=ShapeID("com.amazonaws.lambda#GetResourcePolicyInput"),
20300
+ traits=[
20301
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
20302
+ Trait.new(
20303
+ id=ShapeID("smithy.synthetic#originalShapeId"),
20304
+ value="com.amazonaws.lambda#GetResourcePolicyRequest",
20305
+ ),
20306
+ Trait.new(id=ShapeID("smithy.api#input")),
20307
+ ],
20308
+ members={
20309
+ "ResourceArn": {
20310
+ "target": POLICY_RESOURCE_ARN,
20311
+ "traits": [
20312
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
20313
+ Trait.new(id=ShapeID("smithy.api#required")),
20314
+ Trait.new(id=ShapeID("smithy.api#httpLabel")),
20315
+ ],
20316
+ }
20317
+ },
20318
+ )
20319
+
20320
+ RESOURCE_POLICY = Schema(
20321
+ id=ShapeID("com.amazonaws.lambda#ResourcePolicy"),
20322
+ shape_type=ShapeType.STRING,
20323
+ traits=[
20324
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
20325
+ Trait.new(
20326
+ id=ShapeID("smithy.api#length"),
20327
+ value=MappingProxyType({"min": 1, "max": 20480}),
20328
+ ),
20329
+ Trait.new(id=ShapeID("smithy.api#pattern"), value="^[\\s\\S]+$"),
20330
+ ],
20331
+ )
20332
+
20333
+ GET_RESOURCE_POLICY_OUTPUT = Schema.collection(
20334
+ id=ShapeID("com.amazonaws.lambda#GetResourcePolicyOutput"),
20335
+ traits=[
20336
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
20337
+ Trait.new(
20338
+ id=ShapeID("smithy.synthetic#originalShapeId"),
20339
+ value="com.amazonaws.lambda#GetResourcePolicyResponse",
20340
+ ),
20341
+ Trait.new(id=ShapeID("smithy.api#output")),
20342
+ ],
20343
+ members={
20344
+ "Policy": {
20345
+ "target": RESOURCE_POLICY,
20346
+ "traits": [
20347
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",))
20348
+ ],
20349
+ },
20350
+ "RevisionId": {
20351
+ "target": REVISION_ID,
20352
+ "traits": [
20353
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",))
20354
+ ],
20355
+ },
20356
+ },
20357
+ )
20358
+
20359
+ GET_RESOURCE_POLICY = Schema(
20360
+ id=ShapeID("com.amazonaws.lambda#GetResourcePolicy"),
20361
+ shape_type=ShapeType.OPERATION,
20362
+ traits=[
20363
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
20364
+ Trait.new(
20365
+ id=ShapeID("aws.iam#iamAction"),
20366
+ value=MappingProxyType(
20367
+ {
20368
+ "documentation": "Grants permission to view a policy for an AWS Lambda resource",
20369
+ "relativeDocumentation": "API_GetResourcePolicy.html",
20370
+ "requiredActions": ("lambda:GetPolicy",),
20371
+ "resources": MappingProxyType(
20372
+ {
20373
+ "required": MappingProxyType(
20374
+ {"function": MappingProxyType({})}
20375
+ )
20376
+ }
20377
+ ),
20378
+ }
20379
+ ),
20380
+ ),
20381
+ Trait.new(
20382
+ id=ShapeID("smithy.api#http"),
20383
+ value=MappingProxyType(
20384
+ {
20385
+ "method": "GET",
20386
+ "uri": "/2026-07-09/resource-policy/{ResourceArn}",
20387
+ "code": 200,
20388
+ }
20389
+ ),
20390
+ ),
20391
+ Trait.new(id=ShapeID("smithy.api#readonly")),
20392
+ ],
20393
+ )
20394
+
20184
20395
  MAX_LAYER_LIST_ITEMS = Schema(
20185
20396
  id=ShapeID("com.amazonaws.lambda#MaxLayerListItems"),
20186
20397
  shape_type=ShapeType.INTEGER,
@@ -22207,7 +22418,7 @@ GET_PROVISIONED_CONCURRENCY_CONFIG = Schema(
22207
22418
  value=(
22208
22419
  MappingProxyType(
22209
22420
  {
22210
- "documentation": "The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.",
22421
+ "documentation": "The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.",
22211
22422
  "input": MappingProxyType(
22212
22423
  {"FunctionName": "my-function", "Qualifier": "BLUE"}
22213
22424
  ),
@@ -22220,12 +22431,12 @@ GET_PROVISIONED_CONCURRENCY_CONFIG = Schema(
22220
22431
  "Status": "READY",
22221
22432
  }
22222
22433
  ),
22223
- "title": "To get a provisioned concurrency configuration",
22434
+ "title": "To view a provisioned concurrency configuration",
22224
22435
  }
22225
22436
  ),
22226
22437
  MappingProxyType(
22227
22438
  {
22228
- "documentation": "The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.",
22439
+ "documentation": "The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.",
22229
22440
  "input": MappingProxyType(
22230
22441
  {"FunctionName": "my-function", "Qualifier": "BLUE"}
22231
22442
  ),
@@ -22238,7 +22449,7 @@ GET_PROVISIONED_CONCURRENCY_CONFIG = Schema(
22238
22449
  "Status": "READY",
22239
22450
  }
22240
22451
  ),
22241
- "title": "To view a provisioned concurrency configuration",
22452
+ "title": "To get a provisioned concurrency configuration",
22242
22453
  }
22243
22454
  ),
22244
22455
  ),
@@ -22584,6 +22795,107 @@ PUT_FUNCTION_EVENT_INVOKE_CONFIG = Schema(
22584
22795
  ],
22585
22796
  )
22586
22797
 
22798
+ PUT_RESOURCE_POLICY_INPUT = Schema.collection(
22799
+ id=ShapeID("com.amazonaws.lambda#PutResourcePolicyInput"),
22800
+ traits=[
22801
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
22802
+ Trait.new(
22803
+ id=ShapeID("smithy.synthetic#originalShapeId"),
22804
+ value="com.amazonaws.lambda#PutResourcePolicyRequest",
22805
+ ),
22806
+ Trait.new(id=ShapeID("smithy.api#input")),
22807
+ ],
22808
+ members={
22809
+ "ResourceArn": {
22810
+ "target": POLICY_RESOURCE_ARN,
22811
+ "traits": [
22812
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
22813
+ Trait.new(id=ShapeID("smithy.api#required")),
22814
+ Trait.new(id=ShapeID("smithy.api#httpLabel")),
22815
+ ],
22816
+ },
22817
+ "Policy": {
22818
+ "target": RESOURCE_POLICY,
22819
+ "traits": [
22820
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
22821
+ Trait.new(id=ShapeID("smithy.api#required")),
22822
+ ],
22823
+ },
22824
+ "RevisionId": {
22825
+ "target": REVISION_ID,
22826
+ "traits": [
22827
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",))
22828
+ ],
22829
+ },
22830
+ },
22831
+ )
22832
+
22833
+ PUT_RESOURCE_POLICY_OUTPUT = Schema.collection(
22834
+ id=ShapeID("com.amazonaws.lambda#PutResourcePolicyOutput"),
22835
+ traits=[
22836
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
22837
+ Trait.new(
22838
+ id=ShapeID("smithy.synthetic#originalShapeId"),
22839
+ value="com.amazonaws.lambda#PutResourcePolicyResponse",
22840
+ ),
22841
+ Trait.new(id=ShapeID("smithy.api#output")),
22842
+ ],
22843
+ members={
22844
+ "Policy": {
22845
+ "target": RESOURCE_POLICY,
22846
+ "traits": [
22847
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",))
22848
+ ],
22849
+ },
22850
+ "RevisionId": {
22851
+ "target": REVISION_ID,
22852
+ "traits": [
22853
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",))
22854
+ ],
22855
+ },
22856
+ },
22857
+ )
22858
+
22859
+ PUT_RESOURCE_POLICY = Schema(
22860
+ id=ShapeID("com.amazonaws.lambda#PutResourcePolicy"),
22861
+ shape_type=ShapeType.OPERATION,
22862
+ traits=[
22863
+ Trait.new(id=ShapeID("aws.iam#conditionKeys"), value=("lambda:Principal",)),
22864
+ Trait.new(id=ShapeID("smithy.api#idempotent")),
22865
+ Trait.new(id=ShapeID("smithy.api#tags"), value=("feature:rbp",)),
22866
+ Trait.new(
22867
+ id=ShapeID("aws.iam#iamAction"),
22868
+ value=MappingProxyType(
22869
+ {
22870
+ "documentation": "Grants permission to attach a policy to an AWS Lambda resource",
22871
+ "relativeDocumentation": "API_PutResourcePolicy.html",
22872
+ "requiredActions": (
22873
+ "lambda:AddPermission",
22874
+ "lambda:RemovePermission",
22875
+ ),
22876
+ "resources": MappingProxyType(
22877
+ {
22878
+ "required": MappingProxyType(
22879
+ {"function": MappingProxyType({})}
22880
+ )
22881
+ }
22882
+ ),
22883
+ }
22884
+ ),
22885
+ ),
22886
+ Trait.new(
22887
+ id=ShapeID("smithy.api#http"),
22888
+ value=MappingProxyType(
22889
+ {
22890
+ "method": "PUT",
22891
+ "uri": "/2026-07-09/resource-policy/{ResourceArn}",
22892
+ "code": 200,
22893
+ }
22894
+ ),
22895
+ ),
22896
+ ],
22897
+ )
22898
+
22587
22899
  CALLBACK_TIMEOUT_EXCEPTION = Schema.collection(
22588
22900
  id=ShapeID("com.amazonaws.lambda#CallbackTimeoutException"),
22589
22901
  traits=[