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,60 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#GetUserDetailsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codecatalyst.types.email_address
9
+
10
+
11
+ class GetUserDetailsResponse(TypedDict, closed=True):
12
+ user_id: NotRequired["str"]
13
+ """<p>The system-generated unique ID of the user.</p>"""
14
+ user_name: NotRequired["str"]
15
+ """<p>The name of the user as displayed in Amazon CodeCatalyst.</p>"""
16
+ display_name: NotRequired["str"]
17
+ """<p>The friendly name displayed for the user in Amazon CodeCatalyst.</p>"""
18
+ primary_email: NotRequired["capo_codecatalyst.types.email_address.EmailAddress"]
19
+ """<p>The email address provided by the user when they signed up.</p>"""
20
+ version: NotRequired["str"]
21
+ """<p/>"""
22
+
23
+
24
+ # --- restJson1 ser/de ---
25
+ def serialize_json(value: GetUserDetailsResponse) -> dict:
26
+ out: dict = {}
27
+ if "user_id" in value:
28
+ out["userId"] = value["user_id"]
29
+ if "user_name" in value:
30
+ out["userName"] = value["user_name"]
31
+ if "display_name" in value:
32
+ out["displayName"] = value["display_name"]
33
+ if "primary_email" in value:
34
+ import capo_codecatalyst.types.email_address
35
+
36
+ out["primaryEmail"] = capo_codecatalyst.types.email_address.serialize_json(
37
+ value["primary_email"]
38
+ )
39
+ if "version" in value:
40
+ out["version"] = value["version"]
41
+ return out
42
+
43
+
44
+ def deserialize_json(data: dict) -> GetUserDetailsResponse:
45
+ out: GetUserDetailsResponse = {} # type: ignore[typeddict-item]
46
+ if data.get("userId") is not None:
47
+ out["user_id"] = data["userId"]
48
+ if data.get("userName") is not None:
49
+ out["user_name"] = data["userName"]
50
+ if data.get("displayName") is not None:
51
+ out["display_name"] = data["displayName"]
52
+ if data.get("primaryEmail") is not None:
53
+ import capo_codecatalyst.types.email_address
54
+
55
+ out["primary_email"] = capo_codecatalyst.types.email_address.deserialize_json(
56
+ data["primaryEmail"]
57
+ )
58
+ if data.get("version") is not None:
59
+ out["version"] = data["version"]
60
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#GetWorkflowRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codecatalyst.types.name_string
9
+ import capo_codecatalyst.types.uuid
10
+
11
+
12
+ class GetWorkflowRequest(TypedDict, closed=True):
13
+ space_name: "capo_codecatalyst.types.name_string.NameString"
14
+ """<p>The name of the space.</p>"""
15
+ id: "capo_codecatalyst.types.uuid.Uuid"
16
+ """<p>The ID of the workflow. To rerieve a list of workflow IDs, use <a>ListWorkflows</a>.</p>"""
17
+ project_name: "capo_codecatalyst.types.name_string.NameString"
18
+ """<p>The name of the project in the space.</p>"""
19
+
20
+
21
+ # --- restJson1 ser/de ---
22
+ def serialize_json(value: GetWorkflowRequest) -> dict:
23
+ out: dict = {}
24
+ return out
25
+
26
+
27
+ def deserialize_json(data: dict) -> GetWorkflowRequest:
28
+ out: GetWorkflowRequest = {} # type: ignore[typeddict-item]
29
+ return out
@@ -0,0 +1,136 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#GetWorkflowResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codecatalyst.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codecatalyst.types.name_string
11
+ import capo_codecatalyst.types.source_repository_branch_string
12
+ import capo_codecatalyst.types.source_repository_name_string
13
+ import capo_codecatalyst.types.timestamp
14
+ import capo_codecatalyst.types.uuid
15
+ import capo_codecatalyst.types.workflow_definition
16
+ import capo_codecatalyst.types.workflow_run_mode
17
+ import capo_codecatalyst.types.workflow_status
18
+
19
+
20
+ class GetWorkflowResponse(TypedDict, closed=True):
21
+ space_name: "capo_codecatalyst.types.name_string.NameString"
22
+ """<p>The name of the space.</p>"""
23
+ project_name: "capo_codecatalyst.types.name_string.NameString"
24
+ """<p>The name of the project in the space.</p>"""
25
+ id: "capo_codecatalyst.types.uuid.Uuid"
26
+ """<p>The ID of the workflow.</p>"""
27
+ name: "str"
28
+ """<p>The name of the workflow.</p>"""
29
+ source_repository_name: NotRequired[
30
+ "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
31
+ ]
32
+ """<p>The name of the source repository where the workflow YAML is stored.</p>"""
33
+ source_branch_name: NotRequired[
34
+ "capo_codecatalyst.types.source_repository_branch_string.SourceRepositoryBranchString"
35
+ ]
36
+ """<p>The name of the branch that contains the workflow YAML.</p>"""
37
+ definition: "capo_codecatalyst.types.workflow_definition.WorkflowDefinition"
38
+ """<p>Information about the workflow definition file for the workflow.</p>"""
39
+ created_time: "capo_codecatalyst.types.timestamp.Timestamp"
40
+ r"""<p>The date and time the workflow was created, in coordinated universal time (UTC) timestamp format as specified in <a href=\"https://www.rfc-editor.org/rfc/rfc3339#section-5.6\">RFC 3339</a> </p>"""
41
+ last_updated_time: "capo_codecatalyst.types.timestamp.Timestamp"
42
+ r"""<p>The date and time the workflow was last updated, in coordinated universal time (UTC) timestamp format as specified in <a href=\"https://www.rfc-editor.org/rfc/rfc3339#section-5.6\">RFC 3339</a> </p>"""
43
+ run_mode: "capo_codecatalyst.types.workflow_run_mode.WorkflowRunMode"
44
+ r"""<p>The behavior to use when multiple workflows occur at the same time. For more information, see <a href=\"https://docs.aws.amazon.com/codecatalyst/latest/userguide/workflows-configure-runs.html\">https://docs.aws.amazon.com/codecatalyst/latest/userguide/workflows-configure-runs.html</a> in the Amazon CodeCatalyst User Guide.</p>"""
45
+ status: "capo_codecatalyst.types.workflow_status.WorkflowStatus"
46
+ """<p>The status of the workflow.</p>"""
47
+
48
+
49
+ # --- restJson1 ser/de ---
50
+ def serialize_json(value: GetWorkflowResponse) -> dict:
51
+ out: dict = {}
52
+ out["spaceName"] = value["space_name"]
53
+ out["projectName"] = value["project_name"]
54
+ out["id"] = value["id"]
55
+ out["name"] = value["name"]
56
+ if "source_repository_name" in value:
57
+ out["sourceRepositoryName"] = value["source_repository_name"]
58
+ if "source_branch_name" in value:
59
+ out["sourceBranchName"] = value["source_branch_name"]
60
+ import capo_codecatalyst.types.workflow_definition
61
+
62
+ out["definition"] = capo_codecatalyst.types.workflow_definition.serialize_json(
63
+ value["definition"]
64
+ )
65
+ import capo_codecatalyst._protocol.serialize
66
+
67
+ out["createdTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
68
+ value["created_time"]
69
+ )
70
+ import capo_codecatalyst._protocol.serialize
71
+
72
+ out["lastUpdatedTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
73
+ value["last_updated_time"]
74
+ )
75
+ out["runMode"] = value["run_mode"]
76
+ out["status"] = value["status"]
77
+ return out
78
+
79
+
80
+ def deserialize_json(data: dict) -> GetWorkflowResponse:
81
+ out: GetWorkflowResponse = {} # type: ignore[typeddict-item]
82
+ if data.get("spaceName") is not None:
83
+ out["space_name"] = data["spaceName"]
84
+ else:
85
+ raise DeserializationError("GetWorkflowResponse.space_name required")
86
+ if data.get("projectName") is not None:
87
+ out["project_name"] = data["projectName"]
88
+ else:
89
+ raise DeserializationError("GetWorkflowResponse.project_name required")
90
+ if data.get("id") is not None:
91
+ out["id"] = data["id"]
92
+ else:
93
+ raise DeserializationError("GetWorkflowResponse.id required")
94
+ if data.get("name") is not None:
95
+ out["name"] = data["name"]
96
+ else:
97
+ raise DeserializationError("GetWorkflowResponse.name required")
98
+ if data.get("sourceRepositoryName") is not None:
99
+ out["source_repository_name"] = data["sourceRepositoryName"]
100
+ if data.get("sourceBranchName") is not None:
101
+ out["source_branch_name"] = data["sourceBranchName"]
102
+ if data.get("definition") is not None:
103
+ import capo_codecatalyst.types.workflow_definition
104
+
105
+ out["definition"] = (
106
+ capo_codecatalyst.types.workflow_definition.deserialize_json(
107
+ data["definition"]
108
+ )
109
+ )
110
+ else:
111
+ raise DeserializationError("GetWorkflowResponse.definition required")
112
+ if data.get("createdTime") is not None:
113
+ import datetime
114
+
115
+ out["created_time"] = datetime.datetime.fromisoformat(
116
+ data["createdTime"].replace("Z", "+00:00")
117
+ )
118
+ else:
119
+ raise DeserializationError("GetWorkflowResponse.created_time required")
120
+ if data.get("lastUpdatedTime") is not None:
121
+ import datetime
122
+
123
+ out["last_updated_time"] = datetime.datetime.fromisoformat(
124
+ data["lastUpdatedTime"].replace("Z", "+00:00")
125
+ )
126
+ else:
127
+ raise DeserializationError("GetWorkflowResponse.last_updated_time required")
128
+ if data.get("runMode") is not None:
129
+ out["run_mode"] = data["runMode"]
130
+ else:
131
+ raise DeserializationError("GetWorkflowResponse.run_mode required")
132
+ if data.get("status") is not None:
133
+ out["status"] = data["status"]
134
+ else:
135
+ raise DeserializationError("GetWorkflowResponse.status required")
136
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#GetWorkflowRunRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codecatalyst.types.name_string
9
+ import capo_codecatalyst.types.uuid
10
+
11
+
12
+ class GetWorkflowRunRequest(TypedDict, closed=True):
13
+ space_name: "capo_codecatalyst.types.name_string.NameString"
14
+ """<p>The name of the space.</p>"""
15
+ id: "capo_codecatalyst.types.uuid.Uuid"
16
+ """<p>The ID of the workflow run. To retrieve a list of workflow run IDs, use <a>ListWorkflowRuns</a>.</p>"""
17
+ project_name: "capo_codecatalyst.types.name_string.NameString"
18
+ """<p>The name of the project in the space.</p>"""
19
+
20
+
21
+ # --- restJson1 ser/de ---
22
+ def serialize_json(value: GetWorkflowRunRequest) -> dict:
23
+ out: dict = {}
24
+ return out
25
+
26
+
27
+ def deserialize_json(data: dict) -> GetWorkflowRunRequest:
28
+ out: GetWorkflowRunRequest = {} # type: ignore[typeddict-item]
29
+ return out
@@ -0,0 +1,127 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#GetWorkflowRunResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codecatalyst.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codecatalyst.types.name_string
11
+ import capo_codecatalyst.types.timestamp
12
+ import capo_codecatalyst.types.uuid
13
+ import capo_codecatalyst.types.workflow_run_status
14
+ import capo_codecatalyst.types.workflow_run_status_reasons
15
+
16
+
17
+ class GetWorkflowRunResponse(TypedDict, closed=True):
18
+ space_name: "capo_codecatalyst.types.name_string.NameString"
19
+ """<p>The name of the space.</p>"""
20
+ project_name: "capo_codecatalyst.types.name_string.NameString"
21
+ """<p>The name of the project in the space.</p>"""
22
+ id: "capo_codecatalyst.types.uuid.Uuid"
23
+ """<p>The ID of the workflow run.</p>"""
24
+ workflow_id: "capo_codecatalyst.types.uuid.Uuid"
25
+ """<p>The ID of the workflow.</p>"""
26
+ status: "capo_codecatalyst.types.workflow_run_status.WorkflowRunStatus"
27
+ """<p>The status of the workflow run.</p>"""
28
+ status_reasons: NotRequired[
29
+ "capo_codecatalyst.types.workflow_run_status_reasons.WorkflowRunStatusReasons"
30
+ ]
31
+ """<p>Information about the reasons for the status of the workflow run.</p>"""
32
+ start_time: "capo_codecatalyst.types.timestamp.Timestamp"
33
+ r"""<p>The date and time the workflow run began, in coordinated universal time (UTC) timestamp format as specified in <a href=\"https://www.rfc-editor.org/rfc/rfc3339#section-5.6\">RFC 3339</a> </p>"""
34
+ end_time: NotRequired["capo_codecatalyst.types.timestamp.Timestamp"]
35
+ r"""<p>The date and time the workflow run ended, in coordinated universal time (UTC) timestamp format as specified in <a href=\"https://www.rfc-editor.org/rfc/rfc3339#section-5.6\">RFC 3339</a>.</p>"""
36
+ last_updated_time: "capo_codecatalyst.types.timestamp.Timestamp"
37
+ r"""<p>The date and time the workflow run status was last updated, in coordinated universal time (UTC) timestamp format as specified in <a href=\"https://www.rfc-editor.org/rfc/rfc3339#section-5.6\">RFC 3339</a> </p>"""
38
+
39
+
40
+ # --- restJson1 ser/de ---
41
+ def serialize_json(value: GetWorkflowRunResponse) -> dict:
42
+ out: dict = {}
43
+ out["spaceName"] = value["space_name"]
44
+ out["projectName"] = value["project_name"]
45
+ out["id"] = value["id"]
46
+ out["workflowId"] = value["workflow_id"]
47
+ out["status"] = value["status"]
48
+ if "status_reasons" in value:
49
+ import capo_codecatalyst.types.workflow_run_status_reasons
50
+
51
+ out["statusReasons"] = (
52
+ capo_codecatalyst.types.workflow_run_status_reasons.serialize_json(
53
+ value["status_reasons"]
54
+ )
55
+ )
56
+ import capo_codecatalyst._protocol.serialize
57
+
58
+ out["startTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
59
+ value["start_time"]
60
+ )
61
+ if "end_time" in value:
62
+ import capo_codecatalyst._protocol.serialize
63
+
64
+ out["endTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
65
+ value["end_time"]
66
+ )
67
+ import capo_codecatalyst._protocol.serialize
68
+
69
+ out["lastUpdatedTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
70
+ value["last_updated_time"]
71
+ )
72
+ return out
73
+
74
+
75
+ def deserialize_json(data: dict) -> GetWorkflowRunResponse:
76
+ out: GetWorkflowRunResponse = {} # type: ignore[typeddict-item]
77
+ if data.get("spaceName") is not None:
78
+ out["space_name"] = data["spaceName"]
79
+ else:
80
+ raise DeserializationError("GetWorkflowRunResponse.space_name required")
81
+ if data.get("projectName") is not None:
82
+ out["project_name"] = data["projectName"]
83
+ else:
84
+ raise DeserializationError("GetWorkflowRunResponse.project_name required")
85
+ if data.get("id") is not None:
86
+ out["id"] = data["id"]
87
+ else:
88
+ raise DeserializationError("GetWorkflowRunResponse.id required")
89
+ if data.get("workflowId") is not None:
90
+ out["workflow_id"] = data["workflowId"]
91
+ else:
92
+ raise DeserializationError("GetWorkflowRunResponse.workflow_id required")
93
+ if data.get("status") is not None:
94
+ out["status"] = data["status"]
95
+ else:
96
+ raise DeserializationError("GetWorkflowRunResponse.status required")
97
+ if data.get("statusReasons") is not None:
98
+ import capo_codecatalyst.types.workflow_run_status_reasons
99
+
100
+ out["status_reasons"] = (
101
+ capo_codecatalyst.types.workflow_run_status_reasons.deserialize_json(
102
+ data["statusReasons"]
103
+ )
104
+ )
105
+ if data.get("startTime") is not None:
106
+ import datetime
107
+
108
+ out["start_time"] = datetime.datetime.fromisoformat(
109
+ data["startTime"].replace("Z", "+00:00")
110
+ )
111
+ else:
112
+ raise DeserializationError("GetWorkflowRunResponse.start_time required")
113
+ if data.get("endTime") is not None:
114
+ import datetime
115
+
116
+ out["end_time"] = datetime.datetime.fromisoformat(
117
+ data["endTime"].replace("Z", "+00:00")
118
+ )
119
+ if data.get("lastUpdatedTime") is not None:
120
+ import datetime
121
+
122
+ out["last_updated_time"] = datetime.datetime.fromisoformat(
123
+ data["lastUpdatedTime"].replace("Z", "+00:00")
124
+ )
125
+ else:
126
+ raise DeserializationError("GetWorkflowRunResponse.last_updated_time required")
127
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#Ide``."""
2
+
3
+ from typing_extensions import NotRequired, TypedDict
4
+
5
+
6
+ class Ide(TypedDict, closed=True):
7
+ runtime: NotRequired["str"]
8
+ """<p>A link to the IDE runtime image.</p>"""
9
+ name: NotRequired["str"]
10
+ """<p>The name of the IDE.</p>"""
11
+
12
+
13
+ # --- restJson1 ser/de ---
14
+ def serialize_json(value: Ide) -> dict:
15
+ out: dict = {}
16
+ if "runtime" in value:
17
+ out["runtime"] = value["runtime"]
18
+ if "name" in value:
19
+ out["name"] = value["name"]
20
+ return out
21
+
22
+
23
+ def deserialize_json(data: dict) -> Ide:
24
+ out: Ide = {} # type: ignore[typeddict-item]
25
+ if data.get("runtime") is not None:
26
+ out["runtime"] = data["runtime"]
27
+ if data.get("name") is not None:
28
+ out["name"] = data["name"]
29
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#IdeConfiguration``."""
2
+
3
+ from typing_extensions import NotRequired, TypedDict
4
+
5
+
6
+ class IdeConfiguration(TypedDict, closed=True):
7
+ runtime: NotRequired["str"]
8
+ """<p>A link to the IDE runtime image. </p> <note> <p>This parameter is not required for <code>VSCode</code>.</p> </note>"""
9
+ name: NotRequired["str"]
10
+ """<p>The name of the IDE. Valid values include <code>Cloud9</code>, <code>IntelliJ</code>, <code>PyCharm</code>, <code>GoLand</code>, and <code>VSCode</code>.</p>"""
11
+
12
+
13
+ # --- restJson1 ser/de ---
14
+ def serialize_json(value: IdeConfiguration) -> dict:
15
+ out: dict = {}
16
+ if "runtime" in value:
17
+ out["runtime"] = value["runtime"]
18
+ if "name" in value:
19
+ out["name"] = value["name"]
20
+ return out
21
+
22
+
23
+ def deserialize_json(data: dict) -> IdeConfiguration:
24
+ out: IdeConfiguration = {} # type: ignore[typeddict-item]
25
+ if data.get("runtime") is not None:
26
+ out["runtime"] = data["runtime"]
27
+ if data.get("name") is not None:
28
+ out["name"] = data["name"]
29
+ return out
@@ -0,0 +1,31 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#IdeConfigurationList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codecatalyst.types.ide_configuration
7
+
8
+ IdeConfigurationList: TypeAlias = list[
9
+ "capo_codecatalyst.types.ide_configuration.IdeConfiguration"
10
+ ]
11
+
12
+
13
+ # --- restJson1 ser/de ---
14
+ def serialize_json(value: IdeConfigurationList) -> list:
15
+ import capo_codecatalyst.types.ide_configuration
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(capo_codecatalyst.types.ide_configuration.serialize_json(item))
20
+ return out
21
+
22
+
23
+ def deserialize_json(data: list) -> IdeConfigurationList:
24
+ import capo_codecatalyst.types.ide_configuration
25
+
26
+ out: IdeConfigurationList = []
27
+ for item in data:
28
+ if item is None:
29
+ continue
30
+ out.append(capo_codecatalyst.types.ide_configuration.deserialize_json(item))
31
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#Ides``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codecatalyst.types.ide
7
+
8
+ Ides: TypeAlias = list["capo_codecatalyst.types.ide.Ide"]
9
+
10
+
11
+ # --- restJson1 ser/de ---
12
+ def serialize_json(value: Ides) -> list:
13
+ import capo_codecatalyst.types.ide
14
+
15
+ out: list = []
16
+ for item in value:
17
+ out.append(capo_codecatalyst.types.ide.serialize_json(item))
18
+ return out
19
+
20
+
21
+ def deserialize_json(data: list) -> Ides:
22
+ import capo_codecatalyst.types.ide
23
+
24
+ out: Ides = []
25
+ for item in data:
26
+ if item is None:
27
+ continue
28
+ out.append(capo_codecatalyst.types.ide.deserialize_json(item))
29
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#InactivityTimeoutMinutes``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ InactivityTimeoutMinutes: TypeAlias = int
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#InstanceType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ InstanceType: TypeAlias = str
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#ListAccessTokensRequest``."""
2
+
3
+ from typing_extensions import NotRequired, TypedDict
4
+
5
+
6
+ class ListAccessTokensRequest(TypedDict, closed=True):
7
+ max_results: NotRequired["int"]
8
+ """<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>"""
9
+ next_token: NotRequired["str"]
10
+ """<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
11
+
12
+
13
+ # --- restJson1 ser/de ---
14
+ def serialize_json(value: ListAccessTokensRequest) -> dict:
15
+ out: dict = {}
16
+ if "max_results" in value:
17
+ out["maxResults"] = value["max_results"]
18
+ if "next_token" in value:
19
+ out["nextToken"] = value["next_token"]
20
+ return out
21
+
22
+
23
+ def deserialize_json(data: dict) -> ListAccessTokensRequest:
24
+ out: ListAccessTokensRequest = {} # type: ignore[typeddict-item]
25
+ if data.get("maxResults") is not None:
26
+ out["max_results"] = data["maxResults"]
27
+ if data.get("nextToken") is not None:
28
+ out["next_token"] = data["nextToken"]
29
+ return out
@@ -0,0 +1,45 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#ListAccessTokensResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codecatalyst.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codecatalyst.types.access_token_summaries
11
+
12
+
13
+ class ListAccessTokensResponse(TypedDict, closed=True):
14
+ items: "capo_codecatalyst.types.access_token_summaries.AccessTokenSummaries"
15
+ """<p>A list of personal access tokens (PATs) associated with the calling user identity.</p>"""
16
+ next_token: NotRequired["str"]
17
+ """<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
18
+
19
+
20
+ # --- restJson1 ser/de ---
21
+ def serialize_json(value: ListAccessTokensResponse) -> dict:
22
+ out: dict = {}
23
+ import capo_codecatalyst.types.access_token_summaries
24
+
25
+ out["items"] = capo_codecatalyst.types.access_token_summaries.serialize_json(
26
+ value["items"]
27
+ )
28
+ if "next_token" in value:
29
+ out["nextToken"] = value["next_token"]
30
+ return out
31
+
32
+
33
+ def deserialize_json(data: dict) -> ListAccessTokensResponse:
34
+ out: ListAccessTokensResponse = {} # type: ignore[typeddict-item]
35
+ if data.get("items") is not None:
36
+ import capo_codecatalyst.types.access_token_summaries
37
+
38
+ out["items"] = capo_codecatalyst.types.access_token_summaries.deserialize_json(
39
+ data["items"]
40
+ )
41
+ else:
42
+ raise DeserializationError("ListAccessTokensResponse.items required")
43
+ if data.get("nextToken") is not None:
44
+ out["next_token"] = data["nextToken"]
45
+ return out
@@ -0,0 +1,41 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codecatalyst#ListDevEnvironmentSessionsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codecatalyst.types.name_string
9
+ import capo_codecatalyst.types.uuid
10
+
11
+
12
+ class ListDevEnvironmentSessionsRequest(TypedDict, closed=True):
13
+ space_name: "capo_codecatalyst.types.name_string.NameString"
14
+ """<p>The name of the space.</p>"""
15
+ project_name: "capo_codecatalyst.types.name_string.NameString"
16
+ """<p>The name of the project in the space.</p>"""
17
+ dev_environment_id: "capo_codecatalyst.types.uuid.Uuid"
18
+ """<p>The system-generated unique ID of the Dev Environment.</p>"""
19
+ next_token: NotRequired["str"]
20
+ """<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
21
+ max_results: NotRequired["int"]
22
+ """<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>"""
23
+
24
+
25
+ # --- restJson1 ser/de ---
26
+ def serialize_json(value: ListDevEnvironmentSessionsRequest) -> dict:
27
+ out: dict = {}
28
+ if "next_token" in value:
29
+ out["nextToken"] = value["next_token"]
30
+ if "max_results" in value:
31
+ out["maxResults"] = value["max_results"]
32
+ return out
33
+
34
+
35
+ def deserialize_json(data: dict) -> ListDevEnvironmentSessionsRequest:
36
+ out: ListDevEnvironmentSessionsRequest = {} # type: ignore[typeddict-item]
37
+ if data.get("nextToken") is not None:
38
+ out["next_token"] = data["nextToken"]
39
+ if data.get("maxResults") is not None:
40
+ out["max_results"] = data["maxResults"]
41
+ return out