capo-lambda-web 0.2.0__py3-none-any.whl

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 (154) hide show
  1. capo_lambda_web/__init__.py +71 -0
  2. capo_lambda_web/_async.py +25 -0
  3. capo_lambda_web/_auth/_identity.py +16 -0
  4. capo_lambda_web/_auth/_providers.py +886 -0
  5. capo_lambda_web/_auth/_signers.py +121 -0
  6. capo_lambda_web/_auth/_sigv4.py +579 -0
  7. capo_lambda_web/_auth/_zapros_handler.py +80 -0
  8. capo_lambda_web/_body.py +221 -0
  9. capo_lambda_web/_iter.py +113 -0
  10. capo_lambda_web/_operations/lambda_web/create_web_function.py +184 -0
  11. capo_lambda_web/_operations/lambda_web/create_web_function_endpoint.py +194 -0
  12. capo_lambda_web/_operations/lambda_web/create_web_function_revision.py +188 -0
  13. capo_lambda_web/_operations/lambda_web/delete_resource_policy.py +147 -0
  14. capo_lambda_web/_operations/lambda_web/delete_web_function.py +145 -0
  15. capo_lambda_web/_operations/lambda_web/delete_web_function_endpoint.py +149 -0
  16. capo_lambda_web/_operations/lambda_web/delete_web_function_revision.py +149 -0
  17. capo_lambda_web/_operations/lambda_web/get_resource_policy.py +165 -0
  18. capo_lambda_web/_operations/lambda_web/get_web_account_settings.py +155 -0
  19. capo_lambda_web/_operations/lambda_web/get_web_function.py +171 -0
  20. capo_lambda_web/_operations/lambda_web/get_web_function_endpoint.py +180 -0
  21. capo_lambda_web/_operations/lambda_web/get_web_function_revision.py +174 -0
  22. capo_lambda_web/_operations/lambda_web/list_tags.py +164 -0
  23. capo_lambda_web/_operations/lambda_web/list_web_function_endpoints.py +176 -0
  24. capo_lambda_web/_operations/lambda_web/list_web_function_revisions.py +176 -0
  25. capo_lambda_web/_operations/lambda_web/list_web_functions.py +168 -0
  26. capo_lambda_web/_operations/lambda_web/put_resource_policy.py +179 -0
  27. capo_lambda_web/_operations/lambda_web/tag_resource.py +155 -0
  28. capo_lambda_web/_operations/lambda_web/untag_resource.py +148 -0
  29. capo_lambda_web/_operations/lambda_web/update_web_function_endpoint.py +196 -0
  30. capo_lambda_web/_pagination.py +21 -0
  31. capo_lambda_web/_protocol/__init__.py +1 -0
  32. capo_lambda_web/_protocol/errors.py +93 -0
  33. capo_lambda_web/_protocol/eventstream.py +240 -0
  34. capo_lambda_web/_protocol/serialize.py +47 -0
  35. capo_lambda_web/_protocol/xml.py +33 -0
  36. capo_lambda_web/_resources/lambda_web/web_function.py +477 -0
  37. capo_lambda_web/_rule_engine/__init__.py +0 -0
  38. capo_lambda_web/_rule_engine/_aws_partition.py +160 -0
  39. capo_lambda_web/_rule_engine/_endpoint_rule_set.py +135 -0
  40. capo_lambda_web/_rule_engine/_endpoint_runtime.py +389 -0
  41. capo_lambda_web/_services/_aws_config.py +160 -0
  42. capo_lambda_web/_services/_pipeline.py +264 -0
  43. capo_lambda_web/_services/async_lambda_web.py +1394 -0
  44. capo_lambda_web/_services/lambda_web.py +1374 -0
  45. capo_lambda_web/errors/__init__.py +36 -0
  46. capo_lambda_web/errors/_base.py +94 -0
  47. capo_lambda_web/errors/access_denied_exception.py +48 -0
  48. capo_lambda_web/errors/conflict_exception.py +58 -0
  49. capo_lambda_web/errors/internal_server_exception.py +47 -0
  50. capo_lambda_web/errors/resource_not_found_exception.py +60 -0
  51. capo_lambda_web/errors/service_quota_exceeded_exception.py +74 -0
  52. capo_lambda_web/errors/throttling_exception.py +60 -0
  53. capo_lambda_web/errors/validation_exception.py +46 -0
  54. capo_lambda_web/py.typed +0 -0
  55. capo_lambda_web/types/_prelude/blob.py +12 -0
  56. capo_lambda_web/types/_prelude/timestamp.py +17 -0
  57. capo_lambda_web/types/account_quotas.py +47 -0
  58. capo_lambda_web/types/account_usage.py +26 -0
  59. capo_lambda_web/types/application_log_level.py +22 -0
  60. capo_lambda_web/types/auth_type.py +18 -0
  61. capo_lambda_web/types/auto_deployment_mode.py +18 -0
  62. capo_lambda_web/types/build_config.py +55 -0
  63. capo_lambda_web/types/code_config.py +37 -0
  64. capo_lambda_web/types/create_web_function_endpoint_request.py +164 -0
  65. capo_lambda_web/types/create_web_function_endpoint_response.py +291 -0
  66. capo_lambda_web/types/create_web_function_request.py +72 -0
  67. capo_lambda_web/types/create_web_function_response.py +144 -0
  68. capo_lambda_web/types/create_web_function_revision_request.py +76 -0
  69. capo_lambda_web/types/create_web_function_revision_response.py +157 -0
  70. capo_lambda_web/types/date_time.py +20 -0
  71. capo_lambda_web/types/delete_resource_policy_request.py +29 -0
  72. capo_lambda_web/types/delete_web_function_endpoint_request.py +27 -0
  73. capo_lambda_web/types/delete_web_function_request.py +24 -0
  74. capo_lambda_web/types/delete_web_function_revision_request.py +27 -0
  75. capo_lambda_web/types/description.py +5 -0
  76. capo_lambda_web/types/domain_name.py +5 -0
  77. capo_lambda_web/types/endpoint_arn.py +5 -0
  78. capo_lambda_web/types/endpoint_config.py +134 -0
  79. capo_lambda_web/types/endpoint_name.py +5 -0
  80. capo_lambda_web/types/endpoint_state.py +20 -0
  81. capo_lambda_web/types/endpoint_type.py +19 -0
  82. capo_lambda_web/types/endpoint_update_status.py +19 -0
  83. capo_lambda_web/types/environment_variables.py +22 -0
  84. capo_lambda_web/types/filter.py +46 -0
  85. capo_lambda_web/types/filter_list.py +29 -0
  86. capo_lambda_web/types/filter_value_list.py +14 -0
  87. capo_lambda_web/types/function_arn.py +5 -0
  88. capo_lambda_web/types/function_endpoint_summary.py +249 -0
  89. capo_lambda_web/types/function_endpoint_summary_list.py +33 -0
  90. capo_lambda_web/types/function_name.py +5 -0
  91. capo_lambda_web/types/function_revision_summary.py +83 -0
  92. capo_lambda_web/types/function_revision_summary_list.py +33 -0
  93. capo_lambda_web/types/function_state.py +20 -0
  94. capo_lambda_web/types/function_summary.py +91 -0
  95. capo_lambda_web/types/function_summary_list.py +31 -0
  96. capo_lambda_web/types/get_resource_policy_request.py +24 -0
  97. capo_lambda_web/types/get_resource_policy_response.py +39 -0
  98. capo_lambda_web/types/get_web_account_settings_request.py +18 -0
  99. capo_lambda_web/types/get_web_account_settings_response.py +59 -0
  100. capo_lambda_web/types/get_web_function_endpoint_request.py +27 -0
  101. capo_lambda_web/types/get_web_function_endpoint_response.py +285 -0
  102. capo_lambda_web/types/get_web_function_request.py +24 -0
  103. capo_lambda_web/types/get_web_function_response.py +91 -0
  104. capo_lambda_web/types/get_web_function_revision_request.py +27 -0
  105. capo_lambda_web/types/get_web_function_revision_response.py +155 -0
  106. capo_lambda_web/types/kms_key_arn.py +5 -0
  107. capo_lambda_web/types/list_tags_request.py +24 -0
  108. capo_lambda_web/types/list_tags_response.py +32 -0
  109. capo_lambda_web/types/list_web_function_endpoints_request.py +54 -0
  110. capo_lambda_web/types/list_web_function_endpoints_response.py +52 -0
  111. capo_lambda_web/types/list_web_function_revisions_request.py +54 -0
  112. capo_lambda_web/types/list_web_function_revisions_response.py +52 -0
  113. capo_lambda_web/types/list_web_functions_request.py +51 -0
  114. capo_lambda_web/types/list_web_functions_response.py +46 -0
  115. capo_lambda_web/types/logging_config.py +67 -0
  116. capo_lambda_web/types/max_results.py +5 -0
  117. capo_lambda_web/types/next_token.py +5 -0
  118. capo_lambda_web/types/policy_revision_id.py +5 -0
  119. capo_lambda_web/types/put_resource_policy_request.py +43 -0
  120. capo_lambda_web/types/put_resource_policy_response.py +39 -0
  121. capo_lambda_web/types/region.py +5 -0
  122. capo_lambda_web/types/region_list.py +17 -0
  123. capo_lambda_web/types/regional_endpoint.py +140 -0
  124. capo_lambda_web/types/regional_endpoints.py +33 -0
  125. capo_lambda_web/types/resource_arn.py +5 -0
  126. capo_lambda_web/types/resource_policy.py +5 -0
  127. capo_lambda_web/types/revision_arn.py +5 -0
  128. capo_lambda_web/types/revision_config.py +69 -0
  129. capo_lambda_web/types/revision_error.py +40 -0
  130. capo_lambda_web/types/revision_errors.py +29 -0
  131. capo_lambda_web/types/revision_id.py +5 -0
  132. capo_lambda_web/types/revision_state.py +19 -0
  133. capo_lambda_web/types/revision_weight.py +38 -0
  134. capo_lambda_web/types/revision_weight_list.py +31 -0
  135. capo_lambda_web/types/role_arn.py +5 -0
  136. capo_lambda_web/types/runtime_config.py +26 -0
  137. capo_lambda_web/types/s3_object.py +39 -0
  138. capo_lambda_web/types/scaling_config.py +23 -0
  139. capo_lambda_web/types/service_config.py +87 -0
  140. capo_lambda_web/types/system_log_level.py +19 -0
  141. capo_lambda_web/types/tag_key.py +5 -0
  142. capo_lambda_web/types/tag_key_list.py +17 -0
  143. capo_lambda_web/types/tag_resource_request.py +38 -0
  144. capo_lambda_web/types/tags.py +25 -0
  145. capo_lambda_web/types/telemetry_config.py +36 -0
  146. capo_lambda_web/types/throttle_config.py +23 -0
  147. capo_lambda_web/types/untag_resource_request.py +27 -0
  148. capo_lambda_web/types/update_web_function_endpoint_request.py +121 -0
  149. capo_lambda_web/types/update_web_function_endpoint_response.py +291 -0
  150. capo_lambda_web-0.2.0.dist-info/METADATA +104 -0
  151. capo_lambda_web-0.2.0.dist-info/RECORD +154 -0
  152. capo_lambda_web-0.2.0.dist-info/WHEEL +5 -0
  153. capo_lambda_web-0.2.0.dist-info/licenses/LICENSE +21 -0
  154. capo_lambda_web-0.2.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,91 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#GetWebFunctionResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_lambda_web.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_lambda_web.types.date_time
