capo-codecatalyst 0.1.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 (233) hide show
  1. capo_codecatalyst/__init__.py +51 -0
  2. capo_codecatalyst/_async.py +25 -0
  3. capo_codecatalyst/_auth/_identity.py +14 -0
  4. capo_codecatalyst/_auth/_providers.py +154 -0
  5. capo_codecatalyst/_auth/_signers.py +43 -0
  6. capo_codecatalyst/_auth/_sigv4.py +434 -0
  7. capo_codecatalyst/_auth/_zapros_handler.py +80 -0
  8. capo_codecatalyst/_iter.py +113 -0
  9. capo_codecatalyst/_operations/code_catalyst/create_access_token.py +153 -0
  10. capo_codecatalyst/_operations/code_catalyst/create_dev_environment.py +165 -0
  11. capo_codecatalyst/_operations/code_catalyst/create_project.py +158 -0
  12. capo_codecatalyst/_operations/code_catalyst/create_source_repository.py +159 -0
  13. capo_codecatalyst/_operations/code_catalyst/create_source_repository_branch.py +165 -0
  14. capo_codecatalyst/_operations/code_catalyst/delete_access_token.py +146 -0
  15. capo_codecatalyst/_operations/code_catalyst/delete_dev_environment.py +159 -0
  16. capo_codecatalyst/_operations/code_catalyst/delete_project.py +155 -0
  17. capo_codecatalyst/_operations/code_catalyst/delete_source_repository.py +155 -0
  18. capo_codecatalyst/_operations/code_catalyst/delete_space.py +152 -0
  19. capo_codecatalyst/_operations/code_catalyst/get_dev_environment.py +159 -0
  20. capo_codecatalyst/_operations/code_catalyst/get_project.py +153 -0
  21. capo_codecatalyst/_operations/code_catalyst/get_source_repository.py +156 -0
  22. capo_codecatalyst/_operations/code_catalyst/get_source_repository_clone_urls.py +157 -0
  23. capo_codecatalyst/_operations/code_catalyst/get_space.py +152 -0
  24. capo_codecatalyst/_operations/code_catalyst/get_subscription.py +155 -0
  25. capo_codecatalyst/_operations/code_catalyst/get_user_details.py +157 -0
  26. capo_codecatalyst/_operations/code_catalyst/get_workflow.py +159 -0
  27. capo_codecatalyst/_operations/code_catalyst/get_workflow_run.py +161 -0
  28. capo_codecatalyst/_operations/code_catalyst/list_access_tokens.py +153 -0
  29. capo_codecatalyst/_operations/code_catalyst/list_dev_environment_sessions.py +164 -0
  30. capo_codecatalyst/_operations/code_catalyst/list_dev_environments.py +156 -0
  31. capo_codecatalyst/_operations/code_catalyst/list_event_logs.py +160 -0
  32. capo_codecatalyst/_operations/code_catalyst/list_projects.py +158 -0
  33. capo_codecatalyst/_operations/code_catalyst/list_source_repositories.py +159 -0
  34. capo_codecatalyst/_operations/code_catalyst/list_source_repository_branches.py +164 -0
  35. capo_codecatalyst/_operations/code_catalyst/list_spaces.py +155 -0
  36. capo_codecatalyst/_operations/code_catalyst/list_workflow_runs.py +166 -0
  37. capo_codecatalyst/_operations/code_catalyst/list_workflows.py +168 -0
  38. capo_codecatalyst/_operations/code_catalyst/start_dev_environment.py +160 -0
  39. capo_codecatalyst/_operations/code_catalyst/start_dev_environment_session.py +163 -0
  40. capo_codecatalyst/_operations/code_catalyst/start_workflow_run.py +160 -0
  41. capo_codecatalyst/_operations/code_catalyst/stop_dev_environment.py +155 -0
  42. capo_codecatalyst/_operations/code_catalyst/stop_dev_environment_session.py +156 -0
  43. capo_codecatalyst/_operations/code_catalyst/update_dev_environment.py +164 -0
  44. capo_codecatalyst/_operations/code_catalyst/update_project.py +159 -0
  45. capo_codecatalyst/_operations/code_catalyst/update_space.py +156 -0
  46. capo_codecatalyst/_operations/code_catalyst/verify_session.py +146 -0
  47. capo_codecatalyst/_pagination.py +21 -0
  48. capo_codecatalyst/_protocol/__init__.py +1 -0
  49. capo_codecatalyst/_protocol/errors.py +93 -0
  50. capo_codecatalyst/_protocol/eventstream.py +238 -0
  51. capo_codecatalyst/_protocol/serialize.py +47 -0
  52. capo_codecatalyst/_protocol/xml.py +33 -0
  53. capo_codecatalyst/_resources/code_catalyst/access_token.py +359 -0
  54. capo_codecatalyst/_resources/code_catalyst/space.py +578 -0
  55. capo_codecatalyst/_rule_engine/__init__.py +0 -0
  56. capo_codecatalyst/_rule_engine/_aws_partition.py +160 -0
  57. capo_codecatalyst/_rule_engine/_endpoint_rule_set.py +98 -0
  58. capo_codecatalyst/_rule_engine/_endpoint_runtime.py +389 -0
  59. capo_codecatalyst/_services/_aws_config.py +156 -0
  60. capo_codecatalyst/_services/_pipeline.py +195 -0
  61. capo_codecatalyst/_services/async_code_catalyst.py +214 -0
  62. capo_codecatalyst/_services/code_catalyst.py +212 -0
  63. capo_codecatalyst/errors/__init__.py +33 -0
  64. capo_codecatalyst/errors/_base.py +94 -0
  65. capo_codecatalyst/errors/access_denied_exception.py +47 -0
  66. capo_codecatalyst/errors/conflict_exception.py +45 -0
  67. capo_codecatalyst/errors/resource_not_found_exception.py +47 -0
  68. capo_codecatalyst/errors/service_quota_exceeded_exception.py +49 -0
  69. capo_codecatalyst/errors/throttling_exception.py +45 -0
  70. capo_codecatalyst/errors/validation_exception.py +45 -0
  71. capo_codecatalyst/py.typed +0 -0
  72. capo_codecatalyst/types/_prelude/blob.py +12 -0
  73. capo_codecatalyst/types/_prelude/timestamp.py +17 -0
  74. capo_codecatalyst/types/access_token_id.py +5 -0
  75. capo_codecatalyst/types/access_token_name.py +5 -0
  76. capo_codecatalyst/types/access_token_secret.py +5 -0
  77. capo_codecatalyst/types/access_token_summaries.py +31 -0
  78. capo_codecatalyst/types/access_token_summary.py +54 -0
  79. capo_codecatalyst/types/client_token.py +5 -0
  80. capo_codecatalyst/types/comparison_operator.py +5 -0
  81. capo_codecatalyst/types/create_access_token_request.py +46 -0
  82. capo_codecatalyst/types/create_access_token_response.py +63 -0
  83. capo_codecatalyst/types/create_dev_environment_request.py +123 -0
  84. capo_codecatalyst/types/create_dev_environment_response.py +52 -0
  85. capo_codecatalyst/types/create_project_request.py +43 -0
  86. capo_codecatalyst/types/create_project_response.py +49 -0
  87. capo_codecatalyst/types/create_source_repository_branch_request.py +38 -0
  88. capo_codecatalyst/types/create_source_repository_branch_response.py +60 -0
  89. capo_codecatalyst/types/create_source_repository_request.py +38 -0
  90. capo_codecatalyst/types/create_source_repository_response.py +57 -0
  91. capo_codecatalyst/types/delete_access_token_request.py +24 -0
  92. capo_codecatalyst/types/delete_access_token_response.py +18 -0
  93. capo_codecatalyst/types/delete_dev_environment_request.py +29 -0
  94. capo_codecatalyst/types/delete_dev_environment_response.py +46 -0
  95. capo_codecatalyst/types/delete_project_request.py +26 -0
  96. capo_codecatalyst/types/delete_project_response.py +44 -0
  97. capo_codecatalyst/types/delete_source_repository_request.py +29 -0
  98. capo_codecatalyst/types/delete_source_repository_response.py +48 -0
  99. capo_codecatalyst/types/delete_space_request.py +24 -0
  100. capo_codecatalyst/types/delete_space_response.py +37 -0
  101. capo_codecatalyst/types/dev_environment_access_details.py +38 -0
  102. capo_codecatalyst/types/dev_environment_repository_summaries.py +39 -0
  103. capo_codecatalyst/types/dev_environment_repository_summary.py +42 -0
  104. capo_codecatalyst/types/dev_environment_session_configuration.py +56 -0
  105. capo_codecatalyst/types/dev_environment_session_summary.py +71 -0
  106. capo_codecatalyst/types/dev_environment_session_type.py +5 -0
  107. capo_codecatalyst/types/dev_environment_sessions_summary_list.py +37 -0
  108. capo_codecatalyst/types/dev_environment_status.py +5 -0
  109. capo_codecatalyst/types/dev_environment_summary.py +163 -0
  110. capo_codecatalyst/types/dev_environment_summary_list.py +33 -0
  111. capo_codecatalyst/types/email_address.py +29 -0
  112. capo_codecatalyst/types/event_log_entries.py +31 -0
  113. capo_codecatalyst/types/event_log_entry.py +174 -0
  114. capo_codecatalyst/types/event_payload.py +29 -0
  115. capo_codecatalyst/types/execute_command_session_configuration.py +53 -0
  116. capo_codecatalyst/types/execute_command_session_configuration_arguments.py +14 -0
  117. capo_codecatalyst/types/filter.py +50 -0
  118. capo_codecatalyst/types/filter_key.py +5 -0
  119. capo_codecatalyst/types/filters.py +29 -0
  120. capo_codecatalyst/types/get_dev_environment_request.py +29 -0
  121. capo_codecatalyst/types/get_dev_environment_response.py +169 -0
  122. capo_codecatalyst/types/get_project_request.py +26 -0
  123. capo_codecatalyst/types/get_project_response.py +49 -0
  124. capo_codecatalyst/types/get_source_repository_clone_urls_request.py +29 -0
  125. capo_codecatalyst/types/get_source_repository_clone_urls_response.py +28 -0
  126. capo_codecatalyst/types/get_source_repository_request.py +29 -0
  127. capo_codecatalyst/types/get_source_repository_response.py +88 -0
  128. capo_codecatalyst/types/get_space_request.py +24 -0
  129. capo_codecatalyst/types/get_space_response.py +51 -0
  130. capo_codecatalyst/types/get_subscription_request.py +24 -0
  131. capo_codecatalyst/types/get_subscription_response.py +59 -0
  132. capo_codecatalyst/types/get_user_details_request.py +21 -0
  133. capo_codecatalyst/types/get_user_details_response.py +60 -0
  134. capo_codecatalyst/types/get_workflow_request.py +29 -0
  135. capo_codecatalyst/types/get_workflow_response.py +136 -0
  136. capo_codecatalyst/types/get_workflow_run_request.py +29 -0
  137. capo_codecatalyst/types/get_workflow_run_response.py +127 -0
  138. capo_codecatalyst/types/ide.py +29 -0
  139. capo_codecatalyst/types/ide_configuration.py +29 -0
  140. capo_codecatalyst/types/ide_configuration_list.py +31 -0
  141. capo_codecatalyst/types/ides.py +29 -0
  142. capo_codecatalyst/types/inactivity_timeout_minutes.py +5 -0
  143. capo_codecatalyst/types/instance_type.py +5 -0
  144. capo_codecatalyst/types/list_access_tokens_request.py +29 -0
  145. capo_codecatalyst/types/list_access_tokens_response.py +45 -0
  146. capo_codecatalyst/types/list_dev_environment_sessions_request.py +41 -0
  147. capo_codecatalyst/types/list_dev_environment_sessions_response.py +49 -0
  148. capo_codecatalyst/types/list_dev_environments_request.py +57 -0
  149. capo_codecatalyst/types/list_dev_environments_response.py +49 -0
  150. capo_codecatalyst/types/list_event_logs_request.py +75 -0
  151. capo_codecatalyst/types/list_event_logs_response.py +45 -0
  152. capo_codecatalyst/types/list_projects_request.py +53 -0
  153. capo_codecatalyst/types/list_projects_response.py +42 -0
  154. capo_codecatalyst/types/list_source_repositories_item.py +81 -0
  155. capo_codecatalyst/types/list_source_repositories_items.py +35 -0
  156. capo_codecatalyst/types/list_source_repositories_request.py +38 -0
  157. capo_codecatalyst/types/list_source_repositories_response.py +48 -0
  158. capo_codecatalyst/types/list_source_repository_branches_item.py +60 -0
  159. capo_codecatalyst/types/list_source_repository_branches_items.py +39 -0
  160. capo_codecatalyst/types/list_source_repository_branches_request.py +41 -0
  161. capo_codecatalyst/types/list_source_repository_branches_response.py +51 -0
  162. capo_codecatalyst/types/list_spaces_request.py +23 -0
  163. capo_codecatalyst/types/list_spaces_response.py +42 -0
  164. capo_codecatalyst/types/list_workflow_runs_request.py +54 -0
  165. capo_codecatalyst/types/list_workflow_runs_response.py +44 -0
  166. capo_codecatalyst/types/list_workflows_request.py +51 -0
  167. capo_codecatalyst/types/list_workflows_response.py +42 -0
  168. capo_codecatalyst/types/name_string.py +5 -0
  169. capo_codecatalyst/types/operation_type.py +5 -0
  170. capo_codecatalyst/types/persistent_storage.py +26 -0
  171. capo_codecatalyst/types/persistent_storage_configuration.py +28 -0
  172. capo_codecatalyst/types/project_description.py +5 -0
  173. capo_codecatalyst/types/project_display_name.py +5 -0
  174. capo_codecatalyst/types/project_information.py +29 -0
  175. capo_codecatalyst/types/project_list_filter.py +54 -0
  176. capo_codecatalyst/types/project_list_filters.py +31 -0
  177. capo_codecatalyst/types/project_summaries.py +31 -0
  178. capo_codecatalyst/types/project_summary.py +38 -0
  179. capo_codecatalyst/types/region_string.py +5 -0
  180. capo_codecatalyst/types/repositories_input.py +31 -0
  181. capo_codecatalyst/types/repository_input.py +40 -0
  182. capo_codecatalyst/types/sensitive_string.py +5 -0
  183. capo_codecatalyst/types/source_repository_branch_ref_string.py +5 -0
  184. capo_codecatalyst/types/source_repository_branch_string.py +5 -0
  185. capo_codecatalyst/types/source_repository_description_string.py +5 -0
  186. capo_codecatalyst/types/source_repository_id_string.py +5 -0
  187. capo_codecatalyst/types/source_repository_name_string.py +5 -0
  188. capo_codecatalyst/types/space_description.py +5 -0
  189. capo_codecatalyst/types/space_summaries.py +29 -0
  190. capo_codecatalyst/types/space_summary.py +51 -0
  191. capo_codecatalyst/types/start_dev_environment_request.py +63 -0
  192. capo_codecatalyst/types/start_dev_environment_response.py +54 -0
  193. capo_codecatalyst/types/start_dev_environment_session_request.py +52 -0
  194. capo_codecatalyst/types/start_dev_environment_session_response.py +77 -0
  195. capo_codecatalyst/types/start_workflow_run_request.py +35 -0
  196. capo_codecatalyst/types/start_workflow_run_response.py +53 -0
  197. capo_codecatalyst/types/status_reason.py +5 -0
  198. capo_codecatalyst/types/stop_dev_environment_request.py +29 -0
  199. capo_codecatalyst/types/stop_dev_environment_response.py +54 -0
  200. capo_codecatalyst/types/stop_dev_environment_session_request.py +31 -0
  201. capo_codecatalyst/types/stop_dev_environment_session_response.py +59 -0
  202. capo_codecatalyst/types/string_list.py +14 -0
  203. capo_codecatalyst/types/timestamp.py +20 -0
  204. capo_codecatalyst/types/update_dev_environment_request.py +76 -0
  205. capo_codecatalyst/types/update_dev_environment_response.py +93 -0
  206. capo_codecatalyst/types/update_project_request.py +35 -0
  207. capo_codecatalyst/types/update_project_response.py +46 -0
  208. capo_codecatalyst/types/update_space_request.py +33 -0
  209. capo_codecatalyst/types/update_space_response.py +40 -0
  210. capo_codecatalyst/types/user_identity.py +50 -0
  211. capo_codecatalyst/types/user_type.py +5 -0
  212. capo_codecatalyst/types/uuid.py +5 -0
  213. capo_codecatalyst/types/verify_session_response.py +23 -0
  214. capo_codecatalyst/types/workflow_definition.py +26 -0
  215. capo_codecatalyst/types/workflow_definition_summary.py +26 -0
  216. capo_codecatalyst/types/workflow_run_mode.py +5 -0
  217. capo_codecatalyst/types/workflow_run_sort_criteria.py +18 -0
  218. capo_codecatalyst/types/workflow_run_sort_criteria_list.py +35 -0
  219. capo_codecatalyst/types/workflow_run_status.py +5 -0
  220. capo_codecatalyst/types/workflow_run_status_reason.py +18 -0
  221. capo_codecatalyst/types/workflow_run_status_reasons.py +35 -0
  222. capo_codecatalyst/types/workflow_run_summaries.py +31 -0
  223. capo_codecatalyst/types/workflow_run_summary.py +119 -0
  224. capo_codecatalyst/types/workflow_sort_criteria.py +18 -0
  225. capo_codecatalyst/types/workflow_sort_criteria_list.py +33 -0
  226. capo_codecatalyst/types/workflow_status.py +5 -0
  227. capo_codecatalyst/types/workflow_summaries.py +31 -0
  228. capo_codecatalyst/types/workflow_summary.py +123 -0
  229. capo_codecatalyst-0.1.0.dist-info/METADATA +82 -0
  230. capo_codecatalyst-0.1.0.dist-info/RECORD +233 -0
  231. capo_codecatalyst-0.1.0.dist-info/WHEEL +5 -0
  232. capo_codecatalyst-0.1.0.dist-info/licenses/LICENSE +21 -0
  233. capo_codecatalyst-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,578 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING, Optional
