capo-codebuild 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 (419) hide show
  1. capo_codebuild/__init__.py +70 -0
  2. capo_codebuild/_async.py +25 -0
  3. capo_codebuild/_auth/_identity.py +16 -0
  4. capo_codebuild/_auth/_providers.py +886 -0
  5. capo_codebuild/_auth/_signers.py +88 -0
  6. capo_codebuild/_auth/_sigv4.py +434 -0
  7. capo_codebuild/_auth/_zapros_handler.py +80 -0
  8. capo_codebuild/_iter.py +113 -0
  9. capo_codebuild/_operations/code_build_20161006/batch_delete_builds.py +150 -0
  10. capo_codebuild/_operations/code_build_20161006/batch_get_build_batches.py +148 -0
  11. capo_codebuild/_operations/code_build_20161006/batch_get_builds.py +148 -0
  12. capo_codebuild/_operations/code_build_20161006/batch_get_command_executions.py +148 -0
  13. capo_codebuild/_operations/code_build_20161006/batch_get_fleets.py +148 -0
  14. capo_codebuild/_operations/code_build_20161006/batch_get_projects.py +150 -0
  15. capo_codebuild/_operations/code_build_20161006/batch_get_report_groups.py +148 -0
  16. capo_codebuild/_operations/code_build_20161006/batch_get_reports.py +148 -0
  17. capo_codebuild/_operations/code_build_20161006/batch_get_sandboxes.py +150 -0
  18. capo_codebuild/_operations/code_build_20161006/create_fleet.py +161 -0
  19. capo_codebuild/_operations/code_build_20161006/create_project.py +169 -0
  20. capo_codebuild/_operations/code_build_20161006/create_report_group.py +162 -0
  21. capo_codebuild/_operations/code_build_20161006/create_webhook.py +166 -0
  22. capo_codebuild/_operations/code_build_20161006/delete_build_batch.py +150 -0
  23. capo_codebuild/_operations/code_build_20161006/delete_fleet.py +134 -0
  24. capo_codebuild/_operations/code_build_20161006/delete_project.py +138 -0
  25. capo_codebuild/_operations/code_build_20161006/delete_report.py +138 -0
  26. capo_codebuild/_operations/code_build_20161006/delete_report_group.py +140 -0
  27. capo_codebuild/_operations/code_build_20161006/delete_resource_policy.py +142 -0
  28. capo_codebuild/_operations/code_build_20161006/delete_source_credentials.py +155 -0
  29. capo_codebuild/_operations/code_build_20161006/delete_webhook.py +148 -0
  30. capo_codebuild/_operations/code_build_20161006/describe_code_coverages.py +149 -0
  31. capo_codebuild/_operations/code_build_20161006/describe_test_cases.py +155 -0
  32. capo_codebuild/_operations/code_build_20161006/get_report_group_trend.py +154 -0
  33. capo_codebuild/_operations/code_build_20161006/get_resource_policy.py +153 -0
  34. capo_codebuild/_operations/code_build_20161006/import_source_credentials.py +162 -0
  35. capo_codebuild/_operations/code_build_20161006/invalidate_project_cache.py +147 -0
  36. capo_codebuild/_operations/code_build_20161006/list_build_batches.py +151 -0
  37. capo_codebuild/_operations/code_build_20161006/list_build_batches_for_project.py +154 -0
  38. capo_codebuild/_operations/code_build_20161006/list_builds.py +144 -0
  39. capo_codebuild/_operations/code_build_20161006/list_builds_for_project.py +153 -0
  40. capo_codebuild/_operations/code_build_20161006/list_command_executions_for_sandbox.py +153 -0
  41. capo_codebuild/_operations/code_build_20161006/list_curated_environment_images.py +142 -0
  42. capo_codebuild/_operations/code_build_20161006/list_fleets.py +145 -0
  43. capo_codebuild/_operations/code_build_20161006/list_projects.py +149 -0
  44. capo_codebuild/_operations/code_build_20161006/list_report_groups.py +151 -0
  45. capo_codebuild/_operations/code_build_20161006/list_reports.py +145 -0
  46. capo_codebuild/_operations/code_build_20161006/list_reports_for_report_group.py +154 -0
  47. capo_codebuild/_operations/code_build_20161006/list_sandboxes.py +148 -0
  48. capo_codebuild/_operations/code_build_20161006/list_sandboxes_for_project.py +157 -0
  49. capo_codebuild/_operations/code_build_20161006/list_shared_projects.py +151 -0
  50. capo_codebuild/_operations/code_build_20161006/list_shared_report_groups.py +149 -0
  51. capo_codebuild/_operations/code_build_20161006/list_source_credentials.py +147 -0
  52. capo_codebuild/_operations/code_build_20161006/put_resource_policy.py +153 -0
  53. capo_codebuild/_operations/code_build_20161006/retry_build.py +153 -0
  54. capo_codebuild/_operations/code_build_20161006/retry_build_batch.py +153 -0
  55. capo_codebuild/_operations/code_build_20161006/start_build.py +169 -0
  56. capo_codebuild/_operations/code_build_20161006/start_build_batch.py +167 -0
  57. capo_codebuild/_operations/code_build_20161006/start_command_execution.py +153 -0
  58. capo_codebuild/_operations/code_build_20161006/start_sandbox.py +157 -0
  59. capo_codebuild/_operations/code_build_20161006/start_sandbox_connection.py +152 -0
  60. capo_codebuild/_operations/code_build_20161006/stop_build.py +148 -0
  61. capo_codebuild/_operations/code_build_20161006/stop_build_batch.py +152 -0
  62. capo_codebuild/_operations/code_build_20161006/stop_sandbox.py +148 -0
  63. capo_codebuild/_operations/code_build_20161006/update_fleet.py +161 -0
  64. capo_codebuild/_operations/code_build_20161006/update_project.py +164 -0
  65. capo_codebuild/_operations/code_build_20161006/update_project_visibility.py +156 -0
  66. capo_codebuild/_operations/code_build_20161006/update_report_group.py +156 -0
  67. capo_codebuild/_operations/code_build_20161006/update_webhook.py +160 -0
  68. capo_codebuild/_pagination.py +21 -0
  69. capo_codebuild/_protocol/__init__.py +1 -0
  70. capo_codebuild/_protocol/errors.py +93 -0
  71. capo_codebuild/_protocol/eventstream.py +238 -0
  72. capo_codebuild/_protocol/serialize.py +47 -0
  73. capo_codebuild/_protocol/xml.py +33 -0
  74. capo_codebuild/_rule_engine/__init__.py +0 -0
  75. capo_codebuild/_rule_engine/_aws_partition.py +160 -0
  76. capo_codebuild/_rule_engine/_endpoint_rule_set.py +136 -0
  77. capo_codebuild/_rule_engine/_endpoint_runtime.py +389 -0
  78. capo_codebuild/_services/_aws_config.py +160 -0
  79. capo_codebuild/_services/_pipeline.py +198 -0
  80. capo_codebuild/_services/async_code_build.py +4509 -0
  81. capo_codebuild/_services/code_build.py +4450 -0
  82. capo_codebuild/errors/__init__.py +37 -0
  83. capo_codebuild/errors/_base.py +94 -0
  84. capo_codebuild/errors/account_limit_exceeded_exception.py +53 -0
  85. capo_codebuild/errors/account_suspended_exception.py +51 -0
  86. capo_codebuild/errors/invalid_input_exception.py +51 -0
  87. capo_codebuild/errors/o_auth_provider_exception.py +51 -0
  88. capo_codebuild/errors/resource_already_exists_exception.py +53 -0
  89. capo_codebuild/errors/resource_not_found_exception.py +51 -0
  90. capo_codebuild/py.typed +0 -0
  91. capo_codebuild/types/_prelude/blob.py +12 -0
  92. capo_codebuild/types/_prelude/timestamp.py +17 -0
  93. capo_codebuild/types/artifact_namespace.py +17 -0
  94. capo_codebuild/types/artifact_packaging.py +17 -0
  95. capo_codebuild/types/artifacts_type.py +18 -0
  96. capo_codebuild/types/auth_type.py +20 -0
  97. capo_codebuild/types/auto_retry_config.py +47 -0
  98. capo_codebuild/types/batch_delete_builds_input.py +37 -0
  99. capo_codebuild/types/batch_delete_builds_output.py +57 -0
  100. capo_codebuild/types/batch_get_build_batches_input.py +39 -0
  101. capo_codebuild/types/batch_get_build_batches_output.py +59 -0
  102. capo_codebuild/types/batch_get_builds_input.py +37 -0
  103. capo_codebuild/types/batch_get_builds_output.py +53 -0
  104. capo_codebuild/types/batch_get_command_executions_input.py +55 -0
  105. capo_codebuild/types/batch_get_command_executions_output.py +63 -0
  106. capo_codebuild/types/batch_get_fleets_input.py +39 -0
  107. capo_codebuild/types/batch_get_fleets_output.py +53 -0
  108. capo_codebuild/types/batch_get_projects_input.py +39 -0
  109. capo_codebuild/types/batch_get_projects_output.py +55 -0
  110. capo_codebuild/types/batch_get_report_groups_input.py +45 -0
  111. capo_codebuild/types/batch_get_report_groups_output.py +59 -0
  112. capo_codebuild/types/batch_get_reports_input.py +39 -0
  113. capo_codebuild/types/batch_get_reports_output.py +55 -0
  114. capo_codebuild/types/batch_get_sandboxes_input.py +37 -0
  115. capo_codebuild/types/batch_get_sandboxes_output.py +55 -0
  116. capo_codebuild/types/batch_report_mode_type.py +17 -0
  117. capo_codebuild/types/batch_restrictions.py +68 -0
  118. capo_codebuild/types/boolean.py +5 -0
  119. capo_codebuild/types/bucket_owner_access.py +19 -0
  120. capo_codebuild/types/build.py +455 -0
  121. capo_codebuild/types/build_artifacts.py +83 -0
  122. capo_codebuild/types/build_artifacts_list.py +31 -0
  123. capo_codebuild/types/build_batch.py +416 -0
  124. capo_codebuild/types/build_batch_filter.py +36 -0
  125. capo_codebuild/types/build_batch_ids.py +17 -0
  126. capo_codebuild/types/build_batch_phase.py +108 -0
  127. capo_codebuild/types/build_batch_phase_type.py +22 -0
  128. capo_codebuild/types/build_batch_phases.py +33 -0
  129. capo_codebuild/types/build_batches.py +29 -0
  130. capo_codebuild/types/build_group.py +93 -0
  131. capo_codebuild/types/build_groups.py +29 -0
  132. capo_codebuild/types/build_ids.py +17 -0
  133. capo_codebuild/types/build_not_deleted.py +35 -0
  134. capo_codebuild/types/build_phase.py +104 -0
  135. capo_codebuild/types/build_phase_type.py +26 -0
  136. capo_codebuild/types/build_phases.py +29 -0
  137. capo_codebuild/types/build_report_arns.py +17 -0
  138. capo_codebuild/types/build_status_config.py +34 -0
  139. capo_codebuild/types/build_summaries.py +29 -0
  140. capo_codebuild/types/build_summary.py +100 -0
  141. capo_codebuild/types/build_time_out.py +5 -0
  142. capo_codebuild/types/builds.py +29 -0
  143. capo_codebuild/types/builds_not_deleted.py +33 -0
  144. capo_codebuild/types/cache_mode.py +18 -0
  145. capo_codebuild/types/cache_type.py +18 -0
  146. capo_codebuild/types/cloud_watch_logs_config.py +54 -0
  147. capo_codebuild/types/code_coverage.py +114 -0
  148. capo_codebuild/types/code_coverage_report_summary.py +80 -0
  149. capo_codebuild/types/code_coverages.py +29 -0
  150. capo_codebuild/types/command_execution.py +149 -0
  151. capo_codebuild/types/command_execution_ids.py +19 -0
  152. capo_codebuild/types/command_executions.py +33 -0
  153. capo_codebuild/types/command_type.py +14 -0
  154. capo_codebuild/types/compute_configuration.py +64 -0
  155. capo_codebuild/types/compute_type.py +27 -0
  156. capo_codebuild/types/compute_types_allowed.py +19 -0
  157. capo_codebuild/types/create_fleet_input.py +205 -0
  158. capo_codebuild/types/create_fleet_output.py +34 -0
  159. capo_codebuild/types/create_project_input.py +314 -0
  160. capo_codebuild/types/create_project_output.py +36 -0
  161. capo_codebuild/types/create_report_group_input.py +80 -0
  162. capo_codebuild/types/create_report_group_output.py +38 -0
  163. capo_codebuild/types/create_webhook_input.py +123 -0
  164. capo_codebuild/types/create_webhook_output.py +36 -0
  165. capo_codebuild/types/credential_provider_type.py +14 -0
  166. capo_codebuild/types/debug_session.py +35 -0
  167. capo_codebuild/types/delete_build_batch_input.py +31 -0
  168. capo_codebuild/types/delete_build_batch_output.py +64 -0
  169. capo_codebuild/types/delete_fleet_input.py +31 -0
  170. capo_codebuild/types/delete_fleet_output.py +18 -0
  171. capo_codebuild/types/delete_project_input.py +31 -0
  172. capo_codebuild/types/delete_project_output.py +18 -0
  173. capo_codebuild/types/delete_report_group_input.py +39 -0
  174. capo_codebuild/types/delete_report_group_output.py +18 -0
  175. capo_codebuild/types/delete_report_input.py +31 -0
  176. capo_codebuild/types/delete_report_output.py +18 -0
  177. capo_codebuild/types/delete_resource_policy_input.py +31 -0
  178. capo_codebuild/types/delete_resource_policy_output.py +18 -0
  179. capo_codebuild/types/delete_source_credentials_input.py +31 -0
  180. capo_codebuild/types/delete_source_credentials_output.py +28 -0
  181. capo_codebuild/types/delete_webhook_input.py +31 -0
  182. capo_codebuild/types/delete_webhook_output.py +18 -0
  183. capo_codebuild/types/describe_code_coverages_input.py +118 -0
  184. capo_codebuild/types/describe_code_coverages_output.py +47 -0
  185. capo_codebuild/types/describe_test_cases_input.py +59 -0
  186. capo_codebuild/types/describe_test_cases_output.py +43 -0
  187. capo_codebuild/types/docker_server.py +81 -0
  188. capo_codebuild/types/docker_server_status.py +34 -0
  189. capo_codebuild/types/environment_image.py +49 -0
  190. capo_codebuild/types/environment_images.py +33 -0
  191. capo_codebuild/types/environment_language.py +53 -0
  192. capo_codebuild/types/environment_languages.py +35 -0
  193. capo_codebuild/types/environment_platform.py +57 -0
  194. capo_codebuild/types/environment_platforms.py +35 -0
  195. capo_codebuild/types/environment_type.py +27 -0
  196. capo_codebuild/types/environment_variable.py +60 -0
  197. capo_codebuild/types/environment_variable_type.py +18 -0
  198. capo_codebuild/types/environment_variables.py +35 -0
  199. capo_codebuild/types/exported_environment_variable.py +35 -0
  200. capo_codebuild/types/exported_environment_variables.py +39 -0
  201. capo_codebuild/types/file_system_type.py +14 -0
  202. capo_codebuild/types/filter_group.py +29 -0
  203. capo_codebuild/types/filter_groups.py +29 -0
  204. capo_codebuild/types/fleet.py +257 -0
  205. capo_codebuild/types/fleet_arns.py +17 -0
  206. capo_codebuild/types/fleet_capacity.py +5 -0
  207. capo_codebuild/types/fleet_context_code.py +20 -0
  208. capo_codebuild/types/fleet_name.py +5 -0
  209. capo_codebuild/types/fleet_names.py +17 -0
  210. capo_codebuild/types/fleet_overflow_behavior.py +17 -0
  211. capo_codebuild/types/fleet_proxy_rule.py +81 -0
  212. capo_codebuild/types/fleet_proxy_rule_behavior.py +17 -0
  213. capo_codebuild/types/fleet_proxy_rule_effect_type.py +17 -0
  214. capo_codebuild/types/fleet_proxy_rule_entities.py +17 -0
  215. capo_codebuild/types/fleet_proxy_rule_type.py +17 -0
  216. capo_codebuild/types/fleet_proxy_rules.py +31 -0
  217. capo_codebuild/types/fleet_scaling_metric_type.py +14 -0
  218. capo_codebuild/types/fleet_scaling_type.py +14 -0
  219. capo_codebuild/types/fleet_sort_by_type.py +18 -0
  220. capo_codebuild/types/fleet_status.py +64 -0
  221. capo_codebuild/types/fleet_status_code.py +23 -0
  222. capo_codebuild/types/fleets.py +29 -0
  223. capo_codebuild/types/fleets_allowed.py +17 -0
  224. capo_codebuild/types/get_report_group_trend_input.py +60 -0
  225. capo_codebuild/types/get_report_group_trend_output.py +63 -0
  226. capo_codebuild/types/get_resource_policy_input.py +31 -0
  227. capo_codebuild/types/get_resource_policy_output.py +28 -0
  228. capo_codebuild/types/git_clone_depth.py +5 -0
  229. capo_codebuild/types/git_submodules_config.py +31 -0
  230. capo_codebuild/types/identifiers.py +17 -0
  231. capo_codebuild/types/image_pull_credentials_type.py +17 -0
  232. capo_codebuild/types/image_versions.py +17 -0
  233. capo_codebuild/types/import_source_credentials_input.py +77 -0
  234. capo_codebuild/types/import_source_credentials_output.py +28 -0
  235. capo_codebuild/types/invalidate_project_cache_input.py +31 -0
  236. capo_codebuild/types/invalidate_project_cache_output.py +18 -0
  237. capo_codebuild/types/key_input.py +5 -0
  238. capo_codebuild/types/language_type.py +25 -0
  239. capo_codebuild/types/list_build_batches_for_project_input.py +76 -0
  240. capo_codebuild/types/list_build_batches_for_project_output.py +43 -0
  241. capo_codebuild/types/list_build_batches_input.py +69 -0
  242. capo_codebuild/types/list_build_batches_output.py +43 -0
  243. capo_codebuild/types/list_builds_for_project_input.py +55 -0
  244. capo_codebuild/types/list_builds_for_project_output.py +41 -0
  245. capo_codebuild/types/list_builds_input.py +45 -0
  246. capo_codebuild/types/list_builds_output.py +41 -0
  247. capo_codebuild/types/list_command_executions_for_sandbox_input.py +64 -0
  248. capo_codebuild/types/list_command_executions_for_sandbox_output.py +49 -0
  249. capo_codebuild/types/list_curated_environment_images_input.py +18 -0
  250. capo_codebuild/types/list_curated_environment_images_output.py +42 -0
  251. capo_codebuild/types/list_fleets_input.py +69 -0
  252. capo_codebuild/types/list_fleets_output.py +43 -0
  253. capo_codebuild/types/list_projects_input.py +64 -0
  254. capo_codebuild/types/list_projects_output.py +43 -0
  255. capo_codebuild/types/list_report_groups_input.py +73 -0
  256. capo_codebuild/types/list_report_groups_output.py +47 -0
  257. capo_codebuild/types/list_reports_for_report_group_input.py +78 -0
  258. capo_codebuild/types/list_reports_for_report_group_output.py +43 -0
  259. capo_codebuild/types/list_reports_input.py +67 -0
  260. capo_codebuild/types/list_reports_output.py +43 -0
  261. capo_codebuild/types/list_sandboxes_for_project_input.py +62 -0
  262. capo_codebuild/types/list_sandboxes_for_project_output.py +43 -0
  263. capo_codebuild/types/list_sandboxes_input.py +52 -0
  264. capo_codebuild/types/list_sandboxes_output.py +43 -0
  265. capo_codebuild/types/list_shared_projects_input.py +73 -0
  266. capo_codebuild/types/list_shared_projects_output.py +43 -0
  267. capo_codebuild/types/list_shared_report_groups_input.py +73 -0
  268. capo_codebuild/types/list_shared_report_groups_output.py +47 -0
  269. capo_codebuild/types/list_source_credentials_input.py +18 -0
  270. capo_codebuild/types/list_source_credentials_output.py +42 -0
  271. capo_codebuild/types/logs_config.py +57 -0
  272. capo_codebuild/types/logs_config_status_type.py +17 -0
  273. capo_codebuild/types/logs_location.py +94 -0
  274. capo_codebuild/types/machine_type.py +17 -0
  275. capo_codebuild/types/network_interface.py +36 -0
  276. capo_codebuild/types/non_empty_string.py +5 -0
  277. capo_codebuild/types/non_negative_int.py +5 -0
  278. capo_codebuild/types/page_size.py +5 -0
  279. capo_codebuild/types/percentage.py +5 -0
  280. capo_codebuild/types/phase_context.py +34 -0
  281. capo_codebuild/types/phase_contexts.py +29 -0
  282. capo_codebuild/types/platform_type.py +19 -0
  283. capo_codebuild/types/project.py +405 -0
  284. capo_codebuild/types/project_arns.py +17 -0
  285. capo_codebuild/types/project_artifacts.py +141 -0
  286. capo_codebuild/types/project_artifacts_list.py +33 -0
  287. capo_codebuild/types/project_badge.py +36 -0
  288. capo_codebuild/types/project_build_batch_config.py +86 -0
  289. capo_codebuild/types/project_cache.py +67 -0
  290. capo_codebuild/types/project_cache_modes.py +29 -0
  291. capo_codebuild/types/project_description.py +5 -0
  292. capo_codebuild/types/project_environment.py +195 -0
  293. capo_codebuild/types/project_file_system_location.py +61 -0
  294. capo_codebuild/types/project_file_system_locations.py +39 -0
  295. capo_codebuild/types/project_fleet.py +28 -0
  296. capo_codebuild/types/project_name.py +5 -0
  297. capo_codebuild/types/project_names.py +17 -0
  298. capo_codebuild/types/project_secondary_source_versions.py +35 -0
  299. capo_codebuild/types/project_sort_by_type.py +18 -0
  300. capo_codebuild/types/project_source.py +135 -0
  301. capo_codebuild/types/project_source_version.py +38 -0
  302. capo_codebuild/types/project_sources.py +29 -0
  303. capo_codebuild/types/project_visibility_type.py +18 -0
  304. capo_codebuild/types/projects.py +29 -0
  305. capo_codebuild/types/proxy_configuration.py +63 -0
  306. capo_codebuild/types/pull_request_build_approver_role.py +29 -0
  307. capo_codebuild/types/pull_request_build_approver_roles.py +39 -0
  308. capo_codebuild/types/pull_request_build_comment_approval.py +18 -0
  309. capo_codebuild/types/pull_request_build_policy.py +66 -0
  310. capo_codebuild/types/put_resource_policy_input.py +38 -0
  311. capo_codebuild/types/put_resource_policy_output.py +28 -0
  312. capo_codebuild/types/registry_credential.py +53 -0
  313. capo_codebuild/types/report.py +180 -0
  314. capo_codebuild/types/report_arns.py +17 -0
  315. capo_codebuild/types/report_code_coverage_sort_by_type.py +17 -0
  316. capo_codebuild/types/report_export_config.py +63 -0
  317. capo_codebuild/types/report_export_config_type.py +17 -0
  318. capo_codebuild/types/report_filter.py +38 -0
  319. capo_codebuild/types/report_group.py +136 -0
  320. capo_codebuild/types/report_group_arns.py +19 -0
  321. capo_codebuild/types/report_group_name.py +5 -0
  322. capo_codebuild/types/report_group_sort_by_type.py +18 -0
  323. capo_codebuild/types/report_group_status_type.py +17 -0
  324. capo_codebuild/types/report_group_trend_field_type.py +24 -0
  325. capo_codebuild/types/report_group_trend_raw_data_list.py +35 -0
  326. capo_codebuild/types/report_group_trend_stats.py +40 -0
  327. capo_codebuild/types/report_groups.py +29 -0
  328. capo_codebuild/types/report_packaging_type.py +17 -0
  329. capo_codebuild/types/report_status_counts.py +28 -0
  330. capo_codebuild/types/report_status_type.py +20 -0
  331. capo_codebuild/types/report_type.py +17 -0
  332. capo_codebuild/types/report_with_raw_data.py +35 -0
  333. capo_codebuild/types/reports.py +29 -0
  334. capo_codebuild/types/resolved_artifact.py +49 -0
  335. capo_codebuild/types/resolved_secondary_artifacts.py +33 -0
  336. capo_codebuild/types/retry_build_batch_input.py +56 -0
  337. capo_codebuild/types/retry_build_batch_output.py +35 -0
  338. capo_codebuild/types/retry_build_batch_type.py +17 -0
  339. capo_codebuild/types/retry_build_input.py +35 -0
  340. capo_codebuild/types/retry_build_output.py +33 -0
  341. capo_codebuild/types/s3_logs_config.py +77 -0
  342. capo_codebuild/types/s3_report_export_config.py +77 -0
  343. capo_codebuild/types/sandbox.py +267 -0
  344. capo_codebuild/types/sandbox_ids.py +17 -0
  345. capo_codebuild/types/sandbox_session.py +133 -0
  346. capo_codebuild/types/sandbox_session_phase.py +94 -0
  347. capo_codebuild/types/sandbox_session_phases.py +35 -0
  348. capo_codebuild/types/sandboxes.py +29 -0
  349. capo_codebuild/types/scaling_configuration_input.py +70 -0
  350. capo_codebuild/types/scaling_configuration_output.py +76 -0
  351. capo_codebuild/types/scope_configuration.py +53 -0
  352. capo_codebuild/types/security_group_ids.py +19 -0
  353. capo_codebuild/types/sensitive_non_empty_string.py +5 -0
  354. capo_codebuild/types/sensitive_string.py +5 -0
  355. capo_codebuild/types/server_type.py +20 -0
  356. capo_codebuild/types/shared_resource_sort_by_type.py +17 -0
  357. capo_codebuild/types/sort_order_type.py +17 -0
  358. capo_codebuild/types/source_auth.py +46 -0
  359. capo_codebuild/types/source_auth_type.py +18 -0
  360. capo_codebuild/types/source_credentials_info.py +65 -0
  361. capo_codebuild/types/source_credentials_infos.py +35 -0
  362. capo_codebuild/types/source_type.py +24 -0
  363. capo_codebuild/types/ssm_session.py +40 -0
  364. capo_codebuild/types/start_build_batch_input.py +459 -0
  365. capo_codebuild/types/start_build_batch_output.py +36 -0
  366. capo_codebuild/types/start_build_input.py +481 -0
  367. capo_codebuild/types/start_build_output.py +34 -0
  368. capo_codebuild/types/start_command_execution_input.py +54 -0
  369. capo_codebuild/types/start_command_execution_output.py +42 -0
  370. capo_codebuild/types/start_sandbox_connection_input.py +31 -0
  371. capo_codebuild/types/start_sandbox_connection_output.py +36 -0
  372. capo_codebuild/types/start_sandbox_input.py +37 -0
  373. capo_codebuild/types/start_sandbox_output.py +36 -0
  374. capo_codebuild/types/status_type.py +21 -0
  375. capo_codebuild/types/stop_build_batch_input.py +31 -0
  376. capo_codebuild/types/stop_build_batch_output.py +35 -0
  377. capo_codebuild/types/stop_build_input.py +31 -0
  378. capo_codebuild/types/stop_build_output.py +34 -0
  379. capo_codebuild/types/stop_sandbox_input.py +31 -0
  380. capo_codebuild/types/stop_sandbox_output.py +36 -0
  381. capo_codebuild/types/string.py +5 -0
  382. capo_codebuild/types/subnets.py +17 -0
  383. capo_codebuild/types/tag.py +35 -0
  384. capo_codebuild/types/tag_list.py +29 -0
  385. capo_codebuild/types/target_tracking_scaling_configuration.py +57 -0
  386. capo_codebuild/types/target_tracking_scaling_configurations.py +39 -0
  387. capo_codebuild/types/test_case.py +89 -0
  388. capo_codebuild/types/test_case_filter.py +34 -0
  389. capo_codebuild/types/test_cases.py +29 -0
  390. capo_codebuild/types/test_report_summary.py +61 -0
  391. capo_codebuild/types/time_out.py +5 -0
  392. capo_codebuild/types/timestamp.py +20 -0
  393. capo_codebuild/types/update_fleet_input.py +203 -0
  394. capo_codebuild/types/update_fleet_output.py +34 -0
  395. capo_codebuild/types/update_project_input.py +312 -0
  396. capo_codebuild/types/update_project_output.py +36 -0
  397. capo_codebuild/types/update_project_visibility_input.py +62 -0
  398. capo_codebuild/types/update_project_visibility_output.py +56 -0
  399. capo_codebuild/types/update_report_group_input.py +67 -0
  400. capo_codebuild/types/update_report_group_output.py +38 -0
  401. capo_codebuild/types/update_webhook_input.py +103 -0
  402. capo_codebuild/types/update_webhook_output.py +36 -0
  403. capo_codebuild/types/value_input.py +5 -0
  404. capo_codebuild/types/vpc_config.py +64 -0
  405. capo_codebuild/types/webhook.py +171 -0
  406. capo_codebuild/types/webhook_build_type.py +18 -0
  407. capo_codebuild/types/webhook_filter.py +56 -0
  408. capo_codebuild/types/webhook_filter_type.py +26 -0
  409. capo_codebuild/types/webhook_scope_type.py +18 -0
  410. capo_codebuild/types/webhook_status.py +19 -0
  411. capo_codebuild/types/wrapper_boolean.py +5 -0
  412. capo_codebuild/types/wrapper_double.py +5 -0
  413. capo_codebuild/types/wrapper_int.py +5 -0
  414. capo_codebuild/types/wrapper_long.py +5 -0
  415. capo_codebuild-0.1.0.dist-info/METADATA +101 -0
  416. capo_codebuild-0.1.0.dist-info/RECORD +419 -0
  417. capo_codebuild-0.1.0.dist-info/WHEEL +5 -0
  418. capo_codebuild-0.1.0.dist-info/licenses/LICENSE +21 -0
  419. capo_codebuild-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,257 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#Fleet``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codebuild.types.compute_configuration
