capo-codedeploy 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 (472) hide show
  1. capo_codedeploy/__init__.py +70 -0
  2. capo_codedeploy/_async.py +25 -0
  3. capo_codedeploy/_auth/_identity.py +16 -0
  4. capo_codedeploy/_auth/_providers.py +886 -0
  5. capo_codedeploy/_auth/_signers.py +88 -0
  6. capo_codedeploy/_auth/_sigv4.py +434 -0
  7. capo_codedeploy/_auth/_zapros_handler.py +80 -0
  8. capo_codedeploy/_iter.py +113 -0
  9. capo_codedeploy/_operations/code_deploy_20141006/add_tags_to_on_premises_instances.py +153 -0
  10. capo_codedeploy/_operations/code_deploy_20141006/batch_get_application_revisions.py +173 -0
  11. capo_codedeploy/_operations/code_deploy_20141006/batch_get_applications.py +163 -0
  12. capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployment_groups.py +178 -0
  13. capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployment_instances.py +178 -0
  14. capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployment_targets.py +188 -0
  15. capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployments.py +158 -0
  16. capo_codedeploy/_operations/code_deploy_20141006/batch_get_on_premises_instances.py +158 -0
  17. capo_codedeploy/_operations/code_deploy_20141006/continue_deployment.py +155 -0
  18. capo_codedeploy/_operations/code_deploy_20141006/create_application.py +175 -0
  19. capo_codedeploy/_operations/code_deploy_20141006/create_deployment.py +278 -0
  20. capo_codedeploy/_operations/code_deploy_20141006/create_deployment_config.py +185 -0
  21. capo_codedeploy/_operations/code_deploy_20141006/create_deployment_group.py +320 -0
  22. capo_codedeploy/_operations/code_deploy_20141006/delete_application.py +129 -0
  23. capo_codedeploy/_operations/code_deploy_20141006/delete_deployment_config.py +136 -0
  24. capo_codedeploy/_operations/code_deploy_20141006/delete_deployment_group.py +167 -0
  25. capo_codedeploy/_operations/code_deploy_20141006/delete_git_hub_account_token.py +166 -0
  26. capo_codedeploy/_operations/code_deploy_20141006/delete_resources_by_external_id.py +137 -0
  27. capo_codedeploy/_operations/code_deploy_20141006/deregister_on_premises_instance.py +126 -0
  28. capo_codedeploy/_operations/code_deploy_20141006/get_application.py +157 -0
  29. capo_codedeploy/_operations/code_deploy_20141006/get_application_revision.py +173 -0
  30. capo_codedeploy/_operations/code_deploy_20141006/get_deployment.py +157 -0
  31. capo_codedeploy/_operations/code_deploy_20141006/get_deployment_config.py +162 -0
  32. capo_codedeploy/_operations/code_deploy_20141006/get_deployment_group.py +179 -0
  33. capo_codedeploy/_operations/code_deploy_20141006/get_deployment_instance.py +177 -0
  34. capo_codedeploy/_operations/code_deploy_20141006/get_deployment_target.py +182 -0
  35. capo_codedeploy/_operations/code_deploy_20141006/get_on_premises_instance.py +157 -0
  36. capo_codedeploy/_operations/code_deploy_20141006/list_application_revisions.py +195 -0
  37. capo_codedeploy/_operations/code_deploy_20141006/list_applications.py +149 -0
  38. capo_codedeploy/_operations/code_deploy_20141006/list_deployment_configs.py +147 -0
  39. capo_codedeploy/_operations/code_deploy_20141006/list_deployment_groups.py +162 -0
  40. capo_codedeploy/_operations/code_deploy_20141006/list_deployment_instances.py +198 -0
  41. capo_codedeploy/_operations/code_deploy_20141006/list_deployment_targets.py +188 -0
  42. capo_codedeploy/_operations/code_deploy_20141006/list_deployments.py +199 -0
  43. capo_codedeploy/_operations/code_deploy_20141006/list_git_hub_account_token_names.py +157 -0
  44. capo_codedeploy/_operations/code_deploy_20141006/list_on_premises_instances.py +159 -0
  45. capo_codedeploy/_operations/code_deploy_20141006/list_tags_for_resource.py +157 -0
  46. capo_codedeploy/_operations/code_deploy_20141006/put_lifecycle_event_hook_execution_status.py +177 -0
  47. capo_codedeploy/_operations/code_deploy_20141006/register_application_revision.py +147 -0
  48. capo_codedeploy/_operations/code_deploy_20141006/register_on_premises_instance.py +166 -0
  49. capo_codedeploy/_operations/code_deploy_20141006/remove_tags_from_on_premises_instances.py +153 -0
  50. capo_codedeploy/_operations/code_deploy_20141006/skip_wait_time_for_instance_termination.py +146 -0
  51. capo_codedeploy/_operations/code_deploy_20141006/stop_deployment.py +172 -0
  52. capo_codedeploy/_operations/code_deploy_20141006/tag_resource.py +174 -0
  53. capo_codedeploy/_operations/code_deploy_20141006/untag_resource.py +174 -0
  54. capo_codedeploy/_operations/code_deploy_20141006/update_application.py +134 -0
  55. capo_codedeploy/_operations/code_deploy_20141006/update_deployment_group.py +310 -0
  56. capo_codedeploy/_pagination.py +21 -0
  57. capo_codedeploy/_protocol/__init__.py +1 -0
  58. capo_codedeploy/_protocol/errors.py +93 -0
  59. capo_codedeploy/_protocol/eventstream.py +238 -0
  60. capo_codedeploy/_protocol/serialize.py +47 -0
  61. capo_codedeploy/_protocol/xml.py +33 -0
  62. capo_codedeploy/_rule_engine/__init__.py +0 -0
  63. capo_codedeploy/_rule_engine/_aws_partition.py +160 -0
  64. capo_codedeploy/_rule_engine/_endpoint_rule_set.py +138 -0
  65. capo_codedeploy/_rule_engine/_endpoint_runtime.py +389 -0
  66. capo_codedeploy/_services/_aws_config.py +160 -0
  67. capo_codedeploy/_services/_pipeline.py +198 -0
  68. capo_codedeploy/_services/async_code_deploy.py +3278 -0
  69. capo_codedeploy/_services/code_deploy.py +3229 -0
  70. capo_codedeploy/errors/__init__.py +335 -0
  71. capo_codedeploy/errors/_base.py +94 -0
  72. capo_codedeploy/errors/alarms_limit_exceeded_exception.py +52 -0
  73. capo_codedeploy/errors/application_already_exists_exception.py +54 -0
  74. capo_codedeploy/errors/application_does_not_exist_exception.py +54 -0
  75. capo_codedeploy/errors/application_limit_exceeded_exception.py +54 -0
  76. capo_codedeploy/errors/application_name_required_exception.py +54 -0
  77. capo_codedeploy/errors/arn_not_supported_exception.py +52 -0
  78. capo_codedeploy/errors/batch_limit_exceeded_exception.py +52 -0
  79. capo_codedeploy/errors/bucket_name_filter_required_exception.py +54 -0
  80. capo_codedeploy/errors/deployment_already_completed_exception.py +54 -0
  81. capo_codedeploy/errors/deployment_config_already_exists_exception.py +54 -0
  82. capo_codedeploy/errors/deployment_config_does_not_exist_exception.py +54 -0
  83. capo_codedeploy/errors/deployment_config_in_use_exception.py +54 -0
  84. capo_codedeploy/errors/deployment_config_limit_exceeded_exception.py +54 -0
  85. capo_codedeploy/errors/deployment_config_name_required_exception.py +54 -0
  86. capo_codedeploy/errors/deployment_does_not_exist_exception.py +54 -0
  87. capo_codedeploy/errors/deployment_group_already_exists_exception.py +54 -0
  88. capo_codedeploy/errors/deployment_group_does_not_exist_exception.py +54 -0
  89. capo_codedeploy/errors/deployment_group_limit_exceeded_exception.py +54 -0
  90. capo_codedeploy/errors/deployment_group_name_required_exception.py +54 -0
  91. capo_codedeploy/errors/deployment_id_required_exception.py +54 -0
  92. capo_codedeploy/errors/deployment_is_not_in_ready_state_exception.py +54 -0
  93. capo_codedeploy/errors/deployment_limit_exceeded_exception.py +54 -0
  94. capo_codedeploy/errors/deployment_not_started_exception.py +54 -0
  95. capo_codedeploy/errors/deployment_target_does_not_exist_exception.py +54 -0
  96. capo_codedeploy/errors/deployment_target_id_required_exception.py +54 -0
  97. capo_codedeploy/errors/deployment_target_list_size_exceeded_exception.py +56 -0
  98. capo_codedeploy/errors/description_too_long_exception.py +52 -0
  99. capo_codedeploy/errors/ecs_service_mapping_limit_exceeded_exception.py +54 -0
  100. capo_codedeploy/errors/git_hub_account_token_does_not_exist_exception.py +54 -0
  101. capo_codedeploy/errors/git_hub_account_token_name_required_exception.py +54 -0
  102. capo_codedeploy/errors/iam_arn_required_exception.py +52 -0
  103. capo_codedeploy/errors/iam_session_arn_already_registered_exception.py +54 -0
  104. capo_codedeploy/errors/iam_user_arn_already_registered_exception.py +54 -0
  105. capo_codedeploy/errors/iam_user_arn_required_exception.py +52 -0
  106. capo_codedeploy/errors/instance_does_not_exist_exception.py +54 -0
  107. capo_codedeploy/errors/instance_id_required_exception.py +52 -0
  108. capo_codedeploy/errors/instance_limit_exceeded_exception.py +54 -0
  109. capo_codedeploy/errors/instance_name_already_registered_exception.py +54 -0
  110. capo_codedeploy/errors/instance_name_required_exception.py +54 -0
  111. capo_codedeploy/errors/instance_not_registered_exception.py +54 -0
  112. capo_codedeploy/errors/invalid_alarm_config_exception.py +52 -0
  113. capo_codedeploy/errors/invalid_application_name_exception.py +54 -0
  114. capo_codedeploy/errors/invalid_arn_exception.py +52 -0
  115. capo_codedeploy/errors/invalid_auto_rollback_config_exception.py +54 -0
  116. capo_codedeploy/errors/invalid_auto_scaling_group_exception.py +54 -0
  117. capo_codedeploy/errors/invalid_blue_green_deployment_configuration_exception.py +60 -0
  118. capo_codedeploy/errors/invalid_bucket_name_filter_exception.py +54 -0
  119. capo_codedeploy/errors/invalid_compute_platform_exception.py +54 -0
  120. capo_codedeploy/errors/invalid_deployed_state_filter_exception.py +54 -0
  121. capo_codedeploy/errors/invalid_deployment_config_name_exception.py +54 -0
  122. capo_codedeploy/errors/invalid_deployment_group_name_exception.py +54 -0
  123. capo_codedeploy/errors/invalid_deployment_id_exception.py +52 -0
  124. capo_codedeploy/errors/invalid_deployment_instance_type_exception.py +54 -0
  125. capo_codedeploy/errors/invalid_deployment_status_exception.py +54 -0
  126. capo_codedeploy/errors/invalid_deployment_style_exception.py +54 -0
  127. capo_codedeploy/errors/invalid_deployment_target_id_exception.py +54 -0
  128. capo_codedeploy/errors/invalid_deployment_wait_type_exception.py +54 -0
  129. capo_codedeploy/errors/invalid_ec2_tag_combination_exception.py +54 -0
  130. capo_codedeploy/errors/invalid_ec2_tag_exception.py +52 -0
  131. capo_codedeploy/errors/invalid_ecs_service_exception.py +52 -0
  132. capo_codedeploy/errors/invalid_external_id_exception.py +52 -0
  133. capo_codedeploy/errors/invalid_file_exists_behavior_exception.py +54 -0
  134. capo_codedeploy/errors/invalid_git_hub_account_token_exception.py +54 -0
  135. capo_codedeploy/errors/invalid_git_hub_account_token_name_exception.py +54 -0
  136. capo_codedeploy/errors/invalid_iam_session_arn_exception.py +54 -0
  137. capo_codedeploy/errors/invalid_iam_user_arn_exception.py +52 -0
  138. capo_codedeploy/errors/invalid_ignore_application_stop_failures_value_exception.py +60 -0
  139. capo_codedeploy/errors/invalid_input_exception.py +52 -0
  140. capo_codedeploy/errors/invalid_instance_name_exception.py +52 -0
  141. capo_codedeploy/errors/invalid_instance_status_exception.py +54 -0
  142. capo_codedeploy/errors/invalid_instance_type_exception.py +52 -0
  143. capo_codedeploy/errors/invalid_key_prefix_filter_exception.py +54 -0
  144. capo_codedeploy/errors/invalid_lifecycle_event_hook_execution_id_exception.py +60 -0
  145. capo_codedeploy/errors/invalid_lifecycle_event_hook_execution_status_exception.py +60 -0
  146. capo_codedeploy/errors/invalid_load_balancer_info_exception.py +54 -0
  147. capo_codedeploy/errors/invalid_minimum_healthy_host_value_exception.py +54 -0
  148. capo_codedeploy/errors/invalid_next_token_exception.py +52 -0
  149. capo_codedeploy/errors/invalid_on_premises_tag_combination_exception.py +56 -0
  150. capo_codedeploy/errors/invalid_operation_exception.py +52 -0
  151. capo_codedeploy/errors/invalid_registration_status_exception.py +54 -0
  152. capo_codedeploy/errors/invalid_revision_exception.py +52 -0
  153. capo_codedeploy/errors/invalid_role_exception.py +52 -0
  154. capo_codedeploy/errors/invalid_sort_by_exception.py +52 -0
  155. capo_codedeploy/errors/invalid_sort_order_exception.py +52 -0
  156. capo_codedeploy/errors/invalid_tag_exception.py +52 -0
  157. capo_codedeploy/errors/invalid_tag_filter_exception.py +52 -0
  158. capo_codedeploy/errors/invalid_tags_to_add_exception.py +52 -0
  159. capo_codedeploy/errors/invalid_target_filter_name_exception.py +54 -0
  160. capo_codedeploy/errors/invalid_target_group_pair_exception.py +54 -0
  161. capo_codedeploy/errors/invalid_target_instances_exception.py +54 -0
  162. capo_codedeploy/errors/invalid_time_range_exception.py +52 -0
  163. capo_codedeploy/errors/invalid_traffic_routing_configuration_exception.py +58 -0
  164. capo_codedeploy/errors/invalid_trigger_config_exception.py +54 -0
  165. capo_codedeploy/errors/invalid_update_outdated_instances_only_value_exception.py +60 -0
  166. capo_codedeploy/errors/invalid_zonal_deployment_configuration_exception.py +60 -0
  167. capo_codedeploy/errors/lifecycle_event_already_completed_exception.py +54 -0
  168. capo_codedeploy/errors/lifecycle_hook_limit_exceeded_exception.py +54 -0
  169. capo_codedeploy/errors/multiple_iam_arns_provided_exception.py +54 -0
  170. capo_codedeploy/errors/operation_not_supported_exception.py +54 -0
  171. capo_codedeploy/errors/resource_arn_required_exception.py +52 -0
  172. capo_codedeploy/errors/resource_validation_exception.py +52 -0
  173. capo_codedeploy/errors/revision_does_not_exist_exception.py +54 -0
  174. capo_codedeploy/errors/revision_required_exception.py +52 -0
  175. capo_codedeploy/errors/role_required_exception.py +52 -0
  176. capo_codedeploy/errors/tag_limit_exceeded_exception.py +52 -0
  177. capo_codedeploy/errors/tag_required_exception.py +52 -0
  178. capo_codedeploy/errors/tag_set_list_limit_exceeded_exception.py +54 -0
  179. capo_codedeploy/errors/throttling_exception.py +52 -0
  180. capo_codedeploy/errors/trigger_targets_limit_exceeded_exception.py +54 -0
  181. capo_codedeploy/errors/unsupported_action_for_deployment_type_exception.py +58 -0
  182. capo_codedeploy/py.typed +0 -0
  183. capo_codedeploy/types/_prelude/blob.py +12 -0
  184. capo_codedeploy/types/_prelude/timestamp.py +17 -0
  185. capo_codedeploy/types/add_tags_to_on_premises_instances_input.py +59 -0
  186. capo_codedeploy/types/additional_deployment_status_info.py +5 -0
  187. capo_codedeploy/types/alarm.py +28 -0
  188. capo_codedeploy/types/alarm_configuration.py +51 -0
  189. capo_codedeploy/types/alarm_list.py +29 -0
  190. capo_codedeploy/types/alarm_name.py +5 -0
  191. capo_codedeploy/types/app_spec_content.py +35 -0
  192. capo_codedeploy/types/application_id.py +5 -0
  193. capo_codedeploy/types/application_info.py +90 -0
  194. capo_codedeploy/types/application_name.py +5 -0
  195. capo_codedeploy/types/application_revision_sort_by.py +18 -0
  196. capo_codedeploy/types/applications_info_list.py +33 -0
  197. capo_codedeploy/types/applications_list.py +19 -0
  198. capo_codedeploy/types/arn.py +5 -0
  199. capo_codedeploy/types/auto_rollback_configuration.py +50 -0
  200. capo_codedeploy/types/auto_rollback_event.py +18 -0
  201. capo_codedeploy/types/auto_rollback_events_list.py +35 -0
  202. capo_codedeploy/types/auto_scaling_group.py +47 -0
  203. capo_codedeploy/types/auto_scaling_group_hook.py +5 -0
  204. capo_codedeploy/types/auto_scaling_group_list.py +35 -0
  205. capo_codedeploy/types/auto_scaling_group_name.py +5 -0
  206. capo_codedeploy/types/auto_scaling_group_name_list.py +19 -0
  207. capo_codedeploy/types/batch_get_application_revisions_input.py +55 -0
  208. capo_codedeploy/types/batch_get_application_revisions_output.py +56 -0
  209. capo_codedeploy/types/batch_get_applications_input.py +45 -0
  210. capo_codedeploy/types/batch_get_applications_output.py +42 -0
  211. capo_codedeploy/types/batch_get_deployment_groups_input.py +57 -0
  212. capo_codedeploy/types/batch_get_deployment_groups_output.py +49 -0
  213. capo_codedeploy/types/batch_get_deployment_instances_input.py +53 -0
  214. capo_codedeploy/types/batch_get_deployment_instances_output.py +49 -0
  215. capo_codedeploy/types/batch_get_deployment_targets_input.py +51 -0
  216. capo_codedeploy/types/batch_get_deployment_targets_output.py +42 -0
  217. capo_codedeploy/types/batch_get_deployments_input.py +43 -0
  218. capo_codedeploy/types/batch_get_deployments_output.py +42 -0
  219. capo_codedeploy/types/batch_get_on_premises_instances_input.py +45 -0
  220. capo_codedeploy/types/batch_get_on_premises_instances_output.py +42 -0
  221. capo_codedeploy/types/blue_green_deployment_configuration.py +84 -0
  222. capo_codedeploy/types/blue_instance_termination_option.py +46 -0
  223. capo_codedeploy/types/boolean.py +5 -0
  224. capo_codedeploy/types/bundle_type.py +20 -0
  225. capo_codedeploy/types/cloud_formation_resource_type.py +5 -0
  226. capo_codedeploy/types/cloud_formation_target.py +112 -0
  227. capo_codedeploy/types/commit_id.py +5 -0
  228. capo_codedeploy/types/compute_platform.py +18 -0
  229. capo_codedeploy/types/continue_deployment_input.py +49 -0
  230. capo_codedeploy/types/create_application_input.py +67 -0
  231. capo_codedeploy/types/create_application_output.py +28 -0
  232. capo_codedeploy/types/create_deployment_config_input.py +115 -0
  233. capo_codedeploy/types/create_deployment_config_output.py +30 -0
  234. capo_codedeploy/types/create_deployment_group_input.py +353 -0
  235. capo_codedeploy/types/create_deployment_group_output.py +30 -0
  236. capo_codedeploy/types/create_deployment_input.py +178 -0
  237. capo_codedeploy/types/create_deployment_output.py +28 -0
  238. capo_codedeploy/types/delete_application_input.py +31 -0
  239. capo_codedeploy/types/delete_deployment_config_input.py +35 -0
  240. capo_codedeploy/types/delete_deployment_group_input.py +45 -0
  241. capo_codedeploy/types/delete_deployment_group_output.py +42 -0
  242. capo_codedeploy/types/delete_git_hub_account_token_input.py +30 -0
  243. capo_codedeploy/types/delete_git_hub_account_token_output.py +30 -0
  244. capo_codedeploy/types/delete_resources_by_external_id_input.py +28 -0
  245. capo_codedeploy/types/delete_resources_by_external_id_output.py +18 -0
  246. capo_codedeploy/types/deployment_config_id.py +5 -0
  247. capo_codedeploy/types/deployment_config_info.py +134 -0
  248. capo_codedeploy/types/deployment_config_name.py +5 -0
  249. capo_codedeploy/types/deployment_configs_list.py +19 -0
  250. capo_codedeploy/types/deployment_creator.py +23 -0
  251. capo_codedeploy/types/deployment_group_id.py +5 -0
  252. capo_codedeploy/types/deployment_group_info.py +420 -0
  253. capo_codedeploy/types/deployment_group_info_list.py +35 -0
  254. capo_codedeploy/types/deployment_group_name.py +5 -0
  255. capo_codedeploy/types/deployment_groups_list.py +19 -0
  256. capo_codedeploy/types/deployment_id.py +5 -0
  257. capo_codedeploy/types/deployment_info.py +499 -0
  258. capo_codedeploy/types/deployment_option.py +17 -0
  259. capo_codedeploy/types/deployment_overview.py +64 -0
  260. capo_codedeploy/types/deployment_ready_action.py +17 -0
  261. capo_codedeploy/types/deployment_ready_option.py +50 -0
  262. capo_codedeploy/types/deployment_status.py +23 -0
  263. capo_codedeploy/types/deployment_status_list.py +33 -0
  264. capo_codedeploy/types/deployment_status_message_list.py +19 -0
  265. capo_codedeploy/types/deployment_style.py +61 -0
  266. capo_codedeploy/types/deployment_target.py +115 -0
  267. capo_codedeploy/types/deployment_target_list.py +33 -0
  268. capo_codedeploy/types/deployment_target_type.py +19 -0
  269. capo_codedeploy/types/deployment_type.py +17 -0
  270. capo_codedeploy/types/deployment_wait_type.py +17 -0
  271. capo_codedeploy/types/deployments_info_list.py +31 -0
  272. capo_codedeploy/types/deployments_list.py +17 -0
  273. capo_codedeploy/types/deregister_on_premises_instance_input.py +33 -0
  274. capo_codedeploy/types/description.py +5 -0
  275. capo_codedeploy/types/diagnostics.py +63 -0
  276. capo_codedeploy/types/duration.py +5 -0
  277. capo_codedeploy/types/e_tag.py +5 -0
  278. capo_codedeploy/types/ec2_tag_filter.py +52 -0
  279. capo_codedeploy/types/ec2_tag_filter_list.py +29 -0
  280. capo_codedeploy/types/ec2_tag_filter_type.py +18 -0
  281. capo_codedeploy/types/ec2_tag_set.py +42 -0
  282. capo_codedeploy/types/ec2_tag_set_list.py +35 -0
  283. capo_codedeploy/types/ecs_cluster_name.py +5 -0
  284. capo_codedeploy/types/ecs_service.py +35 -0
  285. capo_codedeploy/types/ecs_service_list.py +29 -0
  286. capo_codedeploy/types/ecs_service_name.py +5 -0
  287. capo_codedeploy/types/ecs_target.py +114 -0
  288. capo_codedeploy/types/ecs_task_set.py +111 -0
  289. capo_codedeploy/types/ecs_task_set_count.py +5 -0
  290. capo_codedeploy/types/ecs_task_set_identifier.py +5 -0
  291. capo_codedeploy/types/ecs_task_set_list.py +29 -0
  292. capo_codedeploy/types/ecs_task_set_status.py +5 -0
  293. capo_codedeploy/types/elb_info.py +28 -0
  294. capo_codedeploy/types/elb_info_list.py +29 -0
  295. capo_codedeploy/types/elb_name.py +5 -0
  296. capo_codedeploy/types/error_code.py +49 -0
  297. capo_codedeploy/types/error_information.py +43 -0
  298. capo_codedeploy/types/error_message.py +5 -0
  299. capo_codedeploy/types/external_id.py +5 -0
  300. capo_codedeploy/types/file_exists_behavior.py +18 -0
  301. capo_codedeploy/types/filter_value.py +5 -0
  302. capo_codedeploy/types/filter_value_list.py +17 -0
  303. capo_codedeploy/types/generic_revision_info.py +96 -0
  304. capo_codedeploy/types/get_application_input.py +31 -0
  305. capo_codedeploy/types/get_application_output.py +40 -0
  306. capo_codedeploy/types/get_application_revision_input.py +51 -0
  307. capo_codedeploy/types/get_application_revision_output.py +70 -0
  308. capo_codedeploy/types/get_deployment_config_input.py +35 -0
  309. capo_codedeploy/types/get_deployment_config_output.py +42 -0
  310. capo_codedeploy/types/get_deployment_group_input.py +43 -0
  311. capo_codedeploy/types/get_deployment_group_output.py +42 -0
  312. capo_codedeploy/types/get_deployment_input.py +31 -0
  313. capo_codedeploy/types/get_deployment_instance_input.py +39 -0
  314. capo_codedeploy/types/get_deployment_instance_output.py +42 -0
  315. capo_codedeploy/types/get_deployment_output.py +40 -0
  316. capo_codedeploy/types/get_deployment_target_input.py +39 -0
  317. capo_codedeploy/types/get_deployment_target_output.py +42 -0
  318. capo_codedeploy/types/get_on_premises_instance_input.py +31 -0
  319. capo_codedeploy/types/get_on_premises_instance_output.py +40 -0
  320. capo_codedeploy/types/git_hub_account_token_name.py +5 -0
  321. capo_codedeploy/types/git_hub_account_token_name_list.py +19 -0
  322. capo_codedeploy/types/git_hub_location.py +35 -0
  323. capo_codedeploy/types/green_fleet_provisioning_action.py +17 -0
  324. capo_codedeploy/types/green_fleet_provisioning_option.py +42 -0
  325. capo_codedeploy/types/iam_session_arn.py +5 -0
  326. capo_codedeploy/types/iam_user_arn.py +5 -0
  327. capo_codedeploy/types/instance_action.py +17 -0
  328. capo_codedeploy/types/instance_arn.py +5 -0
  329. capo_codedeploy/types/instance_count.py +5 -0
  330. capo_codedeploy/types/instance_id.py +5 -0
  331. capo_codedeploy/types/instance_info.py +95 -0
  332. capo_codedeploy/types/instance_info_list.py +29 -0
  333. capo_codedeploy/types/instance_name.py +5 -0
  334. capo_codedeploy/types/instance_name_list.py +17 -0
  335. capo_codedeploy/types/instance_status.py +22 -0
  336. capo_codedeploy/types/instance_status_list.py +31 -0
  337. capo_codedeploy/types/instance_summary.py +107 -0
  338. capo_codedeploy/types/instance_summary_list.py +33 -0
  339. capo_codedeploy/types/instance_target.py +112 -0
  340. capo_codedeploy/types/instance_type.py +17 -0
  341. capo_codedeploy/types/instance_type_list.py +29 -0
  342. capo_codedeploy/types/instances_list.py +17 -0
  343. capo_codedeploy/types/key.py +5 -0
  344. capo_codedeploy/types/lambda_function_alias.py +5 -0
  345. capo_codedeploy/types/lambda_function_info.py +69 -0
  346. capo_codedeploy/types/lambda_function_name.py +5 -0
  347. capo_codedeploy/types/lambda_target.py +114 -0
  348. capo_codedeploy/types/last_deployment_info.py +74 -0
  349. capo_codedeploy/types/lifecycle_error_code.py +21 -0
  350. capo_codedeploy/types/lifecycle_event.py +95 -0
  351. capo_codedeploy/types/lifecycle_event_hook_execution_id.py +5 -0
  352. capo_codedeploy/types/lifecycle_event_list.py +31 -0
  353. capo_codedeploy/types/lifecycle_event_name.py +5 -0
  354. capo_codedeploy/types/lifecycle_event_status.py +21 -0
  355. capo_codedeploy/types/lifecycle_message.py +5 -0
  356. capo_codedeploy/types/list_application_revisions_input.py +111 -0
  357. capo_codedeploy/types/list_application_revisions_output.py +49 -0
  358. capo_codedeploy/types/list_applications_input.py +28 -0
  359. capo_codedeploy/types/list_applications_output.py +49 -0
  360. capo_codedeploy/types/list_deployment_configs_input.py +28 -0
  361. capo_codedeploy/types/list_deployment_configs_output.py +49 -0
  362. capo_codedeploy/types/list_deployment_groups_input.py +40 -0
  363. capo_codedeploy/types/list_deployment_groups_output.py +58 -0
  364. capo_codedeploy/types/list_deployment_instances_input.py +82 -0
  365. capo_codedeploy/types/list_deployment_instances_output.py +47 -0
  366. capo_codedeploy/types/list_deployment_targets_input.py +57 -0
  367. capo_codedeploy/types/list_deployment_targets_output.py +45 -0
  368. capo_codedeploy/types/list_deployments_input.py +93 -0
  369. capo_codedeploy/types/list_deployments_output.py +47 -0
  370. capo_codedeploy/types/list_git_hub_account_token_names_input.py +28 -0
  371. capo_codedeploy/types/list_git_hub_account_token_names_output.py +49 -0
  372. capo_codedeploy/types/list_on_premises_instances_input.py +68 -0
  373. capo_codedeploy/types/list_on_premises_instances_output.py +49 -0
  374. capo_codedeploy/types/list_state_filter_action.py +18 -0
  375. capo_codedeploy/types/list_tags_for_resource_input.py +38 -0
  376. capo_codedeploy/types/list_tags_for_resource_output.py +43 -0
  377. capo_codedeploy/types/listener_arn.py +5 -0
  378. capo_codedeploy/types/listener_arn_list.py +17 -0
  379. capo_codedeploy/types/load_balancer_info.py +80 -0
  380. capo_codedeploy/types/log_tail.py +5 -0
  381. capo_codedeploy/types/message.py +5 -0
  382. capo_codedeploy/types/minimum_healthy_hosts.py +50 -0
  383. capo_codedeploy/types/minimum_healthy_hosts_per_zone.py +50 -0
  384. capo_codedeploy/types/minimum_healthy_hosts_per_zone_type.py +17 -0
  385. capo_codedeploy/types/minimum_healthy_hosts_per_zone_value.py +5 -0
  386. capo_codedeploy/types/minimum_healthy_hosts_type.py +17 -0
  387. capo_codedeploy/types/minimum_healthy_hosts_value.py +5 -0
  388. capo_codedeploy/types/next_token.py +5 -0
  389. capo_codedeploy/types/nullable_boolean.py +5 -0
  390. capo_codedeploy/types/on_premises_tag_set.py +42 -0
  391. capo_codedeploy/types/on_premises_tag_set_list.py +31 -0
  392. capo_codedeploy/types/outdated_instances_strategy.py +17 -0
  393. capo_codedeploy/types/percentage.py +5 -0
  394. capo_codedeploy/types/put_lifecycle_event_hook_execution_status_input.py +60 -0
  395. capo_codedeploy/types/put_lifecycle_event_hook_execution_status_output.py +32 -0
  396. capo_codedeploy/types/raw_string.py +35 -0
  397. capo_codedeploy/types/raw_string_content.py +5 -0
  398. capo_codedeploy/types/raw_string_sha256.py +5 -0
  399. capo_codedeploy/types/register_application_revision_input.py +58 -0
  400. capo_codedeploy/types/register_on_premises_instance_input.py +47 -0
  401. capo_codedeploy/types/registration_status.py +17 -0
  402. capo_codedeploy/types/related_deployments.py +55 -0
  403. capo_codedeploy/types/remove_tags_from_on_premises_instances_input.py +61 -0
  404. capo_codedeploy/types/repository.py +5 -0
  405. capo_codedeploy/types/revision_info.py +63 -0
  406. capo_codedeploy/types/revision_info_list.py +29 -0
  407. capo_codedeploy/types/revision_location.py +114 -0
  408. capo_codedeploy/types/revision_location_list.py +33 -0
  409. capo_codedeploy/types/revision_location_type.py +19 -0
  410. capo_codedeploy/types/role.py +5 -0
  411. capo_codedeploy/types/rollback_info.py +49 -0
  412. capo_codedeploy/types/s3_bucket.py +5 -0
  413. capo_codedeploy/types/s3_key.py +5 -0
  414. capo_codedeploy/types/s3_location.py +64 -0
  415. capo_codedeploy/types/script_name.py +5 -0
  416. capo_codedeploy/types/skip_wait_time_for_instance_termination_input.py +28 -0
  417. capo_codedeploy/types/sort_order.py +17 -0
  418. capo_codedeploy/types/stop_deployment_input.py +40 -0
  419. capo_codedeploy/types/stop_deployment_output.py +43 -0
  420. capo_codedeploy/types/stop_status.py +17 -0
  421. capo_codedeploy/types/tag.py +35 -0
  422. capo_codedeploy/types/tag_filter.py +50 -0
  423. capo_codedeploy/types/tag_filter_list.py +29 -0
  424. capo_codedeploy/types/tag_filter_type.py +18 -0
  425. capo_codedeploy/types/tag_key_list.py +17 -0
  426. capo_codedeploy/types/tag_list.py +29 -0
  427. capo_codedeploy/types/tag_resource_input.py +45 -0
  428. capo_codedeploy/types/tag_resource_output.py +18 -0
  429. capo_codedeploy/types/target_arn.py +5 -0
  430. capo_codedeploy/types/target_filter_name.py +17 -0
  431. capo_codedeploy/types/target_filters.py +40 -0
  432. capo_codedeploy/types/target_group_info.py +28 -0
  433. capo_codedeploy/types/target_group_info_list.py +33 -0
  434. capo_codedeploy/types/target_group_name.py +5 -0
  435. capo_codedeploy/types/target_group_pair_info.py +79 -0
  436. capo_codedeploy/types/target_group_pair_info_list.py +35 -0
  437. capo_codedeploy/types/target_id.py +5 -0
  438. capo_codedeploy/types/target_id_list.py +17 -0
  439. capo_codedeploy/types/target_instances.py +78 -0
  440. capo_codedeploy/types/target_label.py +17 -0
  441. capo_codedeploy/types/target_status.py +22 -0
  442. capo_codedeploy/types/time.py +20 -0
  443. capo_codedeploy/types/time_based_canary.py +37 -0
  444. capo_codedeploy/types/time_based_linear.py +37 -0
  445. capo_codedeploy/types/time_range.py +50 -0
  446. capo_codedeploy/types/timestamp.py +20 -0
  447. capo_codedeploy/types/traffic_route.py +42 -0
  448. capo_codedeploy/types/traffic_routing_config.py +80 -0
  449. capo_codedeploy/types/traffic_routing_type.py +18 -0
  450. capo_codedeploy/types/traffic_weight.py +5 -0
  451. capo_codedeploy/types/trigger_config.py +58 -0
  452. capo_codedeploy/types/trigger_config_list.py +31 -0
  453. capo_codedeploy/types/trigger_event_type.py +25 -0
  454. capo_codedeploy/types/trigger_event_type_list.py +35 -0
  455. capo_codedeploy/types/trigger_name.py +5 -0
  456. capo_codedeploy/types/trigger_target_arn.py +5 -0
  457. capo_codedeploy/types/untag_resource_input.py +47 -0
  458. capo_codedeploy/types/untag_resource_output.py +18 -0
  459. capo_codedeploy/types/update_application_input.py +38 -0
  460. capo_codedeploy/types/update_deployment_group_input.py +343 -0
  461. capo_codedeploy/types/update_deployment_group_output.py +42 -0
  462. capo_codedeploy/types/value.py +5 -0
  463. capo_codedeploy/types/version.py +5 -0
  464. capo_codedeploy/types/version_id.py +5 -0
  465. capo_codedeploy/types/wait_time_in_mins.py +5 -0
  466. capo_codedeploy/types/wait_time_in_seconds.py +5 -0
  467. capo_codedeploy/types/zonal_config.py +63 -0
  468. capo_codedeploy-0.1.0.dist-info/METADATA +102 -0
  469. capo_codedeploy-0.1.0.dist-info/RECORD +472 -0
  470. capo_codedeploy-0.1.0.dist-info/WHEEL +5 -0
  471. capo_codedeploy-0.1.0.dist-info/licenses/LICENSE +21 -0
  472. capo_codedeploy-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,499 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codedeploy#DeploymentInfo``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codedeploy.types.additional_deployment_status_info
