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,135 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectSource``."""
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.build_status_config
11
+ import capo_codebuild.types.git_clone_depth
12
+ import capo_codebuild.types.git_submodules_config
13
+ import capo_codebuild.types.source_auth
14
+ import capo_codebuild.types.source_type
15
+ import capo_codebuild.types.string
16
+ import capo_codebuild.types.wrapper_boolean
17
+
18
+
19
+ class ProjectSource(TypedDict, closed=True):
20
+ type: "capo_codebuild.types.source_type.SourceType"
21
+ """<p>The type of repository that contains the source code to be built. Valid values include:</p> <ul> <li> <p> <code>BITBUCKET</code>: The source code is in a Bitbucket repository.</p> </li> <li> <p> <code>CODECOMMIT</code>: The source code is in an CodeCommit repository.</p> </li> <li> <p> <code>CODEPIPELINE</code>: The source code settings are specified in the source action of a pipeline in CodePipeline.</p> </li> <li> <p> <code>GITHUB</code>: The source code is in a GitHub repository.</p> </li> <li> <p> <code>GITHUB_ENTERPRISE</code>: The source code is in a GitHub Enterprise Server repository.</p> </li> <li> <p> <code>GITLAB</code>: The source code is in a GitLab repository.</p> </li> <li> <p> <code>GITLAB_SELF_MANAGED</code>: The source code is in a self-managed GitLab repository.</p> </li> <li> <p> <code>NO_SOURCE</code>: The project does not have input source code.</p> </li> <li> <p> <code>S3</code>: The source code is in an Amazon S3 bucket.</p> </li> </ul>"""
22
+ location: NotRequired["capo_codebuild.types.string.String"]
23
+ """<p>Information about the location of the source code to be built. Valid values include:</p> <ul> <li> <p>For source code settings that are specified in the source action of a pipeline in CodePipeline, <code>location</code> should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.</p> </li> <li> <p>For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, <code>https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name></code>).</p> </li> <li> <p>For source code in an Amazon S3 input bucket, one of the following. </p> <ul> <li> <p>The path to the ZIP file that contains the source code (for example, <code><bucket-name>/<path>/<object-name>.zip</code>). </p> </li> <li> <p>The path to the folder that contains the source code (for example, <code><bucket-name>/<path-to-source-code>/<folder>/</code>). </p> </li> </ul> </li> <li> <p>For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub <b>Authorize application</b> page, for <b>Organization access</b>, choose <b>Request access</b> next to each repository you want to allow CodeBuild to have access to, and then choose <b>Authorize application</b>. (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the <code>source</code> object, set the <code>auth</code> object's <code>type</code> value to <code>OAUTH</code>.</p> </li> <li> <p>For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your GitLab account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections <b>Authorize application</b> page, choose <b>Authorize</b>. Then on the CodeConnections <b>Create GitLab connection</b> page, choose <b>Connect to GitLab</b>. (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to override the default connection and use this connection instead, set the <code>auth</code> object's <code>type</code> value to <code>CODECONNECTIONS</code> in the <code>source</code> object.</p> </li> <li> <p>For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket <b>Confirm access to your account</b> page, choose <b>Grant access</b>. (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the <code>source</code> object, set the <code>auth</code> object's <code>type</code> value to <code>OAUTH</code>.</p> </li> </ul> <p> If you specify <code>CODEPIPELINE</code> for the <code>Type</code> property, don't specify this property. For all of the other types, you must specify <code>Location</code>. </p>"""
24
+ git_clone_depth: NotRequired["capo_codebuild.types.git_clone_depth.GitCloneDepth"]
25
+ """<p>Information about the Git clone depth for the build project.</p>"""
26
+ git_submodules_config: NotRequired[
27
+ "capo_codebuild.types.git_submodules_config.GitSubmodulesConfig"
28
+ ]
29
+ """<p> Information about the Git submodules configuration for the build project. </p>"""
30
+ buildspec: NotRequired["capo_codebuild.types.string.String"]
31
+ r"""<p>The buildspec file declaration to use for the builds in this build project.</p> <p> If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage\">Buildspec File Name and Storage Location</a>. </p>"""
32
+ auth: NotRequired["capo_codebuild.types.source_auth.SourceAuth"]
33
+ """<p>Information about the authorization settings for CodeBuild to access the source code to be built.</p>"""
34
+ report_build_status: NotRequired[
35
+ "capo_codebuild.types.wrapper_boolean.WrapperBoolean"
36
+ ]
37
+ r"""<p> Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, GitLab, GitLab Self Managed, or Bitbucket. If this is set and you use a different source provider, an <code>invalidInputException</code> is thrown. </p> <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html\">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p> <p>The status of a build triggered by a webhook is always reported to your source provider. </p> <p>If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this property to take effect.</p>"""
38
+ build_status_config: NotRequired[
39
+ "capo_codebuild.types.build_status_config.BuildStatusConfig"
40
+ ]
41
+ """<p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>"""
42
+ insecure_ssl: NotRequired["capo_codebuild.types.wrapper_boolean.WrapperBoolean"]
43
+ """<p>Enable this flag to ignore SSL warnings while connecting to the project source code.</p>"""
44
+ source_identifier: NotRequired["capo_codebuild.types.string.String"]
45
+ """<p>An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. </p>"""
46
+
47
+
48
+ # --- awsJson1_1 ser/de ---
49
+ def serialize_aws_json_1_1(value: ProjectSource) -> dict:
50
+ out: dict = {}
51
+ import capo_codebuild.types.source_type
52
+
53
+ out["type"] = capo_codebuild.types.source_type.serialize_aws_json_1_1(value["type"])
54
+ if "location" in value:
55
+ out["location"] = value["location"]
56
+ if "git_clone_depth" in value:
57
+ out["gitCloneDepth"] = value["git_clone_depth"]
58
+ if "git_submodules_config" in value:
59
+ import capo_codebuild.types.git_submodules_config
60
+
61
+ out["gitSubmodulesConfig"] = (
62
+ capo_codebuild.types.git_submodules_config.serialize_aws_json_1_1(
63
+ value["git_submodules_config"]
64
+ )
65
+ )
66
+ if "buildspec" in value:
67
+ out["buildspec"] = value["buildspec"]
68
+ if "auth" in value:
69
+ import capo_codebuild.types.source_auth
70
+
71
+ out["auth"] = capo_codebuild.types.source_auth.serialize_aws_json_1_1(
72
+ value["auth"]
73
+ )
74
+ if "report_build_status" in value:
75
+ out["reportBuildStatus"] = value["report_build_status"]
76
+ if "build_status_config" in value:
77
+ import capo_codebuild.types.build_status_config
78
+
79
+ out["buildStatusConfig"] = (
80
+ capo_codebuild.types.build_status_config.serialize_aws_json_1_1(
81
+ value["build_status_config"]
82
+ )
83
+ )
84
+ if "insecure_ssl" in value:
85
+ out["insecureSsl"] = value["insecure_ssl"]
86
+ if "source_identifier" in value:
87
+ out["sourceIdentifier"] = value["source_identifier"]
88
+ return out
89
+
90
+
91
+ def deserialize_aws_json_1_1(data: dict) -> ProjectSource:
92
+ out: ProjectSource = {} # type: ignore[typeddict-item]
93
+ if data.get("type") is not None:
94
+ import capo_codebuild.types.source_type
95
+
96
+ out["type"] = capo_codebuild.types.source_type.deserialize_aws_json_1_1(
97
+ data["type"]
98
+ )
99
+ else:
100
+ raise DeserializationError("ProjectSource.type required")
101
+ if data.get("location") is not None:
102
+ out["location"] = data["location"]
103
+ if data.get("gitCloneDepth") is not None:
104
+ out["git_clone_depth"] = data["gitCloneDepth"]
105
+ if data.get("gitSubmodulesConfig") is not None:
106
+ import capo_codebuild.types.git_submodules_config
107
+
108
+ out["git_submodules_config"] = (
109
+ capo_codebuild.types.git_submodules_config.deserialize_aws_json_1_1(
110
+ data["gitSubmodulesConfig"]
111
+ )
112
+ )
113
+ if data.get("buildspec") is not None:
114
+ out["buildspec"] = data["buildspec"]
115
+ if data.get("auth") is not None:
116
+ import capo_codebuild.types.source_auth
117
+
118
+ out["auth"] = capo_codebuild.types.source_auth.deserialize_aws_json_1_1(
119
+ data["auth"]
120
+ )
121
+ if data.get("reportBuildStatus") is not None:
122
+ out["report_build_status"] = data["reportBuildStatus"]
123
+ if data.get("buildStatusConfig") is not None:
124
+ import capo_codebuild.types.build_status_config
125
+
126
+ out["build_status_config"] = (
127
+ capo_codebuild.types.build_status_config.deserialize_aws_json_1_1(
128
+ data["buildStatusConfig"]
129
+ )
130
+ )
131
+ if data.get("insecureSsl") is not None:
132
+ out["insecure_ssl"] = data["insecureSsl"]
133
+ if data.get("sourceIdentifier") is not None:
134
+ out["source_identifier"] = data["sourceIdentifier"]
135
+ return out
@@ -0,0 +1,38 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectSourceVersion``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_codebuild.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codebuild.types.string
11
+
12
+
13
+ class ProjectSourceVersion(TypedDict, closed=True):
14
+ source_identifier: "capo_codebuild.types.string.String"
15
+ """<p>An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. </p>"""
16
+ source_version: "capo_codebuild.types.string.String"
17
+ r"""<p>The source version for the corresponding source identifier. If specified, 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> 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>"""
18
+
19
+
20
+ # --- awsJson1_1 ser/de ---
21
+ def serialize_aws_json_1_1(value: ProjectSourceVersion) -> dict:
22
+ out: dict = {}
23
+ out["sourceIdentifier"] = value["source_identifier"]
24
+ out["sourceVersion"] = value["source_version"]
25
+ return out
26
+
27
+
28
+ def deserialize_aws_json_1_1(data: dict) -> ProjectSourceVersion:
29
+ out: ProjectSourceVersion = {} # type: ignore[typeddict-item]
30
+ if data.get("sourceIdentifier") is not None:
31
+ out["source_identifier"] = data["sourceIdentifier"]
32
+ else:
33
+ raise DeserializationError("ProjectSourceVersion.source_identifier required")
34
+ if data.get("sourceVersion") is not None:
35
+ out["source_version"] = data["sourceVersion"]
36
+ else:
37
+ raise DeserializationError("ProjectSourceVersion.source_version required")
38
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectSources``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.project_source
7
+
8
+ ProjectSources: TypeAlias = list["capo_codebuild.types.project_source.ProjectSource"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: ProjectSources) -> list:
13
+ import capo_codebuild.types.project_source
14
+
15
+ out: list = []
16
+ for item in value:
17
+ out.append(capo_codebuild.types.project_source.serialize_aws_json_1_1(item))
18
+ return out
19
+
20
+
21
+ def deserialize_aws_json_1_1(data: list) -> ProjectSources:
22
+ import capo_codebuild.types.project_source
23
+
24
+ out: ProjectSources = []
25
+ for item in data:
26
+ if item is None:
27
+ continue
28
+ out.append(capo_codebuild.types.project_source.deserialize_aws_json_1_1(item))
29
+ return out
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProjectVisibilityType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ """<p>Specifies the visibility of the project's builds. Possible values are:</p> <dl> <dt>PUBLIC_READ</dt> <dd> <p>The project builds are visible to the public.</p> </dd> <dt>PRIVATE</dt> <dd> <p>The project builds are not visible to the public.</p> </dd> </dl>"""
6
+ ProjectVisibilityType: TypeAlias = Literal[
7
+ "PUBLIC_READ",
8
+ "PRIVATE",
9
+ ]
10
+
11
+
12
+ # --- awsJson1_1 ser/de ---
13
+ def serialize_aws_json_1_1(value: ProjectVisibilityType) -> str:
14
+ return value
15
+
16
+
17
+ def deserialize_aws_json_1_1(data: str) -> ProjectVisibilityType:
18
+ return cast(ProjectVisibilityType, data)
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#Projects``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.project
7
+
8
+ Projects: TypeAlias = list["capo_codebuild.types.project.Project"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: Projects) -> list:
13
+ import capo_codebuild.types.project
14
+
15
+ out: list = []
16
+ for item in value:
17
+ out.append(capo_codebuild.types.project.serialize_aws_json_1_1(item))
18
+ return out
19
+
20
+
21
+ def deserialize_aws_json_1_1(data: list) -> Projects:
22
+ import capo_codebuild.types.project
23
+
24
+ out: Projects = []
25
+ for item in data:
26
+ if item is None:
27
+ continue
28
+ out.append(capo_codebuild.types.project.deserialize_aws_json_1_1(item))
29
+ return out
@@ -0,0 +1,63 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#ProxyConfiguration``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codebuild.types.fleet_proxy_rule_behavior
9
+ import capo_codebuild.types.fleet_proxy_rules
10
+
11
+
12
+ class ProxyConfiguration(TypedDict, closed=True):
13
+ default_behavior: NotRequired[
14
+ "capo_codebuild.types.fleet_proxy_rule_behavior.FleetProxyRuleBehavior"
15
+ ]
16
+ """<p>The default behavior of outgoing traffic.</p>"""
17
+ ordered_proxy_rules: NotRequired[
18
+ "capo_codebuild.types.fleet_proxy_rules.FleetProxyRules"
19
+ ]
20
+ """<p>An array of <code>FleetProxyRule</code> objects that represent the specified destination domains or IPs to allow or deny network access control to.</p>"""
21
+
22
+
23
+ # --- awsJson1_1 ser/de ---
24
+ def serialize_aws_json_1_1(value: ProxyConfiguration) -> dict:
25
+ out: dict = {}
26
+ if "default_behavior" in value:
27
+ import capo_codebuild.types.fleet_proxy_rule_behavior
28
+
29
+ out["defaultBehavior"] = (
30
+ capo_codebuild.types.fleet_proxy_rule_behavior.serialize_aws_json_1_1(
31
+ value["default_behavior"]
32
+ )
33
+ )
34
+ if "ordered_proxy_rules" in value:
35
+ import capo_codebuild.types.fleet_proxy_rules
36
+
37
+ out["orderedProxyRules"] = (
38
+ capo_codebuild.types.fleet_proxy_rules.serialize_aws_json_1_1(
39
+ value["ordered_proxy_rules"]
40
+ )
41
+ )
42
+ return out
43
+
44
+
45
+ def deserialize_aws_json_1_1(data: dict) -> ProxyConfiguration:
46
+ out: ProxyConfiguration = {} # type: ignore[typeddict-item]
47
+ if data.get("defaultBehavior") is not None:
48
+ import capo_codebuild.types.fleet_proxy_rule_behavior
49
+
50
+ out["default_behavior"] = (
51
+ capo_codebuild.types.fleet_proxy_rule_behavior.deserialize_aws_json_1_1(
52
+ data["defaultBehavior"]
53
+ )
54
+ )
55
+ if data.get("orderedProxyRules") is not None:
56
+ import capo_codebuild.types.fleet_proxy_rules
57
+
58
+ out["ordered_proxy_rules"] = (
59
+ capo_codebuild.types.fleet_proxy_rules.deserialize_aws_json_1_1(
60
+ data["orderedProxyRules"]
61
+ )
62
+ )
63
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#PullRequestBuildApproverRole``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ PullRequestBuildApproverRole: TypeAlias = Literal[
6
+ "GITHUB_READ",
7
+ "GITHUB_TRIAGE",
8
+ "GITHUB_WRITE",
9
+ "GITHUB_MAINTAIN",
10
+ "GITHUB_ADMIN",
11
+ "GITLAB_GUEST",
12
+ "GITLAB_PLANNER",
13
+ "GITLAB_REPORTER",
14
+ "GITLAB_DEVELOPER",
15
+ "GITLAB_MAINTAINER",
16
+ "GITLAB_OWNER",
17
+ "BITBUCKET_READ",
18
+ "BITBUCKET_WRITE",
19
+ "BITBUCKET_ADMIN",
20
+ ]
21
+
22
+
23
+ # --- awsJson1_1 ser/de ---
24
+ def serialize_aws_json_1_1(value: PullRequestBuildApproverRole) -> str:
25
+ return value
26
+
27
+
28
+ def deserialize_aws_json_1_1(data: str) -> PullRequestBuildApproverRole:
29
+ return cast(PullRequestBuildApproverRole, data)
@@ -0,0 +1,39 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#PullRequestBuildApproverRoles``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codebuild.types.pull_request_build_approver_role
7
+
8
+ PullRequestBuildApproverRoles: TypeAlias = list[
9
+ "capo_codebuild.types.pull_request_build_approver_role.PullRequestBuildApproverRole"
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: PullRequestBuildApproverRoles) -> list:
15
+ import capo_codebuild.types.pull_request_build_approver_role
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(
20
+ capo_codebuild.types.pull_request_build_approver_role.serialize_aws_json_1_1(
21
+ item
22
+ )
23
+ )
24
+ return out
25
+
26
+
27
+ def deserialize_aws_json_1_1(data: list) -> PullRequestBuildApproverRoles:
28
+ import capo_codebuild.types.pull_request_build_approver_role
29
+
30
+ out: PullRequestBuildApproverRoles = []
31
+ for item in data:
32
+ if item is None:
33
+ continue
34
+ out.append(
35
+ capo_codebuild.types.pull_request_build_approver_role.deserialize_aws_json_1_1(
36
+ item
37
+ )
38
+ )
39
+ return out
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#PullRequestBuildCommentApproval``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ PullRequestBuildCommentApproval: TypeAlias = Literal[
6
+ "DISABLED",
7
+ "ALL_PULL_REQUESTS",
8
+ "FORK_PULL_REQUESTS",
9
+ ]
10
+
11
+
12
+ # --- awsJson1_1 ser/de ---
13
+ def serialize_aws_json_1_1(value: PullRequestBuildCommentApproval) -> str:
14
+ return value
15
+
16
+
17
+ def deserialize_aws_json_1_1(data: str) -> PullRequestBuildCommentApproval:
18
+ return cast(PullRequestBuildCommentApproval, data)
@@ -0,0 +1,66 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#PullRequestBuildPolicy``."""
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.pull_request_build_approver_roles
11
+ import capo_codebuild.types.pull_request_build_comment_approval
12
+
13
+
14
+ class PullRequestBuildPolicy(TypedDict, closed=True):
15
+ requires_comment_approval: "capo_codebuild.types.pull_request_build_comment_approval.PullRequestBuildCommentApproval"
16
+ """<p>Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.</p> <ul> <li> <p> <i>DISABLED</i>: Builds trigger automatically without requiring comment approval</p> </li> <li> <p> <i>ALL_PULL_REQUESTS</i>: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)</p> </li> <li> <p> <i>FORK_PULL_REQUESTS</i>: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)</p> </li> </ul>"""
17
+ approver_roles: NotRequired[
18
+ "capo_codebuild.types.pull_request_build_approver_roles.PullRequestBuildApproverRoles"
19
+ ]
20
+ """<p>List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when <code>requiresCommentApproval</code> is not <i>DISABLED</i>.</p>"""
21
+
22
+
23
+ # --- awsJson1_1 ser/de ---
24
+ def serialize_aws_json_1_1(value: PullRequestBuildPolicy) -> dict:
25
+ out: dict = {}
26
+ import capo_codebuild.types.pull_request_build_comment_approval
27
+
28
+ out["requiresCommentApproval"] = (
29
+ capo_codebuild.types.pull_request_build_comment_approval.serialize_aws_json_1_1(
30
+ value["requires_comment_approval"]
31
+ )
32
+ )
33
+ if "approver_roles" in value:
34
+ import capo_codebuild.types.pull_request_build_approver_roles
35
+
36
+ out["approverRoles"] = (
37
+ capo_codebuild.types.pull_request_build_approver_roles.serialize_aws_json_1_1(
38
+ value["approver_roles"]
39
+ )
40
+ )
41
+ return out
42
+
43
+
44
+ def deserialize_aws_json_1_1(data: dict) -> PullRequestBuildPolicy:
45
+ out: PullRequestBuildPolicy = {} # type: ignore[typeddict-item]
46
+ if data.get("requiresCommentApproval") is not None:
47
+ import capo_codebuild.types.pull_request_build_comment_approval
48
+
49
+ out["requires_comment_approval"] = (
50
+ capo_codebuild.types.pull_request_build_comment_approval.deserialize_aws_json_1_1(
51
+ data["requiresCommentApproval"]
52
+ )
53
+ )
54
+ else:
55
+ raise DeserializationError(
56
+ "PullRequestBuildPolicy.requires_comment_approval required"
57
+ )
58
+ if data.get("approverRoles") is not None:
59
+ import capo_codebuild.types.pull_request_build_approver_roles
60
+
61
+ out["approver_roles"] = (
62
+ capo_codebuild.types.pull_request_build_approver_roles.deserialize_aws_json_1_1(
63
+ data["approverRoles"]
64
+ )
65
+ )
66
+ return out
@@ -0,0 +1,38 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#PutResourcePolicyInput``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_codebuild.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codebuild.types.non_empty_string
11
+
12
+
13
+ class PutResourcePolicyInput(TypedDict, closed=True):
14
+ policy: "capo_codebuild.types.non_empty_string.NonEmptyString"
15
+ r"""<p> A JSON-formatted resource policy. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share\">Sharing a Project</a> and <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share\">Sharing a Report Group</a> in the <i>CodeBuild User Guide</i>. </p>"""
16
+ resource_arn: "capo_codebuild.types.non_empty_string.NonEmptyString"
17
+ """<p> The ARN of the <code>Project</code> or <code>ReportGroup</code> resource you want to associate with a resource policy. </p>"""
18
+
19
+
20
+ # --- awsJson1_1 ser/de ---
21
+ def serialize_aws_json_1_1(value: PutResourcePolicyInput) -> dict:
22
+ out: dict = {}
23
+ out["policy"] = value["policy"]
24
+ out["resourceArn"] = value["resource_arn"]
25
+ return out
26
+
27
+
28
+ def deserialize_aws_json_1_1(data: dict) -> PutResourcePolicyInput:
29
+ out: PutResourcePolicyInput = {} # type: ignore[typeddict-item]
30
+ if data.get("policy") is not None:
31
+ out["policy"] = data["policy"]
32
+ else:
33
+ raise DeserializationError("PutResourcePolicyInput.policy required")
34
+ if data.get("resourceArn") is not None:
35
+ out["resource_arn"] = data["resourceArn"]
36
+ else:
37
+ raise DeserializationError("PutResourcePolicyInput.resource_arn required")
38
+ return out
@@ -0,0 +1,28 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#PutResourcePolicyOutput``."""
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
+
10
+
11
+ class PutResourcePolicyOutput(TypedDict, closed=True):
12
+ resource_arn: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
13
+ """<p> The ARN of the <code>Project</code> or <code>ReportGroup</code> resource that is associated with a resource policy. </p>"""
14
+
15
+
16
+ # --- awsJson1_1 ser/de ---
17
+ def serialize_aws_json_1_1(value: PutResourcePolicyOutput) -> dict:
18
+ out: dict = {}
19
+ if "resource_arn" in value:
20
+ out["resourceArn"] = value["resource_arn"]
21
+ return out
22
+
23
+
24
+ def deserialize_aws_json_1_1(data: dict) -> PutResourcePolicyOutput:
25
+ out: PutResourcePolicyOutput = {} # type: ignore[typeddict-item]
26
+ if data.get("resourceArn") is not None:
27
+ out["resource_arn"] = data["resourceArn"]
28
+ return out
@@ -0,0 +1,53 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codebuild#RegistryCredential``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_codebuild.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codebuild.types.credential_provider_type
11
+ import capo_codebuild.types.non_empty_string
12
+
13
+
14
+ class RegistryCredential(TypedDict, closed=True):
15
+ credential: "capo_codebuild.types.non_empty_string.NonEmptyString"
16
+ """<p> The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager. </p> <note> <p> The <code>credential</code> can use the name of the credentials only if they exist in your current Amazon Web Services Region. </p> </note>"""
17
+ credential_provider: (
18
+ "capo_codebuild.types.credential_provider_type.CredentialProviderType"
19
+ )
20
+ """<p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager. </p>"""
21
+
22
+
23
+ # --- awsJson1_1 ser/de ---
24
+ def serialize_aws_json_1_1(value: RegistryCredential) -> dict:
25
+ out: dict = {}
26
+ out["credential"] = value["credential"]
27
+ import capo_codebuild.types.credential_provider_type
28
+
29
+ out["credentialProvider"] = (
30
+ capo_codebuild.types.credential_provider_type.serialize_aws_json_1_1(
31
+ value["credential_provider"]
32
+ )
33
+ )
34
+ return out
35
+
36
+
37
+ def deserialize_aws_json_1_1(data: dict) -> RegistryCredential:
38
+ out: RegistryCredential = {} # type: ignore[typeddict-item]
39
+ if data.get("credential") is not None:
40
+ out["credential"] = data["credential"]
41
+ else:
42
+ raise DeserializationError("RegistryCredential.credential required")
43
+ if data.get("credentialProvider") is not None:
44
+ import capo_codebuild.types.credential_provider_type
45
+
46
+ out["credential_provider"] = (
47
+ capo_codebuild.types.credential_provider_type.deserialize_aws_json_1_1(
48
+ data["credentialProvider"]
49
+ )
50
+ )
51
+ else:
52
+ raise DeserializationError("RegistryCredential.credential_provider required")
53
+ return out