9
+ import capo_codebuild.types.compute_type
10
+ import capo_codebuild.types.environment_type
11
+ import capo_codebuild.types.fleet_capacity
12
+ import capo_codebuild.types.fleet_name
13
+ import capo_codebuild.types.fleet_overflow_behavior
14
+ import capo_codebuild.types.fleet_status
15
+ import capo_codebuild.types.non_empty_string
16
+ import capo_codebuild.types.proxy_configuration
17
+ import capo_codebuild.types.scaling_configuration_output
18
+ import capo_codebuild.types.tag_list
19
+ import capo_codebuild.types.timestamp
20
+ import capo_codebuild.types.vpc_config
21
+
22
+
23
+ class Fleet(TypedDict, closed=True):
24
+ arn: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
25
+ """<p>The ARN of the compute fleet.</p>"""
26
+ name: NotRequired["capo_codebuild.types.fleet_name.FleetName"]
27
+ """<p>The name of the compute fleet.</p>"""
28
+ id: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
29
+ """<p>The ID of the compute fleet.</p>"""
30
+ created: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
31
+ """<p>The time at which the compute fleet was created.</p>"""
32
+ last_modified: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
33
+ """<p>The time at which the compute fleet was last modified.</p>"""
34
+ status: NotRequired["capo_codebuild.types.fleet_status.FleetStatus"]
35
+ """<p>The status of the compute fleet.</p>"""
36
+ base_capacity: NotRequired["capo_codebuild.types.fleet_capacity.FleetCapacity"]
37
+ """<p>The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.</p>"""
38
+ environment_type: NotRequired[
39
+ "capo_codebuild.types.environment_type.EnvironmentType"
40
+ ]
41
+ r"""<p>The environment type of the compute fleet.</p> <ul> <li> <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).</p> </li> <li> <p>The environment type <code>ARM_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p> </li> <li> <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p> </li> <li> <p>The environment type <code>LINUX_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p> </li> <li> <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).</p> </li> <li> <p>The environment type <code>MAC_ARM</code> is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)</p> </li> <li> <p>The environment type <code>MAC_ARM</code> is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).</p> </li> <li> <p>The environment type <code>WINDOWS_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p> </li> <li> <p>The environment type <code>WINDOWS_SERVER_2019_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).</p> </li> <li> <p>The environment type <code>WINDOWS_SERVER_2022_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html\">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>"""
42
+ compute_type: NotRequired["capo_codebuild.types.compute_type.ComputeType"]
43
+ r"""<p>Information about the compute resources the compute fleet uses. Available values include:</p> <ul> <li> <p> <code>ATTRIBUTE_BASED_COMPUTE</code>: Specify the amount of vCPUs, memory, disk space, and the type of machine.</p> <note> <p> If you use <code>ATTRIBUTE_BASED_COMPUTE</code>, you must define your attributes by using <code>computeConfiguration</code>. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types\">Reserved capacity environment types</a> in the <i>CodeBuild User Guide</i>.</p> </note> </li> <li> <p> <code>CUSTOM_INSTANCE_TYPE</code>: Specify the instance type for your compute fleet. For a list of supported instance types, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.instance-types\">Supported instance families </a> in the <i>CodeBuild User Guide</i>.</p> </li> <li> <p> <code>BUILD_GENERAL1_SMALL</code>: Use up to 4 GiB memory and 2 vCPUs for builds.</p> </li> <li> <p> <code>BUILD_GENERAL1_MEDIUM</code>: Use up to 8 GiB memory and 4 vCPUs for builds.</p> </li> <li> <p> <code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.</p> </li> <li> <p> <code>BUILD_GENERAL1_XLARGE</code>: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.</p> </li> <li> <p> <code>BUILD_GENERAL1_2XLARGE</code>: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.</p> </li> <li> <p> <code>BUILD_LAMBDA_1GB</code>: Use up to 1 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p> </li> <li> <p> <code>BUILD_LAMBDA_2GB</code>: Use up to 2 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p> </li> <li> <p> <code>BUILD_LAMBDA_4GB</code>: Use up to 4 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p> </li> <li> <p> <code>BUILD_LAMBDA_8GB</code>: Use up to 8 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p> </li> <li> <p> <code>BUILD_LAMBDA_10GB</code>: Use up to 10 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p> </li> </ul> <p> If you use <code>BUILD_GENERAL1_SMALL</code>: </p> <ul> <li> <p> For environment type <code>LINUX_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs for builds. </p> </li> <li> <p> For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.</p> </li> <li> <p> For environment type <code>ARM_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.</p> </li> </ul> <p> If you use <code>BUILD_GENERAL1_LARGE</code>: </p> <ul> <li> <p> For environment type <code>LINUX_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs for builds. </p> </li> <li> <p> For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p> </li> <li> <p> For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types\">On-demand environment types</a> in the <i>CodeBuild User Guide.</i> </p>"""
44
+ compute_configuration: NotRequired[
45
+ "capo_codebuild.types.compute_configuration.ComputeConfiguration"
46
+ ]
47
+ """<p>The compute configuration of the compute fleet. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code> or <code>CUSTOM_INSTANCE_TYPE</code>.</p>"""
48
+ scaling_configuration: NotRequired[
49
+ "capo_codebuild.types.scaling_configuration_output.ScalingConfigurationOutput"
50
+ ]
51
+ """<p>The scaling configuration of the compute fleet.</p>"""
52
+ overflow_behavior: NotRequired[
53
+ "capo_codebuild.types.fleet_overflow_behavior.FleetOverflowBehavior"
54
+ ]
55
+ r"""<p>The compute fleet overflow behavior.</p> <ul> <li> <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on the existing fleet instance to become available.</p> </li> <li> <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p> <note> <p>If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface\">Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface</a>.</p> </note> </li> </ul>"""
56
+ vpc_config: NotRequired["capo_codebuild.types.vpc_config.VpcConfig"]
57
+ proxy_configuration: NotRequired[
58
+ "capo_codebuild.types.proxy_configuration.ProxyConfiguration"
59
+ ]
60
+ """<p>The proxy configuration of the compute fleet.</p>"""
61
+ image_id: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
62
+ """<p>The Amazon Machine Image (AMI) of the compute fleet.</p>"""
63
+ fleet_service_role: NotRequired[
64
+ "capo_codebuild.types.non_empty_string.NonEmptyString"
65
+ ]
66
+ r"""<p>The service role associated with the compute fleet. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html\"> Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>"""
67
+ tags: NotRequired["capo_codebuild.types.tag_list.TagList"]
68
+ """<p>A list of tag key and value pairs associated with this compute fleet.</p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>"""
69
+
70
+
71
+ # --- awsJson1_1 ser/de ---
72
+ def serialize_aws_json_1_1(value: Fleet) -> dict:
73
+ out: dict = {}
74
+ if "arn" in value:
75
+ out["arn"] = value["arn"]
76
+ if "name" in value:
77
+ out["name"] = value["name"]
78
+ if "id" in value:
79
+ out["id"] = value["id"]
80
+ if "created" in value:
81
+ import capo_codebuild.types.timestamp
82
+
83
+ out["created"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
84
+ value["created"]
85
+ )
86
+ if "last_modified" in value:
87
+ import capo_codebuild.types.timestamp
88
+
89
+ out["lastModified"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
90
+ value["last_modified"]
91
+ )
92
+ if "status" in value:
93
+ import capo_codebuild.types.fleet_status
94
+
95
+ out["status"] = capo_codebuild.types.fleet_status.serialize_aws_json_1_1(
96
+ value["status"]
97
+ )
98
+ if "base_capacity" in value:
99
+ out["baseCapacity"] = value["base_capacity"]
100
+ if "environment_type" in value:
101
+ import capo_codebuild.types.environment_type
102
+
103
+ out["environmentType"] = (
104
+ capo_codebuild.types.environment_type.serialize_aws_json_1_1(
105
+ value["environment_type"]
106
+ )
107
+ )
108
+ if "compute_type" in value:
109
+ import capo_codebuild.types.compute_type
110
+
111
+ out["computeType"] = capo_codebuild.types.compute_type.serialize_aws_json_1_1(
112
+ value["compute_type"]
113
+ )
114
+ if "compute_configuration" in value:
115
+ import capo_codebuild.types.compute_configuration
116
+
117
+ out["computeConfiguration"] = (
118
+ capo_codebuild.types.compute_configuration.serialize_aws_json_1_1(
119
+ value["compute_configuration"]
120
+ )
121
+ )
122
+ if "scaling_configuration" in value:
123
+ import capo_codebuild.types.scaling_configuration_output
124
+
125
+ out["scalingConfiguration"] = (
126
+ capo_codebuild.types.scaling_configuration_output.serialize_aws_json_1_1(
127
+ value["scaling_configuration"]
128
+ )
129
+ )
130
+ if "overflow_behavior" in value:
131
+ import capo_codebuild.types.fleet_overflow_behavior
132
+
133
+ out["overflowBehavior"] = (
134
+ capo_codebuild.types.fleet_overflow_behavior.serialize_aws_json_1_1(
135
+ value["overflow_behavior"]
136
+ )
137
+ )
138
+ if "vpc_config" in value:
139
+ import capo_codebuild.types.vpc_config
140
+
141
+ out["vpcConfig"] = capo_codebuild.types.vpc_config.serialize_aws_json_1_1(
142
+ value["vpc_config"]
143
+ )
144
+ if "proxy_configuration" in value:
145
+ import capo_codebuild.types.proxy_configuration
146
+
147
+ out["proxyConfiguration"] = (
148
+ capo_codebuild.types.proxy_configuration.serialize_aws_json_1_1(
149
+ value["proxy_configuration"]
150
+ )
151
+ )
152
+ if "image_id" in value:
153
+ out["imageId"] = value["image_id"]
154
+ if "fleet_service_role" in value:
155
+ out["fleetServiceRole"] = value["fleet_service_role"]
156
+ if "tags" in value:
157
+ import capo_codebuild.types.tag_list
158
+
159
+ out["tags"] = capo_codebuild.types.tag_list.serialize_aws_json_1_1(
160
+ value["tags"]
161
+ )
162
+ return out
163
+
164
+
165
+ def deserialize_aws_json_1_1(data: dict) -> Fleet:
166
+ out: Fleet = {} # type: ignore[typeddict-item]
167
+ if data.get("arn") is not None:
168
+ out["arn"] = data["arn"]
169
+ if data.get("name") is not None:
170
+ out["name"] = data["name"]
171
+ if data.get("id") is not None:
172
+ out["id"] = data["id"]
173
+ if data.get("created") is not None:
174
+ import capo_codebuild.types.timestamp
175
+
176
+ out["created"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
177
+ data["created"]
178
+ )
179
+ if data.get("lastModified") is not None:
180
+ import capo_codebuild.types.timestamp
181
+
182
+ out["last_modified"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
183
+ data["lastModified"]
184
+ )
185
+ if data.get("status") is not None:
186
+ import capo_codebuild.types.fleet_status
187
+
188
+ out["status"] = capo_codebuild.types.fleet_status.deserialize_aws_json_1_1(
189
+ data["status"]
190
+ )
191
+ if data.get("baseCapacity") is not None:
192
+ out["base_capacity"] = data["baseCapacity"]
193
+ if data.get("environmentType") is not None:
194
+ import capo_codebuild.types.environment_type
195
+
196
+ out["environment_type"] = (
197
+ capo_codebuild.types.environment_type.deserialize_aws_json_1_1(
198
+ data["environmentType"]
199
+ )
200
+ )
201
+ if data.get("computeType") is not None:
202
+ import capo_codebuild.types.compute_type
203
+
204
+ out["compute_type"] = (
205
+ capo_codebuild.types.compute_type.deserialize_aws_json_1_1(
206
+ data["computeType"]
207
+ )
208
+ )
209
+ if data.get("computeConfiguration") is not None:
210
+ import capo_codebuild.types.compute_configuration
211
+
212
+ out["compute_configuration"] = (
213
+ capo_codebuild.types.compute_configuration.deserialize_aws_json_1_1(
214
+ data["computeConfiguration"]
215
+ )
216
+ )
217
+ if data.get("scalingConfiguration") is not None:
218
+ import capo_codebuild.types.scaling_configuration_output
219
+
220
+ out["scaling_configuration"] = (
221
+ capo_codebuild.types.scaling_configuration_output.deserialize_aws_json_1_1(
222
+ data["scalingConfiguration"]
223
+ )
224
+ )
225
+ if data.get("overflowBehavior") is not None:
226
+ import capo_codebuild.types.fleet_overflow_behavior
227
+
228
+ out["overflow_behavior"] = (
229
+ capo_codebuild.types.fleet_overflow_behavior.deserialize_aws_json_1_1(
230
+ data["overflowBehavior"]
231
+ )
232
+ )
233
+ if data.get("vpcConfig") is not None:
234
+ import capo_codebuild.types.vpc_config
235
+
236
+ out["vpc_config"] = capo_codebuild.types.vpc_config.deserialize_aws_json_1_1(
237
+ data["vpcConfig"]
238
+ )
239
+ if data.get("proxyConfiguration") is not None:
240
+ import capo_codebuild.types.proxy_configuration
241
+
242
+ out["proxy_configuration"] = (
243
+ capo_codebuild.types.proxy_configuration.deserialize_aws_json_1_1(
244
+ data["proxyConfiguration"]
245
+ )
246
+ )
247
+ if data.get("imageId") is not None:
248
+ out["image_id"] = data["imageId"]
249
+ if data.get("fleetServiceRole") is not None:
250
+ out["fleet_service_role"] = data["fleetServiceRole"]
251
+ if data.get("tags") is not None:
252
+ import capo_codebuild.types.tag_list
253
+
254
+ out["tags"] = capo_codebuild.types.tag_list.deserialize_aws_json_1_1(
255
+ data["tags"]
256
+ )
257
+ return out
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetArns``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.non_empty_string
7
+
8
+ FleetArns: TypeAlias = list["capo_codebuild.types.non_empty_string.NonEmptyString"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetArns) -> list:
13
+ return list(value)
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: list) -> FleetArns:
17
+ return [item for item in data if item is not None]
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetCapacity``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ FleetCapacity: TypeAlias = int
@@ -0,0 +1,20 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetContextCode``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetContextCode: TypeAlias = Literal[
6
+ "CREATE_FAILED",
7
+ "UPDATE_FAILED",
8
+ "ACTION_REQUIRED",
9
+ "PENDING_DELETION",
10
+ "INSUFFICIENT_CAPACITY",
11
+ ]
12
+
13
+
14
+ # --- awsJson1_1 ser/de ---
15
+ def serialize_aws_json_1_1(value: FleetContextCode) -> str:
16
+ return value
17
+
18
+
19
+ def deserialize_aws_json_1_1(data: str) -> FleetContextCode:
20
+ return cast(FleetContextCode, data)
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetName``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ FleetName: TypeAlias = str
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetNames``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.non_empty_string
7
+
8
+ FleetNames: TypeAlias = list["capo_codebuild.types.non_empty_string.NonEmptyString"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetNames) -> list:
13
+ return list(value)
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: list) -> FleetNames:
17
+ return [item for item in data if item is not None]
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetOverflowBehavior``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetOverflowBehavior: TypeAlias = Literal[
6
+ "QUEUE",
7
+ "ON_DEMAND",
8
+ ]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetOverflowBehavior) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: str) -> FleetOverflowBehavior:
17
+ return cast(FleetOverflowBehavior, data)
@@ -0,0 +1,81 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetProxyRule``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_codebuild.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codebuild.types.fleet_proxy_rule_effect_type
11
+ import capo_codebuild.types.fleet_proxy_rule_entities
12
+ import capo_codebuild.types.fleet_proxy_rule_type
13
+
14
+
15
+ class FleetProxyRule(TypedDict, closed=True):
16
+ type: "capo_codebuild.types.fleet_proxy_rule_type.FleetProxyRuleType"
17
+ """<p>The type of proxy rule.</p>"""
18
+ effect: "capo_codebuild.types.fleet_proxy_rule_effect_type.FleetProxyRuleEffectType"
19
+ """<p>The behavior of the proxy rule.</p>"""
20
+ entities: "capo_codebuild.types.fleet_proxy_rule_entities.FleetProxyRuleEntities"
21
+ """<p>The destination of the proxy rule.</p>"""
22
+
23
+
24
+ # --- awsJson1_1 ser/de ---
25
+ def serialize_aws_json_1_1(value: FleetProxyRule) -> dict:
26
+ out: dict = {}
27
+ import capo_codebuild.types.fleet_proxy_rule_type
28
+
29
+ out["type"] = capo_codebuild.types.fleet_proxy_rule_type.serialize_aws_json_1_1(
30
+ value["type"]
31
+ )
32
+ import capo_codebuild.types.fleet_proxy_rule_effect_type
33
+
34
+ out["effect"] = (
35
+ capo_codebuild.types.fleet_proxy_rule_effect_type.serialize_aws_json_1_1(
36
+ value["effect"]
37
+ )
38
+ )
39
+ import capo_codebuild.types.fleet_proxy_rule_entities
40
+
41
+ out["entities"] = (
42
+ capo_codebuild.types.fleet_proxy_rule_entities.serialize_aws_json_1_1(
43
+ value["entities"]
44
+ )
45
+ )
46
+ return out
47
+
48
+
49
+ def deserialize_aws_json_1_1(data: dict) -> FleetProxyRule:
50
+ out: FleetProxyRule = {} # type: ignore[typeddict-item]
51
+ if data.get("type") is not None:
52
+ import capo_codebuild.types.fleet_proxy_rule_type
53
+
54
+ out["type"] = (
55
+ capo_codebuild.types.fleet_proxy_rule_type.deserialize_aws_json_1_1(
56
+ data["type"]
57
+ )
58
+ )
59
+ else:
60
+ raise DeserializationError("FleetProxyRule.type required")
61
+ if data.get("effect") is not None:
62
+ import capo_codebuild.types.fleet_proxy_rule_effect_type
63
+
64
+ out["effect"] = (
65
+ capo_codebuild.types.fleet_proxy_rule_effect_type.deserialize_aws_json_1_1(
66
+ data["effect"]
67
+ )
68
+ )
69
+ else:
70
+ raise DeserializationError("FleetProxyRule.effect required")
71
+ if data.get("entities") is not None:
72
+ import capo_codebuild.types.fleet_proxy_rule_entities
73
+
74
+ out["entities"] = (
75
+ capo_codebuild.types.fleet_proxy_rule_entities.deserialize_aws_json_1_1(
76
+ data["entities"]
77
+ )
78
+ )
79
+ else:
80
+ raise DeserializationError("FleetProxyRule.entities required")
81
+ return out
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetProxyRuleBehavior``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetProxyRuleBehavior: TypeAlias = Literal[
6
+ "ALLOW_ALL",
7
+ "DENY_ALL",
8
+ ]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetProxyRuleBehavior) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: str) -> FleetProxyRuleBehavior:
17
+ return cast(FleetProxyRuleBehavior, data)
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetProxyRuleEffectType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetProxyRuleEffectType: TypeAlias = Literal[
6
+ "ALLOW",
7
+ "DENY",
8
+ ]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetProxyRuleEffectType) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: str) -> FleetProxyRuleEffectType:
17
+ return cast(FleetProxyRuleEffectType, data)
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetProxyRuleEntities``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.string
7
+
8
+ FleetProxyRuleEntities: TypeAlias = list["capo_codebuild.types.string.String"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetProxyRuleEntities) -> list:
13
+ return list(value)
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: list) -> FleetProxyRuleEntities:
17
+ return [item for item in data if item is not None]
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetProxyRuleType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetProxyRuleType: TypeAlias = Literal[
6
+ "DOMAIN",
7
+ "IP",
8
+ ]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: FleetProxyRuleType) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: str) -> FleetProxyRuleType:
17
+ return cast(FleetProxyRuleType, data)
@@ -0,0 +1,31 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetProxyRules``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.fleet_proxy_rule
7
+
8
+ FleetProxyRules: TypeAlias = list[
9
+ "capo_codebuild.types.fleet_proxy_rule.FleetProxyRule"
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: FleetProxyRules) -> list:
15
+ import capo_codebuild.types.fleet_proxy_rule
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(capo_codebuild.types.fleet_proxy_rule.serialize_aws_json_1_1(item))
20
+ return out
21
+
22
+
23
+ def deserialize_aws_json_1_1(data: list) -> FleetProxyRules:
24
+ import capo_codebuild.types.fleet_proxy_rule
25
+
26
+ out: FleetProxyRules = []
27
+ for item in data:
28
+ if item is None:
29
+ continue
30
+ out.append(capo_codebuild.types.fleet_proxy_rule.deserialize_aws_json_1_1(item))
31
+ return out
@@ -0,0 +1,14 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetScalingMetricType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetScalingMetricType: TypeAlias = Literal["FLEET_UTILIZATION_RATE",]
6
+
7
+
8
+ # --- awsJson1_1 ser/de ---
9
+ def serialize_aws_json_1_1(value: FleetScalingMetricType) -> str:
10
+ return value
11
+
12
+
13
+ def deserialize_aws_json_1_1(data: str) -> FleetScalingMetricType:
14
+ return cast(FleetScalingMetricType, data)
@@ -0,0 +1,14 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetScalingType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetScalingType: TypeAlias = Literal["TARGET_TRACKING_SCALING",]
6
+
7
+
8
+ # --- awsJson1_1 ser/de ---
9
+ def serialize_aws_json_1_1(value: FleetScalingType) -> str:
10
+ return value
11
+
12
+
13
+ def deserialize_aws_json_1_1(data: str) -> FleetScalingType:
14
+ return cast(FleetScalingType, data)
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetSortByType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ FleetSortByType: TypeAlias = Literal[
6
+ "NAME",
7
+ "CREATED_TIME",
8
+ "LAST_MODIFIED_TIME",
9
+ ]
10
+
11
+
12
+ # --- awsJson1_1 ser/de ---
13
+ def serialize_aws_json_1_1(value: FleetSortByType) -> str:
14
+ return value
15
+
16
+
17
+ def deserialize_aws_json_1_1(data: str) -> FleetSortByType:
18
+ return cast(FleetSortByType, data)
@@ -0,0 +1,64 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#FleetStatus``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codebuild.types.fleet_context_code
9
+ import capo_codebuild.types.fleet_status_code
10
+ import capo_codebuild.types.string
11
+
12
+
13
+ class FleetStatus(TypedDict, closed=True):
14
+ status_code: NotRequired["capo_codebuild.types.fleet_status_code.FleetStatusCode"]
15
+ """<p>The status code of the compute fleet. Valid values include:</p> <ul> <li> <p> <code>CREATING</code>: The compute fleet is being created.</p> </li> <li> <p> <code>UPDATING</code>: The compute fleet is being updated.</p> </li> <li> <p> <code>ROTATING</code>: The compute fleet is being rotated.</p> </li> <li> <p> <code>PENDING_DELETION</code>: The compute fleet is pending deletion.</p> </li> <li> <p> <code>DELETING</code>: The compute fleet is being deleted.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The compute fleet has failed to create.</p> </li> <li> <p> <code>UPDATE_ROLLBACK_FAILED</code>: The compute fleet has failed to update and could not rollback to previous state.</p> </li> <li> <p> <code>ACTIVE</code>: The compute fleet has succeeded and is active.</p> </li> </ul>"""
16
+ context: NotRequired["capo_codebuild.types.fleet_context_code.FleetContextCode"]
17
+ """<p>Additional information about a compute fleet. Valid values include:</p> <ul> <li> <p> <code>CREATE_FAILED</code>: The compute fleet has failed to create.</p> </li> <li> <p> <code>UPDATE_FAILED</code>: The compute fleet has failed to update.</p> </li> </ul>"""
18
+ message: NotRequired["capo_codebuild.types.string.String"]
19
+ """<p>A message associated with the status of a compute fleet.</p>"""
20
+
21
+
22
+ # --- awsJson1_1 ser/de ---
23
+ def serialize_aws_json_1_1(value: FleetStatus) -> dict:
24
+ out: dict = {}
25
+ if "status_code" in value:
26
+ import capo_codebuild.types.fleet_status_code
27
+
28
+ out["statusCode"] = (
29
+ capo_codebuild.types.fleet_status_code.serialize_aws_json_1_1(
30
+ value["status_code"]
31
+ )
32
+ )
33
+ if "context" in value:
34
+ import capo_codebuild.types.fleet_context_code
35
+
36
+ out["context"] = capo_codebuild.types.fleet_context_code.serialize_aws_json_1_1(
37
+ value["context"]
38
+ )
39
+ if "message" in value:
40
+ out["message"] = value["message"]
41
+ return out
42
+
43
+
44
+ def deserialize_aws_json_1_1(data: dict) -> FleetStatus:
45
+ out: FleetStatus = {} # type: ignore[typeddict-item]
46
+ if data.get("statusCode") is not None:
47
+ import capo_codebuild.types.fleet_status_code
48
+
49
+ out["status_code"] = (
50
+ capo_codebuild.types.fleet_status_code.deserialize_aws_json_1_1(
51
+ data["statusCode"]
52
+ )
53
+ )
54
+ if data.get("context") is not None:
55
+ import capo_codebuild.types.fleet_context_code
56
+
57
+ out["context"] = (
58
+ capo_codebuild.types.fleet_context_code.deserialize_aws_json_1_1(
59
+ data["context"]
60
+ )
61
+ )
62
+ if data.get("message") is not None:
63
+ out["message"] = data["message"]
64
+ return out