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.
- capo_codedeploy/__init__.py +70 -0
- capo_codedeploy/_async.py +25 -0
- capo_codedeploy/_auth/_identity.py +16 -0
- capo_codedeploy/_auth/_providers.py +886 -0
- capo_codedeploy/_auth/_signers.py +88 -0
- capo_codedeploy/_auth/_sigv4.py +434 -0
- capo_codedeploy/_auth/_zapros_handler.py +80 -0
- capo_codedeploy/_iter.py +113 -0
- capo_codedeploy/_operations/code_deploy_20141006/add_tags_to_on_premises_instances.py +153 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_application_revisions.py +173 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_applications.py +163 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployment_groups.py +178 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployment_instances.py +178 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployment_targets.py +188 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_deployments.py +158 -0
- capo_codedeploy/_operations/code_deploy_20141006/batch_get_on_premises_instances.py +158 -0
- capo_codedeploy/_operations/code_deploy_20141006/continue_deployment.py +155 -0
- capo_codedeploy/_operations/code_deploy_20141006/create_application.py +175 -0
- capo_codedeploy/_operations/code_deploy_20141006/create_deployment.py +278 -0
- capo_codedeploy/_operations/code_deploy_20141006/create_deployment_config.py +185 -0
- capo_codedeploy/_operations/code_deploy_20141006/create_deployment_group.py +320 -0
- capo_codedeploy/_operations/code_deploy_20141006/delete_application.py +129 -0
- capo_codedeploy/_operations/code_deploy_20141006/delete_deployment_config.py +136 -0
- capo_codedeploy/_operations/code_deploy_20141006/delete_deployment_group.py +167 -0
- capo_codedeploy/_operations/code_deploy_20141006/delete_git_hub_account_token.py +166 -0
- capo_codedeploy/_operations/code_deploy_20141006/delete_resources_by_external_id.py +137 -0
- capo_codedeploy/_operations/code_deploy_20141006/deregister_on_premises_instance.py +126 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_application.py +157 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_application_revision.py +173 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_deployment.py +157 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_deployment_config.py +162 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_deployment_group.py +179 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_deployment_instance.py +177 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_deployment_target.py +182 -0
- capo_codedeploy/_operations/code_deploy_20141006/get_on_premises_instance.py +157 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_application_revisions.py +195 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_applications.py +149 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_deployment_configs.py +147 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_deployment_groups.py +162 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_deployment_instances.py +198 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_deployment_targets.py +188 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_deployments.py +199 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_git_hub_account_token_names.py +157 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_on_premises_instances.py +159 -0
- capo_codedeploy/_operations/code_deploy_20141006/list_tags_for_resource.py +157 -0
- capo_codedeploy/_operations/code_deploy_20141006/put_lifecycle_event_hook_execution_status.py +177 -0
- capo_codedeploy/_operations/code_deploy_20141006/register_application_revision.py +147 -0
- capo_codedeploy/_operations/code_deploy_20141006/register_on_premises_instance.py +166 -0
- capo_codedeploy/_operations/code_deploy_20141006/remove_tags_from_on_premises_instances.py +153 -0
- capo_codedeploy/_operations/code_deploy_20141006/skip_wait_time_for_instance_termination.py +146 -0
- capo_codedeploy/_operations/code_deploy_20141006/stop_deployment.py +172 -0
- capo_codedeploy/_operations/code_deploy_20141006/tag_resource.py +174 -0
- capo_codedeploy/_operations/code_deploy_20141006/untag_resource.py +174 -0
- capo_codedeploy/_operations/code_deploy_20141006/update_application.py +134 -0
- capo_codedeploy/_operations/code_deploy_20141006/update_deployment_group.py +310 -0
- capo_codedeploy/_pagination.py +21 -0
- capo_codedeploy/_protocol/__init__.py +1 -0
- capo_codedeploy/_protocol/errors.py +93 -0
- capo_codedeploy/_protocol/eventstream.py +238 -0
- capo_codedeploy/_protocol/serialize.py +47 -0
- capo_codedeploy/_protocol/xml.py +33 -0
- capo_codedeploy/_rule_engine/__init__.py +0 -0
- capo_codedeploy/_rule_engine/_aws_partition.py +160 -0
- capo_codedeploy/_rule_engine/_endpoint_rule_set.py +138 -0
- capo_codedeploy/_rule_engine/_endpoint_runtime.py +389 -0
- capo_codedeploy/_services/_aws_config.py +160 -0
- capo_codedeploy/_services/_pipeline.py +198 -0
- capo_codedeploy/_services/async_code_deploy.py +3278 -0
- capo_codedeploy/_services/code_deploy.py +3229 -0
- capo_codedeploy/errors/__init__.py +335 -0
- capo_codedeploy/errors/_base.py +94 -0
- capo_codedeploy/errors/alarms_limit_exceeded_exception.py +52 -0
- capo_codedeploy/errors/application_already_exists_exception.py +54 -0
- capo_codedeploy/errors/application_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/application_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/application_name_required_exception.py +54 -0
- capo_codedeploy/errors/arn_not_supported_exception.py +52 -0
- capo_codedeploy/errors/batch_limit_exceeded_exception.py +52 -0
- capo_codedeploy/errors/bucket_name_filter_required_exception.py +54 -0
- capo_codedeploy/errors/deployment_already_completed_exception.py +54 -0
- capo_codedeploy/errors/deployment_config_already_exists_exception.py +54 -0
- capo_codedeploy/errors/deployment_config_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/deployment_config_in_use_exception.py +54 -0
- capo_codedeploy/errors/deployment_config_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/deployment_config_name_required_exception.py +54 -0
- capo_codedeploy/errors/deployment_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/deployment_group_already_exists_exception.py +54 -0
- capo_codedeploy/errors/deployment_group_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/deployment_group_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/deployment_group_name_required_exception.py +54 -0
- capo_codedeploy/errors/deployment_id_required_exception.py +54 -0
- capo_codedeploy/errors/deployment_is_not_in_ready_state_exception.py +54 -0
- capo_codedeploy/errors/deployment_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/deployment_not_started_exception.py +54 -0
- capo_codedeploy/errors/deployment_target_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/deployment_target_id_required_exception.py +54 -0
- capo_codedeploy/errors/deployment_target_list_size_exceeded_exception.py +56 -0
- capo_codedeploy/errors/description_too_long_exception.py +52 -0
- capo_codedeploy/errors/ecs_service_mapping_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/git_hub_account_token_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/git_hub_account_token_name_required_exception.py +54 -0
- capo_codedeploy/errors/iam_arn_required_exception.py +52 -0
- capo_codedeploy/errors/iam_session_arn_already_registered_exception.py +54 -0
- capo_codedeploy/errors/iam_user_arn_already_registered_exception.py +54 -0
- capo_codedeploy/errors/iam_user_arn_required_exception.py +52 -0
- capo_codedeploy/errors/instance_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/instance_id_required_exception.py +52 -0
- capo_codedeploy/errors/instance_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/instance_name_already_registered_exception.py +54 -0
- capo_codedeploy/errors/instance_name_required_exception.py +54 -0
- capo_codedeploy/errors/instance_not_registered_exception.py +54 -0
- capo_codedeploy/errors/invalid_alarm_config_exception.py +52 -0
- capo_codedeploy/errors/invalid_application_name_exception.py +54 -0
- capo_codedeploy/errors/invalid_arn_exception.py +52 -0
- capo_codedeploy/errors/invalid_auto_rollback_config_exception.py +54 -0
- capo_codedeploy/errors/invalid_auto_scaling_group_exception.py +54 -0
- capo_codedeploy/errors/invalid_blue_green_deployment_configuration_exception.py +60 -0
- capo_codedeploy/errors/invalid_bucket_name_filter_exception.py +54 -0
- capo_codedeploy/errors/invalid_compute_platform_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployed_state_filter_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_config_name_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_group_name_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_id_exception.py +52 -0
- capo_codedeploy/errors/invalid_deployment_instance_type_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_status_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_style_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_target_id_exception.py +54 -0
- capo_codedeploy/errors/invalid_deployment_wait_type_exception.py +54 -0
- capo_codedeploy/errors/invalid_ec2_tag_combination_exception.py +54 -0
- capo_codedeploy/errors/invalid_ec2_tag_exception.py +52 -0
- capo_codedeploy/errors/invalid_ecs_service_exception.py +52 -0
- capo_codedeploy/errors/invalid_external_id_exception.py +52 -0
- capo_codedeploy/errors/invalid_file_exists_behavior_exception.py +54 -0
- capo_codedeploy/errors/invalid_git_hub_account_token_exception.py +54 -0
- capo_codedeploy/errors/invalid_git_hub_account_token_name_exception.py +54 -0
- capo_codedeploy/errors/invalid_iam_session_arn_exception.py +54 -0
- capo_codedeploy/errors/invalid_iam_user_arn_exception.py +52 -0
- capo_codedeploy/errors/invalid_ignore_application_stop_failures_value_exception.py +60 -0
- capo_codedeploy/errors/invalid_input_exception.py +52 -0
- capo_codedeploy/errors/invalid_instance_name_exception.py +52 -0
- capo_codedeploy/errors/invalid_instance_status_exception.py +54 -0
- capo_codedeploy/errors/invalid_instance_type_exception.py +52 -0
- capo_codedeploy/errors/invalid_key_prefix_filter_exception.py +54 -0
- capo_codedeploy/errors/invalid_lifecycle_event_hook_execution_id_exception.py +60 -0
- capo_codedeploy/errors/invalid_lifecycle_event_hook_execution_status_exception.py +60 -0
- capo_codedeploy/errors/invalid_load_balancer_info_exception.py +54 -0
- capo_codedeploy/errors/invalid_minimum_healthy_host_value_exception.py +54 -0
- capo_codedeploy/errors/invalid_next_token_exception.py +52 -0
- capo_codedeploy/errors/invalid_on_premises_tag_combination_exception.py +56 -0
- capo_codedeploy/errors/invalid_operation_exception.py +52 -0
- capo_codedeploy/errors/invalid_registration_status_exception.py +54 -0
- capo_codedeploy/errors/invalid_revision_exception.py +52 -0
- capo_codedeploy/errors/invalid_role_exception.py +52 -0
- capo_codedeploy/errors/invalid_sort_by_exception.py +52 -0
- capo_codedeploy/errors/invalid_sort_order_exception.py +52 -0
- capo_codedeploy/errors/invalid_tag_exception.py +52 -0
- capo_codedeploy/errors/invalid_tag_filter_exception.py +52 -0
- capo_codedeploy/errors/invalid_tags_to_add_exception.py +52 -0
- capo_codedeploy/errors/invalid_target_filter_name_exception.py +54 -0
- capo_codedeploy/errors/invalid_target_group_pair_exception.py +54 -0
- capo_codedeploy/errors/invalid_target_instances_exception.py +54 -0
- capo_codedeploy/errors/invalid_time_range_exception.py +52 -0
- capo_codedeploy/errors/invalid_traffic_routing_configuration_exception.py +58 -0
- capo_codedeploy/errors/invalid_trigger_config_exception.py +54 -0
- capo_codedeploy/errors/invalid_update_outdated_instances_only_value_exception.py +60 -0
- capo_codedeploy/errors/invalid_zonal_deployment_configuration_exception.py +60 -0
- capo_codedeploy/errors/lifecycle_event_already_completed_exception.py +54 -0
- capo_codedeploy/errors/lifecycle_hook_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/multiple_iam_arns_provided_exception.py +54 -0
- capo_codedeploy/errors/operation_not_supported_exception.py +54 -0
- capo_codedeploy/errors/resource_arn_required_exception.py +52 -0
- capo_codedeploy/errors/resource_validation_exception.py +52 -0
- capo_codedeploy/errors/revision_does_not_exist_exception.py +54 -0
- capo_codedeploy/errors/revision_required_exception.py +52 -0
- capo_codedeploy/errors/role_required_exception.py +52 -0
- capo_codedeploy/errors/tag_limit_exceeded_exception.py +52 -0
- capo_codedeploy/errors/tag_required_exception.py +52 -0
- capo_codedeploy/errors/tag_set_list_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/throttling_exception.py +52 -0
- capo_codedeploy/errors/trigger_targets_limit_exceeded_exception.py +54 -0
- capo_codedeploy/errors/unsupported_action_for_deployment_type_exception.py +58 -0
- capo_codedeploy/py.typed +0 -0
- capo_codedeploy/types/_prelude/blob.py +12 -0
- capo_codedeploy/types/_prelude/timestamp.py +17 -0
- capo_codedeploy/types/add_tags_to_on_premises_instances_input.py +59 -0
- capo_codedeploy/types/additional_deployment_status_info.py +5 -0
- capo_codedeploy/types/alarm.py +28 -0
- capo_codedeploy/types/alarm_configuration.py +51 -0
- capo_codedeploy/types/alarm_list.py +29 -0
- capo_codedeploy/types/alarm_name.py +5 -0
- capo_codedeploy/types/app_spec_content.py +35 -0
- capo_codedeploy/types/application_id.py +5 -0
- capo_codedeploy/types/application_info.py +90 -0
- capo_codedeploy/types/application_name.py +5 -0
- capo_codedeploy/types/application_revision_sort_by.py +18 -0
- capo_codedeploy/types/applications_info_list.py +33 -0
- capo_codedeploy/types/applications_list.py +19 -0
- capo_codedeploy/types/arn.py +5 -0
- capo_codedeploy/types/auto_rollback_configuration.py +50 -0
- capo_codedeploy/types/auto_rollback_event.py +18 -0
- capo_codedeploy/types/auto_rollback_events_list.py +35 -0
- capo_codedeploy/types/auto_scaling_group.py +47 -0
- capo_codedeploy/types/auto_scaling_group_hook.py +5 -0
- capo_codedeploy/types/auto_scaling_group_list.py +35 -0
- capo_codedeploy/types/auto_scaling_group_name.py +5 -0
- capo_codedeploy/types/auto_scaling_group_name_list.py +19 -0
- capo_codedeploy/types/batch_get_application_revisions_input.py +55 -0
- capo_codedeploy/types/batch_get_application_revisions_output.py +56 -0
- capo_codedeploy/types/batch_get_applications_input.py +45 -0
- capo_codedeploy/types/batch_get_applications_output.py +42 -0
- capo_codedeploy/types/batch_get_deployment_groups_input.py +57 -0
- capo_codedeploy/types/batch_get_deployment_groups_output.py +49 -0
- capo_codedeploy/types/batch_get_deployment_instances_input.py +53 -0
- capo_codedeploy/types/batch_get_deployment_instances_output.py +49 -0
- capo_codedeploy/types/batch_get_deployment_targets_input.py +51 -0
- capo_codedeploy/types/batch_get_deployment_targets_output.py +42 -0
- capo_codedeploy/types/batch_get_deployments_input.py +43 -0
- capo_codedeploy/types/batch_get_deployments_output.py +42 -0
- capo_codedeploy/types/batch_get_on_premises_instances_input.py +45 -0
- capo_codedeploy/types/batch_get_on_premises_instances_output.py +42 -0
- capo_codedeploy/types/blue_green_deployment_configuration.py +84 -0
- capo_codedeploy/types/blue_instance_termination_option.py +46 -0
- capo_codedeploy/types/boolean.py +5 -0
- capo_codedeploy/types/bundle_type.py +20 -0
- capo_codedeploy/types/cloud_formation_resource_type.py +5 -0
- capo_codedeploy/types/cloud_formation_target.py +112 -0
- capo_codedeploy/types/commit_id.py +5 -0
- capo_codedeploy/types/compute_platform.py +18 -0
- capo_codedeploy/types/continue_deployment_input.py +49 -0
- capo_codedeploy/types/create_application_input.py +67 -0
- capo_codedeploy/types/create_application_output.py +28 -0
- capo_codedeploy/types/create_deployment_config_input.py +115 -0
- capo_codedeploy/types/create_deployment_config_output.py +30 -0
- capo_codedeploy/types/create_deployment_group_input.py +353 -0
- capo_codedeploy/types/create_deployment_group_output.py +30 -0
- capo_codedeploy/types/create_deployment_input.py +178 -0
- capo_codedeploy/types/create_deployment_output.py +28 -0
- capo_codedeploy/types/delete_application_input.py +31 -0
- capo_codedeploy/types/delete_deployment_config_input.py +35 -0
- capo_codedeploy/types/delete_deployment_group_input.py +45 -0
- capo_codedeploy/types/delete_deployment_group_output.py +42 -0
- capo_codedeploy/types/delete_git_hub_account_token_input.py +30 -0
- capo_codedeploy/types/delete_git_hub_account_token_output.py +30 -0
- capo_codedeploy/types/delete_resources_by_external_id_input.py +28 -0
- capo_codedeploy/types/delete_resources_by_external_id_output.py +18 -0
- capo_codedeploy/types/deployment_config_id.py +5 -0
- capo_codedeploy/types/deployment_config_info.py +134 -0
- capo_codedeploy/types/deployment_config_name.py +5 -0
- capo_codedeploy/types/deployment_configs_list.py +19 -0
- capo_codedeploy/types/deployment_creator.py +23 -0
- capo_codedeploy/types/deployment_group_id.py +5 -0
- capo_codedeploy/types/deployment_group_info.py +420 -0
- capo_codedeploy/types/deployment_group_info_list.py +35 -0
- capo_codedeploy/types/deployment_group_name.py +5 -0
- capo_codedeploy/types/deployment_groups_list.py +19 -0
- capo_codedeploy/types/deployment_id.py +5 -0
- capo_codedeploy/types/deployment_info.py +499 -0
- capo_codedeploy/types/deployment_option.py +17 -0
- capo_codedeploy/types/deployment_overview.py +64 -0
- capo_codedeploy/types/deployment_ready_action.py +17 -0
- capo_codedeploy/types/deployment_ready_option.py +50 -0
- capo_codedeploy/types/deployment_status.py +23 -0
- capo_codedeploy/types/deployment_status_list.py +33 -0
- capo_codedeploy/types/deployment_status_message_list.py +19 -0
- capo_codedeploy/types/deployment_style.py +61 -0
- capo_codedeploy/types/deployment_target.py +115 -0
- capo_codedeploy/types/deployment_target_list.py +33 -0
- capo_codedeploy/types/deployment_target_type.py +19 -0
- capo_codedeploy/types/deployment_type.py +17 -0
- capo_codedeploy/types/deployment_wait_type.py +17 -0
- capo_codedeploy/types/deployments_info_list.py +31 -0
- capo_codedeploy/types/deployments_list.py +17 -0
- capo_codedeploy/types/deregister_on_premises_instance_input.py +33 -0
- capo_codedeploy/types/description.py +5 -0
- capo_codedeploy/types/diagnostics.py +63 -0
- capo_codedeploy/types/duration.py +5 -0
- capo_codedeploy/types/e_tag.py +5 -0
- capo_codedeploy/types/ec2_tag_filter.py +52 -0
- capo_codedeploy/types/ec2_tag_filter_list.py +29 -0
- capo_codedeploy/types/ec2_tag_filter_type.py +18 -0
- capo_codedeploy/types/ec2_tag_set.py +42 -0
- capo_codedeploy/types/ec2_tag_set_list.py +35 -0
- capo_codedeploy/types/ecs_cluster_name.py +5 -0
- capo_codedeploy/types/ecs_service.py +35 -0
- capo_codedeploy/types/ecs_service_list.py +29 -0
- capo_codedeploy/types/ecs_service_name.py +5 -0
- capo_codedeploy/types/ecs_target.py +114 -0
- capo_codedeploy/types/ecs_task_set.py +111 -0
- capo_codedeploy/types/ecs_task_set_count.py +5 -0
- capo_codedeploy/types/ecs_task_set_identifier.py +5 -0
- capo_codedeploy/types/ecs_task_set_list.py +29 -0
- capo_codedeploy/types/ecs_task_set_status.py +5 -0
- capo_codedeploy/types/elb_info.py +28 -0
- capo_codedeploy/types/elb_info_list.py +29 -0
- capo_codedeploy/types/elb_name.py +5 -0
- capo_codedeploy/types/error_code.py +49 -0
- capo_codedeploy/types/error_information.py +43 -0
- capo_codedeploy/types/error_message.py +5 -0
- capo_codedeploy/types/external_id.py +5 -0
- capo_codedeploy/types/file_exists_behavior.py +18 -0
- capo_codedeploy/types/filter_value.py +5 -0
- capo_codedeploy/types/filter_value_list.py +17 -0
- capo_codedeploy/types/generic_revision_info.py +96 -0
- capo_codedeploy/types/get_application_input.py +31 -0
- capo_codedeploy/types/get_application_output.py +40 -0
- capo_codedeploy/types/get_application_revision_input.py +51 -0
- capo_codedeploy/types/get_application_revision_output.py +70 -0
- capo_codedeploy/types/get_deployment_config_input.py +35 -0
- capo_codedeploy/types/get_deployment_config_output.py +42 -0
- capo_codedeploy/types/get_deployment_group_input.py +43 -0
- capo_codedeploy/types/get_deployment_group_output.py +42 -0
- capo_codedeploy/types/get_deployment_input.py +31 -0
- capo_codedeploy/types/get_deployment_instance_input.py +39 -0
- capo_codedeploy/types/get_deployment_instance_output.py +42 -0
- capo_codedeploy/types/get_deployment_output.py +40 -0
- capo_codedeploy/types/get_deployment_target_input.py +39 -0
- capo_codedeploy/types/get_deployment_target_output.py +42 -0
- capo_codedeploy/types/get_on_premises_instance_input.py +31 -0
- capo_codedeploy/types/get_on_premises_instance_output.py +40 -0
- capo_codedeploy/types/git_hub_account_token_name.py +5 -0
- capo_codedeploy/types/git_hub_account_token_name_list.py +19 -0
- capo_codedeploy/types/git_hub_location.py +35 -0
- capo_codedeploy/types/green_fleet_provisioning_action.py +17 -0
- capo_codedeploy/types/green_fleet_provisioning_option.py +42 -0
- capo_codedeploy/types/iam_session_arn.py +5 -0
- capo_codedeploy/types/iam_user_arn.py +5 -0
- capo_codedeploy/types/instance_action.py +17 -0
- capo_codedeploy/types/instance_arn.py +5 -0
- capo_codedeploy/types/instance_count.py +5 -0
- capo_codedeploy/types/instance_id.py +5 -0
- capo_codedeploy/types/instance_info.py +95 -0
- capo_codedeploy/types/instance_info_list.py +29 -0
- capo_codedeploy/types/instance_name.py +5 -0
- capo_codedeploy/types/instance_name_list.py +17 -0
- capo_codedeploy/types/instance_status.py +22 -0
- capo_codedeploy/types/instance_status_list.py +31 -0
- capo_codedeploy/types/instance_summary.py +107 -0
- capo_codedeploy/types/instance_summary_list.py +33 -0
- capo_codedeploy/types/instance_target.py +112 -0
- capo_codedeploy/types/instance_type.py +17 -0
- capo_codedeploy/types/instance_type_list.py +29 -0
- capo_codedeploy/types/instances_list.py +17 -0
- capo_codedeploy/types/key.py +5 -0
- capo_codedeploy/types/lambda_function_alias.py +5 -0
- capo_codedeploy/types/lambda_function_info.py +69 -0
- capo_codedeploy/types/lambda_function_name.py +5 -0
- capo_codedeploy/types/lambda_target.py +114 -0
- capo_codedeploy/types/last_deployment_info.py +74 -0
- capo_codedeploy/types/lifecycle_error_code.py +21 -0
- capo_codedeploy/types/lifecycle_event.py +95 -0
- capo_codedeploy/types/lifecycle_event_hook_execution_id.py +5 -0
- capo_codedeploy/types/lifecycle_event_list.py +31 -0
- capo_codedeploy/types/lifecycle_event_name.py +5 -0
- capo_codedeploy/types/lifecycle_event_status.py +21 -0
- capo_codedeploy/types/lifecycle_message.py +5 -0
- capo_codedeploy/types/list_application_revisions_input.py +111 -0
- capo_codedeploy/types/list_application_revisions_output.py +49 -0
- capo_codedeploy/types/list_applications_input.py +28 -0
- capo_codedeploy/types/list_applications_output.py +49 -0
- capo_codedeploy/types/list_deployment_configs_input.py +28 -0
- capo_codedeploy/types/list_deployment_configs_output.py +49 -0
- capo_codedeploy/types/list_deployment_groups_input.py +40 -0
- capo_codedeploy/types/list_deployment_groups_output.py +58 -0
- capo_codedeploy/types/list_deployment_instances_input.py +82 -0
- capo_codedeploy/types/list_deployment_instances_output.py +47 -0
- capo_codedeploy/types/list_deployment_targets_input.py +57 -0
- capo_codedeploy/types/list_deployment_targets_output.py +45 -0
- capo_codedeploy/types/list_deployments_input.py +93 -0
- capo_codedeploy/types/list_deployments_output.py +47 -0
- capo_codedeploy/types/list_git_hub_account_token_names_input.py +28 -0
- capo_codedeploy/types/list_git_hub_account_token_names_output.py +49 -0
- capo_codedeploy/types/list_on_premises_instances_input.py +68 -0
- capo_codedeploy/types/list_on_premises_instances_output.py +49 -0
- capo_codedeploy/types/list_state_filter_action.py +18 -0
- capo_codedeploy/types/list_tags_for_resource_input.py +38 -0
- capo_codedeploy/types/list_tags_for_resource_output.py +43 -0
- capo_codedeploy/types/listener_arn.py +5 -0
- capo_codedeploy/types/listener_arn_list.py +17 -0
- capo_codedeploy/types/load_balancer_info.py +80 -0
- capo_codedeploy/types/log_tail.py +5 -0
- capo_codedeploy/types/message.py +5 -0
- capo_codedeploy/types/minimum_healthy_hosts.py +50 -0
- capo_codedeploy/types/minimum_healthy_hosts_per_zone.py +50 -0
- capo_codedeploy/types/minimum_healthy_hosts_per_zone_type.py +17 -0
- capo_codedeploy/types/minimum_healthy_hosts_per_zone_value.py +5 -0
- capo_codedeploy/types/minimum_healthy_hosts_type.py +17 -0
- capo_codedeploy/types/minimum_healthy_hosts_value.py +5 -0
- capo_codedeploy/types/next_token.py +5 -0
- capo_codedeploy/types/nullable_boolean.py +5 -0
- capo_codedeploy/types/on_premises_tag_set.py +42 -0
- capo_codedeploy/types/on_premises_tag_set_list.py +31 -0
- capo_codedeploy/types/outdated_instances_strategy.py +17 -0
- capo_codedeploy/types/percentage.py +5 -0
- capo_codedeploy/types/put_lifecycle_event_hook_execution_status_input.py +60 -0
- capo_codedeploy/types/put_lifecycle_event_hook_execution_status_output.py +32 -0
- capo_codedeploy/types/raw_string.py +35 -0
- capo_codedeploy/types/raw_string_content.py +5 -0
- capo_codedeploy/types/raw_string_sha256.py +5 -0
- capo_codedeploy/types/register_application_revision_input.py +58 -0
- capo_codedeploy/types/register_on_premises_instance_input.py +47 -0
- capo_codedeploy/types/registration_status.py +17 -0
- capo_codedeploy/types/related_deployments.py +55 -0
- capo_codedeploy/types/remove_tags_from_on_premises_instances_input.py +61 -0
- capo_codedeploy/types/repository.py +5 -0
- capo_codedeploy/types/revision_info.py +63 -0
- capo_codedeploy/types/revision_info_list.py +29 -0
- capo_codedeploy/types/revision_location.py +114 -0
- capo_codedeploy/types/revision_location_list.py +33 -0
- capo_codedeploy/types/revision_location_type.py +19 -0
- capo_codedeploy/types/role.py +5 -0
- capo_codedeploy/types/rollback_info.py +49 -0
- capo_codedeploy/types/s3_bucket.py +5 -0
- capo_codedeploy/types/s3_key.py +5 -0
- capo_codedeploy/types/s3_location.py +64 -0
- capo_codedeploy/types/script_name.py +5 -0
- capo_codedeploy/types/skip_wait_time_for_instance_termination_input.py +28 -0
- capo_codedeploy/types/sort_order.py +17 -0
- capo_codedeploy/types/stop_deployment_input.py +40 -0
- capo_codedeploy/types/stop_deployment_output.py +43 -0
- capo_codedeploy/types/stop_status.py +17 -0
- capo_codedeploy/types/tag.py +35 -0
- capo_codedeploy/types/tag_filter.py +50 -0
- capo_codedeploy/types/tag_filter_list.py +29 -0
- capo_codedeploy/types/tag_filter_type.py +18 -0
- capo_codedeploy/types/tag_key_list.py +17 -0
- capo_codedeploy/types/tag_list.py +29 -0
- capo_codedeploy/types/tag_resource_input.py +45 -0
- capo_codedeploy/types/tag_resource_output.py +18 -0
- capo_codedeploy/types/target_arn.py +5 -0
- capo_codedeploy/types/target_filter_name.py +17 -0
- capo_codedeploy/types/target_filters.py +40 -0
- capo_codedeploy/types/target_group_info.py +28 -0
- capo_codedeploy/types/target_group_info_list.py +33 -0
- capo_codedeploy/types/target_group_name.py +5 -0
- capo_codedeploy/types/target_group_pair_info.py +79 -0
- capo_codedeploy/types/target_group_pair_info_list.py +35 -0
- capo_codedeploy/types/target_id.py +5 -0
- capo_codedeploy/types/target_id_list.py +17 -0
- capo_codedeploy/types/target_instances.py +78 -0
- capo_codedeploy/types/target_label.py +17 -0
- capo_codedeploy/types/target_status.py +22 -0
- capo_codedeploy/types/time.py +20 -0
- capo_codedeploy/types/time_based_canary.py +37 -0
- capo_codedeploy/types/time_based_linear.py +37 -0
- capo_codedeploy/types/time_range.py +50 -0
- capo_codedeploy/types/timestamp.py +20 -0
- capo_codedeploy/types/traffic_route.py +42 -0
- capo_codedeploy/types/traffic_routing_config.py +80 -0
- capo_codedeploy/types/traffic_routing_type.py +18 -0
- capo_codedeploy/types/traffic_weight.py +5 -0
- capo_codedeploy/types/trigger_config.py +58 -0
- capo_codedeploy/types/trigger_config_list.py +31 -0
- capo_codedeploy/types/trigger_event_type.py +25 -0
- capo_codedeploy/types/trigger_event_type_list.py +35 -0
- capo_codedeploy/types/trigger_name.py +5 -0
- capo_codedeploy/types/trigger_target_arn.py +5 -0
- capo_codedeploy/types/untag_resource_input.py +47 -0
- capo_codedeploy/types/untag_resource_output.py +18 -0
- capo_codedeploy/types/update_application_input.py +38 -0
- capo_codedeploy/types/update_deployment_group_input.py +343 -0
- capo_codedeploy/types/update_deployment_group_output.py +42 -0
- capo_codedeploy/types/value.py +5 -0
- capo_codedeploy/types/version.py +5 -0
- capo_codedeploy/types/version_id.py +5 -0
- capo_codedeploy/types/wait_time_in_mins.py +5 -0
- capo_codedeploy/types/wait_time_in_seconds.py +5 -0
- capo_codedeploy/types/zonal_config.py +63 -0
- capo_codedeploy-0.1.0.dist-info/METADATA +102 -0
- capo_codedeploy-0.1.0.dist-info/RECORD +472 -0
- capo_codedeploy-0.1.0.dist-info/WHEEL +5 -0
- capo_codedeploy-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_codedeploy-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#InstanceTarget``."""
|
|
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_id
|
|
9
|
+
import capo_codedeploy.types.lifecycle_event_list
|
|
10
|
+
import capo_codedeploy.types.target_arn
|
|
11
|
+
import capo_codedeploy.types.target_id
|
|
12
|
+
import capo_codedeploy.types.target_label
|
|
13
|
+
import capo_codedeploy.types.target_status
|
|
14
|
+
import capo_codedeploy.types.time
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class InstanceTarget(TypedDict, closed=True):
|
|
18
|
+
deployment_id: NotRequired["capo_codedeploy.types.deployment_id.DeploymentId"]
|
|
19
|
+
"""<p> The unique ID of a deployment. </p>"""
|
|
20
|
+
target_id: NotRequired["capo_codedeploy.types.target_id.TargetId"]
|
|
21
|
+
"""<p> The unique ID of a deployment target that has a type of <code>instanceTarget</code>. </p>"""
|
|
22
|
+
target_arn: NotRequired["capo_codedeploy.types.target_arn.TargetArn"]
|
|
23
|
+
"""<p> The Amazon Resource Name (ARN) of the target. </p>"""
|
|
24
|
+
status: NotRequired["capo_codedeploy.types.target_status.TargetStatus"]
|
|
25
|
+
"""<p> The status an EC2/On-premises deployment's target instance. </p>"""
|
|
26
|
+
last_updated_at: NotRequired["capo_codedeploy.types.time.Time"]
|
|
27
|
+
"""<p> The date and time when the target instance was updated by a deployment. </p>"""
|
|
28
|
+
lifecycle_events: NotRequired[
|
|
29
|
+
"capo_codedeploy.types.lifecycle_event_list.LifecycleEventList"
|
|
30
|
+
]
|
|
31
|
+
"""<p> The lifecycle events of the deployment to this target instance. </p>"""
|
|
32
|
+
instance_label: NotRequired["capo_codedeploy.types.target_label.TargetLabel"]
|
|
33
|
+
"""<p> A label that identifies whether the instance is an original target (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# --- awsJson1_1 ser/de ---
|
|
37
|
+
def serialize_aws_json_1_1(value: InstanceTarget) -> dict:
|
|
38
|
+
out: dict = {}
|
|
39
|
+
if "deployment_id" in value:
|
|
40
|
+
out["deploymentId"] = value["deployment_id"]
|
|
41
|
+
if "target_id" in value:
|
|
42
|
+
out["targetId"] = value["target_id"]
|
|
43
|
+
if "target_arn" in value:
|
|
44
|
+
out["targetArn"] = value["target_arn"]
|
|
45
|
+
if "status" in value:
|
|
46
|
+
import capo_codedeploy.types.target_status
|
|
47
|
+
|
|
48
|
+
out["status"] = capo_codedeploy.types.target_status.serialize_aws_json_1_1(
|
|
49
|
+
value["status"]
|
|
50
|
+
)
|
|
51
|
+
if "last_updated_at" in value:
|
|
52
|
+
import capo_codedeploy.types.time
|
|
53
|
+
|
|
54
|
+
out["lastUpdatedAt"] = capo_codedeploy.types.time.serialize_aws_json_1_1(
|
|
55
|
+
value["last_updated_at"]
|
|
56
|
+
)
|
|
57
|
+
if "lifecycle_events" in value:
|
|
58
|
+
import capo_codedeploy.types.lifecycle_event_list
|
|
59
|
+
|
|
60
|
+
out["lifecycleEvents"] = (
|
|
61
|
+
capo_codedeploy.types.lifecycle_event_list.serialize_aws_json_1_1(
|
|
62
|
+
value["lifecycle_events"]
|
|
63
|
+
)
|
|
64
|
+
)
|
|
65
|
+
if "instance_label" in value:
|
|
66
|
+
import capo_codedeploy.types.target_label
|
|
67
|
+
|
|
68
|
+
out["instanceLabel"] = (
|
|
69
|
+
capo_codedeploy.types.target_label.serialize_aws_json_1_1(
|
|
70
|
+
value["instance_label"]
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
return out
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def deserialize_aws_json_1_1(data: dict) -> InstanceTarget:
|
|
77
|
+
out: InstanceTarget = {} # type: ignore[typeddict-item]
|
|
78
|
+
if data.get("deploymentId") is not None:
|
|
79
|
+
out["deployment_id"] = data["deploymentId"]
|
|
80
|
+
if data.get("targetId") is not None:
|
|
81
|
+
out["target_id"] = data["targetId"]
|
|
82
|
+
if data.get("targetArn") is not None:
|
|
83
|
+
out["target_arn"] = data["targetArn"]
|
|
84
|
+
if data.get("status") is not None:
|
|
85
|
+
import capo_codedeploy.types.target_status
|
|
86
|
+
|
|
87
|
+
out["status"] = capo_codedeploy.types.target_status.deserialize_aws_json_1_1(
|
|
88
|
+
data["status"]
|
|
89
|
+
)
|
|
90
|
+
if data.get("lastUpdatedAt") is not None:
|
|
91
|
+
import capo_codedeploy.types.time
|
|
92
|
+
|
|
93
|
+
out["last_updated_at"] = capo_codedeploy.types.time.deserialize_aws_json_1_1(
|
|
94
|
+
data["lastUpdatedAt"]
|
|
95
|
+
)
|
|
96
|
+
if data.get("lifecycleEvents") is not None:
|
|
97
|
+
import capo_codedeploy.types.lifecycle_event_list
|
|
98
|
+
|
|
99
|
+
out["lifecycle_events"] = (
|
|
100
|
+
capo_codedeploy.types.lifecycle_event_list.deserialize_aws_json_1_1(
|
|
101
|
+
data["lifecycleEvents"]
|
|
102
|
+
)
|
|
103
|
+
)
|
|
104
|
+
if data.get("instanceLabel") is not None:
|
|
105
|
+
import capo_codedeploy.types.target_label
|
|
106
|
+
|
|
107
|
+
out["instance_label"] = (
|
|
108
|
+
capo_codedeploy.types.target_label.deserialize_aws_json_1_1(
|
|
109
|
+
data["instanceLabel"]
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
return out
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#InstanceType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
InstanceType: TypeAlias = Literal[
|
|
6
|
+
"Blue",
|
|
7
|
+
"Green",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_1 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_1(value: InstanceType) -> str:
|
|
13
|
+
return value
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_aws_json_1_1(data: str) -> InstanceType:
|
|
17
|
+
return cast(InstanceType, data)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#InstanceTypeList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codedeploy.types.instance_type
|
|
7
|
+
|
|
8
|
+
InstanceTypeList: TypeAlias = list["capo_codedeploy.types.instance_type.InstanceType"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_1 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_1(value: InstanceTypeList) -> list:
|
|
13
|
+
import capo_codedeploy.types.instance_type
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codedeploy.types.instance_type.serialize_aws_json_1_1(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_aws_json_1_1(data: list) -> InstanceTypeList:
|
|
22
|
+
import capo_codedeploy.types.instance_type
|
|
23
|
+
|
|
24
|
+
out: InstanceTypeList = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codedeploy.types.instance_type.deserialize_aws_json_1_1(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#InstancesList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codedeploy.types.instance_id
|
|
7
|
+
|
|
8
|
+
InstancesList: TypeAlias = list["capo_codedeploy.types.instance_id.InstanceId"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_1 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_1(value: InstancesList) -> list:
|
|
13
|
+
return list(value)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_aws_json_1_1(data: list) -> InstancesList:
|
|
17
|
+
return [item for item in data if item is not None]
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LambdaFunctionInfo``."""
|
|
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.lambda_function_alias
|
|
9
|
+
import capo_codedeploy.types.lambda_function_name
|
|
10
|
+
import capo_codedeploy.types.traffic_weight
|
|
11
|
+
import capo_codedeploy.types.version
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LambdaFunctionInfo(TypedDict, closed=True):
|
|
15
|
+
function_name: NotRequired[
|
|
16
|
+
"capo_codedeploy.types.lambda_function_name.LambdaFunctionName"
|
|
17
|
+
]
|
|
18
|
+
"""<p> The name of a Lambda function. </p>"""
|
|
19
|
+
function_alias: NotRequired[
|
|
20
|
+
"capo_codedeploy.types.lambda_function_alias.LambdaFunctionAlias"
|
|
21
|
+
]
|
|
22
|
+
r"""<p> The alias of a Lambda function. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html\">Lambda Function Aliases</a> in the <i>Lambda Developer Guide</i>.</p>"""
|
|
23
|
+
current_version: NotRequired["capo_codedeploy.types.version.Version"]
|
|
24
|
+
"""<p> The version of a Lambda function that production traffic points to. </p>"""
|
|
25
|
+
target_version: NotRequired["capo_codedeploy.types.version.Version"]
|
|
26
|
+
"""<p> The version of a Lambda function that production traffic points to after the Lambda function is deployed. </p>"""
|
|
27
|
+
target_version_weight: "capo_codedeploy.types.traffic_weight.TrafficWeight"
|
|
28
|
+
"""<p> The percentage of production traffic that the target version of a Lambda function receives. </p>"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# --- awsJson1_1 ser/de ---
|
|
32
|
+
def serialize_aws_json_1_1(value: LambdaFunctionInfo) -> dict:
|
|
33
|
+
out: dict = {}
|
|
34
|
+
if "function_name" in value:
|
|
35
|
+
out["functionName"] = value["function_name"]
|
|
36
|
+
if "function_alias" in value:
|
|
37
|
+
out["functionAlias"] = value["function_alias"]
|
|
38
|
+
if "current_version" in value:
|
|
39
|
+
out["currentVersion"] = value["current_version"]
|
|
40
|
+
if "target_version" in value:
|
|
41
|
+
out["targetVersion"] = value["target_version"]
|
|
42
|
+
out["targetVersionWeight"] = (
|
|
43
|
+
"NaN"
|
|
44
|
+
if value.get("target_version_weight", 0)
|
|
45
|
+
!= value.get("target_version_weight", 0)
|
|
46
|
+
else "Infinity"
|
|
47
|
+
if value.get("target_version_weight", 0) == float("inf")
|
|
48
|
+
else "-Infinity"
|
|
49
|
+
if value.get("target_version_weight", 0) == float("-inf")
|
|
50
|
+
else value.get("target_version_weight", 0)
|
|
51
|
+
)
|
|
52
|
+
return out
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def deserialize_aws_json_1_1(data: dict) -> LambdaFunctionInfo:
|
|
56
|
+
out: LambdaFunctionInfo = {} # type: ignore[typeddict-item]
|
|
57
|
+
if data.get("functionName") is not None:
|
|
58
|
+
out["function_name"] = data["functionName"]
|
|
59
|
+
if data.get("functionAlias") is not None:
|
|
60
|
+
out["function_alias"] = data["functionAlias"]
|
|
61
|
+
if data.get("currentVersion") is not None:
|
|
62
|
+
out["current_version"] = data["currentVersion"]
|
|
63
|
+
if data.get("targetVersion") is not None:
|
|
64
|
+
out["target_version"] = data["targetVersion"]
|
|
65
|
+
if data.get("targetVersionWeight") is not None:
|
|
66
|
+
out["target_version_weight"] = float(data["targetVersionWeight"])
|
|
67
|
+
else:
|
|
68
|
+
out["target_version_weight"] = 0
|
|
69
|
+
return out
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LambdaTarget``."""
|
|
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_id
|
|
9
|
+
import capo_codedeploy.types.lambda_function_info
|
|
10
|
+
import capo_codedeploy.types.lifecycle_event_list
|
|
11
|
+
import capo_codedeploy.types.target_arn
|
|
12
|
+
import capo_codedeploy.types.target_id
|
|
13
|
+
import capo_codedeploy.types.target_status
|
|
14
|
+
import capo_codedeploy.types.time
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class LambdaTarget(TypedDict, closed=True):
|
|
18
|
+
deployment_id: NotRequired["capo_codedeploy.types.deployment_id.DeploymentId"]
|
|
19
|
+
"""<p> The unique ID of a deployment. </p>"""
|
|
20
|
+
target_id: NotRequired["capo_codedeploy.types.target_id.TargetId"]
|
|
21
|
+
"""<p> The unique ID of a deployment target that has a type of <code>lambdaTarget</code>. </p>"""
|
|
22
|
+
target_arn: NotRequired["capo_codedeploy.types.target_arn.TargetArn"]
|
|
23
|
+
"""<p> The Amazon Resource Name (ARN) of the target. </p>"""
|
|
24
|
+
status: NotRequired["capo_codedeploy.types.target_status.TargetStatus"]
|
|
25
|
+
"""<p> The status an Lambda deployment's target Lambda function. </p>"""
|
|
26
|
+
last_updated_at: NotRequired["capo_codedeploy.types.time.Time"]
|
|
27
|
+
"""<p> The date and time when the target Lambda function was updated by a deployment. </p>"""
|
|
28
|
+
lifecycle_events: NotRequired[
|
|
29
|
+
"capo_codedeploy.types.lifecycle_event_list.LifecycleEventList"
|
|
30
|
+
]
|
|
31
|
+
"""<p> The lifecycle events of the deployment to this target Lambda function. </p>"""
|
|
32
|
+
lambda_function_info: NotRequired[
|
|
33
|
+
"capo_codedeploy.types.lambda_function_info.LambdaFunctionInfo"
|
|
34
|
+
]
|
|
35
|
+
"""<p> A <code>LambdaFunctionInfo</code> object that describes a target Lambda function. </p>"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# --- awsJson1_1 ser/de ---
|
|
39
|
+
def serialize_aws_json_1_1(value: LambdaTarget) -> dict:
|
|
40
|
+
out: dict = {}
|
|
41
|
+
if "deployment_id" in value:
|
|
42
|
+
out["deploymentId"] = value["deployment_id"]
|
|
43
|
+
if "target_id" in value:
|
|
44
|
+
out["targetId"] = value["target_id"]
|
|
45
|
+
if "target_arn" in value:
|
|
46
|
+
out["targetArn"] = value["target_arn"]
|
|
47
|
+
if "status" in value:
|
|
48
|
+
import capo_codedeploy.types.target_status
|
|
49
|
+
|
|
50
|
+
out["status"] = capo_codedeploy.types.target_status.serialize_aws_json_1_1(
|
|
51
|
+
value["status"]
|
|
52
|
+
)
|
|
53
|
+
if "last_updated_at" in value:
|
|
54
|
+
import capo_codedeploy.types.time
|
|
55
|
+
|
|
56
|
+
out["lastUpdatedAt"] = capo_codedeploy.types.time.serialize_aws_json_1_1(
|
|
57
|
+
value["last_updated_at"]
|
|
58
|
+
)
|
|
59
|
+
if "lifecycle_events" in value:
|
|
60
|
+
import capo_codedeploy.types.lifecycle_event_list
|
|
61
|
+
|
|
62
|
+
out["lifecycleEvents"] = (
|
|
63
|
+
capo_codedeploy.types.lifecycle_event_list.serialize_aws_json_1_1(
|
|
64
|
+
value["lifecycle_events"]
|
|
65
|
+
)
|
|
66
|
+
)
|
|
67
|
+
if "lambda_function_info" in value:
|
|
68
|
+
import capo_codedeploy.types.lambda_function_info
|
|
69
|
+
|
|
70
|
+
out["lambdaFunctionInfo"] = (
|
|
71
|
+
capo_codedeploy.types.lambda_function_info.serialize_aws_json_1_1(
|
|
72
|
+
value["lambda_function_info"]
|
|
73
|
+
)
|
|
74
|
+
)
|
|
75
|
+
return out
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def deserialize_aws_json_1_1(data: dict) -> LambdaTarget:
|
|
79
|
+
out: LambdaTarget = {} # type: ignore[typeddict-item]
|
|
80
|
+
if data.get("deploymentId") is not None:
|
|
81
|
+
out["deployment_id"] = data["deploymentId"]
|
|
82
|
+
if data.get("targetId") is not None:
|
|
83
|
+
out["target_id"] = data["targetId"]
|
|
84
|
+
if data.get("targetArn") is not None:
|
|
85
|
+
out["target_arn"] = data["targetArn"]
|
|
86
|
+
if data.get("status") is not None:
|
|
87
|
+
import capo_codedeploy.types.target_status
|
|
88
|
+
|
|
89
|
+
out["status"] = capo_codedeploy.types.target_status.deserialize_aws_json_1_1(
|
|
90
|
+
data["status"]
|
|
91
|
+
)
|
|
92
|
+
if data.get("lastUpdatedAt") is not None:
|
|
93
|
+
import capo_codedeploy.types.time
|
|
94
|
+
|
|
95
|
+
out["last_updated_at"] = capo_codedeploy.types.time.deserialize_aws_json_1_1(
|
|
96
|
+
data["lastUpdatedAt"]
|
|
97
|
+
)
|
|
98
|
+
if data.get("lifecycleEvents") is not None:
|
|
99
|
+
import capo_codedeploy.types.lifecycle_event_list
|
|
100
|
+
|
|
101
|
+
out["lifecycle_events"] = (
|
|
102
|
+
capo_codedeploy.types.lifecycle_event_list.deserialize_aws_json_1_1(
|
|
103
|
+
data["lifecycleEvents"]
|
|
104
|
+
)
|
|
105
|
+
)
|
|
106
|
+
if data.get("lambdaFunctionInfo") is not None:
|
|
107
|
+
import capo_codedeploy.types.lambda_function_info
|
|
108
|
+
|
|
109
|
+
out["lambda_function_info"] = (
|
|
110
|
+
capo_codedeploy.types.lambda_function_info.deserialize_aws_json_1_1(
|
|
111
|
+
data["lambdaFunctionInfo"]
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
return out
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LastDeploymentInfo``."""
|
|
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_id
|
|
9
|
+
import capo_codedeploy.types.deployment_status
|
|
10
|
+
import capo_codedeploy.types.timestamp
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class LastDeploymentInfo(TypedDict, closed=True):
|
|
14
|
+
deployment_id: NotRequired["capo_codedeploy.types.deployment_id.DeploymentId"]
|
|
15
|
+
"""<p> The unique ID of a deployment. </p>"""
|
|
16
|
+
status: NotRequired["capo_codedeploy.types.deployment_status.DeploymentStatus"]
|
|
17
|
+
"""<p>The status of the most recent deployment.</p>"""
|
|
18
|
+
end_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
|
|
19
|
+
"""<p>A timestamp that indicates when the most recent deployment to the deployment group was complete.</p>"""
|
|
20
|
+
create_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
|
|
21
|
+
"""<p>A timestamp that indicates when the most recent deployment to the deployment group started.</p>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- awsJson1_1 ser/de ---
|
|
25
|
+
def serialize_aws_json_1_1(value: LastDeploymentInfo) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
if "deployment_id" in value:
|
|
28
|
+
out["deploymentId"] = value["deployment_id"]
|
|
29
|
+
if "status" in value:
|
|
30
|
+
import capo_codedeploy.types.deployment_status
|
|
31
|
+
|
|
32
|
+
out["status"] = capo_codedeploy.types.deployment_status.serialize_aws_json_1_1(
|
|
33
|
+
value["status"]
|
|
34
|
+
)
|
|
35
|
+
if "end_time" in value:
|
|
36
|
+
import capo_codedeploy.types.timestamp
|
|
37
|
+
|
|
38
|
+
out["endTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
|
|
39
|
+
value["end_time"]
|
|
40
|
+
)
|
|
41
|
+
if "create_time" in value:
|
|
42
|
+
import capo_codedeploy.types.timestamp
|
|
43
|
+
|
|
44
|
+
out["createTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
|
|
45
|
+
value["create_time"]
|
|
46
|
+
)
|
|
47
|
+
return out
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def deserialize_aws_json_1_1(data: dict) -> LastDeploymentInfo:
|
|
51
|
+
out: LastDeploymentInfo = {} # type: ignore[typeddict-item]
|
|
52
|
+
if data.get("deploymentId") is not None:
|
|
53
|
+
out["deployment_id"] = data["deploymentId"]
|
|
54
|
+
if data.get("status") is not None:
|
|
55
|
+
import capo_codedeploy.types.deployment_status
|
|
56
|
+
|
|
57
|
+
out["status"] = (
|
|
58
|
+
capo_codedeploy.types.deployment_status.deserialize_aws_json_1_1(
|
|
59
|
+
data["status"]
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
if data.get("endTime") is not None:
|
|
63
|
+
import capo_codedeploy.types.timestamp
|
|
64
|
+
|
|
65
|
+
out["end_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
|
|
66
|
+
data["endTime"]
|
|
67
|
+
)
|
|
68
|
+
if data.get("createTime") is not None:
|
|
69
|
+
import capo_codedeploy.types.timestamp
|
|
70
|
+
|
|
71
|
+
out["create_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
|
|
72
|
+
data["createTime"]
|
|
73
|
+
)
|
|
74
|
+
return out
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LifecycleErrorCode``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
LifecycleErrorCode: TypeAlias = Literal[
|
|
6
|
+
"Success",
|
|
7
|
+
"ScriptMissing",
|
|
8
|
+
"ScriptNotExecutable",
|
|
9
|
+
"ScriptTimedOut",
|
|
10
|
+
"ScriptFailed",
|
|
11
|
+
"UnknownError",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- awsJson1_1 ser/de ---
|
|
16
|
+
def serialize_aws_json_1_1(value: LifecycleErrorCode) -> str:
|
|
17
|
+
return value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_aws_json_1_1(data: str) -> LifecycleErrorCode:
|
|
21
|
+
return cast(LifecycleErrorCode, data)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LifecycleEvent``."""
|
|
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.diagnostics
|
|
9
|
+
import capo_codedeploy.types.lifecycle_event_name
|
|
10
|
+
import capo_codedeploy.types.lifecycle_event_status
|
|
11
|
+
import capo_codedeploy.types.timestamp
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LifecycleEvent(TypedDict, closed=True):
|
|
15
|
+
lifecycle_event_name: NotRequired[
|
|
16
|
+
"capo_codedeploy.types.lifecycle_event_name.LifecycleEventName"
|
|
17
|
+
]
|
|
18
|
+
"""<p>The deployment lifecycle event name, such as <code>ApplicationStop</code>, <code>BeforeInstall</code>, <code>AfterInstall</code>, <code>ApplicationStart</code>, or <code>ValidateService</code>.</p>"""
|
|
19
|
+
diagnostics: NotRequired["capo_codedeploy.types.diagnostics.Diagnostics"]
|
|
20
|
+
"""<p>Diagnostic information about the deployment lifecycle event.</p>"""
|
|
21
|
+
start_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
|
|
22
|
+
"""<p>A timestamp that indicates when the deployment lifecycle event started.</p>"""
|
|
23
|
+
end_time: NotRequired["capo_codedeploy.types.timestamp.Timestamp"]
|
|
24
|
+
"""<p>A timestamp that indicates when the deployment lifecycle event ended.</p>"""
|
|
25
|
+
status: NotRequired[
|
|
26
|
+
"capo_codedeploy.types.lifecycle_event_status.LifecycleEventStatus"
|
|
27
|
+
]
|
|
28
|
+
"""<p>The deployment lifecycle event status:</p> <ul> <li> <p>Pending: The deployment lifecycle event is pending.</p> </li> <li> <p>InProgress: The deployment lifecycle event is in progress.</p> </li> <li> <p>Succeeded: The deployment lifecycle event ran successfully.</p> </li> <li> <p>Failed: The deployment lifecycle event has failed.</p> </li> <li> <p>Skipped: The deployment lifecycle event has been skipped.</p> </li> <li> <p>Unknown: The deployment lifecycle event is unknown.</p> </li> </ul>"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# --- awsJson1_1 ser/de ---
|
|
32
|
+
def serialize_aws_json_1_1(value: LifecycleEvent) -> dict:
|
|
33
|
+
out: dict = {}
|
|
34
|
+
if "lifecycle_event_name" in value:
|
|
35
|
+
out["lifecycleEventName"] = value["lifecycle_event_name"]
|
|
36
|
+
if "diagnostics" in value:
|
|
37
|
+
import capo_codedeploy.types.diagnostics
|
|
38
|
+
|
|
39
|
+
out["diagnostics"] = capo_codedeploy.types.diagnostics.serialize_aws_json_1_1(
|
|
40
|
+
value["diagnostics"]
|
|
41
|
+
)
|
|
42
|
+
if "start_time" in value:
|
|
43
|
+
import capo_codedeploy.types.timestamp
|
|
44
|
+
|
|
45
|
+
out["startTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
|
|
46
|
+
value["start_time"]
|
|
47
|
+
)
|
|
48
|
+
if "end_time" in value:
|
|
49
|
+
import capo_codedeploy.types.timestamp
|
|
50
|
+
|
|
51
|
+
out["endTime"] = capo_codedeploy.types.timestamp.serialize_aws_json_1_1(
|
|
52
|
+
value["end_time"]
|
|
53
|
+
)
|
|
54
|
+
if "status" in value:
|
|
55
|
+
import capo_codedeploy.types.lifecycle_event_status
|
|
56
|
+
|
|
57
|
+
out["status"] = (
|
|
58
|
+
capo_codedeploy.types.lifecycle_event_status.serialize_aws_json_1_1(
|
|
59
|
+
value["status"]
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
return out
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def deserialize_aws_json_1_1(data: dict) -> LifecycleEvent:
|
|
66
|
+
out: LifecycleEvent = {} # type: ignore[typeddict-item]
|
|
67
|
+
if data.get("lifecycleEventName") is not None:
|
|
68
|
+
out["lifecycle_event_name"] = data["lifecycleEventName"]
|
|
69
|
+
if data.get("diagnostics") is not None:
|
|
70
|
+
import capo_codedeploy.types.diagnostics
|
|
71
|
+
|
|
72
|
+
out["diagnostics"] = capo_codedeploy.types.diagnostics.deserialize_aws_json_1_1(
|
|
73
|
+
data["diagnostics"]
|
|
74
|
+
)
|
|
75
|
+
if data.get("startTime") is not None:
|
|
76
|
+
import capo_codedeploy.types.timestamp
|
|
77
|
+
|
|
78
|
+
out["start_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
|
|
79
|
+
data["startTime"]
|
|
80
|
+
)
|
|
81
|
+
if data.get("endTime") is not None:
|
|
82
|
+
import capo_codedeploy.types.timestamp
|
|
83
|
+
|
|
84
|
+
out["end_time"] = capo_codedeploy.types.timestamp.deserialize_aws_json_1_1(
|
|
85
|
+
data["endTime"]
|
|
86
|
+
)
|
|
87
|
+
if data.get("status") is not None:
|
|
88
|
+
import capo_codedeploy.types.lifecycle_event_status
|
|
89
|
+
|
|
90
|
+
out["status"] = (
|
|
91
|
+
capo_codedeploy.types.lifecycle_event_status.deserialize_aws_json_1_1(
|
|
92
|
+
data["status"]
|
|
93
|
+
)
|
|
94
|
+
)
|
|
95
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LifecycleEventList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codedeploy.types.lifecycle_event
|
|
7
|
+
|
|
8
|
+
LifecycleEventList: TypeAlias = list[
|
|
9
|
+
"capo_codedeploy.types.lifecycle_event.LifecycleEvent"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- awsJson1_1 ser/de ---
|
|
14
|
+
def serialize_aws_json_1_1(value: LifecycleEventList) -> list:
|
|
15
|
+
import capo_codedeploy.types.lifecycle_event
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codedeploy.types.lifecycle_event.serialize_aws_json_1_1(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_aws_json_1_1(data: list) -> LifecycleEventList:
|
|
24
|
+
import capo_codedeploy.types.lifecycle_event
|
|
25
|
+
|
|
26
|
+
out: LifecycleEventList = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codedeploy.types.lifecycle_event.deserialize_aws_json_1_1(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codedeploy#LifecycleEventStatus``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
LifecycleEventStatus: TypeAlias = Literal[
|
|
6
|
+
"Pending",
|
|
7
|
+
"InProgress",
|
|
8
|
+
"Succeeded",
|
|
9
|
+
"Failed",
|
|
10
|
+
"Skipped",
|
|
11
|
+
"Unknown",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- awsJson1_1 ser/de ---
|
|
16
|
+
def serialize_aws_json_1_1(value: LifecycleEventStatus) -> str:
|
|
17
|
+
return value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_aws_json_1_1(data: str) -> LifecycleEventStatus:
|
|
21
|
+
return cast(LifecycleEventStatus, data)
|