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,86 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectBuildBatchConfig``."""
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.batch_report_mode_type
9
+ import capo_codebuild.types.batch_restrictions
10
+ import capo_codebuild.types.non_empty_string
11
+ import capo_codebuild.types.wrapper_boolean
12
+ import capo_codebuild.types.wrapper_int
13
+
14
+
15
+ class ProjectBuildBatchConfig(TypedDict, closed=True):
16
+ service_role: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
17
+ """<p>Specifies the service role ARN for the batch build project.</p>"""
18
+ combine_artifacts: NotRequired[
19
+ "capo_codebuild.types.wrapper_boolean.WrapperBoolean"
20
+ ]
21
+ """<p>Specifies if the build artifacts for the batch build should be combined into a single artifact location.</p>"""
22
+ restrictions: NotRequired[
23
+ "capo_codebuild.types.batch_restrictions.BatchRestrictions"
24
+ ]
25
+ """<p>A <code>BatchRestrictions</code> object that specifies the restrictions for the batch build.</p>"""
26
+ timeout_in_mins: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
27
+ """<p>Specifies the maximum amount of time, in minutes, that the batch build must be completed in.</p>"""
28
+ batch_report_mode: NotRequired[
29
+ "capo_codebuild.types.batch_report_mode_type.BatchReportModeType"
30
+ ]
31
+ """<p>Specifies how build status reports are sent to the source provider for the batch build. This property is only used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is configured to report build statuses to the source provider.</p> <dl> <dt>REPORT_AGGREGATED_BATCH</dt> <dd> <p>(Default) Aggregate all of the build statuses into a single status report.</p> </dd> <dt>REPORT_INDIVIDUAL_BUILDS</dt> <dd> <p>Send a separate status report for each individual build.</p> </dd> </dl>"""
32
+
33
+
34
+ # --- awsJson1_1 ser/de ---
35
+ def serialize_aws_json_1_1(value: ProjectBuildBatchConfig) -> dict:
36
+ out: dict = {}
37
+ if "service_role" in value:
38
+ out["serviceRole"] = value["service_role"]
39
+ if "combine_artifacts" in value:
40
+ out["combineArtifacts"] = value["combine_artifacts"]
41
+ if "restrictions" in value:
42
+ import capo_codebuild.types.batch_restrictions
43
+
44
+ out["restrictions"] = (
45
+ capo_codebuild.types.batch_restrictions.serialize_aws_json_1_1(
46
+ value["restrictions"]
47
+ )
48
+ )
49
+ if "timeout_in_mins" in value:
50
+ out["timeoutInMins"] = value["timeout_in_mins"]
51
+ if "batch_report_mode" in value:
52
+ import capo_codebuild.types.batch_report_mode_type
53
+
54
+ out["batchReportMode"] = (
55
+ capo_codebuild.types.batch_report_mode_type.serialize_aws_json_1_1(
56
+ value["batch_report_mode"]
57
+ )
58
+ )
59
+ return out
60
+
61
+
62
+ def deserialize_aws_json_1_1(data: dict) -> ProjectBuildBatchConfig:
63
+ out: ProjectBuildBatchConfig = {} # type: ignore[typeddict-item]
64
+ if data.get("serviceRole") is not None:
65
+ out["service_role"] = data["serviceRole"]
66
+ if data.get("combineArtifacts") is not None:
67
+ out["combine_artifacts"] = data["combineArtifacts"]
68
+ if data.get("restrictions") is not None:
69
+ import capo_codebuild.types.batch_restrictions
70
+
71
+ out["restrictions"] = (
72
+ capo_codebuild.types.batch_restrictions.deserialize_aws_json_1_1(
73
+ data["restrictions"]
74
+ )
75
+ )
76
+ if data.get("timeoutInMins") is not None:
77
+ out["timeout_in_mins"] = data["timeoutInMins"]
78
+ if data.get("batchReportMode") is not None:
79
+ import capo_codebuild.types.batch_report_mode_type
80
+
81
+ out["batch_report_mode"] = (
82
+ capo_codebuild.types.batch_report_mode_type.deserialize_aws_json_1_1(
83
+ data["batchReportMode"]
84
+ )
85
+ )
86
+ return out
@@ -0,0 +1,67 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectCache``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codebuild.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codebuild.types.cache_type
11
+ import capo_codebuild.types.project_cache_modes
12
+ import capo_codebuild.types.string
13
+
14
+
15
+ class ProjectCache(TypedDict, closed=True):
16
+ type: "capo_codebuild.types.cache_type.CacheType"
17
+ """<p>The type of cache used by the build project. Valid values include:</p> <ul> <li> <p> <code>NO_CACHE</code>: The build project does not use any cache.</p> </li> <li> <p> <code>S3</code>: The build project reads and writes from and to S3.</p> </li> <li> <p> <code>LOCAL</code>: The build project stores a cache locally on a build host that is only available to that build host.</p> </li> </ul>"""
18
+ location: NotRequired["capo_codebuild.types.string.String"]
19
+ """<p>Information about the cache location: </p> <ul> <li> <p> <code>NO_CACHE</code> or <code>LOCAL</code>: This value is ignored.</p> </li> <li> <p> <code>S3</code>: This is the S3 bucket name/prefix.</p> </li> </ul>"""
20
+ modes: NotRequired["capo_codebuild.types.project_cache_modes.ProjectCacheModes"]
21
+ """<p>An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for <code>LOCAL</code> cache types.</p> <p>Possible values are:</p> <dl> <dt>LOCAL_SOURCE_CACHE</dt> <dd> <p>Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored. </p> </dd> <dt>LOCAL_DOCKER_LAYER_CACHE</dt> <dd> <p>Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network. </p> <note> <ul> <li> <p>You can use a Docker layer cache in the Linux environment only. </p> </li> <li> <p>The <code>privileged</code> flag must be set so that your project has the required Docker permissions. </p> </li> <li> <p>You should consider the security implications before you use a Docker layer cache. </p> </li> </ul> </note> </dd> <dt>LOCAL_CUSTOM_CACHE</dt> <dd> <p>Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache: </p> <ul> <li> <p>Only directories can be specified for caching. You cannot specify individual files. </p> </li> <li> <p>Symlinks are used to reference cached directories. </p> </li> <li> <p>Cached directories are linked to your build before it downloads its project sources. Cached items are overridden if a source item has the same name. Directories are specified using cache paths in the buildspec file. </p> </li> </ul> </dd> </dl>"""
22
+ cache_namespace: NotRequired["capo_codebuild.types.string.String"]
23
+ r"""<p>Defines the scope of the cache. You can use this namespace to share a cache across multiple projects. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/caching-s3.html#caching-s3-sharing\">Cache sharing between projects</a> in the <i>CodeBuild User Guide</i>.</p>"""
24
+
25
+
26
+ # --- awsJson1_1 ser/de ---
27
+ def serialize_aws_json_1_1(value: ProjectCache) -> dict:
28
+ out: dict = {}
29
+ import capo_codebuild.types.cache_type
30
+
31
+ out["type"] = capo_codebuild.types.cache_type.serialize_aws_json_1_1(value["type"])
32
+ if "location" in value:
33
+ out["location"] = value["location"]
34
+ if "modes" in value:
35
+ import capo_codebuild.types.project_cache_modes
36
+
37
+ out["modes"] = capo_codebuild.types.project_cache_modes.serialize_aws_json_1_1(
38
+ value["modes"]
39
+ )
40
+ if "cache_namespace" in value:
41
+ out["cacheNamespace"] = value["cache_namespace"]
42
+ return out
43
+
44
+
45
+ def deserialize_aws_json_1_1(data: dict) -> ProjectCache:
46
+ out: ProjectCache = {} # type: ignore[typeddict-item]
47
+ if data.get("type") is not None:
48
+ import capo_codebuild.types.cache_type
49
+
50
+ out["type"] = capo_codebuild.types.cache_type.deserialize_aws_json_1_1(
51
+ data["type"]
52
+ )
53
+ else:
54
+ raise DeserializationError("ProjectCache.type required")
55
+ if data.get("location") is not None:
56
+ out["location"] = data["location"]
57
+ if data.get("modes") is not None:
58
+ import capo_codebuild.types.project_cache_modes
59
+
60
+ out["modes"] = (
61
+ capo_codebuild.types.project_cache_modes.deserialize_aws_json_1_1(
62
+ data["modes"]
63
+ )
64
+ )
65
+ if data.get("cacheNamespace") is not None:
66
+ out["cache_namespace"] = data["cacheNamespace"]
67
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectCacheModes``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.cache_mode
7
+
8
+ ProjectCacheModes: TypeAlias = list["capo_codebuild.types.cache_mode.CacheMode"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: ProjectCacheModes) -> list:
13
+ import capo_codebuild.types.cache_mode
14
+
15
+ out: list = []
16
+ for item in value:
17
+ out.append(capo_codebuild.types.cache_mode.serialize_aws_json_1_1(item))
18
+ return out
19
+
20
+
21
+ def deserialize_aws_json_1_1(data: list) -> ProjectCacheModes:
22
+ import capo_codebuild.types.cache_mode
23
+
24
+ out: ProjectCacheModes = []
25
+ for item in data:
26
+ if item is None:
27
+ continue
28
+ out.append(capo_codebuild.types.cache_mode.deserialize_aws_json_1_1(item))
29
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectDescription``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ ProjectDescription: TypeAlias = str
@@ -0,0 +1,195 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectEnvironment``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codebuild.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codebuild.types.compute_configuration
11
+ import capo_codebuild.types.compute_type
12
+ import capo_codebuild.types.docker_server
13
+ import capo_codebuild.types.environment_type
14
+ import capo_codebuild.types.environment_variables
15
+ import capo_codebuild.types.image_pull_credentials_type
16
+ import capo_codebuild.types.non_empty_string
17
+ import capo_codebuild.types.project_fleet
18
+ import capo_codebuild.types.registry_credential
19
+ import capo_codebuild.types.string
20
+ import capo_codebuild.types.wrapper_boolean
21
+
22
+
23
+ class ProjectEnvironment(TypedDict, closed=True):
24
+ type: "capo_codebuild.types.environment_type.EnvironmentType"
25
+ r"""<p>The type of build environment to use for related builds.</p> <note> <p>If you're using compute fleets during project creation, <code>type</code> will be ignored.</p> </note> <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>"""
26
+ image: "capo_codebuild.types.non_empty_string.NonEmptyString"
27
+ r"""<p>The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats:</p> <ul> <li> <p>For an image tag: <code><registry>/<repository>:<tag></code>. For example, in the Docker repository that CodeBuild uses to manage its Docker images, this would be <code>aws/codebuild/standard:4.0</code>. </p> </li> <li> <p>For an image digest: <code><registry>/<repository>@<digest></code>. For example, to specify an image with the digest \"sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf,\" use <code><registry>/<repository>@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf</code>.</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html\">Docker images provided by CodeBuild</a> in the <i>CodeBuild user guide</i>.</p>"""
28
+ compute_type: "capo_codebuild.types.compute_type.ComputeType"
29
+ r"""<p>Information about the compute resources the build project 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>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>"""
30
+ compute_configuration: NotRequired[
31
+ "capo_codebuild.types.compute_configuration.ComputeConfiguration"
32
+ ]
33
+ """<p>The compute configuration of the build project. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>"""
34
+ fleet: NotRequired["capo_codebuild.types.project_fleet.ProjectFleet"]
35
+ """<p>A ProjectFleet object to use for this build project.</p>"""
36
+ environment_variables: NotRequired[
37
+ "capo_codebuild.types.environment_variables.EnvironmentVariables"
38
+ ]
39
+ """<p>A set of environment variables to make available to builds for this build project.</p>"""
40
+ privileged_mode: NotRequired["capo_codebuild.types.wrapper_boolean.WrapperBoolean"]
41
+ r"""<p>Enables running the Docker daemon inside a Docker container. Set to true only if the build project is used to build Docker images. Otherwise, a build that attempts to interact with the Docker daemon fails. The default setting is <code>false</code>.</p> <p>You can initialize the Docker daemon during the install phase of your build by adding one of the following sets of commands to the install phase of your buildspec file:</p> <p>If the operating system's base image is Ubuntu Linux:</p> <p> <code>- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&</code> </p> <p> <code>- timeout 15 sh -c \"until docker info; do echo .; sleep 1; done\"</code> </p> <p>If the operating system's base image is Alpine Linux and the previous command does not work, add the <code>-t</code> argument to <code>timeout</code>:</p> <p> <code>- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&</code> </p> <p> <code>- timeout -t 15 sh -c \"until docker info; do echo .; sleep 1; done\"</code> </p>"""
42
+ certificate: NotRequired["capo_codebuild.types.string.String"]
43
+ r"""<p>The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate\">certificate</a> in the <i>CodeBuild User Guide</i>.</p>"""
44
+ registry_credential: NotRequired[
45
+ "capo_codebuild.types.registry_credential.RegistryCredential"
46
+ ]
47
+ """<p> The credentials for access to a private registry.</p>"""
48
+ image_pull_credentials_type: NotRequired[
49
+ "capo_codebuild.types.image_pull_credentials_type.ImagePullCredentialsType"
50
+ ]
51
+ """<p> The type of credentials CodeBuild uses to pull images in your build. There are two valid values: </p> <ul> <li> <p> <code>CODEBUILD</code> specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild service principal. </p> </li> <li> <p> <code>SERVICE_ROLE</code> specifies that CodeBuild uses your build project's service role. </p> </li> </ul> <p> When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an CodeBuild curated image, you must use CODEBUILD credentials. </p>"""
52
+ docker_server: NotRequired["capo_codebuild.types.docker_server.DockerServer"]
53
+ """<p>A DockerServer object to use for this build project.</p>"""
54
+
55
+
56
+ # --- awsJson1_1 ser/de ---
57
+ def serialize_aws_json_1_1(value: ProjectEnvironment) -> dict:
58
+ out: dict = {}
59
+ import capo_codebuild.types.environment_type
60
+
61
+ out["type"] = capo_codebuild.types.environment_type.serialize_aws_json_1_1(
62
+ value["type"]
63
+ )
64
+ out["image"] = value["image"]
65
+ import capo_codebuild.types.compute_type
66
+
67
+ out["computeType"] = capo_codebuild.types.compute_type.serialize_aws_json_1_1(
68
+ value["compute_type"]
69
+ )
70
+ if "compute_configuration" in value:
71
+ import capo_codebuild.types.compute_configuration
72
+
73
+ out["computeConfiguration"] = (
74
+ capo_codebuild.types.compute_configuration.serialize_aws_json_1_1(
75
+ value["compute_configuration"]
76
+ )
77
+ )
78
+ if "fleet" in value:
79
+ import capo_codebuild.types.project_fleet
80
+
81
+ out["fleet"] = capo_codebuild.types.project_fleet.serialize_aws_json_1_1(
82
+ value["fleet"]
83
+ )
84
+ if "environment_variables" in value:
85
+ import capo_codebuild.types.environment_variables
86
+
87
+ out["environmentVariables"] = (
88
+ capo_codebuild.types.environment_variables.serialize_aws_json_1_1(
89
+ value["environment_variables"]
90
+ )
91
+ )
92
+ if "privileged_mode" in value:
93
+ out["privilegedMode"] = value["privileged_mode"]
94
+ if "certificate" in value:
95
+ out["certificate"] = value["certificate"]
96
+ if "registry_credential" in value:
97
+ import capo_codebuild.types.registry_credential
98
+
99
+ out["registryCredential"] = (
100
+ capo_codebuild.types.registry_credential.serialize_aws_json_1_1(
101
+ value["registry_credential"]
102
+ )
103
+ )
104
+ if "image_pull_credentials_type" in value:
105
+ import capo_codebuild.types.image_pull_credentials_type
106
+
107
+ out["imagePullCredentialsType"] = (
108
+ capo_codebuild.types.image_pull_credentials_type.serialize_aws_json_1_1(
109
+ value["image_pull_credentials_type"]
110
+ )
111
+ )
112
+ if "docker_server" in value:
113
+ import capo_codebuild.types.docker_server
114
+
115
+ out["dockerServer"] = capo_codebuild.types.docker_server.serialize_aws_json_1_1(
116
+ value["docker_server"]
117
+ )
118
+ return out
119
+
120
+
121
+ def deserialize_aws_json_1_1(data: dict) -> ProjectEnvironment:
122
+ out: ProjectEnvironment = {} # type: ignore[typeddict-item]
123
+ if data.get("type") is not None:
124
+ import capo_codebuild.types.environment_type
125
+
126
+ out["type"] = capo_codebuild.types.environment_type.deserialize_aws_json_1_1(
127
+ data["type"]
128
+ )
129
+ else:
130
+ raise DeserializationError("ProjectEnvironment.type required")
131
+ if data.get("image") is not None:
132
+ out["image"] = data["image"]
133
+ else:
134
+ raise DeserializationError("ProjectEnvironment.image required")
135
+ if data.get("computeType") is not None:
136
+ import capo_codebuild.types.compute_type
137
+
138
+ out["compute_type"] = (
139
+ capo_codebuild.types.compute_type.deserialize_aws_json_1_1(
140
+ data["computeType"]
141
+ )
142
+ )
143
+ else:
144
+ raise DeserializationError("ProjectEnvironment.compute_type required")
145
+ if data.get("computeConfiguration") is not None:
146
+ import capo_codebuild.types.compute_configuration
147
+
148
+ out["compute_configuration"] = (
149
+ capo_codebuild.types.compute_configuration.deserialize_aws_json_1_1(
150
+ data["computeConfiguration"]
151
+ )
152
+ )
153
+ if data.get("fleet") is not None:
154
+ import capo_codebuild.types.project_fleet
155
+
156
+ out["fleet"] = capo_codebuild.types.project_fleet.deserialize_aws_json_1_1(
157
+ data["fleet"]
158
+ )
159
+ if data.get("environmentVariables") is not None:
160
+ import capo_codebuild.types.environment_variables
161
+
162
+ out["environment_variables"] = (
163
+ capo_codebuild.types.environment_variables.deserialize_aws_json_1_1(
164
+ data["environmentVariables"]
165
+ )
166
+ )
167
+ if data.get("privilegedMode") is not None:
168
+ out["privileged_mode"] = data["privilegedMode"]
169
+ if data.get("certificate") is not None:
170
+ out["certificate"] = data["certificate"]
171
+ if data.get("registryCredential") is not None:
172
+ import capo_codebuild.types.registry_credential
173
+
174
+ out["registry_credential"] = (
175
+ capo_codebuild.types.registry_credential.deserialize_aws_json_1_1(
176
+ data["registryCredential"]
177
+ )
178
+ )
179
+ if data.get("imagePullCredentialsType") is not None:
180
+ import capo_codebuild.types.image_pull_credentials_type
181
+
182
+ out["image_pull_credentials_type"] = (
183
+ capo_codebuild.types.image_pull_credentials_type.deserialize_aws_json_1_1(
184
+ data["imagePullCredentialsType"]
185
+ )
186
+ )
187
+ if data.get("dockerServer") is not None:
188
+ import capo_codebuild.types.docker_server
189
+
190
+ out["docker_server"] = (
191
+ capo_codebuild.types.docker_server.deserialize_aws_json_1_1(
192
+ data["dockerServer"]
193
+ )
194
+ )
195
+ return out
@@ -0,0 +1,61 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectFileSystemLocation``."""
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.file_system_type
9
+ import capo_codebuild.types.string
10
+
11
+
12
+ class ProjectFileSystemLocation(TypedDict, closed=True):
13
+ type: NotRequired["capo_codebuild.types.file_system_type.FileSystemType"]
14
+ """<p> The type of the file system. The one supported type is <code>EFS</code>. </p>"""
15
+ location: NotRequired["capo_codebuild.types.string.String"]
16
+ """<p>A string that specifies the location of the file system created by Amazon EFS. Its format is <code>efs-dns-name:/directory-path</code>. You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system is <code>fs-abcd1234.efs.us-west-2.amazonaws.com</code>, and its mount directory is <code>my-efs-mount-directory</code>, then the <code>location</code> is <code>fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory</code>. </p> <p>The directory path in the format <code>efs-dns-name:/directory-path</code> is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system. </p>"""
17
+ mount_point: NotRequired["capo_codebuild.types.string.String"]
18
+ """<p>The location in the container where you mount the file system. </p>"""
19
+ identifier: NotRequired["capo_codebuild.types.string.String"]
20
+ """<p>The name used to access a file system created by Amazon EFS. CodeBuild creates an environment variable by appending the <code>identifier</code> in all capital letters to <code>CODEBUILD_</code>. For example, if you specify <code>my_efs</code> for <code>identifier</code>, a new environment variable is create named <code>CODEBUILD_MY_EFS</code>. </p> <p> The <code>identifier</code> is used to mount your file system. </p>"""
21
+ mount_options: NotRequired["capo_codebuild.types.string.String"]
22
+ r"""<p> The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild are <code>nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2</code>. For more information, see <a href=\"https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-nfs-mount-settings.html\">Recommended NFS Mount Options</a>. </p>"""
23
+
24
+
25
+ # --- awsJson1_1 ser/de ---
26
+ def serialize_aws_json_1_1(value: ProjectFileSystemLocation) -> dict:
27
+ out: dict = {}
28
+ if "type" in value:
29
+ import capo_codebuild.types.file_system_type
30
+
31
+ out["type"] = capo_codebuild.types.file_system_type.serialize_aws_json_1_1(
32
+ value["type"]
33
+ )
34
+ if "location" in value:
35
+ out["location"] = value["location"]
36
+ if "mount_point" in value:
37
+ out["mountPoint"] = value["mount_point"]
38
+ if "identifier" in value:
39
+ out["identifier"] = value["identifier"]
40
+ if "mount_options" in value:
41
+ out["mountOptions"] = value["mount_options"]
42
+ return out
43
+
44
+
45
+ def deserialize_aws_json_1_1(data: dict) -> ProjectFileSystemLocation:
46
+ out: ProjectFileSystemLocation = {} # type: ignore[typeddict-item]
47
+ if data.get("type") is not None:
48
+ import capo_codebuild.types.file_system_type
49
+
50
+ out["type"] = capo_codebuild.types.file_system_type.deserialize_aws_json_1_1(
51
+ data["type"]
52
+ )
53
+ if data.get("location") is not None:
54
+ out["location"] = data["location"]
55
+ if data.get("mountPoint") is not None:
56
+ out["mount_point"] = data["mountPoint"]
57
+ if data.get("identifier") is not None:
58
+ out["identifier"] = data["identifier"]
59
+ if data.get("mountOptions") is not None:
60
+ out["mount_options"] = data["mountOptions"]
61
+ return out
@@ -0,0 +1,39 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectFileSystemLocations``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.project_file_system_location
7
+
8
+ ProjectFileSystemLocations: TypeAlias = list[
9
+ "capo_codebuild.types.project_file_system_location.ProjectFileSystemLocation"
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: ProjectFileSystemLocations) -> list:
15
+ import capo_codebuild.types.project_file_system_location
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(
20
+ capo_codebuild.types.project_file_system_location.serialize_aws_json_1_1(
21
+ item
22
+ )
23
+ )
24
+ return out
25
+
26
+
27
+ def deserialize_aws_json_1_1(data: list) -> ProjectFileSystemLocations:
28
+ import capo_codebuild.types.project_file_system_location
29
+
30
+ out: ProjectFileSystemLocations = []
31
+ for item in data:
32
+ if item is None:
33
+ continue
34
+ out.append(
35
+ capo_codebuild.types.project_file_system_location.deserialize_aws_json_1_1(
36
+ item
37
+ )
38
+ )
39
+ return out
@@ -0,0 +1,28 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectFleet``."""
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.string
9
+
10
+
11
+ class ProjectFleet(TypedDict, closed=True):
12
+ fleet_arn: NotRequired["capo_codebuild.types.string.String"]
13
+ """<p>Specifies the compute fleet ARN for the build project.</p>"""
14
+
15
+
16
+ # --- awsJson1_1 ser/de ---
17
+ def serialize_aws_json_1_1(value: ProjectFleet) -> dict:
18
+ out: dict = {}
19
+ if "fleet_arn" in value:
20
+ out["fleetArn"] = value["fleet_arn"]
21
+ return out
22
+
23
+
24
+ def deserialize_aws_json_1_1(data: dict) -> ProjectFleet:
25
+ out: ProjectFleet = {} # type: ignore[typeddict-item]
26
+ if data.get("fleetArn") is not None:
27
+ out["fleet_arn"] = data["fleetArn"]
28
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectName``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ ProjectName: TypeAlias = str
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectNames``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.non_empty_string
7
+
8
+ ProjectNames: TypeAlias = list["capo_codebuild.types.non_empty_string.NonEmptyString"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: ProjectNames) -> list:
13
+ return list(value)
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: list) -> ProjectNames:
17
+ return [item for item in data if item is not None]
@@ -0,0 +1,35 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectSecondarySourceVersions``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.project_source_version
7
+
8
+ ProjectSecondarySourceVersions: TypeAlias = list[
9
+ "capo_codebuild.types.project_source_version.ProjectSourceVersion"
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: ProjectSecondarySourceVersions) -> list:
15
+ import capo_codebuild.types.project_source_version
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(
20
+ capo_codebuild.types.project_source_version.serialize_aws_json_1_1(item)
21
+ )
22
+ return out
23
+
24
+
25
+ def deserialize_aws_json_1_1(data: list) -> ProjectSecondarySourceVersions:
26
+ import capo_codebuild.types.project_source_version
27
+
28
+ out: ProjectSecondarySourceVersions = []
29
+ for item in data:
30
+ if item is None:
31
+ continue
32
+ out.append(
33
+ capo_codebuild.types.project_source_version.deserialize_aws_json_1_1(item)
34
+ )
35
+ return out
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectSortByType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ ProjectSortByType: 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: ProjectSortByType) -> str:
14
+ return value
15
+
16
+
17
+ def deserialize_aws_json_1_1(data: str) -> ProjectSortByType:
18
+ return cast(ProjectSortByType, data)