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,103 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#UpdateWebhookInput``."""
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.boolean
11
+ import capo_codebuild.types.filter_groups
12
+ import capo_codebuild.types.project_name
13
+ import capo_codebuild.types.pull_request_build_policy
14
+ import capo_codebuild.types.string
15
+ import capo_codebuild.types.webhook_build_type
16
+
17
+
18
+ class UpdateWebhookInput(TypedDict, closed=True):
19
+ project_name: "capo_codebuild.types.project_name.ProjectName"
20
+ """<p>The name of the CodeBuild project.</p>"""
21
+ branch_filter: NotRequired["capo_codebuild.types.string.String"]
22
+ """<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p> It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note>"""
23
+ rotate_secret: "capo_codebuild.types.boolean.Boolean"
24
+ """<p> A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored. </p>"""
25
+ filter_groups: NotRequired["capo_codebuild.types.filter_groups.FilterGroups"]
26
+ """<p> An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger a build. A filter group must contain at least one <code>EVENT</code> <code>WebhookFilter</code>. </p>"""
27
+ build_type: NotRequired["capo_codebuild.types.webhook_build_type.WebhookBuildType"]
28
+ r"""<p>Specifies the type of build this webhook will trigger.</p> <note> <p> <code>RUNNER_BUILDKITE_BUILD</code> is only available for <code>NO_SOURCE</code> source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runner-buildkite.html\">Tutorial: Configure a CodeBuild-hosted Buildkite runner</a> in the <i>CodeBuild user guide</i>.</p> </note>"""
29
+ pull_request_build_policy: NotRequired[
30
+ "capo_codebuild.types.pull_request_build_policy.PullRequestBuildPolicy"
31
+ ]
32
+ """<p>A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.</p>"""
33
+
34
+
35
+ # --- awsJson1_1 ser/de ---
36
+ def serialize_aws_json_1_1(value: UpdateWebhookInput) -> dict:
37
+ out: dict = {}
38
+ out["projectName"] = value["project_name"]
39
+ if "branch_filter" in value:
40
+ out["branchFilter"] = value["branch_filter"]
41
+ out["rotateSecret"] = value.get("rotate_secret", False)
42
+ if "filter_groups" in value:
43
+ import capo_codebuild.types.filter_groups
44
+
45
+ out["filterGroups"] = capo_codebuild.types.filter_groups.serialize_aws_json_1_1(
46
+ value["filter_groups"]
47
+ )
48
+ if "build_type" in value:
49
+ import capo_codebuild.types.webhook_build_type
50
+
51
+ out["buildType"] = (
52
+ capo_codebuild.types.webhook_build_type.serialize_aws_json_1_1(
53
+ value["build_type"]
54
+ )
55
+ )
56
+ if "pull_request_build_policy" in value:
57
+ import capo_codebuild.types.pull_request_build_policy
58
+
59
+ out["pullRequestBuildPolicy"] = (
60
+ capo_codebuild.types.pull_request_build_policy.serialize_aws_json_1_1(
61
+ value["pull_request_build_policy"]
62
+ )
63
+ )
64
+ return out
65
+
66
+
67
+ def deserialize_aws_json_1_1(data: dict) -> UpdateWebhookInput:
68
+ out: UpdateWebhookInput = {} # type: ignore[typeddict-item]
69
+ if data.get("projectName") is not None:
70
+ out["project_name"] = data["projectName"]
71
+ else:
72
+ raise DeserializationError("UpdateWebhookInput.project_name required")
73
+ if data.get("branchFilter") is not None:
74
+ out["branch_filter"] = data["branchFilter"]
75
+ if data.get("rotateSecret") is not None:
76
+ out["rotate_secret"] = data["rotateSecret"]
77
+ else:
78
+ out["rotate_secret"] = False
79
+ if data.get("filterGroups") is not None:
80
+ import capo_codebuild.types.filter_groups
81
+
82
+ out["filter_groups"] = (
83
+ capo_codebuild.types.filter_groups.deserialize_aws_json_1_1(
84
+ data["filterGroups"]
85
+ )
86
+ )
87
+ if data.get("buildType") is not None:
88
+ import capo_codebuild.types.webhook_build_type
89
+
90
+ out["build_type"] = (
91
+ capo_codebuild.types.webhook_build_type.deserialize_aws_json_1_1(
92
+ data["buildType"]
93
+ )
94
+ )
95
+ if data.get("pullRequestBuildPolicy") is not None:
96
+ import capo_codebuild.types.pull_request_build_policy
97
+
98
+ out["pull_request_build_policy"] = (
99
+ capo_codebuild.types.pull_request_build_policy.deserialize_aws_json_1_1(
100
+ data["pullRequestBuildPolicy"]
101
+ )
102
+ )
103
+ return out
@@ -0,0 +1,36 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#UpdateWebhookOutput``."""
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.webhook
9
+
10
+
11
+ class UpdateWebhookOutput(TypedDict, closed=True):
12
+ webhook: NotRequired["capo_codebuild.types.webhook.Webhook"]
13
+ """<p> Information about a repository's webhook that is associated with a project in CodeBuild. </p>"""
14
+
15
+
16
+ # --- awsJson1_1 ser/de ---
17
+ def serialize_aws_json_1_1(value: UpdateWebhookOutput) -> dict:
18
+ out: dict = {}
19
+ if "webhook" in value:
20
+ import capo_codebuild.types.webhook
21
+
22
+ out["webhook"] = capo_codebuild.types.webhook.serialize_aws_json_1_1(
23
+ value["webhook"]
24
+ )
25
+ return out
26
+
27
+
28
+ def deserialize_aws_json_1_1(data: dict) -> UpdateWebhookOutput:
29
+ out: UpdateWebhookOutput = {} # type: ignore[typeddict-item]
30
+ if data.get("webhook") is not None:
31
+ import capo_codebuild.types.webhook
32
+
33
+ out["webhook"] = capo_codebuild.types.webhook.deserialize_aws_json_1_1(
34
+ data["webhook"]
35
+ )
36
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ValueInput``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ ValueInput: TypeAlias = str
@@ -0,0 +1,64 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#VpcConfig``."""
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.non_empty_string
9
+ import capo_codebuild.types.security_group_ids
10
+ import capo_codebuild.types.subnets
11
+
12
+
13
+ class VpcConfig(TypedDict, closed=True):
14
+ vpc_id: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
15
+ """<p>The ID of the Amazon VPC.</p>"""
16
+ subnets: NotRequired["capo_codebuild.types.subnets.Subnets"]
17
+ """<p>A list of one or more subnet IDs in your Amazon VPC.</p>"""
18
+ security_group_ids: NotRequired[
19
+ "capo_codebuild.types.security_group_ids.SecurityGroupIds"
20
+ ]
21
+ """<p>A list of one or more security groups IDs in your Amazon VPC.</p>"""
22
+
23
+
24
+ # --- awsJson1_1 ser/de ---
25
+ def serialize_aws_json_1_1(value: VpcConfig) -> dict:
26
+ out: dict = {}
27
+ if "vpc_id" in value:
28
+ out["vpcId"] = value["vpc_id"]
29
+ if "subnets" in value:
30
+ import capo_codebuild.types.subnets
31
+
32
+ out["subnets"] = capo_codebuild.types.subnets.serialize_aws_json_1_1(
33
+ value["subnets"]
34
+ )
35
+ if "security_group_ids" in value:
36
+ import capo_codebuild.types.security_group_ids
37
+
38
+ out["securityGroupIds"] = (
39
+ capo_codebuild.types.security_group_ids.serialize_aws_json_1_1(
40
+ value["security_group_ids"]
41
+ )
42
+ )
43
+ return out
44
+
45
+
46
+ def deserialize_aws_json_1_1(data: dict) -> VpcConfig:
47
+ out: VpcConfig = {} # type: ignore[typeddict-item]
48
+ if data.get("vpcId") is not None:
49
+ out["vpc_id"] = data["vpcId"]
50
+ if data.get("subnets") is not None:
51
+ import capo_codebuild.types.subnets
52
+
53
+ out["subnets"] = capo_codebuild.types.subnets.deserialize_aws_json_1_1(
54
+ data["subnets"]
55
+ )
56
+ if data.get("securityGroupIds") is not None:
57
+ import capo_codebuild.types.security_group_ids
58
+
59
+ out["security_group_ids"] = (
60
+ capo_codebuild.types.security_group_ids.deserialize_aws_json_1_1(
61
+ data["securityGroupIds"]
62
+ )
63
+ )
64
+ return out
@@ -0,0 +1,171 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#Webhook``."""
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.filter_groups
9
+ import capo_codebuild.types.non_empty_string
10
+ import capo_codebuild.types.pull_request_build_policy
11
+ import capo_codebuild.types.scope_configuration
12
+ import capo_codebuild.types.string
13
+ import capo_codebuild.types.timestamp
14
+ import capo_codebuild.types.webhook_build_type
15
+ import capo_codebuild.types.webhook_status
16
+ import capo_codebuild.types.wrapper_boolean
17
+
18
+
19
+ class Webhook(TypedDict, closed=True):
20
+ url: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
21
+ """<p>The URL to the webhook.</p>"""
22
+ payload_url: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
23
+ """<p>The CodeBuild endpoint where webhook events are sent.</p>"""
24
+ secret: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
25
+ """<p>The secret token of the associated repository. </p> <note> <p>A Bitbucket webhook does not support <code>secret</code>. </p> </note>"""
26
+ branch_filter: NotRequired["capo_codebuild.types.string.String"]
27
+ """<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p>It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note>"""
28
+ filter_groups: NotRequired["capo_codebuild.types.filter_groups.FilterGroups"]
29
+ """<p>An array of arrays of <code>WebhookFilter</code> objects used to determine which webhooks are triggered. At least one <code>WebhookFilter</code> in the array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a build to be triggered, at least one filter group in the <code>filterGroups</code> array must pass. For a filter group to pass, each of its filters must pass. </p>"""
30
+ build_type: NotRequired["capo_codebuild.types.webhook_build_type.WebhookBuildType"]
31
+ r"""<p>Specifies the type of build this webhook will trigger.</p> <note> <p> <code>RUNNER_BUILDKITE_BUILD</code> is only available for <code>NO_SOURCE</code> source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runner-buildkite.html\">Tutorial: Configure a CodeBuild-hosted Buildkite runner</a> in the <i>CodeBuild user guide</i>.</p> </note>"""
32
+ manual_creation: NotRequired["capo_codebuild.types.wrapper_boolean.WrapperBoolean"]
33
+ """<p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can be used to manually create a webhook within GitHub.</p> <note> <p>manualCreation is only available for GitHub webhooks.</p> </note>"""
34
+ last_modified_secret: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
35
+ """<p>A timestamp that indicates the last time a repository's secret token was modified. </p>"""
36
+ scope_configuration: NotRequired[
37
+ "capo_codebuild.types.scope_configuration.ScopeConfiguration"
38
+ ]
39
+ """<p>The scope configuration for global or organization webhooks.</p> <note> <p>Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.</p> </note>"""
40
+ status: NotRequired["capo_codebuild.types.webhook_status.WebhookStatus"]
41
+ """<p>The status of the webhook. Valid values include:</p> <ul> <li> <p> <code>CREATING</code>: The webhook is being created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The webhook has failed to create.</p> </li> <li> <p> <code>ACTIVE</code>: The webhook has succeeded and is active.</p> </li> <li> <p> <code>DELETING</code>: The webhook is being deleted.</p> </li> </ul>"""
42
+ status_message: NotRequired["capo_codebuild.types.string.String"]
43
+ """<p>A message associated with the status of a webhook.</p>"""
44
+ pull_request_build_policy: NotRequired[
45
+ "capo_codebuild.types.pull_request_build_policy.PullRequestBuildPolicy"
46
+ ]
47
+
48
+
49
+ # --- awsJson1_1 ser/de ---
50
+ def serialize_aws_json_1_1(value: Webhook) -> dict:
51
+ out: dict = {}
52
+ if "url" in value:
53
+ out["url"] = value["url"]
54
+ if "payload_url" in value:
55
+ out["payloadUrl"] = value["payload_url"]
56
+ if "secret" in value:
57
+ out["secret"] = value["secret"]
58
+ if "branch_filter" in value:
59
+ out["branchFilter"] = value["branch_filter"]
60
+ if "filter_groups" in value:
61
+ import capo_codebuild.types.filter_groups
62
+
63
+ out["filterGroups"] = capo_codebuild.types.filter_groups.serialize_aws_json_1_1(
64
+ value["filter_groups"]
65
+ )
66
+ if "build_type" in value:
67
+ import capo_codebuild.types.webhook_build_type
68
+
69
+ out["buildType"] = (
70
+ capo_codebuild.types.webhook_build_type.serialize_aws_json_1_1(
71
+ value["build_type"]
72
+ )
73
+ )
74
+ if "manual_creation" in value:
75
+ out["manualCreation"] = value["manual_creation"]
76
+ if "last_modified_secret" in value:
77
+ import capo_codebuild.types.timestamp
78
+
79
+ out["lastModifiedSecret"] = (
80
+ capo_codebuild.types.timestamp.serialize_aws_json_1_1(
81
+ value["last_modified_secret"]
82
+ )
83
+ )
84
+ if "scope_configuration" in value:
85
+ import capo_codebuild.types.scope_configuration
86
+
87
+ out["scopeConfiguration"] = (
88
+ capo_codebuild.types.scope_configuration.serialize_aws_json_1_1(
89
+ value["scope_configuration"]
90
+ )
91
+ )
92
+ if "status" in value:
93
+ import capo_codebuild.types.webhook_status
94
+
95
+ out["status"] = capo_codebuild.types.webhook_status.serialize_aws_json_1_1(
96
+ value["status"]
97
+ )
98
+ if "status_message" in value:
99
+ out["statusMessage"] = value["status_message"]
100
+ if "pull_request_build_policy" in value:
101
+ import capo_codebuild.types.pull_request_build_policy
102
+
103
+ out["pullRequestBuildPolicy"] = (
104
+ capo_codebuild.types.pull_request_build_policy.serialize_aws_json_1_1(
105
+ value["pull_request_build_policy"]
106
+ )
107
+ )
108
+ return out
109
+
110
+
111
+ def deserialize_aws_json_1_1(data: dict) -> Webhook:
112
+ out: Webhook = {} # type: ignore[typeddict-item]
113
+ if data.get("url") is not None:
114
+ out["url"] = data["url"]
115
+ if data.get("payloadUrl") is not None:
116
+ out["payload_url"] = data["payloadUrl"]
117
+ if data.get("secret") is not None:
118
+ out["secret"] = data["secret"]
119
+ if data.get("branchFilter") is not None:
120
+ out["branch_filter"] = data["branchFilter"]
121
+ if data.get("filterGroups") is not None:
122
+ import capo_codebuild.types.filter_groups
123
+
124
+ out["filter_groups"] = (
125
+ capo_codebuild.types.filter_groups.deserialize_aws_json_1_1(
126
+ data["filterGroups"]
127
+ )
128
+ )
129
+ if data.get("buildType") is not None:
130
+ import capo_codebuild.types.webhook_build_type
131
+
132
+ out["build_type"] = (
133
+ capo_codebuild.types.webhook_build_type.deserialize_aws_json_1_1(
134
+ data["buildType"]
135
+ )
136
+ )
137
+ if data.get("manualCreation") is not None:
138
+ out["manual_creation"] = data["manualCreation"]
139
+ if data.get("lastModifiedSecret") is not None:
140
+ import capo_codebuild.types.timestamp
141
+
142
+ out["last_modified_secret"] = (
143
+ capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
144
+ data["lastModifiedSecret"]
145
+ )
146
+ )
147
+ if data.get("scopeConfiguration") is not None:
148
+ import capo_codebuild.types.scope_configuration
149
+
150
+ out["scope_configuration"] = (
151
+ capo_codebuild.types.scope_configuration.deserialize_aws_json_1_1(
152
+ data["scopeConfiguration"]
153
+ )
154
+ )
155
+ if data.get("status") is not None:
156
+ import capo_codebuild.types.webhook_status
157
+
158
+ out["status"] = capo_codebuild.types.webhook_status.deserialize_aws_json_1_1(
159
+ data["status"]
160
+ )
161
+ if data.get("statusMessage") is not None:
162
+ out["status_message"] = data["statusMessage"]
163
+ if data.get("pullRequestBuildPolicy") is not None:
164
+ import capo_codebuild.types.pull_request_build_policy
165
+
166
+ out["pull_request_build_policy"] = (
167
+ capo_codebuild.types.pull_request_build_policy.deserialize_aws_json_1_1(
168
+ data["pullRequestBuildPolicy"]
169
+ )
170
+ )
171
+ return out
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WebhookBuildType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ WebhookBuildType: TypeAlias = Literal[
6
+ "BUILD",
7
+ "BUILD_BATCH",
8
+ "RUNNER_BUILDKITE_BUILD",
9
+ ]
10
+
11
+
12
+ # --- awsJson1_1 ser/de ---
13
+ def serialize_aws_json_1_1(value: WebhookBuildType) -> str:
14
+ return value
15
+
16
+
17
+ def deserialize_aws_json_1_1(data: str) -> WebhookBuildType:
18
+ return cast(WebhookBuildType, data)
@@ -0,0 +1,56 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WebhookFilter``."""
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.string
11
+ import capo_codebuild.types.webhook_filter_type
12
+ import capo_codebuild.types.wrapper_boolean
13
+
14
+
15
+ class WebhookFilter(TypedDict, closed=True):
16
+ type: "capo_codebuild.types.webhook_filter_type.WebhookFilterType"
17
+ """<p> The type of webhook filter. There are 11 webhook filter types: <code>EVENT</code>, <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>, <code>FILE_PATH</code>, <code>COMMIT_MESSAGE</code>, <code>TAG_NAME</code>, <code>RELEASE_NAME</code>, <code>REPOSITORY_NAME</code>, <code>ORGANIZATION_NAME</code>, and <code>WORKFLOW_NAME</code>. </p> <ul> <li> <p> EVENT </p> <ul> <li> <p> A webhook event triggers a build when the provided <code>pattern</code> matches one of nine event types: <code>PUSH</code>, <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>, <code>PULL_REQUEST_CLOSED</code>, <code>PULL_REQUEST_REOPENED</code>, <code>PULL_REQUEST_MERGED</code>, <code>RELEASED</code>, <code>PRERELEASED</code>, and <code>WORKFLOW_JOB_QUEUED</code>. The <code>EVENT</code> patterns are specified as a comma-separated string. For example, <code>PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> filters all push, pull request created, and pull request updated events. </p> <note> <p> Types <code>PULL_REQUEST_REOPENED</code> and <code>WORKFLOW_JOB_QUEUED</code> work with GitHub and GitHub Enterprise only. Types <code>RELEASED</code> and <code>PRERELEASED</code> work with GitHub only.</p> </note> </li> </ul> </li> <li> <p>ACTOR_ACCOUNT_ID</p> <ul> <li> <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression <code>pattern</code>. </p> </li> </ul> </li> <li> <p>HEAD_REF</p> <ul> <li> <p> A webhook event triggers a build when the head reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p> <note> <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.</p> </note> </li> </ul> </li> <li> <p>BASE_REF</p> <ul> <li> <p> A webhook event triggers a build when the base reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code>. </p> <note> <p> Works with pull request events only. </p> </note> </li> </ul> </li> <li> <p>FILE_PATH</p> <ul> <li> <p> A webhook triggers a build when the path of a changed file matches the regular expression <code>pattern</code>. </p> <note> <p> Works with push and pull request events only. </p> </note> </li> </ul> </li> <li> <p>COMMIT_MESSAGE</p> <ul> <li> <p>A webhook triggers a build when the head commit message matches the regular expression <code>pattern</code>.</p> <note> <p> Works with push and pull request events only. </p> </note> </li> </ul> </li> <li> <p>TAG_NAME</p> <ul> <li> <p>A webhook triggers a build when the tag name of the release matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p> </note> </li> </ul> </li> <li> <p>RELEASE_NAME</p> <ul> <li> <p>A webhook triggers a build when the release name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p> </note> </li> </ul> </li> <li> <p>REPOSITORY_NAME</p> <ul> <li> <p>A webhook triggers a build when the repository name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with GitHub global or organization webhooks only. </p> </note> </li> </ul> </li> <li> <p>ORGANIZATION_NAME</p> <ul> <li> <p>A webhook triggers a build when the organization name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with GitHub global webhooks only. </p> </note> </li> </ul> </li> <li> <p>WORKFLOW_NAME</p> <ul> <li> <p>A webhook triggers a build when the workflow name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>WORKFLOW_JOB_QUEUED</code> events only. </p> </note> <note> <p>For CodeBuild-hosted Buildkite runner builds, WORKFLOW_NAME filters will filter by pipeline name.</p> </note> </li> </ul> </li> </ul>"""
18
+ pattern: "capo_codebuild.types.string.String"
19
+ """<p> For a <code>WebHookFilter</code> that uses <code>EVENT</code> type, a comma-separated string that specifies one or more events. For example, the webhook filter <code>PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> allows all push, pull request created, and pull request updated events to trigger a build. </p> <p> For a <code>WebHookFilter</code> that uses any of the other filter types, a regular expression pattern. For example, a <code>WebHookFilter</code> that uses <code>HEAD_REF</code> for its <code>type</code> and the pattern <code>^refs/heads/</code> triggers a build when the head reference is a branch with a reference name <code>refs/heads/branch-name</code>. </p>"""
20
+ exclude_matched_pattern: NotRequired[
21
+ "capo_codebuild.types.wrapper_boolean.WrapperBoolean"
22
+ ]
23
+ """<p> Used to indicate that the <code>pattern</code> determines which webhook events do not trigger a build. If true, then a webhook event that does not match the <code>pattern</code> triggers a build. If false, then a webhook event that matches the <code>pattern</code> triggers a build. </p>"""
24
+
25
+
26
+ # --- awsJson1_1 ser/de ---
27
+ def serialize_aws_json_1_1(value: WebhookFilter) -> dict:
28
+ out: dict = {}
29
+ import capo_codebuild.types.webhook_filter_type
30
+
31
+ out["type"] = capo_codebuild.types.webhook_filter_type.serialize_aws_json_1_1(
32
+ value["type"]
33
+ )
34
+ out["pattern"] = value["pattern"]
35
+ if "exclude_matched_pattern" in value:
36
+ out["excludeMatchedPattern"] = value["exclude_matched_pattern"]
37
+ return out
38
+
39
+
40
+ def deserialize_aws_json_1_1(data: dict) -> WebhookFilter:
41
+ out: WebhookFilter = {} # type: ignore[typeddict-item]
42
+ if data.get("type") is not None:
43
+ import capo_codebuild.types.webhook_filter_type
44
+
45
+ out["type"] = capo_codebuild.types.webhook_filter_type.deserialize_aws_json_1_1(
46
+ data["type"]
47
+ )
48
+ else:
49
+ raise DeserializationError("WebhookFilter.type required")
50
+ if data.get("pattern") is not None:
51
+ out["pattern"] = data["pattern"]
52
+ else:
53
+ raise DeserializationError("WebhookFilter.pattern required")
54
+ if data.get("excludeMatchedPattern") is not None:
55
+ out["exclude_matched_pattern"] = data["excludeMatchedPattern"]
56
+ return out
@@ -0,0 +1,26 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WebhookFilterType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ WebhookFilterType: TypeAlias = Literal[
6
+ "EVENT",
7
+ "BASE_REF",
8
+ "HEAD_REF",
9
+ "ACTOR_ACCOUNT_ID",
10
+ "FILE_PATH",
11
+ "COMMIT_MESSAGE",
12
+ "WORKFLOW_NAME",
13
+ "TAG_NAME",
14
+ "RELEASE_NAME",
15
+ "REPOSITORY_NAME",
16
+ "ORGANIZATION_NAME",
17
+ ]
18
+
19
+
20
+ # --- awsJson1_1 ser/de ---
21
+ def serialize_aws_json_1_1(value: WebhookFilterType) -> str:
22
+ return value
23
+
24
+
25
+ def deserialize_aws_json_1_1(data: str) -> WebhookFilterType:
26
+ return cast(WebhookFilterType, data)
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WebhookScopeType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ WebhookScopeType: TypeAlias = Literal[
6
+ "GITHUB_ORGANIZATION",
7
+ "GITHUB_GLOBAL",
8
+ "GITLAB_GROUP",
9
+ ]
10
+
11
+
12
+ # --- awsJson1_1 ser/de ---
13
+ def serialize_aws_json_1_1(value: WebhookScopeType) -> str:
14
+ return value
15
+
16
+
17
+ def deserialize_aws_json_1_1(data: str) -> WebhookScopeType:
18
+ return cast(WebhookScopeType, data)
@@ -0,0 +1,19 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WebhookStatus``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ WebhookStatus: TypeAlias = Literal[
6
+ "CREATING",
7
+ "CREATE_FAILED",
8
+ "ACTIVE",
9
+ "DELETING",
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: WebhookStatus) -> str:
15
+ return value
16
+
17
+
18
+ def deserialize_aws_json_1_1(data: str) -> WebhookStatus:
19
+ return cast(WebhookStatus, data)
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WrapperBoolean``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ WrapperBoolean: TypeAlias = bool
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WrapperDouble``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ WrapperDouble: TypeAlias = float
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WrapperInt``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ WrapperInt: TypeAlias = int
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#WrapperLong``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ WrapperLong: TypeAlias = int