4
+
5
+ import capo_codecatalyst._auth._signers
6
+ import capo_codecatalyst._auth._sigv4
7
+ from capo_codecatalyst._services._pipeline import (
8
+ AsyncOperationRequest,
9
+ AsyncOperationResponse,
10
+ OperationRequest,
11
+ OperationResponse,
12
+ aexecute_pipeline,
13
+ execute_pipeline,
14
+ )
15
+
16
+ if TYPE_CHECKING:
17
+ import capo_codecatalyst.types.delete_space_request
18
+ import capo_codecatalyst.types.delete_space_response
19
+ import capo_codecatalyst.types.dev_environment_summary
20
+ import capo_codecatalyst.types.filters
21
+ import capo_codecatalyst.types.get_space_request
22
+ import capo_codecatalyst.types.get_space_response
23
+ import capo_codecatalyst.types.list_dev_environments_request
24
+ import capo_codecatalyst.types.list_dev_environments_response
25
+ import capo_codecatalyst.types.list_spaces_request
26
+ import capo_codecatalyst.types.list_spaces_response
27
+ import capo_codecatalyst.types.name_string
28
+ import capo_codecatalyst.types.space_description
29
+ import capo_codecatalyst.types.space_summary
30
+ import capo_codecatalyst.types.update_space_request
31
+ import capo_codecatalyst.types.update_space_response
32
+ from capo_codecatalyst._services.async_code_catalyst import (
33
+ AsyncCodeCatalystClient,
34
+ AsyncCodeCatalystClientConfig,
35
+ )
36
+ from capo_codecatalyst._services.code_catalyst import (
37
+ CodeCatalystClient,
38
+ CodeCatalystClientConfig,
39
+ )
40
+
41
+
42
+ class Space:
43
+ def __init__(self, service: CodeCatalystClient) -> None:
44
+ self._service = service
45
+
46
+ def read(
47
+ self,
48
+ name: "capo_codecatalyst.types.name_string.NameString",
49
+ *,
50
+ config_overrides: Optional[CodeCatalystClientConfig] = None,
51
+ ) -> "capo_codecatalyst.types.get_space_response.GetSpaceResponse":
52
+ """<p>Returns information about an space.</p>
53
+
54
+ Args:
55
+ name: <p>The name of the space.</p>
56
+
57
+ Raises:
58
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
59
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
60
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
61
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
62
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
63
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
64
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
65
+ """
66
+
67
+ def _handler(
68
+ req: "OperationRequest[capo_codecatalyst.types.get_space_request.GetSpaceRequest]",
69
+ ) -> OperationResponse[
70
+ "capo_codecatalyst.types.get_space_response.GetSpaceResponse"
71
+ ]:
72
+ import capo_codecatalyst._operations.code_catalyst.get_space
73
+
74
+ output, http_response = (
75
+ capo_codecatalyst._operations.code_catalyst.get_space.get_space(
76
+ req.options, req.input
77
+ )
78
+ )
79
+ return OperationResponse(output=output, response=http_response)
80
+
81
+ interceptors_, options_ = self._service.operation_options(config_overrides)
82
+ input_: capo_codecatalyst.types.get_space_request.GetSpaceRequest = {
83
+ "name": name
84
+ }
85
+
86
+ response = execute_pipeline(
87
+ OperationRequest(input=input_, options=options_),
88
+ handler=_handler,
89
+ interceptors=list(interceptors_),
90
+ )
91
+ response.response.close()
92
+ return response.output
93
+
94
+ def update(
95
+ self,
96
+ name: "capo_codecatalyst.types.name_string.NameString",
97
+ *,
98
+ config_overrides: Optional[CodeCatalystClientConfig] = None,
99
+ description: Optional[
100
+ "capo_codecatalyst.types.space_description.SpaceDescription"
101
+ ] = None,
102
+ ) -> "capo_codecatalyst.types.update_space_response.UpdateSpaceResponse":
103
+ """<p>Changes one or more values for a space.</p>
104
+
105
+ Args:
106
+ name: <p>The name of the space.</p>
107
+ description: <p>The description of the space.</p>
108
+
109
+ Raises:
110
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
111
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
112
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
113
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
114
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
115
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
116
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
117
+ """
118
+
119
+ def _handler(
120
+ req: "OperationRequest[capo_codecatalyst.types.update_space_request.UpdateSpaceRequest]",
121
+ ) -> OperationResponse[
122
+ "capo_codecatalyst.types.update_space_response.UpdateSpaceResponse"
123
+ ]:
124
+ import capo_codecatalyst._operations.code_catalyst.update_space
125
+
126
+ output, http_response = (
127
+ capo_codecatalyst._operations.code_catalyst.update_space.update_space(
128
+ req.options, req.input
129
+ )
130
+ )
131
+ return OperationResponse(output=output, response=http_response)
132
+
133
+ interceptors_, options_ = self._service.operation_options(config_overrides)
134
+ input_: capo_codecatalyst.types.update_space_request.UpdateSpaceRequest = {
135
+ "name": name
136
+ }
137
+ if description is not None:
138
+ input_["description"] = description
139
+
140
+ response = execute_pipeline(
141
+ OperationRequest(input=input_, options=options_),
142
+ handler=_handler,
143
+ interceptors=list(interceptors_),
144
+ )
145
+ response.response.close()
146
+ return response.output
147
+
148
+ def delete(
149
+ self,
150
+ name: "capo_codecatalyst.types.name_string.NameString",
151
+ *,
152
+ config_overrides: Optional[CodeCatalystClientConfig] = None,
153
+ ) -> "capo_codecatalyst.types.delete_space_response.DeleteSpaceResponse":
154
+ """<p>Deletes a space.</p> <important> <p>Deleting a space cannot be undone. Additionally, since space names must be unique across Amazon CodeCatalyst, you cannot reuse names of deleted spaces.</p> </important>
155
+
156
+ Args:
157
+ name: <p>The name of the space. To retrieve a list of space names, use <a>ListSpaces</a>.</p>
158
+
159
+ Raises:
160
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
161
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
162
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
163
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
164
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
165
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
166
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
167
+ """
168
+
169
+ def _handler(
170
+ req: "OperationRequest[capo_codecatalyst.types.delete_space_request.DeleteSpaceRequest]",
171
+ ) -> OperationResponse[
172
+ "capo_codecatalyst.types.delete_space_response.DeleteSpaceResponse"
173
+ ]:
174
+ import capo_codecatalyst._operations.code_catalyst.delete_space
175
+
176
+ output, http_response = (
177
+ capo_codecatalyst._operations.code_catalyst.delete_space.delete_space(
178
+ req.options, req.input
179
+ )
180
+ )
181
+ return OperationResponse(output=output, response=http_response)
182
+
183
+ interceptors_, options_ = self._service.operation_options(config_overrides)
184
+ input_: capo_codecatalyst.types.delete_space_request.DeleteSpaceRequest = {
185
+ "name": name
186
+ }
187
+
188
+ response = execute_pipeline(
189
+ OperationRequest(input=input_, options=options_),
190
+ handler=_handler,
191
+ interceptors=list(interceptors_),
192
+ )
193
+ response.response.close()
194
+ return response.output
195
+
196
+ def list(
197
+ self,
198
+ *,
199
+ config_overrides: Optional[CodeCatalystClientConfig] = None,
200
+ next_token: Optional[str] = None,
201
+ ) -> "capo_codecatalyst.types.list_spaces_response.ListSpacesResponse":
202
+ """<p>Retrieves a list of spaces.</p>
203
+
204
+ Args:
205
+ next_token: <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
206
+
207
+ Raises:
208
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
209
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
210
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
211
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
212
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
213
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
214
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
215
+ """
216
+
217
+ def _handler(
218
+ req: "OperationRequest[capo_codecatalyst.types.list_spaces_request.ListSpacesRequest]",
219
+ ) -> OperationResponse[
220
+ "capo_codecatalyst.types.list_spaces_response.ListSpacesResponse"
221
+ ]:
222
+ import capo_codecatalyst._operations.code_catalyst.list_spaces
223
+
224
+ output, http_response = (
225
+ capo_codecatalyst._operations.code_catalyst.list_spaces.list_spaces(
226
+ req.options, req.input
227
+ )
228
+ )
229
+ return OperationResponse(output=output, response=http_response)
230
+
231
+ interceptors_, options_ = self._service.operation_options(config_overrides)
232
+ input_: capo_codecatalyst.types.list_spaces_request.ListSpacesRequest = {}
233
+ if next_token is not None:
234
+ input_["next_token"] = next_token
235
+
236
+ response = execute_pipeline(
237
+ OperationRequest(input=input_, options=options_),
238
+ handler=_handler,
239
+ interceptors=list(interceptors_),
240
+ )
241
+ response.response.close()
242
+ return response.output
243
+
244
+ def list_dev_environments(
245
+ self,
246
+ space_name: "capo_codecatalyst.types.name_string.NameString",
247
+ *,
248
+ config_overrides: Optional[CodeCatalystClientConfig] = None,
249
+ project_name: Optional["capo_codecatalyst.types.name_string.NameString"] = None,
250
+ filters: Optional["capo_codecatalyst.types.filters.Filters"] = None,
251
+ next_token: Optional[str] = None,
252
+ max_results: Optional[int] = None,
253
+ ) -> "capo_codecatalyst.types.list_dev_environments_response.ListDevEnvironmentsResponse":
254
+ """<p>Retrieves a list of Dev Environments in a project.</p>
255
+
256
+ Args:
257
+ space_name: <p>The name of the space.</p>
258
+ project_name: <p>The name of the project in the space.</p>
259
+ filters: <p>Information about filters to apply to narrow the results returned in the list.</p>
260
+ next_token: <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
261
+ max_results: <p>The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.</p>
262
+
263
+ Raises:
264
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
265
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
266
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
267
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
268
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
269
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
270
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
271
+ """
272
+
273
+ def _handler(
274
+ req: "OperationRequest[capo_codecatalyst.types.list_dev_environments_request.ListDevEnvironmentsRequest]",
275
+ ) -> OperationResponse[
276
+ "capo_codecatalyst.types.list_dev_environments_response.ListDevEnvironmentsResponse"
277
+ ]:
278
+ import capo_codecatalyst._operations.code_catalyst.list_dev_environments
279
+
280
+ output, http_response = (
281
+ capo_codecatalyst._operations.code_catalyst.list_dev_environments.list_dev_environments(
282
+ req.options, req.input
283
+ )
284
+ )
285
+ return OperationResponse(output=output, response=http_response)
286
+
287
+ interceptors_, options_ = self._service.operation_options(config_overrides)
288
+ input_: capo_codecatalyst.types.list_dev_environments_request.ListDevEnvironmentsRequest = {
289
+ "space_name": space_name
290
+ }
291
+ if project_name is not None:
292
+ input_["project_name"] = project_name
293
+ if filters is not None:
294
+ input_["filters"] = filters
295
+ if next_token is not None:
296
+ input_["next_token"] = next_token
297
+ if max_results is not None:
298
+ input_["max_results"] = max_results
299
+
300
+ response = execute_pipeline(
301
+ OperationRequest(input=input_, options=options_),
302
+ handler=_handler,
303
+ interceptors=list(interceptors_),
304
+ )
305
+ response.response.close()
306
+ return response.output
307
+
308
+
309
+ class AsyncSpace:
310
+ def __init__(self, service: AsyncCodeCatalystClient) -> None:
311
+ self._service = service
312
+
313
+ async def read(
314
+ self,
315
+ name: "capo_codecatalyst.types.name_string.NameString",
316
+ *,
317
+ config_overrides: Optional[AsyncCodeCatalystClientConfig] = None,
318
+ ) -> "capo_codecatalyst.types.get_space_response.GetSpaceResponse":
319
+ """<p>Returns information about an space.</p>
320
+
321
+ Args:
322
+ name: <p>The name of the space.</p>
323
+
324
+ Raises:
325
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
326
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
327
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
328
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
329
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
330
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
331
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
332
+ """
333
+
334
+ async def _handler(
335
+ req: "AsyncOperationRequest[capo_codecatalyst.types.get_space_request.GetSpaceRequest]",
336
+ ) -> AsyncOperationResponse[
337
+ "capo_codecatalyst.types.get_space_response.GetSpaceResponse"
338
+ ]:
339
+ import capo_codecatalyst._operations.code_catalyst.get_space
340
+
341
+ (
342
+ output,
343
+ http_response,
344
+ ) = await capo_codecatalyst._operations.code_catalyst.get_space.async_get_space(
345
+ req.options, req.input
346
+ )
347
+ return AsyncOperationResponse(output=output, response=http_response)
348
+
349
+ interceptors_, options_ = self._service.operation_options(config_overrides)
350
+ input_: capo_codecatalyst.types.get_space_request.GetSpaceRequest = {
351
+ "name": name
352
+ }
353
+
354
+ response = await aexecute_pipeline(
355
+ AsyncOperationRequest(input=input_, options=options_),
356
+ handler=_handler,
357
+ interceptors=list(interceptors_),
358
+ )
359
+ await response.response.aclose()
360
+ return response.output
361
+
362
+ async def update(
363
+ self,
364
+ name: "capo_codecatalyst.types.name_string.NameString",
365
+ *,
366
+ config_overrides: Optional[AsyncCodeCatalystClientConfig] = None,
367
+ description: Optional[
368
+ "capo_codecatalyst.types.space_description.SpaceDescription"
369
+ ] = None,
370
+ ) -> "capo_codecatalyst.types.update_space_response.UpdateSpaceResponse":
371
+ """<p>Changes one or more values for a space.</p>
372
+
373
+ Args:
374
+ name: <p>The name of the space.</p>
375
+ description: <p>The description of the space.</p>
376
+
377
+ Raises:
378
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
379
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
380
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
381
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
382
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
383
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
384
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
385
+ """
386
+
387
+ async def _handler(
388
+ req: "AsyncOperationRequest[capo_codecatalyst.types.update_space_request.UpdateSpaceRequest]",
389
+ ) -> AsyncOperationResponse[
390
+ "capo_codecatalyst.types.update_space_response.UpdateSpaceResponse"
391
+ ]:
392
+ import capo_codecatalyst._operations.code_catalyst.update_space
393
+
394
+ (
395
+ output,
396
+ http_response,
397
+ ) = await capo_codecatalyst._operations.code_catalyst.update_space.async_update_space(
398
+ req.options, req.input
399
+ )
400
+ return AsyncOperationResponse(output=output, response=http_response)
401
+
402
+ interceptors_, options_ = self._service.operation_options(config_overrides)
403
+ input_: capo_codecatalyst.types.update_space_request.UpdateSpaceRequest = {
404
+ "name": name
405
+ }
406
+ if description is not None:
407
+ input_["description"] = description
408
+
409
+ response = await aexecute_pipeline(
410
+ AsyncOperationRequest(input=input_, options=options_),
411
+ handler=_handler,
412
+ interceptors=list(interceptors_),
413
+ )
414
+ await response.response.aclose()
415
+ return response.output
416
+
417
+ async def delete(
418
+ self,
419
+ name: "capo_codecatalyst.types.name_string.NameString",
420
+ *,
421
+ config_overrides: Optional[AsyncCodeCatalystClientConfig] = None,
422
+ ) -> "capo_codecatalyst.types.delete_space_response.DeleteSpaceResponse":
423
+ """<p>Deletes a space.</p> <important> <p>Deleting a space cannot be undone. Additionally, since space names must be unique across Amazon CodeCatalyst, you cannot reuse names of deleted spaces.</p> </important>
424
+
425
+ Args:
426
+ name: <p>The name of the space. To retrieve a list of space names, use <a>ListSpaces</a>.</p>
427
+
428
+ Raises:
429
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
430
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
431
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
432
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
433
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
434
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
435
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
436
+ """
437
+
438
+ async def _handler(
439
+ req: "AsyncOperationRequest[capo_codecatalyst.types.delete_space_request.DeleteSpaceRequest]",
440
+ ) -> AsyncOperationResponse[
441
+ "capo_codecatalyst.types.delete_space_response.DeleteSpaceResponse"
442
+ ]:
443
+ import capo_codecatalyst._operations.code_catalyst.delete_space
444
+
445
+ (
446
+ output,
447
+ http_response,
448
+ ) = await capo_codecatalyst._operations.code_catalyst.delete_space.async_delete_space(
449
+ req.options, req.input
450
+ )
451
+ return AsyncOperationResponse(output=output, response=http_response)
452
+
453
+ interceptors_, options_ = self._service.operation_options(config_overrides)
454
+ input_: capo_codecatalyst.types.delete_space_request.DeleteSpaceRequest = {
455
+ "name": name
456
+ }
457
+
458
+ response = await aexecute_pipeline(
459
+ AsyncOperationRequest(input=input_, options=options_),
460
+ handler=_handler,
461
+ interceptors=list(interceptors_),
462
+ )
463
+ await response.response.aclose()
464
+ return response.output
465
+
466
+ async def list(
467
+ self,
468
+ *,
469
+ config_overrides: Optional[AsyncCodeCatalystClientConfig] = None,
470
+ next_token: Optional[str] = None,
471
+ ) -> "capo_codecatalyst.types.list_spaces_response.ListSpacesResponse":
472
+ """<p>Retrieves a list of spaces.</p>
473
+
474
+ Args:
475
+ next_token: <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
476
+
477
+ Raises:
478
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
479
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
480
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
481
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
482
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
483
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
484
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
485
+ """
486
+
487
+ async def _handler(
488
+ req: "AsyncOperationRequest[capo_codecatalyst.types.list_spaces_request.ListSpacesRequest]",
489
+ ) -> AsyncOperationResponse[
490
+ "capo_codecatalyst.types.list_spaces_response.ListSpacesResponse"
491
+ ]:
492
+ import capo_codecatalyst._operations.code_catalyst.list_spaces
493
+
494
+ (
495
+ output,
496
+ http_response,
497
+ ) = await capo_codecatalyst._operations.code_catalyst.list_spaces.async_list_spaces(
498
+ req.options, req.input
499
+ )
500
+ return AsyncOperationResponse(output=output, response=http_response)
501
+
502
+ interceptors_, options_ = self._service.operation_options(config_overrides)
503
+ input_: capo_codecatalyst.types.list_spaces_request.ListSpacesRequest = {}
504
+ if next_token is not None:
505
+ input_["next_token"] = next_token
506
+
507
+ response = await aexecute_pipeline(
508
+ AsyncOperationRequest(input=input_, options=options_),
509
+ handler=_handler,
510
+ interceptors=list(interceptors_),
511
+ )
512
+ await response.response.aclose()
513
+ return response.output
514
+
515
+ async def list_dev_environments(
516
+ self,
517
+ space_name: "capo_codecatalyst.types.name_string.NameString",
518
+ *,
519
+ config_overrides: Optional[AsyncCodeCatalystClientConfig] = None,
520
+ project_name: Optional["capo_codecatalyst.types.name_string.NameString"] = None,
521
+ filters: Optional["capo_codecatalyst.types.filters.Filters"] = None,
522
+ next_token: Optional[str] = None,
523
+ max_results: Optional[int] = None,
524
+ ) -> "capo_codecatalyst.types.list_dev_environments_response.ListDevEnvironmentsResponse":
525
+ """<p>Retrieves a list of Dev Environments in a project.</p>
526
+
527
+ Args:
528
+ space_name: <p>The name of the space.</p>
529
+ project_name: <p>The name of the project in the space.</p>
530
+ filters: <p>Information about filters to apply to narrow the results returned in the list.</p>
531
+ next_token: <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
532
+ max_results: <p>The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.</p>
533
+
534
+ Raises:
535
+ capo_codecatalyst.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
536
+ capo_codecatalyst.errors.conflict_exception.ConflictException: <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
537
+ capo_codecatalyst.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
538
+ capo_codecatalyst.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
539
+ capo_codecatalyst.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
540
+ capo_codecatalyst.errors.validation_exception.ValidationException: <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
541
+ capo_codecatalyst.errors.UnknownServiceError: The service returned an error code this client does not model.
542
+ """
543
+
544
+ async def _handler(
545
+ req: "AsyncOperationRequest[capo_codecatalyst.types.list_dev_environments_request.ListDevEnvironmentsRequest]",
546
+ ) -> AsyncOperationResponse[
547
+ "capo_codecatalyst.types.list_dev_environments_response.ListDevEnvironmentsResponse"
548
+ ]:
549
+ import capo_codecatalyst._operations.code_catalyst.list_dev_environments
550
+
551
+ (
552
+ output,
553
+ http_response,
554
+ ) = await capo_codecatalyst._operations.code_catalyst.list_dev_environments.async_list_dev_environments(
555
+ req.options, req.input
556
+ )
557
+ return AsyncOperationResponse(output=output, response=http_response)
558
+
559
+ interceptors_, options_ = self._service.operation_options(config_overrides)
560
+ input_: capo_codecatalyst.types.list_dev_environments_request.ListDevEnvironmentsRequest = {
561
+ "space_name": space_name
562
+ }
563
+ if project_name is not None:
564
+ input_["project_name"] = project_name
565
+ if filters is not None:
566
+ input_["filters"] = filters
567
+ if next_token is not None:
568
+ input_["next_token"] = next_token
569
+ if max_results is not None:
570
+ input_["max_results"] = max_results
571
+
572
+ response = await aexecute_pipeline(
573
+ AsyncOperationRequest(input=input_, options=options_),
574
+ handler=_handler,
575
+ interceptors=list(interceptors_),
576
+ )
577
+ await response.response.aclose()
578
+ return response.output
File without changes