9
+ import capo_codedeploy.types.alarm_configuration
10
+ import capo_codedeploy.types.application_name
11
+ import capo_codedeploy.types.auto_rollback_configuration
12
+ import capo_codedeploy.types.blue_green_deployment_configuration
13
+ import capo_codedeploy.types.boolean
14
+ import capo_codedeploy.types.compute_platform
15
+ import capo_codedeploy.types.deployment_config_name
16
+ import capo_codedeploy.types.deployment_creator
17
+ import capo_codedeploy.types.deployment_group_name
18
+ import capo_codedeploy.types.deployment_id
19
+ import capo_codedeploy.types.deployment_overview
20
+ import capo_codedeploy.types.deployment_status
21
+ import capo_codedeploy.types.deployment_status_message_list
22
+ import capo_codedeploy.types.deployment_style
23
+ import capo_codedeploy.types.description
24
+ import capo_codedeploy.types.error_information
25
+ import capo_codedeploy.types.external_id
26
+ import capo_codedeploy.types.file_exists_behavior
27
+ import capo_codedeploy.types.load_balancer_info
28
+ import capo_codedeploy.types.related_deployments
29
+ import capo_codedeploy.types.revision_location
30
+ import capo_codedeploy.types.rollback_info
31
+ import capo_codedeploy.types.target_instances
32
+ import capo_codedeploy.types.timestamp
33
+
34
+
35
+ class DeploymentInfo(TypedDict, closed=True):
36
+ application_name: NotRequired[
37
+ "capo_codedeploy.types.application_name.ApplicationName"
38
+ ]
39
+ """<p>The application name.</p>"""
40
+ deployment_group_name: NotRequired[
41
+ "capo_codedeploy.types.deployment_group_name.DeploymentGroupName"
42
+ ]
43
+ """<p> The deployment group name. </p>"""
44
+ deployment_config_name: NotRequired[
45
+ "capo_codedeploy.types.deployment_config_name.DeploymentConfigName"
46
+ ]
47
+ """<p> The deployment configuration name. </p>"""
48
+ deployment_id: NotRequired["capo_codedeploy.types.deployment_id.DeploymentId"]
49
+ """<p> The unique ID of a deployment. </p>"""
50
+ previous_revision: NotRequired[
51
+ "capo_codedeploy.types.revision_location.RevisionLocation"
52
+ ]
53
+ """<p>Information about the application revision that was deployed to the deployment group before the most recent successful deployment.</p>"""
54
+ revision: NotRequired["capo_codedeploy.types.revision_location.RevisionLocation"]
55
+ """<p>Information about the location of stored application artifacts and the service from which to retrieve them.</p>"""
56
+ status: NotRequired["capo_codedeploy.types.deployment_status.DeploymentStatus"]
57
+ """<p>The current state of the deployment as a whole.</p>"""
58
+ error_information: NotRequired[
59
+ "capo_codedeploy.types.error_information.ErrorInformation"
60
+ ]
61
+ """<p>Information about any error associated with this deployment.</p>"""
62
+ create_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
63
+ """<p>A timestamp that indicates when the deployment was created.</p>"""
64
+ start_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
65
+ """<p>A timestamp that indicates when the deployment was deployed to the deployment group.</p> <p>In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.</p>"""
66
+ complete_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
67
+ """<p>A timestamp that indicates when the deployment was complete.</p>"""
68
+ deployment_overview: NotRequired[
69
+ "capo_codedeploy.types.deployment_overview.DeploymentOverview"
70
+ ]
71
+ """<p>A summary of the deployment status of the instances in the deployment.</p>"""
72
+ description: NotRequired["capo_codedeploy.types.description.Description"]
73
+ """<p>A comment about the deployment.</p>"""
74
+ creator: NotRequired["capo_codedeploy.types.deployment_creator.DeploymentCreator"]
75
+ """<p>The means by which the deployment was created:</p> <ul> <li> <p> <code>user</code>: A user created the deployment.</p> </li> <li> <p> <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p> </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update process created the deployment when it detected outdated Amazon EC2 instances.</p> </li> </ul>"""
76
+ ignore_application_stop_failures: "capo_codedeploy.types.boolean.Boolean"
77
+ """<p> If true, then if an <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, or <code>AfterBlockTraffic</code> deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if <code>ApplicationStop</code> fails, the deployment continues with DownloadBundle. If <code>BeforeBlockTraffic</code> fails, the deployment continues with <code>BlockTraffic</code>. If <code>AfterBlockTraffic</code> fails, the deployment continues with <code>ApplicationStop</code>. </p> <p> If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted. </p> <p> During a deployment, the CodeDeploy agent runs the scripts specified for <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, and <code>AfterBlockTraffic</code> in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail. </p> <p> If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use <code>ignoreApplicationStopFailures</code> to specify that the <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, and <code>AfterBlockTraffic</code> failures should be ignored. </p>"""
78
+ auto_rollback_configuration: NotRequired[
79
+ "capo_codedeploy.types.auto_rollback_configuration.AutoRollbackConfiguration"
80
+ ]
81
+ """<p>Information about the automatic rollback configuration associated with the deployment.</p>"""
82
+ update_outdated_instances_only: "capo_codedeploy.types.boolean.Boolean"
83
+ """<p>Indicates whether only instances that are not running the latest application revision are to be deployed to.</p>"""
84
+ rollback_info: NotRequired["capo_codedeploy.types.rollback_info.RollbackInfo"]
85
+ """<p>Information about a deployment rollback.</p>"""
86
+ deployment_style: NotRequired[
87
+ "capo_codedeploy.types.deployment_style.DeploymentStyle"
88
+ ]
89
+ """<p>Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.</p>"""
90
+ target_instances: NotRequired[
91
+ "capo_codedeploy.types.target_instances.TargetInstances"
92
+ ]
93
+ """<p>Information about the instances that belong to the replacement environment in a blue/green deployment.</p>"""
94
+ instance_termination_wait_time_started: "capo_codedeploy.types.boolean.Boolean"
95
+ """<p>Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts.</p>"""
96
+ blue_green_deployment_configuration: NotRequired[
97
+ "capo_codedeploy.types.blue_green_deployment_configuration.BlueGreenDeploymentConfiguration"
98
+ ]
99
+ """<p>Information about blue/green deployment options for this deployment.</p>"""
100
+ load_balancer_info: NotRequired[
101
+ "capo_codedeploy.types.load_balancer_info.LoadBalancerInfo"
102
+ ]
103
+ """<p>Information about the load balancer used in the deployment.</p>"""
104
+ additional_deployment_status_info: NotRequired[
105
+ "capo_codedeploy.types.additional_deployment_status_info.AdditionalDeploymentStatusInfo"
106
+ ]
107
+ """<p>Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.</p>"""
108
+ file_exists_behavior: NotRequired[
109
+ "capo_codedeploy.types.file_exists_behavior.FileExistsBehavior"
110
+ ]
111
+ """<p>Information about how CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.</p> <ul> <li> <p> <code>DISALLOW</code>: The deployment fails. This is also the default behavior if no option is specified.</p> </li> <li> <p> <code>OVERWRITE</code>: The version of the file from the application revision currently being deployed replaces the version already on the instance.</p> </li> <li> <p> <code>RETAIN</code>: The version of the file already on the instance is kept and used as part of the new deployment.</p> </li> </ul>"""
112
+ deployment_status_messages: NotRequired[
113
+ "capo_codedeploy.types.deployment_status_message_list.DeploymentStatusMessageList"
114
+ ]
115
+ """<p>Messages that contain information about the status of a deployment.</p>"""
116
+ compute_platform: NotRequired[
117
+ "capo_codedeploy.types.compute_platform.ComputePlatform"
118
+ ]
119
+ """<p>The destination platform type for the deployment (<code>Lambda</code>, <code>Server</code>, or <code>ECS</code>).</p>"""
120
+ external_id: NotRequired["capo_codedeploy.types.external_id.ExternalId"]
121
+ """<p>The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.</p>"""
122
+ related_deployments: NotRequired[
123
+ "capo_codedeploy.types.related_deployments.RelatedDeployments"
124
+ ]
125
+ override_alarm_configuration: NotRequired[
126
+ "capo_codedeploy.types.alarm_configuration.AlarmConfiguration"
127
+ ]
128
+
129
+
130
+ # --- awsJson1_1 ser/de ---
131
+ def serialize_aws_json_1_1(value: DeploymentInfo) -> dict:
132
+ out: dict = {}
133
+ if "application_name" in value:
134
+ out["applicationName"] = value["application_name"]
135
+ if "deployment_group_name" in value:
136
+ out["deploymentGroupName"] = value["deployment_group_name"]
137
+ if "deployment_config_name" in value:
138
+ out["deploymentConfigName"] = value["deployment_config_name"]
139
+ if "deployment_id" in value:
140
+ out["deploymentId"] = value["deployment_id"]
141
+ if "previous_revision" in value:
142
+ import capo_codedeploy.types.revision_location
143
+
144
+ out["previousRevision"] = (
145
+ capo_codedeploy.types.revision_location.serialize_aws_json_1_1(
146
+ value["previous_revision"]
147
+ )
148
+ )
149
+ if "revision" in value:
150
+ import capo_codedeploy.types.revision_location
151
+
152
+ out["revision"] = (
153
+ capo_codedeploy.types.revision_location.serialize_aws_json_1_1(
154
+ value["revision"]
155
+ )
156
+ )
157
+ if "status" in value:
158
+ import capo_codedeploy.types.deployment_status
159
+
160
+ out["status"] = capo_codedeploy.types.deployment_status.serialize_aws_json_1_1(
161
+ value["status"]
162
+ )
163
+ if "error_information" in value:
164
+ import capo_codedeploy.types.error_information
165
+
166
+ out["errorInformation"] = (
167
+ capo_codedeploy.types.error_information.serialize_aws_json_1_1(
168
+ value["error_information"]
169
+ )
170
+ )
171
+ if "create_time" in value:
172
+ import capo_codedeploy.types.timestamp
173
+
174
+ out["createTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
175
+ value["create_time"]
176
+ )
177
+ if "start_time" in value:
178
+ import capo_codedeploy.types.timestamp
179
+
180
+ out["startTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
181
+ value["start_time"]
182
+ )
183
+ if "complete_time" in value:
184
+ import capo_codedeploy.types.timestamp
185
+
186
+ out["completeTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
187
+ value["complete_time"]
188
+ )
189
+ if "deployment_overview" in value:
190
+ import capo_codedeploy.types.deployment_overview
191
+
192
+ out["deploymentOverview"] = (
193
+ capo_codedeploy.types.deployment_overview.serialize_aws_json_1_1(
194
+ value["deployment_overview"]
195
+ )
196
+ )
197
+ if "description" in value:
198
+ out["description"] = value["description"]
199
+ if "creator" in value:
200
+ import capo_codedeploy.types.deployment_creator
201
+
202
+ out["creator"] = (
203
+ capo_codedeploy.types.deployment_creator.serialize_aws_json_1_1(
204
+ value["creator"]
205
+ )
206
+ )
207
+ out["ignoreApplicationStopFailures"] = value.get(
208
+ "ignore_application_stop_failures", False
209
+ )
210
+ if "auto_rollback_configuration" in value:
211
+ import capo_codedeploy.types.auto_rollback_configuration
212
+
213
+ out["autoRollbackConfiguration"] = (
214
+ capo_codedeploy.types.auto_rollback_configuration.serialize_aws_json_1_1(
215
+ value["auto_rollback_configuration"]
216
+ )
217
+ )
218
+ out["updateOutdatedInstancesOnly"] = value.get(
219
+ "update_outdated_instances_only", False
220
+ )
221
+ if "rollback_info" in value:
222
+ import capo_codedeploy.types.rollback_info
223
+
224
+ out["rollbackInfo"] = (
225
+ capo_codedeploy.types.rollback_info.serialize_aws_json_1_1(
226
+ value["rollback_info"]
227
+ )
228
+ )
229
+ if "deployment_style" in value:
230
+ import capo_codedeploy.types.deployment_style
231
+
232
+ out["deploymentStyle"] = (
233
+ capo_codedeploy.types.deployment_style.serialize_aws_json_1_1(
234
+ value["deployment_style"]
235
+ )
236
+ )
237
+ if "target_instances" in value:
238
+ import capo_codedeploy.types.target_instances
239
+
240
+ out["targetInstances"] = (
241
+ capo_codedeploy.types.target_instances.serialize_aws_json_1_1(
242
+ value["target_instances"]
243
+ )
244
+ )
245
+ out["instanceTerminationWaitTimeStarted"] = value.get(
246
+ "instance_termination_wait_time_started", False
247
+ )
248
+ if "blue_green_deployment_configuration" in value:
249
+ import capo_codedeploy.types.blue_green_deployment_configuration
250
+
251
+ out["blueGreenDeploymentConfiguration"] = (
252
+ capo_codedeploy.types.blue_green_deployment_configuration.serialize_aws_json_1_1(
253
+ value["blue_green_deployment_configuration"]
254
+ )
255
+ )
256
+ if "load_balancer_info" in value:
257
+ import capo_codedeploy.types.load_balancer_info
258
+
259
+ out["loadBalancerInfo"] = (
260
+ capo_codedeploy.types.load_balancer_info.serialize_aws_json_1_1(
261
+ value["load_balancer_info"]
262
+ )
263
+ )
264
+ if "additional_deployment_status_info" in value:
265
+ out["additionalDeploymentStatusInfo"] = value[
266
+ "additional_deployment_status_info"
267
+ ]
268
+ if "file_exists_behavior" in value:
269
+ import capo_codedeploy.types.file_exists_behavior
270
+
271
+ out["fileExistsBehavior"] = (
272
+ capo_codedeploy.types.file_exists_behavior.serialize_aws_json_1_1(
273
+ value["file_exists_behavior"]
274
+ )
275
+ )
276
+ if "deployment_status_messages" in value:
277
+ import capo_codedeploy.types.deployment_status_message_list
278
+
279
+ out["deploymentStatusMessages"] = (
280
+ capo_codedeploy.types.deployment_status_message_list.serialize_aws_json_1_1(
281
+ value["deployment_status_messages"]
282
+ )
283
+ )
284
+ if "compute_platform" in value:
285
+ import capo_codedeploy.types.compute_platform
286
+
287
+ out["computePlatform"] = (
288
+ capo_codedeploy.types.compute_platform.serialize_aws_json_1_1(
289
+ value["compute_platform"]
290
+ )
291
+ )
292
+ if "external_id" in value:
293
+ out["externalId"] = value["external_id"]
294
+ if "related_deployments" in value:
295
+ import capo_codedeploy.types.related_deployments
296
+
297
+ out["relatedDeployments"] = (
298
+ capo_codedeploy.types.related_deployments.serialize_aws_json_1_1(
299
+ value["related_deployments"]
300
+ )
301
+ )
302
+ if "override_alarm_configuration" in value:
303
+ import capo_codedeploy.types.alarm_configuration
304
+
305
+ out["overrideAlarmConfiguration"] = (
306
+ capo_codedeploy.types.alarm_configuration.serialize_aws_json_1_1(
307
+ value["override_alarm_configuration"]
308
+ )
309
+ )
310
+ return out
311
+
312
+
313
+ def deserialize_aws_json_1_1(data: dict) -> DeploymentInfo:
314
+ out: DeploymentInfo = {} # type: ignore[typeddict-item]
315
+ if data.get("applicationName") is not None:
316
+ out["application_name"] = data["applicationName"]
317
+ if data.get("deploymentGroupName") is not None:
318
+ out["deployment_group_name"] = data["deploymentGroupName"]
319
+ if data.get("deploymentConfigName") is not None:
320
+ out["deployment_config_name"] = data["deploymentConfigName"]
321
+ if data.get("deploymentId") is not None:
322
+ out["deployment_id"] = data["deploymentId"]
323
+ if data.get("previousRevision") is not None:
324
+ import capo_codedeploy.types.revision_location
325
+
326
+ out["previous_revision"] = (
327
+ capo_codedeploy.types.revision_location.deserialize_aws_json_1_1(
328
+ data["previousRevision"]
329
+ )
330
+ )
331
+ if data.get("revision") is not None:
332
+ import capo_codedeploy.types.revision_location
333
+
334
+ out["revision"] = (
335
+ capo_codedeploy.types.revision_location.deserialize_aws_json_1_1(
336
+ data["revision"]
337
+ )
338
+ )
339
+ if data.get("status") is not None:
340
+ import capo_codedeploy.types.deployment_status
341
+
342
+ out["status"] = (
343
+ capo_codedeploy.types.deployment_status.deserialize_aws_json_1_1(
344
+ data["status"]
345
+ )
346
+ )
347
+ if data.get("errorInformation") is not None:
348
+ import capo_codedeploy.types.error_information
349
+
350
+ out["error_information"] = (
351
+ capo_codedeploy.types.error_information.deserialize_aws_json_1_1(
352
+ data["errorInformation"]
353
+ )
354
+ )
355
+ if data.get("createTime") is not None:
356
+ import capo_codedeploy.types.timestamp
357
+
358
+ out["create_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
359
+ data["createTime"]
360
+ )
361
+ if data.get("startTime") is not None:
362
+ import capo_codedeploy.types.timestamp
363
+
364
+ out["start_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
365
+ data["startTime"]
366
+ )
367
+ if data.get("completeTime") is not None:
368
+ import capo_codedeploy.types.timestamp
369
+
370
+ out["complete_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
371
+ data["completeTime"]
372
+ )
373
+ if data.get("deploymentOverview") is not None:
374
+ import capo_codedeploy.types.deployment_overview
375
+
376
+ out["deployment_overview"] = (
377
+ capo_codedeploy.types.deployment_overview.deserialize_aws_json_1_1(
378
+ data["deploymentOverview"]
379
+ )
380
+ )
381
+ if data.get("description") is not None:
382
+ out["description"] = data["description"]
383
+ if data.get("creator") is not None:
384
+ import capo_codedeploy.types.deployment_creator
385
+
386
+ out["creator"] = (
387
+ capo_codedeploy.types.deployment_creator.deserialize_aws_json_1_1(
388
+ data["creator"]
389
+ )
390
+ )
391
+ if data.get("ignoreApplicationStopFailures") is not None:
392
+ out["ignore_application_stop_failures"] = data["ignoreApplicationStopFailures"]
393
+ else:
394
+ out["ignore_application_stop_failures"] = False
395
+ if data.get("autoRollbackConfiguration") is not None:
396
+ import capo_codedeploy.types.auto_rollback_configuration
397
+
398
+ out["auto_rollback_configuration"] = (
399
+ capo_codedeploy.types.auto_rollback_configuration.deserialize_aws_json_1_1(
400
+ data["autoRollbackConfiguration"]
401
+ )
402
+ )
403
+ if data.get("updateOutdatedInstancesOnly") is not None:
404
+ out["update_outdated_instances_only"] = data["updateOutdatedInstancesOnly"]
405
+ else:
406
+ out["update_outdated_instances_only"] = False
407
+ if data.get("rollbackInfo") is not None:
408
+ import capo_codedeploy.types.rollback_info
409
+
410
+ out["rollback_info"] = (
411
+ capo_codedeploy.types.rollback_info.deserialize_aws_json_1_1(
412
+ data["rollbackInfo"]
413
+ )
414
+ )
415
+ if data.get("deploymentStyle") is not None:
416
+ import capo_codedeploy.types.deployment_style
417
+
418
+ out["deployment_style"] = (
419
+ capo_codedeploy.types.deployment_style.deserialize_aws_json_1_1(
420
+ data["deploymentStyle"]
421
+ )
422
+ )
423
+ if data.get("targetInstances") is not None:
424
+ import capo_codedeploy.types.target_instances
425
+
426
+ out["target_instances"] = (
427
+ capo_codedeploy.types.target_instances.deserialize_aws_json_1_1(
428
+ data["targetInstances"]
429
+ )
430
+ )
431
+ if data.get("instanceTerminationWaitTimeStarted") is not None:
432
+ out["instance_termination_wait_time_started"] = data[
433
+ "instanceTerminationWaitTimeStarted"
434
+ ]
435
+ else:
436
+ out["instance_termination_wait_time_started"] = False
437
+ if data.get("blueGreenDeploymentConfiguration") is not None:
438
+ import capo_codedeploy.types.blue_green_deployment_configuration
439
+
440
+ out["blue_green_deployment_configuration"] = (
441
+ capo_codedeploy.types.blue_green_deployment_configuration.deserialize_aws_json_1_1(
442
+ data["blueGreenDeploymentConfiguration"]
443
+ )
444
+ )
445
+ if data.get("loadBalancerInfo") is not None:
446
+ import capo_codedeploy.types.load_balancer_info
447
+
448
+ out["load_balancer_info"] = (
449
+ capo_codedeploy.types.load_balancer_info.deserialize_aws_json_1_1(
450
+ data["loadBalancerInfo"]
451
+ )
452
+ )
453
+ if data.get("additionalDeploymentStatusInfo") is not None:
454
+ out["additional_deployment_status_info"] = data[
455
+ "additionalDeploymentStatusInfo"
456
+ ]
457
+ if data.get("fileExistsBehavior") is not None:
458
+ import capo_codedeploy.types.file_exists_behavior
459
+
460
+ out["file_exists_behavior"] = (
461
+ capo_codedeploy.types.file_exists_behavior.deserialize_aws_json_1_1(
462
+ data["fileExistsBehavior"]
463
+ )
464
+ )
465
+ if data.get("deploymentStatusMessages") is not None:
466
+ import capo_codedeploy.types.deployment_status_message_list
467
+
468
+ out["deployment_status_messages"] = (
469
+ capo_codedeploy.types.deployment_status_message_list.deserialize_aws_json_1_1(
470
+ data["deploymentStatusMessages"]
471
+ )
472
+ )
473
+ if data.get("computePlatform") is not None:
474
+ import capo_codedeploy.types.compute_platform
475
+
476
+ out["compute_platform"] = (
477
+ capo_codedeploy.types.compute_platform.deserialize_aws_json_1_1(
478
+ data["computePlatform"]
479
+ )
480
+ )
481
+ if data.get("externalId") is not None:
482
+ out["external_id"] = data["externalId"]
483
+ if data.get("relatedDeployments") is not None:
484
+ import capo_codedeploy.types.related_deployments
485
+
486
+ out["related_deployments"] = (
487
+ capo_codedeploy.types.related_deployments.deserialize_aws_json_1_1(
488
+ data["relatedDeployments"]
489
+ )
490
+ )
491
+ if data.get("overrideAlarmConfiguration") is not None:
492
+ import capo_codedeploy.types.alarm_configuration
493
+
494
+ out["override_alarm_configuration"] = (
495
+ capo_codedeploy.types.alarm_configuration.deserialize_aws_json_1_1(
496
+ data["overrideAlarmConfiguration"]
497
+ )
498
+ )
499
+ return out
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codedeploy#DeploymentOption``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ DeploymentOption: TypeAlias = Literal[
6
+ "WITH_TRAFFIC_CONTROL",
7
+ "WITHOUT_TRAFFIC_CONTROL",
8
+ ]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: DeploymentOption) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: str) -> DeploymentOption:
17
+ return cast(DeploymentOption, data)
@@ -0,0 +1,64 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codedeploy#DeploymentOverview``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codedeploy.types.instance_count
9
+
10
+
11
+ class DeploymentOverview(TypedDict, closed=True):
12
+ pending: "capo_codedeploy.types.instance_count.InstanceCount"
13
+ """<p>The number of instances in the deployment in a pending state.</p>"""
14
+ in_progress: "capo_codedeploy.types.instance_count.InstanceCount"
15
+ """<p>The number of instances in which the deployment is in progress.</p>"""
16
+ succeeded: "capo_codedeploy.types.instance_count.InstanceCount"
17
+ """<p>The number of instances in the deployment to which revisions have been successfully deployed.</p>"""
18
+ failed: "capo_codedeploy.types.instance_count.InstanceCount"
19
+ """<p>The number of instances in the deployment in a failed state.</p>"""
20
+ skipped: "capo_codedeploy.types.instance_count.InstanceCount"
21
+ """<p>The number of instances in the deployment in a skipped state.</p>"""
22
+ ready: "capo_codedeploy.types.instance_count.InstanceCount"
23
+ """<p>The number of instances in a replacement environment ready to receive traffic in a blue/green deployment.</p>"""
24
+
25
+
26
+ # --- awsJson1_1 ser/de ---
27
+ def serialize_aws_json_1_1(value: DeploymentOverview) -> dict:
28
+ out: dict = {}
29
+ out["Pending"] = value.get("pending", 0)
30
+ out["InProgress"] = value.get("in_progress", 0)
31
+ out["Succeeded"] = value.get("succeeded", 0)
32
+ out["Failed"] = value.get("failed", 0)
33
+ out["Skipped"] = value.get("skipped", 0)
34
+ out["Ready"] = value.get("ready", 0)
35
+ return out
36
+
37
+
38
+ def deserialize_aws_json_1_1(data: dict) -> DeploymentOverview:
39
+ out: DeploymentOverview = {} # type: ignore[typeddict-item]
40
+ if data.get("Pending") is not None:
41
+ out["pending"] = data["Pending"]
42
+ else:
43
+ out["pending"] = 0
44
+ if data.get("InProgress") is not None:
45
+ out["in_progress"] = data["InProgress"]
46
+ else:
47
+ out["in_progress"] = 0
48
+ if data.get("Succeeded") is not None:
49
+ out["succeeded"] = data["Succeeded"]
50
+ else:
51
+ out["succeeded"] = 0
52
+ if data.get("Failed") is not None:
53
+ out["failed"] = data["Failed"]
54
+ else:
55
+ out["failed"] = 0
56
+ if data.get("Skipped") is not None:
57
+ out["skipped"] = data["Skipped"]
58
+ else:
59
+ out["skipped"] = 0
60
+ if data.get("Ready") is not None:
61
+ out["ready"] = data["Ready"]
62
+ else:
63
+ out["ready"] = 0
64
+ return out
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codedeploy#DeploymentReadyAction``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ DeploymentReadyAction: TypeAlias = Literal[
6
+ "CONTINUE_DEPLOYMENT",
7
+ "STOP_DEPLOYMENT",
8
+ ]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: DeploymentReadyAction) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: str) -> DeploymentReadyAction:
17
+ return cast(DeploymentReadyAction, data)
@@ -0,0 +1,50 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codedeploy#DeploymentReadyOption``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codedeploy.types.deployment_ready_action
9
+ import capo_codedeploy.types.duration
10
+
11
+
12
+ class DeploymentReadyOption(TypedDict, closed=True):
13
+ action_on_timeout: NotRequired[
14
+ "capo_codedeploy.types.deployment_ready_action.DeploymentReadyAction"
15
+ ]
16
+ """<p>Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.</p> <ul> <li> <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.</p> </li> </ul>"""
17
+ wait_time_in_minutes: "capo_codedeploy.types.duration.Duration"
18
+ """<p>The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to the <code>STOP_DEPLOYMENT</code> option for <code>actionOnTimeout</code>.</p>"""
19
+
20
+
21
+ # --- awsJson1_1 ser/de ---
22
+ def serialize_aws_json_1_1(value: DeploymentReadyOption) -> dict:
23
+ out: dict = {}
24
+ if "action_on_timeout" in value:
25
+ import capo_codedeploy.types.deployment_ready_action
26
+
27
+ out["actionOnTimeout"] = (
28
+ capo_codedeploy.types.deployment_ready_action.serialize_aws_json_1_1(
29
+ value["action_on_timeout"]
30
+ )
31
+ )
32
+ out["waitTimeInMinutes"] = value.get("wait_time_in_minutes", 0)
33
+ return out
34
+
35
+
36
+ def deserialize_aws_json_1_1(data: dict) -> DeploymentReadyOption:
37
+ out: DeploymentReadyOption = {} # type: ignore[typeddict-item]
38
+ if data.get("actionOnTimeout") is not None:
39
+ import capo_codedeploy.types.deployment_ready_action
40
+
41
+ out["action_on_timeout"] = (
42
+ capo_codedeploy.types.deployment_ready_action.deserialize_aws_json_1_1(
43
+ data["actionOnTimeout"]
44
+ )
45
+ )
46
+ if data.get("waitTimeInMinutes") is not None:
47
+ out["wait_time_in_minutes"] = data["waitTimeInMinutes"]
48
+ else:
49
+ out["wait_time_in_minutes"] = 0
50
+ return out
@@ -0,0 +1,23 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codedeploy#DeploymentStatus``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ DeploymentStatus: TypeAlias = Literal[
6
+ "Created",
7
+ "Queued",
8
+ "InProgress",
9
+ "Baking",
10
+ "Succeeded",
11
+ "Failed",
12
+ "Stopped",
13
+ "Ready",
14
+ ]
15
+
16
+
17
+ # --- awsJson1_1 ser/de ---
18
+ def serialize_aws_json_1_1(value: DeploymentStatus) -> str:
19
+ return value
20
+
21
+
22
+ def deserialize_aws_json_1_1(data: str) -> DeploymentStatus:
23
+ return cast(DeploymentStatus, data)