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,405 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#Project``."""
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.build_time_out
9
+ import capo_codebuild.types.logs_config
10
+ import capo_codebuild.types.non_empty_string
11
+ import capo_codebuild.types.project_artifacts
12
+ import capo_codebuild.types.project_artifacts_list
13
+ import capo_codebuild.types.project_badge
14
+ import capo_codebuild.types.project_build_batch_config
15
+ import capo_codebuild.types.project_cache
16
+ import capo_codebuild.types.project_description
17
+ import capo_codebuild.types.project_environment
18
+ import capo_codebuild.types.project_file_system_locations
19
+ import capo_codebuild.types.project_name
20
+ import capo_codebuild.types.project_secondary_source_versions
21
+ import capo_codebuild.types.project_source
22
+ import capo_codebuild.types.project_sources
23
+ import capo_codebuild.types.project_visibility_type
24
+ import capo_codebuild.types.string
25
+ import capo_codebuild.types.tag_list
26
+ import capo_codebuild.types.time_out
27
+ import capo_codebuild.types.timestamp
28
+ import capo_codebuild.types.vpc_config
29
+ import capo_codebuild.types.webhook
30
+ import capo_codebuild.types.wrapper_int
31
+
32
+
33
+ class Project(TypedDict, closed=True):
34
+ name: NotRequired["capo_codebuild.types.project_name.ProjectName"]
35
+ """<p>The name of the build project.</p>"""
36
+ arn: NotRequired["capo_codebuild.types.string.String"]
37
+ """<p>The Amazon Resource Name (ARN) of the build project.</p>"""
38
+ description: NotRequired[
39
+ "capo_codebuild.types.project_description.ProjectDescription"
40
+ ]
41
+ """<p>A description that makes the build project easy to identify.</p>"""
42
+ source: NotRequired["capo_codebuild.types.project_source.ProjectSource"]
43
+ """<p>Information about the build input source code for this build project.</p>"""
44
+ secondary_sources: NotRequired[
45
+ "capo_codebuild.types.project_sources.ProjectSources"
46
+ ]
47
+ """<p>An array of <code>ProjectSource</code> objects. </p>"""
48
+ source_version: NotRequired["capo_codebuild.types.string.String"]
49
+ r"""<p>A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:</p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For GitLab: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level). </p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html\">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>"""
50
+ secondary_source_versions: NotRequired[
51
+ "capo_codebuild.types.project_secondary_source_versions.ProjectSecondarySourceVersions"
52
+ ]
53
+ """<p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take over these <code>secondarySourceVersions</code> (at the project level). </p>"""
54
+ artifacts: NotRequired["capo_codebuild.types.project_artifacts.ProjectArtifacts"]
55
+ """<p>Information about the build output artifacts for the build project.</p>"""
56
+ secondary_artifacts: NotRequired[
57
+ "capo_codebuild.types.project_artifacts_list.ProjectArtifactsList"
58
+ ]
59
+ """<p>An array of <code>ProjectArtifacts</code> objects. </p>"""
60
+ cache: NotRequired["capo_codebuild.types.project_cache.ProjectCache"]
61
+ """<p>Information about the cache for the build project.</p>"""
62
+ environment: NotRequired[
63
+ "capo_codebuild.types.project_environment.ProjectEnvironment"
64
+ ]
65
+ """<p>Information about the build environment for this build project.</p>"""
66
+ service_role: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
67
+ """<p>The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>"""
68
+ timeout_in_minutes: NotRequired["capo_codebuild.types.build_time_out.BuildTimeOut"]
69
+ """<p>How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.</p>"""
70
+ queued_timeout_in_minutes: NotRequired["capo_codebuild.types.time_out.TimeOut"]
71
+ """<p>The number of minutes a build is allowed to be queued before it times out. </p>"""
72
+ encryption_key: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
73
+ """<p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></code>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3). </p>"""
74
+ tags: NotRequired["capo_codebuild.types.tag_list.TagList"]
75
+ """<p>A list of tag key and value pairs associated with this build project.</p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>"""
76
+ created: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
77
+ """<p>When the build project was created, expressed in Unix time format.</p>"""
78
+ last_modified: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
79
+ """<p>When the build project's settings were last modified, expressed in Unix time format.</p>"""
80
+ webhook: NotRequired["capo_codebuild.types.webhook.Webhook"]
81
+ """<p>Information about a webhook that connects repository events to a build project in CodeBuild.</p>"""
82
+ vpc_config: NotRequired["capo_codebuild.types.vpc_config.VpcConfig"]
83
+ """<p>Information about the VPC configuration that CodeBuild accesses.</p>"""
84
+ badge: NotRequired["capo_codebuild.types.project_badge.ProjectBadge"]
85
+ """<p>Information about the build badge for the build project.</p>"""
86
+ logs_config: NotRequired["capo_codebuild.types.logs_config.LogsConfig"]
87
+ """<p>Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both. </p>"""
88
+ file_system_locations: NotRequired[
89
+ "capo_codebuild.types.project_file_system_locations.ProjectFileSystemLocations"
90
+ ]
91
+ """<p> An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>"""
92
+ build_batch_config: NotRequired[
93
+ "capo_codebuild.types.project_build_batch_config.ProjectBuildBatchConfig"
94
+ ]
95
+ """<p>A <a>ProjectBuildBatchConfig</a> object that defines the batch build options for the project.</p>"""
96
+ concurrent_build_limit: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
97
+ """<p>The maximum number of concurrent builds that are allowed for this project.</p> <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p>"""
98
+ project_visibility: NotRequired[
99
+ "capo_codebuild.types.project_visibility_type.ProjectVisibilityType"
100
+ ]
101
+ public_project_alias: NotRequired[
102
+ "capo_codebuild.types.non_empty_string.NonEmptyString"
103
+ ]
104
+ """<p>Contains the project identifier used with the public build APIs. </p>"""
105
+ resource_access_role: NotRequired[
106
+ "capo_codebuild.types.non_empty_string.NonEmptyString"
107
+ ]
108
+ """<p>The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.</p>"""
109
+ auto_retry_limit: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
110
+ """<p>The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the <code>RetryBuild</code> API to automatically retry your build for up to 2 additional times.</p>"""
111
+
112
+
113
+ # --- awsJson1_1 ser/de ---
114
+ def serialize_aws_json_1_1(value: Project) -> dict:
115
+ out: dict = {}
116
+ if "name" in value:
117
+ out["name"] = value["name"]
118
+ if "arn" in value:
119
+ out["arn"] = value["arn"]
120
+ if "description" in value:
121
+ out["description"] = value["description"]
122
+ if "source" in value:
123
+ import capo_codebuild.types.project_source
124
+
125
+ out["source"] = capo_codebuild.types.project_source.serialize_aws_json_1_1(
126
+ value["source"]
127
+ )
128
+ if "secondary_sources" in value:
129
+ import capo_codebuild.types.project_sources
130
+
131
+ out["secondarySources"] = (
132
+ capo_codebuild.types.project_sources.serialize_aws_json_1_1(
133
+ value["secondary_sources"]
134
+ )
135
+ )
136
+ if "source_version" in value:
137
+ out["sourceVersion"] = value["source_version"]
138
+ if "secondary_source_versions" in value:
139
+ import capo_codebuild.types.project_secondary_source_versions
140
+
141
+ out["secondarySourceVersions"] = (
142
+ capo_codebuild.types.project_secondary_source_versions.serialize_aws_json_1_1(
143
+ value["secondary_source_versions"]
144
+ )
145
+ )
146
+ if "artifacts" in value:
147
+ import capo_codebuild.types.project_artifacts
148
+
149
+ out["artifacts"] = (
150
+ capo_codebuild.types.project_artifacts.serialize_aws_json_1_1(
151
+ value["artifacts"]
152
+ )
153
+ )
154
+ if "secondary_artifacts" in value:
155
+ import capo_codebuild.types.project_artifacts_list
156
+
157
+ out["secondaryArtifacts"] = (
158
+ capo_codebuild.types.project_artifacts_list.serialize_aws_json_1_1(
159
+ value["secondary_artifacts"]
160
+ )
161
+ )
162
+ if "cache" in value:
163
+ import capo_codebuild.types.project_cache
164
+
165
+ out["cache"] = capo_codebuild.types.project_cache.serialize_aws_json_1_1(
166
+ value["cache"]
167
+ )
168
+ if "environment" in value:
169
+ import capo_codebuild.types.project_environment
170
+
171
+ out["environment"] = (
172
+ capo_codebuild.types.project_environment.serialize_aws_json_1_1(
173
+ value["environment"]
174
+ )
175
+ )
176
+ if "service_role" in value:
177
+ out["serviceRole"] = value["service_role"]
178
+ if "timeout_in_minutes" in value:
179
+ out["timeoutInMinutes"] = value["timeout_in_minutes"]
180
+ if "queued_timeout_in_minutes" in value:
181
+ out["queuedTimeoutInMinutes"] = value["queued_timeout_in_minutes"]
182
+ if "encryption_key" in value:
183
+ out["encryptionKey"] = value["encryption_key"]
184
+ if "tags" in value:
185
+ import capo_codebuild.types.tag_list
186
+
187
+ out["tags"] = capo_codebuild.types.tag_list.serialize_aws_json_1_1(
188
+ value["tags"]
189
+ )
190
+ if "created" in value:
191
+ import capo_codebuild.types.timestamp
192
+
193
+ out["created"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
194
+ value["created"]
195
+ )
196
+ if "last_modified" in value:
197
+ import capo_codebuild.types.timestamp
198
+
199
+ out["lastModified"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
200
+ value["last_modified"]
201
+ )
202
+ if "webhook" in value:
203
+ import capo_codebuild.types.webhook
204
+
205
+ out["webhook"] = capo_codebuild.types.webhook.serialize_aws_json_1_1(
206
+ value["webhook"]
207
+ )
208
+ if "vpc_config" in value:
209
+ import capo_codebuild.types.vpc_config
210
+
211
+ out["vpcConfig"] = capo_codebuild.types.vpc_config.serialize_aws_json_1_1(
212
+ value["vpc_config"]
213
+ )
214
+ if "badge" in value:
215
+ import capo_codebuild.types.project_badge
216
+
217
+ out["badge"] = capo_codebuild.types.project_badge.serialize_aws_json_1_1(
218
+ value["badge"]
219
+ )
220
+ if "logs_config" in value:
221
+ import capo_codebuild.types.logs_config
222
+
223
+ out["logsConfig"] = capo_codebuild.types.logs_config.serialize_aws_json_1_1(
224
+ value["logs_config"]
225
+ )
226
+ if "file_system_locations" in value:
227
+ import capo_codebuild.types.project_file_system_locations
228
+
229
+ out["fileSystemLocations"] = (
230
+ capo_codebuild.types.project_file_system_locations.serialize_aws_json_1_1(
231
+ value["file_system_locations"]
232
+ )
233
+ )
234
+ if "build_batch_config" in value:
235
+ import capo_codebuild.types.project_build_batch_config
236
+
237
+ out["buildBatchConfig"] = (
238
+ capo_codebuild.types.project_build_batch_config.serialize_aws_json_1_1(
239
+ value["build_batch_config"]
240
+ )
241
+ )
242
+ if "concurrent_build_limit" in value:
243
+ out["concurrentBuildLimit"] = value["concurrent_build_limit"]
244
+ if "project_visibility" in value:
245
+ import capo_codebuild.types.project_visibility_type
246
+
247
+ out["projectVisibility"] = (
248
+ capo_codebuild.types.project_visibility_type.serialize_aws_json_1_1(
249
+ value["project_visibility"]
250
+ )
251
+ )
252
+ if "public_project_alias" in value:
253
+ out["publicProjectAlias"] = value["public_project_alias"]
254
+ if "resource_access_role" in value:
255
+ out["resourceAccessRole"] = value["resource_access_role"]
256
+ if "auto_retry_limit" in value:
257
+ out["autoRetryLimit"] = value["auto_retry_limit"]
258
+ return out
259
+
260
+
261
+ def deserialize_aws_json_1_1(data: dict) -> Project:
262
+ out: Project = {} # type: ignore[typeddict-item]
263
+ if data.get("name") is not None:
264
+ out["name"] = data["name"]
265
+ if data.get("arn") is not None:
266
+ out["arn"] = data["arn"]
267
+ if data.get("description") is not None:
268
+ out["description"] = data["description"]
269
+ if data.get("source") is not None:
270
+ import capo_codebuild.types.project_source
271
+
272
+ out["source"] = capo_codebuild.types.project_source.deserialize_aws_json_1_1(
273
+ data["source"]
274
+ )
275
+ if data.get("secondarySources") is not None:
276
+ import capo_codebuild.types.project_sources
277
+
278
+ out["secondary_sources"] = (
279
+ capo_codebuild.types.project_sources.deserialize_aws_json_1_1(
280
+ data["secondarySources"]
281
+ )
282
+ )
283
+ if data.get("sourceVersion") is not None:
284
+ out["source_version"] = data["sourceVersion"]
285
+ if data.get("secondarySourceVersions") is not None:
286
+ import capo_codebuild.types.project_secondary_source_versions
287
+
288
+ out["secondary_source_versions"] = (
289
+ capo_codebuild.types.project_secondary_source_versions.deserialize_aws_json_1_1(
290
+ data["secondarySourceVersions"]
291
+ )
292
+ )
293
+ if data.get("artifacts") is not None:
294
+ import capo_codebuild.types.project_artifacts
295
+
296
+ out["artifacts"] = (
297
+ capo_codebuild.types.project_artifacts.deserialize_aws_json_1_1(
298
+ data["artifacts"]
299
+ )
300
+ )
301
+ if data.get("secondaryArtifacts") is not None:
302
+ import capo_codebuild.types.project_artifacts_list
303
+
304
+ out["secondary_artifacts"] = (
305
+ capo_codebuild.types.project_artifacts_list.deserialize_aws_json_1_1(
306
+ data["secondaryArtifacts"]
307
+ )
308
+ )
309
+ if data.get("cache") is not None:
310
+ import capo_codebuild.types.project_cache
311
+
312
+ out["cache"] = capo_codebuild.types.project_cache.deserialize_aws_json_1_1(
313
+ data["cache"]
314
+ )
315
+ if data.get("environment") is not None:
316
+ import capo_codebuild.types.project_environment
317
+
318
+ out["environment"] = (
319
+ capo_codebuild.types.project_environment.deserialize_aws_json_1_1(
320
+ data["environment"]
321
+ )
322
+ )
323
+ if data.get("serviceRole") is not None:
324
+ out["service_role"] = data["serviceRole"]
325
+ if data.get("timeoutInMinutes") is not None:
326
+ out["timeout_in_minutes"] = data["timeoutInMinutes"]
327
+ if data.get("queuedTimeoutInMinutes") is not None:
328
+ out["queued_timeout_in_minutes"] = data["queuedTimeoutInMinutes"]
329
+ if data.get("encryptionKey") is not None:
330
+ out["encryption_key"] = data["encryptionKey"]
331
+ if data.get("tags") is not None:
332
+ import capo_codebuild.types.tag_list
333
+
334
+ out["tags"] = capo_codebuild.types.tag_list.deserialize_aws_json_1_1(
335
+ data["tags"]
336
+ )
337
+ if data.get("created") is not None:
338
+ import capo_codebuild.types.timestamp
339
+
340
+ out["created"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
341
+ data["created"]
342
+ )
343
+ if data.get("lastModified") is not None:
344
+ import capo_codebuild.types.timestamp
345
+
346
+ out["last_modified"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
347
+ data["lastModified"]
348
+ )
349
+ if data.get("webhook") is not None:
350
+ import capo_codebuild.types.webhook
351
+
352
+ out["webhook"] = capo_codebuild.types.webhook.deserialize_aws_json_1_1(
353
+ data["webhook"]
354
+ )
355
+ if data.get("vpcConfig") is not None:
356
+ import capo_codebuild.types.vpc_config
357
+
358
+ out["vpc_config"] = capo_codebuild.types.vpc_config.deserialize_aws_json_1_1(
359
+ data["vpcConfig"]
360
+ )
361
+ if data.get("badge") is not None:
362
+ import capo_codebuild.types.project_badge
363
+
364
+ out["badge"] = capo_codebuild.types.project_badge.deserialize_aws_json_1_1(
365
+ data["badge"]
366
+ )
367
+ if data.get("logsConfig") is not None:
368
+ import capo_codebuild.types.logs_config
369
+
370
+ out["logs_config"] = capo_codebuild.types.logs_config.deserialize_aws_json_1_1(
371
+ data["logsConfig"]
372
+ )
373
+ if data.get("fileSystemLocations") is not None:
374
+ import capo_codebuild.types.project_file_system_locations
375
+
376
+ out["file_system_locations"] = (
377
+ capo_codebuild.types.project_file_system_locations.deserialize_aws_json_1_1(
378
+ data["fileSystemLocations"]
379
+ )
380
+ )
381
+ if data.get("buildBatchConfig") is not None:
382
+ import capo_codebuild.types.project_build_batch_config
383
+
384
+ out["build_batch_config"] = (
385
+ capo_codebuild.types.project_build_batch_config.deserialize_aws_json_1_1(
386
+ data["buildBatchConfig"]
387
+ )
388
+ )
389
+ if data.get("concurrentBuildLimit") is not None:
390
+ out["concurrent_build_limit"] = data["concurrentBuildLimit"]
391
+ if data.get("projectVisibility") is not None:
392
+ import capo_codebuild.types.project_visibility_type
393
+
394
+ out["project_visibility"] = (
395
+ capo_codebuild.types.project_visibility_type.deserialize_aws_json_1_1(
396
+ data["projectVisibility"]
397
+ )
398
+ )
399
+ if data.get("publicProjectAlias") is not None:
400
+ out["public_project_alias"] = data["publicProjectAlias"]
401
+ if data.get("resourceAccessRole") is not None:
402
+ out["resource_access_role"] = data["resourceAccessRole"]
403
+ if data.get("autoRetryLimit") is not None:
404
+ out["auto_retry_limit"] = data["autoRetryLimit"]
405
+ return out
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectArns``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.non_empty_string
7
+
8
+ ProjectArns: TypeAlias = list["capo_codebuild.types.non_empty_string.NonEmptyString"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: ProjectArns) -> list:
13
+ return list(value)
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: list) -> ProjectArns:
17
+ return [item for item in data if item is not None]
@@ -0,0 +1,141 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectArtifacts``."""
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.artifact_namespace
11
+ import capo_codebuild.types.artifact_packaging
12
+ import capo_codebuild.types.artifacts_type
13
+ import capo_codebuild.types.bucket_owner_access
14
+ import capo_codebuild.types.string
15
+ import capo_codebuild.types.wrapper_boolean
16
+
17
+
18
+ class ProjectArtifacts(TypedDict, closed=True):
19
+ type: "capo_codebuild.types.artifacts_type.ArtifactsType"
20
+ """<p>The type of build output artifact. Valid values include:</p> <ul> <li> <p> <code>CODEPIPELINE</code>: The build project has build output generated through CodePipeline. </p> <note> <p>The <code>CODEPIPELINE</code> type is not supported for <code>secondaryArtifacts</code>.</p> </note> </li> <li> <p> <code>NO_ARTIFACTS</code>: The build project does not produce any build output.</p> </li> <li> <p> <code>S3</code>: The build project stores build output in Amazon S3.</p> </li> </ul>"""
21
+ location: NotRequired["capo_codebuild.types.string.String"]
22
+ """<p>Information about the build output artifact location:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output locations instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, this is the name of the output bucket.</p> </li> </ul>"""
23
+ path: NotRequired["capo_codebuild.types.string.String"]
24
+ """<p>Along with <code>namespaceType</code> and <code>name</code>, the pattern that CodeBuild uses to name and store the output artifact:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, this is the path to the output artifact. If <code>path</code> is not specified, <code>path</code> is not used.</p> </li> </ul> <p>For example, if <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>NONE</code>, and <code>name</code> is set to <code>MyArtifact.zip</code>, the output artifact is stored in the output bucket at <code>MyArtifacts/MyArtifact.zip</code>.</p>"""
25
+ namespace_type: NotRequired[
26
+ "capo_codebuild.types.artifact_namespace.ArtifactNamespace"
27
+ ]
28
+ """<p>Along with <code>path</code> and <code>name</code>, the pattern that CodeBuild uses to determine the name and location to store the output artifact:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, valid values include:</p> <ul> <li> <p> <code>BUILD_ID</code>: Include the build ID in the location of the build output artifact.</p> </li> <li> <p> <code>NONE</code>: Do not include the build ID. This is the default if <code>namespaceType</code> is not specified.</p> </li> </ul> </li> </ul> <p>For example, if <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>BUILD_ID</code>, and <code>name</code> is set to <code>MyArtifact.zip</code>, the output artifact is stored in <code>MyArtifacts/<build-ID>/MyArtifact.zip</code>.</p>"""
29
+ name: NotRequired["capo_codebuild.types.string.String"]
30
+ r"""<p>Along with <code>path</code> and <code>namespaceType</code>, the pattern that CodeBuild uses to name and store the output artifact:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, this is the name of the output artifact object. If you set the name to be a forward slash (\"/\"), the artifact is stored in the root of the output bucket.</p> </li> </ul> <p>For example:</p> <ul> <li> <p> If <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>BUILD_ID</code>, and <code>name</code> is set to <code>MyArtifact.zip</code>, then the output artifact is stored in <code>MyArtifacts/<build-ID>/MyArtifact.zip</code>. </p> </li> <li> <p> If <code>path</code> is empty, <code>namespaceType</code> is set to <code>NONE</code>, and <code>name</code> is set to \"<code>/</code>\", the output artifact is stored in the root of the output bucket. </p> </li> <li> <p> If <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>BUILD_ID</code>, and <code>name</code> is set to \"<code>/</code>\", the output artifact is stored in <code>MyArtifacts/<build-ID></code>. </p> </li> </ul>"""
31
+ packaging: NotRequired["capo_codebuild.types.artifact_packaging.ArtifactPackaging"]
32
+ """<p>The type of build output artifact to create:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, valid values include:</p> <ul> <li> <p> <code>NONE</code>: CodeBuild creates in the output bucket a folder that contains the build output. This is the default if <code>packaging</code> is not specified.</p> </li> <li> <p> <code>ZIP</code>: CodeBuild creates in the output bucket a ZIP file that contains the build output.</p> </li> </ul> </li> </ul>"""
33
+ override_artifact_name: NotRequired[
34
+ "capo_codebuild.types.wrapper_boolean.WrapperBoolean"
35
+ ]
36
+ """<p> If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique. </p>"""
37
+ encryption_disabled: NotRequired[
38
+ "capo_codebuild.types.wrapper_boolean.WrapperBoolean"
39
+ ]
40
+ """<p> Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. </p>"""
41
+ artifact_identifier: NotRequired["capo_codebuild.types.string.String"]
42
+ """<p> An identifier for this artifact definition. </p>"""
43
+ bucket_owner_access: NotRequired[
44
+ "capo_codebuild.types.bucket_owner_access.BucketOwnerAccess"
45
+ ]
46
+
47
+
48
+ # --- awsJson1_1 ser/de ---
49
+ def serialize_aws_json_1_1(value: ProjectArtifacts) -> dict:
50
+ out: dict = {}
51
+ import capo_codebuild.types.artifacts_type
52
+
53
+ out["type"] = capo_codebuild.types.artifacts_type.serialize_aws_json_1_1(
54
+ value["type"]
55
+ )
56
+ if "location" in value:
57
+ out["location"] = value["location"]
58
+ if "path" in value:
59
+ out["path"] = value["path"]
60
+ if "namespace_type" in value:
61
+ import capo_codebuild.types.artifact_namespace
62
+
63
+ out["namespaceType"] = (
64
+ capo_codebuild.types.artifact_namespace.serialize_aws_json_1_1(
65
+ value["namespace_type"]
66
+ )
67
+ )
68
+ if "name" in value:
69
+ out["name"] = value["name"]
70
+ if "packaging" in value:
71
+ import capo_codebuild.types.artifact_packaging
72
+
73
+ out["packaging"] = (
74
+ capo_codebuild.types.artifact_packaging.serialize_aws_json_1_1(
75
+ value["packaging"]
76
+ )
77
+ )
78
+ if "override_artifact_name" in value:
79
+ out["overrideArtifactName"] = value["override_artifact_name"]
80
+ if "encryption_disabled" in value:
81
+ out["encryptionDisabled"] = value["encryption_disabled"]
82
+ if "artifact_identifier" in value:
83
+ out["artifactIdentifier"] = value["artifact_identifier"]
84
+ if "bucket_owner_access" in value:
85
+ import capo_codebuild.types.bucket_owner_access
86
+
87
+ out["bucketOwnerAccess"] = (
88
+ capo_codebuild.types.bucket_owner_access.serialize_aws_json_1_1(
89
+ value["bucket_owner_access"]
90
+ )
91
+ )
92
+ return out
93
+
94
+
95
+ def deserialize_aws_json_1_1(data: dict) -> ProjectArtifacts:
96
+ out: ProjectArtifacts = {} # type: ignore[typeddict-item]
97
+ if data.get("type") is not None:
98
+ import capo_codebuild.types.artifacts_type
99
+
100
+ out["type"] = capo_codebuild.types.artifacts_type.deserialize_aws_json_1_1(
101
+ data["type"]
102
+ )
103
+ else:
104
+ raise DeserializationError("ProjectArtifacts.type required")
105
+ if data.get("location") is not None:
106
+ out["location"] = data["location"]
107
+ if data.get("path") is not None:
108
+ out["path"] = data["path"]
109
+ if data.get("namespaceType") is not None:
110
+ import capo_codebuild.types.artifact_namespace
111
+
112
+ out["namespace_type"] = (
113
+ capo_codebuild.types.artifact_namespace.deserialize_aws_json_1_1(
114
+ data["namespaceType"]
115
+ )
116
+ )
117
+ if data.get("name") is not None:
118
+ out["name"] = data["name"]
119
+ if data.get("packaging") is not None:
120
+ import capo_codebuild.types.artifact_packaging
121
+
122
+ out["packaging"] = (
123
+ capo_codebuild.types.artifact_packaging.deserialize_aws_json_1_1(
124
+ data["packaging"]
125
+ )
126
+ )
127
+ if data.get("overrideArtifactName") is not None:
128
+ out["override_artifact_name"] = data["overrideArtifactName"]
129
+ if data.get("encryptionDisabled") is not None:
130
+ out["encryption_disabled"] = data["encryptionDisabled"]
131
+ if data.get("artifactIdentifier") is not None:
132
+ out["artifact_identifier"] = data["artifactIdentifier"]
133
+ if data.get("bucketOwnerAccess") is not None:
134
+ import capo_codebuild.types.bucket_owner_access
135
+
136
+ out["bucket_owner_access"] = (
137
+ capo_codebuild.types.bucket_owner_access.deserialize_aws_json_1_1(
138
+ data["bucketOwnerAccess"]
139
+ )
140
+ )
141
+ return out
@@ -0,0 +1,33 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectArtifactsList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.project_artifacts
7
+
8
+ ProjectArtifactsList: TypeAlias = list[
9
+ "capo_codebuild.types.project_artifacts.ProjectArtifacts"
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: ProjectArtifactsList) -> list:
15
+ import capo_codebuild.types.project_artifacts
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(capo_codebuild.types.project_artifacts.serialize_aws_json_1_1(item))
20
+ return out
21
+
22
+
23
+ def deserialize_aws_json_1_1(data: list) -> ProjectArtifactsList:
24
+ import capo_codebuild.types.project_artifacts
25
+
26
+ out: ProjectArtifactsList = []
27
+ for item in data:
28
+ if item is None:
29
+ continue
30
+ out.append(
31
+ capo_codebuild.types.project_artifacts.deserialize_aws_json_1_1(item)
32
+ )
33
+ return out
@@ -0,0 +1,36 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectBadge``."""
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.boolean
9
+ import capo_codebuild.types.string
10
+
11
+
12
+ class ProjectBadge(TypedDict, closed=True):
13
+ badge_enabled: "capo_codebuild.types.boolean.Boolean"
14
+ """<p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>"""
15
+ badge_request_url: NotRequired["capo_codebuild.types.string.String"]
16
+ """<p>The publicly-accessible URL through which you can access the build badge for your project. </p>"""
17
+
18
+
19
+ # --- awsJson1_1 ser/de ---
20
+ def serialize_aws_json_1_1(value: ProjectBadge) -> dict:
21
+ out: dict = {}
22
+ out["badgeEnabled"] = value.get("badge_enabled", False)
23
+ if "badge_request_url" in value:
24
+ out["badgeRequestUrl"] = value["badge_request_url"]
25
+ return out
26
+
27
+
28
+ def deserialize_aws_json_1_1(data: dict) -> ProjectBadge:
29
+ out: ProjectBadge = {} # type: ignore[typeddict-item]
30
+ if data.get("badgeEnabled") is not None:
31
+ out["badge_enabled"] = data["badgeEnabled"]
32
+ else:
33
+ out["badge_enabled"] = False
34
+ if data.get("badgeRequestUrl") is not None:
35
+ out["badge_request_url"] = data["badgeRequestUrl"]
36
+ return out