11
+ import capo_lambda_web.types.function_arn
12
+ import capo_lambda_web.types.function_name
13
+ import capo_lambda_web.types.function_state
14
+
15
+
16
+ class GetWebFunctionResponse(TypedDict, closed=True):
17
+ function_name: "capo_lambda_web.types.function_name.FunctionName"
18
+ """<p>The name of the web function.</p>"""
19
+ function_arn: "capo_lambda_web.types.function_arn.FunctionArn"
20
+ """<p>The Amazon Resource Name (ARN) of the web function.</p>"""
21
+ state: "capo_lambda_web.types.function_state.FunctionState"
22
+ """<p>The current state of the web function.</p>"""
23
+ state_reason: "str"
24
+ """<p>The reason for the current state of the web function.</p>"""
25
+ created_at: "capo_lambda_web.types.date_time.DateTime"
26
+ """<p>The date and time the web function was created.</p>"""
27
+ updated_at: "capo_lambda_web.types.date_time.DateTime"
28
+ """<p>The date and time the web function was last updated.</p>"""
29
+
30
+
31
+ # --- restJson1 ser/de ---
32
+ def serialize_json(value: GetWebFunctionResponse) -> dict:
33
+ out: dict = {}
34
+ out["functionName"] = value["function_name"]
35
+ out["functionArn"] = value["function_arn"]
36
+ import capo_lambda_web.types.function_state
37
+
38
+ out["state"] = capo_lambda_web.types.function_state.serialize_json(value["state"])
39
+ out["stateReason"] = value["state_reason"]
40
+ import capo_lambda_web.types.date_time
41
+
42
+ out["createdAt"] = capo_lambda_web.types.date_time.serialize_json(
43
+ value["created_at"]
44
+ )
45
+ import capo_lambda_web.types.date_time
46
+
47
+ out["updatedAt"] = capo_lambda_web.types.date_time.serialize_json(
48
+ value["updated_at"]
49
+ )
50
+ return out
51
+
52
+
53
+ def deserialize_json(data: dict) -> GetWebFunctionResponse:
54
+ out: GetWebFunctionResponse = {} # type: ignore[typeddict-item]
55
+ if data.get("functionName") is not None:
56
+ out["function_name"] = data["functionName"]
57
+ else:
58
+ raise DeserializationError("GetWebFunctionResponse.function_name required")
59
+ if data.get("functionArn") is not None:
60
+ out["function_arn"] = data["functionArn"]
61
+ else:
62
+ raise DeserializationError("GetWebFunctionResponse.function_arn required")
63
+ if data.get("state") is not None:
64
+ import capo_lambda_web.types.function_state
65
+
66
+ out["state"] = capo_lambda_web.types.function_state.deserialize_json(
67
+ data["state"]
68
+ )
69
+ else:
70
+ raise DeserializationError("GetWebFunctionResponse.state required")
71
+ if data.get("stateReason") is not None:
72
+ out["state_reason"] = data["stateReason"]
73
+ else:
74
+ raise DeserializationError("GetWebFunctionResponse.state_reason required")
75
+ if data.get("createdAt") is not None:
76
+ import capo_lambda_web.types.date_time
77
+
78
+ out["created_at"] = capo_lambda_web.types.date_time.deserialize_json(
79
+ data["createdAt"]
80
+ )
81
+ else:
82
+ raise DeserializationError("GetWebFunctionResponse.created_at required")
83
+ if data.get("updatedAt") is not None:
84
+ import capo_lambda_web.types.date_time
85
+
86
+ out["updated_at"] = capo_lambda_web.types.date_time.deserialize_json(
87
+ data["updatedAt"]
88
+ )
89
+ else:
90
+ raise DeserializationError("GetWebFunctionResponse.updated_at required")
91
+ return out
@@ -0,0 +1,27 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#GetWebFunctionRevisionRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_lambda_web.types.function_name
9
+ import capo_lambda_web.types.revision_id
10
+
11
+
12
+ class GetWebFunctionRevisionRequest(TypedDict, closed=True):
13
+ function_name: "capo_lambda_web.types.function_name.FunctionName"
14
+ """<p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>"""
15
+ revision_id: "capo_lambda_web.types.revision_id.RevisionId"
16
+ """<p>The identifier of the revision to retrieve. You can specify the revision identifier or the revision ARN. The length constraint applies only to the full ARN.</p>"""
17
+
18
+
19
+ # --- restJson1 ser/de ---
20
+ def serialize_json(value: GetWebFunctionRevisionRequest) -> dict:
21
+ out: dict = {}
22
+ return out
23
+
24
+
25
+ def deserialize_json(data: dict) -> GetWebFunctionRevisionRequest:
26
+ out: GetWebFunctionRevisionRequest = {} # type: ignore[typeddict-item]
27
+ return out
@@ -0,0 +1,155 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#GetWebFunctionRevisionResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_lambda_web.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_lambda_web.types.build_config
11
+ import capo_lambda_web.types.date_time
12
+ import capo_lambda_web.types.description
13
+ import capo_lambda_web.types.function_arn
14
+ import capo_lambda_web.types.kms_key_arn
15
+ import capo_lambda_web.types.revision_arn
16
+ import capo_lambda_web.types.revision_errors
17
+ import capo_lambda_web.types.revision_id
18
+ import capo_lambda_web.types.revision_state
19
+ import capo_lambda_web.types.service_config
20
+
21
+
22
+ class GetWebFunctionRevisionResponse(TypedDict, closed=True):
23
+ function_arn: "capo_lambda_web.types.function_arn.FunctionArn"
24
+ """<p>The Amazon Resource Name (ARN) of the web function.</p>"""
25
+ revision_arn: "capo_lambda_web.types.revision_arn.RevisionArn"
26
+ """<p>The Amazon Resource Name (ARN) of the revision.</p>"""
27
+ revision_id: "capo_lambda_web.types.revision_id.RevisionId"
28
+ """<p>The identifier of the revision.</p>"""
29
+ description: NotRequired["capo_lambda_web.types.description.Description"]
30
+ """<p>The description of the revision.</p>"""
31
+ kms_key_arn: NotRequired["capo_lambda_web.types.kms_key_arn.KmsKeyArn"]
32
+ """<p>The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the revision's code and environment variables.</p>"""
33
+ build_config: "capo_lambda_web.types.build_config.BuildConfig"
34
+ service_config: "capo_lambda_web.types.service_config.ServiceConfig"
35
+ state: "capo_lambda_web.types.revision_state.RevisionState"
36
+ """<p>The current state of the revision.</p>"""
37
+ state_reason: "str"
38
+ """<p>The reason for the current state of the revision.</p>"""
39
+ errors: NotRequired["capo_lambda_web.types.revision_errors.RevisionErrors"]
40
+ """<p>A list of errors encountered during revision creation. This field is absent when the revision has no errors.</p>"""
41
+ created_at: "capo_lambda_web.types.date_time.DateTime"
42
+ """<p>The date and time the revision was created.</p>"""
43
+
44
+
45
+ # --- restJson1 ser/de ---
46
+ def serialize_json(value: GetWebFunctionRevisionResponse) -> dict:
47
+ out: dict = {}
48
+ out["functionArn"] = value["function_arn"]
49
+ out["revisionArn"] = value["revision_arn"]
50
+ out["revisionId"] = value["revision_id"]
51
+ if "description" in value:
52
+ out["description"] = value["description"]
53
+ if "kms_key_arn" in value:
54
+ out["kmsKeyArn"] = value["kms_key_arn"]
55
+ import capo_lambda_web.types.build_config
56
+
57
+ out["buildConfig"] = capo_lambda_web.types.build_config.serialize_json(
58
+ value["build_config"]
59
+ )
60
+ import capo_lambda_web.types.service_config
61
+
62
+ out["serviceConfig"] = capo_lambda_web.types.service_config.serialize_json(
63
+ value["service_config"]
64
+ )
65
+ import capo_lambda_web.types.revision_state
66
+
67
+ out["state"] = capo_lambda_web.types.revision_state.serialize_json(value["state"])
68
+ out["stateReason"] = value["state_reason"]
69
+ if "errors" in value:
70
+ import capo_lambda_web.types.revision_errors
71
+
72
+ out["errors"] = capo_lambda_web.types.revision_errors.serialize_json(
73
+ value["errors"]
74
+ )
75
+ import capo_lambda_web.types.date_time
76
+
77
+ out["createdAt"] = capo_lambda_web.types.date_time.serialize_json(
78
+ value["created_at"]
79
+ )
80
+ return out
81
+
82
+
83
+ def deserialize_json(data: dict) -> GetWebFunctionRevisionResponse:
84
+ out: GetWebFunctionRevisionResponse = {} # type: ignore[typeddict-item]
85
+ if data.get("functionArn") is not None:
86
+ out["function_arn"] = data["functionArn"]
87
+ else:
88
+ raise DeserializationError(
89
+ "GetWebFunctionRevisionResponse.function_arn required"
90
+ )
91
+ if data.get("revisionArn") is not None:
92
+ out["revision_arn"] = data["revisionArn"]
93
+ else:
94
+ raise DeserializationError(
95
+ "GetWebFunctionRevisionResponse.revision_arn required"
96
+ )
97
+ if data.get("revisionId") is not None:
98
+ out["revision_id"] = data["revisionId"]
99
+ else:
100
+ raise DeserializationError(
101
+ "GetWebFunctionRevisionResponse.revision_id required"
102
+ )
103
+ if data.get("description") is not None:
104
+ out["description"] = data["description"]
105
+ if data.get("kmsKeyArn") is not None:
106
+ out["kms_key_arn"] = data["kmsKeyArn"]
107
+ if data.get("buildConfig") is not None:
108
+ import capo_lambda_web.types.build_config
109
+
110
+ out["build_config"] = capo_lambda_web.types.build_config.deserialize_json(
111
+ data["buildConfig"]
112
+ )
113
+ else:
114
+ raise DeserializationError(
115
+ "GetWebFunctionRevisionResponse.build_config required"
116
+ )
117
+ if data.get("serviceConfig") is not None:
118
+ import capo_lambda_web.types.service_config
119
+
120
+ out["service_config"] = capo_lambda_web.types.service_config.deserialize_json(
121
+ data["serviceConfig"]
122
+ )
123
+ else:
124
+ raise DeserializationError(
125
+ "GetWebFunctionRevisionResponse.service_config required"
126
+ )
127
+ if data.get("state") is not None:
128
+ import capo_lambda_web.types.revision_state
129
+
130
+ out["state"] = capo_lambda_web.types.revision_state.deserialize_json(
131
+ data["state"]
132
+ )
133
+ else:
134
+ raise DeserializationError("GetWebFunctionRevisionResponse.state required")
135
+ if data.get("stateReason") is not None:
136
+ out["state_reason"] = data["stateReason"]
137
+ else:
138
+ raise DeserializationError(
139
+ "GetWebFunctionRevisionResponse.state_reason required"
140
+ )
141
+ if data.get("errors") is not None:
142
+ import capo_lambda_web.types.revision_errors
143
+
144
+ out["errors"] = capo_lambda_web.types.revision_errors.deserialize_json(
145
+ data["errors"]
146
+ )
147
+ if data.get("createdAt") is not None:
148
+ import capo_lambda_web.types.date_time
149
+
150
+ out["created_at"] = capo_lambda_web.types.date_time.deserialize_json(
151
+ data["createdAt"]
152
+ )
153
+ else:
154
+ raise DeserializationError("GetWebFunctionRevisionResponse.created_at required")
155
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#KmsKeyArn``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ KmsKeyArn: TypeAlias = str
@@ -0,0 +1,24 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListTagsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_lambda_web.types.resource_arn
9
+
10
+
11
+ class ListTagsRequest(TypedDict, closed=True):
12
+ resource: "capo_lambda_web.types.resource_arn.ResourceArn"
13
+ """<p>The Amazon Resource Name (ARN) of the web function.</p>"""
14
+
15
+
16
+ # --- restJson1 ser/de ---
17
+ def serialize_json(value: ListTagsRequest) -> dict:
18
+ out: dict = {}
19
+ return out
20
+
21
+
22
+ def deserialize_json(data: dict) -> ListTagsRequest:
23
+ out: ListTagsRequest = {} # type: ignore[typeddict-item]
24
+ return out
@@ -0,0 +1,32 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListTagsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_lambda_web.types.tags
9
+
10
+
11
+ class ListTagsResponse(TypedDict, closed=True):
12
+ tags: NotRequired["capo_lambda_web.types.tags.Tags"]
13
+ """<p>A map of tag keys and values associated with the web function.</p>"""
14
+
15
+
16
+ # --- restJson1 ser/de ---
17
+ def serialize_json(value: ListTagsResponse) -> dict:
18
+ out: dict = {}
19
+ if "tags" in value:
20
+ import capo_lambda_web.types.tags
21
+
22
+ out["Tags"] = capo_lambda_web.types.tags.serialize_json(value["tags"])
23
+ return out
24
+
25
+
26
+ def deserialize_json(data: dict) -> ListTagsResponse:
27
+ out: ListTagsResponse = {} # type: ignore[typeddict-item]
28
+ if data.get("Tags") is not None:
29
+ import capo_lambda_web.types.tags
30
+
31
+ out["tags"] = capo_lambda_web.types.tags.deserialize_json(data["Tags"])
32
+ return out
@@ -0,0 +1,54 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListWebFunctionEndpointsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_lambda_web.types.filter_list
9
+ import capo_lambda_web.types.function_name
10
+ import capo_lambda_web.types.max_results
11
+ import capo_lambda_web.types.next_token
12
+
13
+
14
+ class ListWebFunctionEndpointsRequest(TypedDict, closed=True):
15
+ function_name: "capo_lambda_web.types.function_name.FunctionName"
16
+ """<p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>"""
17
+ filters: NotRequired["capo_lambda_web.types.filter_list.FilterList"]
18
+ """<p>A list of filters to apply to the results. Supported filter names: <code>authType</code>, <code>autoDeploymentMode</code>, <code>endpointType</code>, <code>state</code>, and <code>updateStatus</code>.</p>"""
19
+ max_results: "capo_lambda_web.types.max_results.MaxResults"
20
+ """<p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.</p>"""
21
+ next_token: NotRequired["capo_lambda_web.types.next_token.NextToken"]
22
+ """<p>The pagination token that's returned by a previous request to retrieve the next page of results.</p>"""
23
+
24
+
25
+ # --- restJson1 ser/de ---
26
+ def serialize_json(value: ListWebFunctionEndpointsRequest) -> dict:
27
+ out: dict = {}
28
+ if "filters" in value:
29
+ import capo_lambda_web.types.filter_list
30
+
31
+ out["filters"] = capo_lambda_web.types.filter_list.serialize_json(
32
+ value["filters"]
33
+ )
34
+ out["maxResults"] = value.get("max_results", 50)
35
+ if "next_token" in value:
36
+ out["nextToken"] = value["next_token"]
37
+ return out
38
+
39
+
40
+ def deserialize_json(data: dict) -> ListWebFunctionEndpointsRequest:
41
+ out: ListWebFunctionEndpointsRequest = {} # type: ignore[typeddict-item]
42
+ if data.get("filters") is not None:
43
+ import capo_lambda_web.types.filter_list
44
+
45
+ out["filters"] = capo_lambda_web.types.filter_list.deserialize_json(
46
+ data["filters"]
47
+ )
48
+ if data.get("maxResults") is not None:
49
+ out["max_results"] = data["maxResults"]
50
+ else:
51
+ out["max_results"] = 50
52
+ if data.get("nextToken") is not None:
53
+ out["next_token"] = data["nextToken"]
54
+ return out
@@ -0,0 +1,52 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListWebFunctionEndpointsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_lambda_web.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_lambda_web.types.function_endpoint_summary_list
11
+ import capo_lambda_web.types.next_token
12
+
13
+
14
+ class ListWebFunctionEndpointsResponse(TypedDict, closed=True):
15
+ endpoints: "capo_lambda_web.types.function_endpoint_summary_list.FunctionEndpointSummaryList"
16
+ """<p>A list of endpoint summaries for the web function.</p>"""
17
+ next_token: NotRequired["capo_lambda_web.types.next_token.NextToken"]
18
+ """<p>The pagination token that's included if more results are available.</p>"""
19
+
20
+
21
+ # --- restJson1 ser/de ---
22
+ def serialize_json(value: ListWebFunctionEndpointsResponse) -> dict:
23
+ out: dict = {}
24
+ import capo_lambda_web.types.function_endpoint_summary_list
25
+
26
+ out["endpoints"] = (
27
+ capo_lambda_web.types.function_endpoint_summary_list.serialize_json(
28
+ value["endpoints"]
29
+ )
30
+ )
31
+ if "next_token" in value:
32
+ out["nextToken"] = value["next_token"]
33
+ return out
34
+
35
+
36
+ def deserialize_json(data: dict) -> ListWebFunctionEndpointsResponse:
37
+ out: ListWebFunctionEndpointsResponse = {} # type: ignore[typeddict-item]
38
+ if data.get("endpoints") is not None:
39
+ import capo_lambda_web.types.function_endpoint_summary_list
40
+
41
+ out["endpoints"] = (
42
+ capo_lambda_web.types.function_endpoint_summary_list.deserialize_json(
43
+ data["endpoints"]
44
+ )
45
+ )
46
+ else:
47
+ raise DeserializationError(
48
+ "ListWebFunctionEndpointsResponse.endpoints required"
49
+ )
50
+ if data.get("nextToken") is not None:
51
+ out["next_token"] = data["nextToken"]
52
+ return out
@@ -0,0 +1,54 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListWebFunctionRevisionsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_lambda_web.types.filter_list
9
+ import capo_lambda_web.types.function_name
10
+ import capo_lambda_web.types.max_results
11
+ import capo_lambda_web.types.next_token
12
+
13
+
14
+ class ListWebFunctionRevisionsRequest(TypedDict, closed=True):
15
+ function_name: "capo_lambda_web.types.function_name.FunctionName"
16
+ """<p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>"""
17
+ filters: NotRequired["capo_lambda_web.types.filter_list.FilterList"]
18
+ """<p>A list of filters to apply to the results. The only supported filter name is <code>state</code>.</p>"""
19
+ max_results: "capo_lambda_web.types.max_results.MaxResults"
20
+ """<p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.</p>"""
21
+ next_token: NotRequired["capo_lambda_web.types.next_token.NextToken"]
22
+ """<p>The pagination token that's returned by a previous request to retrieve the next page of results.</p>"""
23
+
24
+
25
+ # --- restJson1 ser/de ---
26
+ def serialize_json(value: ListWebFunctionRevisionsRequest) -> dict:
27
+ out: dict = {}
28
+ if "filters" in value:
29
+ import capo_lambda_web.types.filter_list
30
+
31
+ out["filters"] = capo_lambda_web.types.filter_list.serialize_json(
32
+ value["filters"]
33
+ )
34
+ out["maxResults"] = value.get("max_results", 50)
35
+ if "next_token" in value:
36
+ out["nextToken"] = value["next_token"]
37
+ return out
38
+
39
+
40
+ def deserialize_json(data: dict) -> ListWebFunctionRevisionsRequest:
41
+ out: ListWebFunctionRevisionsRequest = {} # type: ignore[typeddict-item]
42
+ if data.get("filters") is not None:
43
+ import capo_lambda_web.types.filter_list
44
+
45
+ out["filters"] = capo_lambda_web.types.filter_list.deserialize_json(
46
+ data["filters"]
47
+ )
48
+ if data.get("maxResults") is not None:
49
+ out["max_results"] = data["maxResults"]
50
+ else:
51
+ out["max_results"] = 50
52
+ if data.get("nextToken") is not None:
53
+ out["next_token"] = data["nextToken"]
54
+ return out
@@ -0,0 +1,52 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListWebFunctionRevisionsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_lambda_web.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_lambda_web.types.function_revision_summary_list
11
+ import capo_lambda_web.types.next_token
12
+
13
+
14
+ class ListWebFunctionRevisionsResponse(TypedDict, closed=True):
15
+ revisions: "capo_lambda_web.types.function_revision_summary_list.FunctionRevisionSummaryList"
16
+ """<p>A list of revision summaries for the web function.</p>"""
17
+ next_token: NotRequired["capo_lambda_web.types.next_token.NextToken"]
18
+ """<p>The pagination token that's included if more results are available.</p>"""
19
+
20
+
21
+ # --- restJson1 ser/de ---
22
+ def serialize_json(value: ListWebFunctionRevisionsResponse) -> dict:
23
+ out: dict = {}
24
+ import capo_lambda_web.types.function_revision_summary_list
25
+
26
+ out["revisions"] = (
27
+ capo_lambda_web.types.function_revision_summary_list.serialize_json(
28
+ value["revisions"]
29
+ )
30
+ )
31
+ if "next_token" in value:
32
+ out["nextToken"] = value["next_token"]
33
+ return out
34
+
35
+
36
+ def deserialize_json(data: dict) -> ListWebFunctionRevisionsResponse:
37
+ out: ListWebFunctionRevisionsResponse = {} # type: ignore[typeddict-item]
38
+ if data.get("revisions") is not None:
39
+ import capo_lambda_web.types.function_revision_summary_list
40
+
41
+ out["revisions"] = (
42
+ capo_lambda_web.types.function_revision_summary_list.deserialize_json(
43
+ data["revisions"]
44
+ )
45
+ )
46
+ else:
47
+ raise DeserializationError(
48
+ "ListWebFunctionRevisionsResponse.revisions required"
49
+ )
50
+ if data.get("nextToken") is not None:
51
+ out["next_token"] = data["nextToken"]
52
+ return out
@@ -0,0 +1,51 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListWebFunctionsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_lambda_web.types.filter_list
9
+ import capo_lambda_web.types.max_results
10
+ import capo_lambda_web.types.next_token
11
+
12
+
13
+ class ListWebFunctionsRequest(TypedDict, closed=True):
14
+ filters: NotRequired["capo_lambda_web.types.filter_list.FilterList"]
15
+ """<p>A list of filters to apply to the results. The only supported filter name is <code>state</code>.</p>"""
16
+ max_results: "capo_lambda_web.types.max_results.MaxResults"
17
+ """<p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.</p>"""
18
+ next_token: NotRequired["capo_lambda_web.types.next_token.NextToken"]
19
+ """<p>The pagination token that's returned by a previous request to retrieve the next page of results.</p>"""
20
+
21
+
22
+ # --- restJson1 ser/de ---
23
+ def serialize_json(value: ListWebFunctionsRequest) -> dict:
24
+ out: dict = {}
25
+ if "filters" in value:
26
+ import capo_lambda_web.types.filter_list
27
+
28
+ out["filters"] = capo_lambda_web.types.filter_list.serialize_json(
29
+ value["filters"]
30
+ )
31
+ out["maxResults"] = value.get("max_results", 50)
32
+ if "next_token" in value:
33
+ out["nextToken"] = value["next_token"]
34
+ return out
35
+
36
+
37
+ def deserialize_json(data: dict) -> ListWebFunctionsRequest:
38
+ out: ListWebFunctionsRequest = {} # type: ignore[typeddict-item]
39
+ if data.get("filters") is not None:
40
+ import capo_lambda_web.types.filter_list
41
+
42
+ out["filters"] = capo_lambda_web.types.filter_list.deserialize_json(
43
+ data["filters"]
44
+ )
45
+ if data.get("maxResults") is not None:
46
+ out["max_results"] = data["maxResults"]
47
+ else:
48
+ out["max_results"] = 50
49
+ if data.get("nextToken") is not None:
50
+ out["next_token"] = data["nextToken"]
51
+ return out
@@ -0,0 +1,46 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambdaweb#ListWebFunctionsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_lambda_web.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_lambda_web.types.function_summary_list
11
+ import capo_lambda_web.types.next_token
12
+
13
+
14
+ class ListWebFunctionsResponse(TypedDict, closed=True):
15
+ functions: "capo_lambda_web.types.function_summary_list.FunctionSummaryList"
16
+ """<p>A list of web function summaries.</p>"""
17
+ next_token: NotRequired["capo_lambda_web.types.next_token.NextToken"]
18
+ """<p>The pagination token that's included if more results are available.</p>"""
19
+
20
+
21
+ # --- restJson1 ser/de ---
22
+ def serialize_json(value: ListWebFunctionsResponse) -> dict:
23
+ out: dict = {}
24
+ import capo_lambda_web.types.function_summary_list
25
+
26
+ out["functions"] = capo_lambda_web.types.function_summary_list.serialize_json(
27
+ value["functions"]
28
+ )
29
+ if "next_token" in value:
30
+ out["nextToken"] = value["next_token"]
31
+ return out
32
+
33
+
34
+ def deserialize_json(data: dict) -> ListWebFunctionsResponse:
35
+ out: ListWebFunctionsResponse = {} # type: ignore[typeddict-item]
36
+ if data.get("functions") is not None:
37
+ import capo_lambda_web.types.function_summary_list
38
+
39
+ out["functions"] = capo_lambda_web.types.function_summary_list.deserialize_json(
40
+ data["functions"]
41
+ )
42
+ else:
43
+ raise DeserializationError("ListWebFunctionsResponse.functions required")
44
+ if data.get("nextToken") is not None:
45
+ out["next_token"] = data["nextToken"]
46
+ return out