capo-codebuild 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- capo_codebuild/__init__.py +70 -0
- capo_codebuild/_async.py +25 -0
- capo_codebuild/_auth/_identity.py +16 -0
- capo_codebuild/_auth/_providers.py +886 -0
- capo_codebuild/_auth/_signers.py +88 -0
- capo_codebuild/_auth/_sigv4.py +434 -0
- capo_codebuild/_auth/_zapros_handler.py +80 -0
- capo_codebuild/_iter.py +113 -0
- capo_codebuild/_operations/code_build_20161006/batch_delete_builds.py +150 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_build_batches.py +148 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_builds.py +148 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_command_executions.py +148 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_fleets.py +148 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_projects.py +150 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_report_groups.py +148 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_reports.py +148 -0
- capo_codebuild/_operations/code_build_20161006/batch_get_sandboxes.py +150 -0
- capo_codebuild/_operations/code_build_20161006/create_fleet.py +161 -0
- capo_codebuild/_operations/code_build_20161006/create_project.py +169 -0
- capo_codebuild/_operations/code_build_20161006/create_report_group.py +162 -0
- capo_codebuild/_operations/code_build_20161006/create_webhook.py +166 -0
- capo_codebuild/_operations/code_build_20161006/delete_build_batch.py +150 -0
- capo_codebuild/_operations/code_build_20161006/delete_fleet.py +134 -0
- capo_codebuild/_operations/code_build_20161006/delete_project.py +138 -0
- capo_codebuild/_operations/code_build_20161006/delete_report.py +138 -0
- capo_codebuild/_operations/code_build_20161006/delete_report_group.py +140 -0
- capo_codebuild/_operations/code_build_20161006/delete_resource_policy.py +142 -0
- capo_codebuild/_operations/code_build_20161006/delete_source_credentials.py +155 -0
- capo_codebuild/_operations/code_build_20161006/delete_webhook.py +148 -0
- capo_codebuild/_operations/code_build_20161006/describe_code_coverages.py +149 -0
- capo_codebuild/_operations/code_build_20161006/describe_test_cases.py +155 -0
- capo_codebuild/_operations/code_build_20161006/get_report_group_trend.py +154 -0
- capo_codebuild/_operations/code_build_20161006/get_resource_policy.py +153 -0
- capo_codebuild/_operations/code_build_20161006/import_source_credentials.py +162 -0
- capo_codebuild/_operations/code_build_20161006/invalidate_project_cache.py +147 -0
- capo_codebuild/_operations/code_build_20161006/list_build_batches.py +151 -0
- capo_codebuild/_operations/code_build_20161006/list_build_batches_for_project.py +154 -0
- capo_codebuild/_operations/code_build_20161006/list_builds.py +144 -0
- capo_codebuild/_operations/code_build_20161006/list_builds_for_project.py +153 -0
- capo_codebuild/_operations/code_build_20161006/list_command_executions_for_sandbox.py +153 -0
- capo_codebuild/_operations/code_build_20161006/list_curated_environment_images.py +142 -0
- capo_codebuild/_operations/code_build_20161006/list_fleets.py +145 -0
- capo_codebuild/_operations/code_build_20161006/list_projects.py +149 -0
- capo_codebuild/_operations/code_build_20161006/list_report_groups.py +151 -0
- capo_codebuild/_operations/code_build_20161006/list_reports.py +145 -0
- capo_codebuild/_operations/code_build_20161006/list_reports_for_report_group.py +154 -0
- capo_codebuild/_operations/code_build_20161006/list_sandboxes.py +148 -0
- capo_codebuild/_operations/code_build_20161006/list_sandboxes_for_project.py +157 -0
- capo_codebuild/_operations/code_build_20161006/list_shared_projects.py +151 -0
- capo_codebuild/_operations/code_build_20161006/list_shared_report_groups.py +149 -0
- capo_codebuild/_operations/code_build_20161006/list_source_credentials.py +147 -0
- capo_codebuild/_operations/code_build_20161006/put_resource_policy.py +153 -0
- capo_codebuild/_operations/code_build_20161006/retry_build.py +153 -0
- capo_codebuild/_operations/code_build_20161006/retry_build_batch.py +153 -0
- capo_codebuild/_operations/code_build_20161006/start_build.py +169 -0
- capo_codebuild/_operations/code_build_20161006/start_build_batch.py +167 -0
- capo_codebuild/_operations/code_build_20161006/start_command_execution.py +153 -0
- capo_codebuild/_operations/code_build_20161006/start_sandbox.py +157 -0
- capo_codebuild/_operations/code_build_20161006/start_sandbox_connection.py +152 -0
- capo_codebuild/_operations/code_build_20161006/stop_build.py +148 -0
- capo_codebuild/_operations/code_build_20161006/stop_build_batch.py +152 -0
- capo_codebuild/_operations/code_build_20161006/stop_sandbox.py +148 -0
- capo_codebuild/_operations/code_build_20161006/update_fleet.py +161 -0
- capo_codebuild/_operations/code_build_20161006/update_project.py +164 -0
- capo_codebuild/_operations/code_build_20161006/update_project_visibility.py +156 -0
- capo_codebuild/_operations/code_build_20161006/update_report_group.py +156 -0
- capo_codebuild/_operations/code_build_20161006/update_webhook.py +160 -0
- capo_codebuild/_pagination.py +21 -0
- capo_codebuild/_protocol/__init__.py +1 -0
- capo_codebuild/_protocol/errors.py +93 -0
- capo_codebuild/_protocol/eventstream.py +238 -0
- capo_codebuild/_protocol/serialize.py +47 -0
- capo_codebuild/_protocol/xml.py +33 -0
- capo_codebuild/_rule_engine/__init__.py +0 -0
- capo_codebuild/_rule_engine/_aws_partition.py +160 -0
- capo_codebuild/_rule_engine/_endpoint_rule_set.py +136 -0
- capo_codebuild/_rule_engine/_endpoint_runtime.py +389 -0
- capo_codebuild/_services/_aws_config.py +160 -0
- capo_codebuild/_services/_pipeline.py +198 -0
- capo_codebuild/_services/async_code_build.py +4509 -0
- capo_codebuild/_services/code_build.py +4450 -0
- capo_codebuild/errors/__init__.py +37 -0
- capo_codebuild/errors/_base.py +94 -0
- capo_codebuild/errors/account_limit_exceeded_exception.py +53 -0
- capo_codebuild/errors/account_suspended_exception.py +51 -0
- capo_codebuild/errors/invalid_input_exception.py +51 -0
- capo_codebuild/errors/o_auth_provider_exception.py +51 -0
- capo_codebuild/errors/resource_already_exists_exception.py +53 -0
- capo_codebuild/errors/resource_not_found_exception.py +51 -0
- capo_codebuild/py.typed +0 -0
- capo_codebuild/types/_prelude/blob.py +12 -0
- capo_codebuild/types/_prelude/timestamp.py +17 -0
- capo_codebuild/types/artifact_namespace.py +17 -0
- capo_codebuild/types/artifact_packaging.py +17 -0
- capo_codebuild/types/artifacts_type.py +18 -0
- capo_codebuild/types/auth_type.py +20 -0
- capo_codebuild/types/auto_retry_config.py +47 -0
- capo_codebuild/types/batch_delete_builds_input.py +37 -0
- capo_codebuild/types/batch_delete_builds_output.py +57 -0
- capo_codebuild/types/batch_get_build_batches_input.py +39 -0
- capo_codebuild/types/batch_get_build_batches_output.py +59 -0
- capo_codebuild/types/batch_get_builds_input.py +37 -0
- capo_codebuild/types/batch_get_builds_output.py +53 -0
- capo_codebuild/types/batch_get_command_executions_input.py +55 -0
- capo_codebuild/types/batch_get_command_executions_output.py +63 -0
- capo_codebuild/types/batch_get_fleets_input.py +39 -0
- capo_codebuild/types/batch_get_fleets_output.py +53 -0
- capo_codebuild/types/batch_get_projects_input.py +39 -0
- capo_codebuild/types/batch_get_projects_output.py +55 -0
- capo_codebuild/types/batch_get_report_groups_input.py +45 -0
- capo_codebuild/types/batch_get_report_groups_output.py +59 -0
- capo_codebuild/types/batch_get_reports_input.py +39 -0
- capo_codebuild/types/batch_get_reports_output.py +55 -0
- capo_codebuild/types/batch_get_sandboxes_input.py +37 -0
- capo_codebuild/types/batch_get_sandboxes_output.py +55 -0
- capo_codebuild/types/batch_report_mode_type.py +17 -0
- capo_codebuild/types/batch_restrictions.py +68 -0
- capo_codebuild/types/boolean.py +5 -0
- capo_codebuild/types/bucket_owner_access.py +19 -0
- capo_codebuild/types/build.py +455 -0
- capo_codebuild/types/build_artifacts.py +83 -0
- capo_codebuild/types/build_artifacts_list.py +31 -0
- capo_codebuild/types/build_batch.py +416 -0
- capo_codebuild/types/build_batch_filter.py +36 -0
- capo_codebuild/types/build_batch_ids.py +17 -0
- capo_codebuild/types/build_batch_phase.py +108 -0
- capo_codebuild/types/build_batch_phase_type.py +22 -0
- capo_codebuild/types/build_batch_phases.py +33 -0
- capo_codebuild/types/build_batches.py +29 -0
- capo_codebuild/types/build_group.py +93 -0
- capo_codebuild/types/build_groups.py +29 -0
- capo_codebuild/types/build_ids.py +17 -0
- capo_codebuild/types/build_not_deleted.py +35 -0
- capo_codebuild/types/build_phase.py +104 -0
- capo_codebuild/types/build_phase_type.py +26 -0
- capo_codebuild/types/build_phases.py +29 -0
- capo_codebuild/types/build_report_arns.py +17 -0
- capo_codebuild/types/build_status_config.py +34 -0
- capo_codebuild/types/build_summaries.py +29 -0
- capo_codebuild/types/build_summary.py +100 -0
- capo_codebuild/types/build_time_out.py +5 -0
- capo_codebuild/types/builds.py +29 -0
- capo_codebuild/types/builds_not_deleted.py +33 -0
- capo_codebuild/types/cache_mode.py +18 -0
- capo_codebuild/types/cache_type.py +18 -0
- capo_codebuild/types/cloud_watch_logs_config.py +54 -0
- capo_codebuild/types/code_coverage.py +114 -0
- capo_codebuild/types/code_coverage_report_summary.py +80 -0
- capo_codebuild/types/code_coverages.py +29 -0
- capo_codebuild/types/command_execution.py +149 -0
- capo_codebuild/types/command_execution_ids.py +19 -0
- capo_codebuild/types/command_executions.py +33 -0
- capo_codebuild/types/command_type.py +14 -0
- capo_codebuild/types/compute_configuration.py +64 -0
- capo_codebuild/types/compute_type.py +27 -0
- capo_codebuild/types/compute_types_allowed.py +19 -0
- capo_codebuild/types/create_fleet_input.py +205 -0
- capo_codebuild/types/create_fleet_output.py +34 -0
- capo_codebuild/types/create_project_input.py +314 -0
- capo_codebuild/types/create_project_output.py +36 -0
- capo_codebuild/types/create_report_group_input.py +80 -0
- capo_codebuild/types/create_report_group_output.py +38 -0
- capo_codebuild/types/create_webhook_input.py +123 -0
- capo_codebuild/types/create_webhook_output.py +36 -0
- capo_codebuild/types/credential_provider_type.py +14 -0
- capo_codebuild/types/debug_session.py +35 -0
- capo_codebuild/types/delete_build_batch_input.py +31 -0
- capo_codebuild/types/delete_build_batch_output.py +64 -0
- capo_codebuild/types/delete_fleet_input.py +31 -0
- capo_codebuild/types/delete_fleet_output.py +18 -0
- capo_codebuild/types/delete_project_input.py +31 -0
- capo_codebuild/types/delete_project_output.py +18 -0
- capo_codebuild/types/delete_report_group_input.py +39 -0
- capo_codebuild/types/delete_report_group_output.py +18 -0
- capo_codebuild/types/delete_report_input.py +31 -0
- capo_codebuild/types/delete_report_output.py +18 -0
- capo_codebuild/types/delete_resource_policy_input.py +31 -0
- capo_codebuild/types/delete_resource_policy_output.py +18 -0
- capo_codebuild/types/delete_source_credentials_input.py +31 -0
- capo_codebuild/types/delete_source_credentials_output.py +28 -0
- capo_codebuild/types/delete_webhook_input.py +31 -0
- capo_codebuild/types/delete_webhook_output.py +18 -0
- capo_codebuild/types/describe_code_coverages_input.py +118 -0
- capo_codebuild/types/describe_code_coverages_output.py +47 -0
- capo_codebuild/types/describe_test_cases_input.py +59 -0
- capo_codebuild/types/describe_test_cases_output.py +43 -0
- capo_codebuild/types/docker_server.py +81 -0
- capo_codebuild/types/docker_server_status.py +34 -0
- capo_codebuild/types/environment_image.py +49 -0
- capo_codebuild/types/environment_images.py +33 -0
- capo_codebuild/types/environment_language.py +53 -0
- capo_codebuild/types/environment_languages.py +35 -0
- capo_codebuild/types/environment_platform.py +57 -0
- capo_codebuild/types/environment_platforms.py +35 -0
- capo_codebuild/types/environment_type.py +27 -0
- capo_codebuild/types/environment_variable.py +60 -0
- capo_codebuild/types/environment_variable_type.py +18 -0
- capo_codebuild/types/environment_variables.py +35 -0
- capo_codebuild/types/exported_environment_variable.py +35 -0
- capo_codebuild/types/exported_environment_variables.py +39 -0
- capo_codebuild/types/file_system_type.py +14 -0
- capo_codebuild/types/filter_group.py +29 -0
- capo_codebuild/types/filter_groups.py +29 -0
- capo_codebuild/types/fleet.py +257 -0
- capo_codebuild/types/fleet_arns.py +17 -0
- capo_codebuild/types/fleet_capacity.py +5 -0
- capo_codebuild/types/fleet_context_code.py +20 -0
- capo_codebuild/types/fleet_name.py +5 -0
- capo_codebuild/types/fleet_names.py +17 -0
- capo_codebuild/types/fleet_overflow_behavior.py +17 -0
- capo_codebuild/types/fleet_proxy_rule.py +81 -0
- capo_codebuild/types/fleet_proxy_rule_behavior.py +17 -0
- capo_codebuild/types/fleet_proxy_rule_effect_type.py +17 -0
- capo_codebuild/types/fleet_proxy_rule_entities.py +17 -0
- capo_codebuild/types/fleet_proxy_rule_type.py +17 -0
- capo_codebuild/types/fleet_proxy_rules.py +31 -0
- capo_codebuild/types/fleet_scaling_metric_type.py +14 -0
- capo_codebuild/types/fleet_scaling_type.py +14 -0
- capo_codebuild/types/fleet_sort_by_type.py +18 -0
- capo_codebuild/types/fleet_status.py +64 -0
- capo_codebuild/types/fleet_status_code.py +23 -0
- capo_codebuild/types/fleets.py +29 -0
- capo_codebuild/types/fleets_allowed.py +17 -0
- capo_codebuild/types/get_report_group_trend_input.py +60 -0
- capo_codebuild/types/get_report_group_trend_output.py +63 -0
- capo_codebuild/types/get_resource_policy_input.py +31 -0
- capo_codebuild/types/get_resource_policy_output.py +28 -0
- capo_codebuild/types/git_clone_depth.py +5 -0
- capo_codebuild/types/git_submodules_config.py +31 -0
- capo_codebuild/types/identifiers.py +17 -0
- capo_codebuild/types/image_pull_credentials_type.py +17 -0
- capo_codebuild/types/image_versions.py +17 -0
- capo_codebuild/types/import_source_credentials_input.py +77 -0
- capo_codebuild/types/import_source_credentials_output.py +28 -0
- capo_codebuild/types/invalidate_project_cache_input.py +31 -0
- capo_codebuild/types/invalidate_project_cache_output.py +18 -0
- capo_codebuild/types/key_input.py +5 -0
- capo_codebuild/types/language_type.py +25 -0
- capo_codebuild/types/list_build_batches_for_project_input.py +76 -0
- capo_codebuild/types/list_build_batches_for_project_output.py +43 -0
- capo_codebuild/types/list_build_batches_input.py +69 -0
- capo_codebuild/types/list_build_batches_output.py +43 -0
- capo_codebuild/types/list_builds_for_project_input.py +55 -0
- capo_codebuild/types/list_builds_for_project_output.py +41 -0
- capo_codebuild/types/list_builds_input.py +45 -0
- capo_codebuild/types/list_builds_output.py +41 -0
- capo_codebuild/types/list_command_executions_for_sandbox_input.py +64 -0
- capo_codebuild/types/list_command_executions_for_sandbox_output.py +49 -0
- capo_codebuild/types/list_curated_environment_images_input.py +18 -0
- capo_codebuild/types/list_curated_environment_images_output.py +42 -0
- capo_codebuild/types/list_fleets_input.py +69 -0
- capo_codebuild/types/list_fleets_output.py +43 -0
- capo_codebuild/types/list_projects_input.py +64 -0
- capo_codebuild/types/list_projects_output.py +43 -0
- capo_codebuild/types/list_report_groups_input.py +73 -0
- capo_codebuild/types/list_report_groups_output.py +47 -0
- capo_codebuild/types/list_reports_for_report_group_input.py +78 -0
- capo_codebuild/types/list_reports_for_report_group_output.py +43 -0
- capo_codebuild/types/list_reports_input.py +67 -0
- capo_codebuild/types/list_reports_output.py +43 -0
- capo_codebuild/types/list_sandboxes_for_project_input.py +62 -0
- capo_codebuild/types/list_sandboxes_for_project_output.py +43 -0
- capo_codebuild/types/list_sandboxes_input.py +52 -0
- capo_codebuild/types/list_sandboxes_output.py +43 -0
- capo_codebuild/types/list_shared_projects_input.py +73 -0
- capo_codebuild/types/list_shared_projects_output.py +43 -0
- capo_codebuild/types/list_shared_report_groups_input.py +73 -0
- capo_codebuild/types/list_shared_report_groups_output.py +47 -0
- capo_codebuild/types/list_source_credentials_input.py +18 -0
- capo_codebuild/types/list_source_credentials_output.py +42 -0
- capo_codebuild/types/logs_config.py +57 -0
- capo_codebuild/types/logs_config_status_type.py +17 -0
- capo_codebuild/types/logs_location.py +94 -0
- capo_codebuild/types/machine_type.py +17 -0
- capo_codebuild/types/network_interface.py +36 -0
- capo_codebuild/types/non_empty_string.py +5 -0
- capo_codebuild/types/non_negative_int.py +5 -0
- capo_codebuild/types/page_size.py +5 -0
- capo_codebuild/types/percentage.py +5 -0
- capo_codebuild/types/phase_context.py +34 -0
- capo_codebuild/types/phase_contexts.py +29 -0
- capo_codebuild/types/platform_type.py +19 -0
- capo_codebuild/types/project.py +405 -0
- capo_codebuild/types/project_arns.py +17 -0
- capo_codebuild/types/project_artifacts.py +141 -0
- capo_codebuild/types/project_artifacts_list.py +33 -0
- capo_codebuild/types/project_badge.py +36 -0
- capo_codebuild/types/project_build_batch_config.py +86 -0
- capo_codebuild/types/project_cache.py +67 -0
- capo_codebuild/types/project_cache_modes.py +29 -0
- capo_codebuild/types/project_description.py +5 -0
- capo_codebuild/types/project_environment.py +195 -0
- capo_codebuild/types/project_file_system_location.py +61 -0
- capo_codebuild/types/project_file_system_locations.py +39 -0
- capo_codebuild/types/project_fleet.py +28 -0
- capo_codebuild/types/project_name.py +5 -0
- capo_codebuild/types/project_names.py +17 -0
- capo_codebuild/types/project_secondary_source_versions.py +35 -0
- capo_codebuild/types/project_sort_by_type.py +18 -0
- capo_codebuild/types/project_source.py +135 -0
- capo_codebuild/types/project_source_version.py +38 -0
- capo_codebuild/types/project_sources.py +29 -0
- capo_codebuild/types/project_visibility_type.py +18 -0
- capo_codebuild/types/projects.py +29 -0
- capo_codebuild/types/proxy_configuration.py +63 -0
- capo_codebuild/types/pull_request_build_approver_role.py +29 -0
- capo_codebuild/types/pull_request_build_approver_roles.py +39 -0
- capo_codebuild/types/pull_request_build_comment_approval.py +18 -0
- capo_codebuild/types/pull_request_build_policy.py +66 -0
- capo_codebuild/types/put_resource_policy_input.py +38 -0
- capo_codebuild/types/put_resource_policy_output.py +28 -0
- capo_codebuild/types/registry_credential.py +53 -0
- capo_codebuild/types/report.py +180 -0
- capo_codebuild/types/report_arns.py +17 -0
- capo_codebuild/types/report_code_coverage_sort_by_type.py +17 -0
- capo_codebuild/types/report_export_config.py +63 -0
- capo_codebuild/types/report_export_config_type.py +17 -0
- capo_codebuild/types/report_filter.py +38 -0
- capo_codebuild/types/report_group.py +136 -0
- capo_codebuild/types/report_group_arns.py +19 -0
- capo_codebuild/types/report_group_name.py +5 -0
- capo_codebuild/types/report_group_sort_by_type.py +18 -0
- capo_codebuild/types/report_group_status_type.py +17 -0
- capo_codebuild/types/report_group_trend_field_type.py +24 -0
- capo_codebuild/types/report_group_trend_raw_data_list.py +35 -0
- capo_codebuild/types/report_group_trend_stats.py +40 -0
- capo_codebuild/types/report_groups.py +29 -0
- capo_codebuild/types/report_packaging_type.py +17 -0
- capo_codebuild/types/report_status_counts.py +28 -0
- capo_codebuild/types/report_status_type.py +20 -0
- capo_codebuild/types/report_type.py +17 -0
- capo_codebuild/types/report_with_raw_data.py +35 -0
- capo_codebuild/types/reports.py +29 -0
- capo_codebuild/types/resolved_artifact.py +49 -0
- capo_codebuild/types/resolved_secondary_artifacts.py +33 -0
- capo_codebuild/types/retry_build_batch_input.py +56 -0
- capo_codebuild/types/retry_build_batch_output.py +35 -0
- capo_codebuild/types/retry_build_batch_type.py +17 -0
- capo_codebuild/types/retry_build_input.py +35 -0
- capo_codebuild/types/retry_build_output.py +33 -0
- capo_codebuild/types/s3_logs_config.py +77 -0
- capo_codebuild/types/s3_report_export_config.py +77 -0
- capo_codebuild/types/sandbox.py +267 -0
- capo_codebuild/types/sandbox_ids.py +17 -0
- capo_codebuild/types/sandbox_session.py +133 -0
- capo_codebuild/types/sandbox_session_phase.py +94 -0
- capo_codebuild/types/sandbox_session_phases.py +35 -0
- capo_codebuild/types/sandboxes.py +29 -0
- capo_codebuild/types/scaling_configuration_input.py +70 -0
- capo_codebuild/types/scaling_configuration_output.py +76 -0
- capo_codebuild/types/scope_configuration.py +53 -0
- capo_codebuild/types/security_group_ids.py +19 -0
- capo_codebuild/types/sensitive_non_empty_string.py +5 -0
- capo_codebuild/types/sensitive_string.py +5 -0
- capo_codebuild/types/server_type.py +20 -0
- capo_codebuild/types/shared_resource_sort_by_type.py +17 -0
- capo_codebuild/types/sort_order_type.py +17 -0
- capo_codebuild/types/source_auth.py +46 -0
- capo_codebuild/types/source_auth_type.py +18 -0
- capo_codebuild/types/source_credentials_info.py +65 -0
- capo_codebuild/types/source_credentials_infos.py +35 -0
- capo_codebuild/types/source_type.py +24 -0
- capo_codebuild/types/ssm_session.py +40 -0
- capo_codebuild/types/start_build_batch_input.py +459 -0
- capo_codebuild/types/start_build_batch_output.py +36 -0
- capo_codebuild/types/start_build_input.py +481 -0
- capo_codebuild/types/start_build_output.py +34 -0
- capo_codebuild/types/start_command_execution_input.py +54 -0
- capo_codebuild/types/start_command_execution_output.py +42 -0
- capo_codebuild/types/start_sandbox_connection_input.py +31 -0
- capo_codebuild/types/start_sandbox_connection_output.py +36 -0
- capo_codebuild/types/start_sandbox_input.py +37 -0
- capo_codebuild/types/start_sandbox_output.py +36 -0
- capo_codebuild/types/status_type.py +21 -0
- capo_codebuild/types/stop_build_batch_input.py +31 -0
- capo_codebuild/types/stop_build_batch_output.py +35 -0
- capo_codebuild/types/stop_build_input.py +31 -0
- capo_codebuild/types/stop_build_output.py +34 -0
- capo_codebuild/types/stop_sandbox_input.py +31 -0
- capo_codebuild/types/stop_sandbox_output.py +36 -0
- capo_codebuild/types/string.py +5 -0
- capo_codebuild/types/subnets.py +17 -0
- capo_codebuild/types/tag.py +35 -0
- capo_codebuild/types/tag_list.py +29 -0
- capo_codebuild/types/target_tracking_scaling_configuration.py +57 -0
- capo_codebuild/types/target_tracking_scaling_configurations.py +39 -0
- capo_codebuild/types/test_case.py +89 -0
- capo_codebuild/types/test_case_filter.py +34 -0
- capo_codebuild/types/test_cases.py +29 -0
- capo_codebuild/types/test_report_summary.py +61 -0
- capo_codebuild/types/time_out.py +5 -0
- capo_codebuild/types/timestamp.py +20 -0
- capo_codebuild/types/update_fleet_input.py +203 -0
- capo_codebuild/types/update_fleet_output.py +34 -0
- capo_codebuild/types/update_project_input.py +312 -0
- capo_codebuild/types/update_project_output.py +36 -0
- capo_codebuild/types/update_project_visibility_input.py +62 -0
- capo_codebuild/types/update_project_visibility_output.py +56 -0
- capo_codebuild/types/update_report_group_input.py +67 -0
- capo_codebuild/types/update_report_group_output.py +38 -0
- capo_codebuild/types/update_webhook_input.py +103 -0
- capo_codebuild/types/update_webhook_output.py +36 -0
- capo_codebuild/types/value_input.py +5 -0
- capo_codebuild/types/vpc_config.py +64 -0
- capo_codebuild/types/webhook.py +171 -0
- capo_codebuild/types/webhook_build_type.py +18 -0
- capo_codebuild/types/webhook_filter.py +56 -0
- capo_codebuild/types/webhook_filter_type.py +26 -0
- capo_codebuild/types/webhook_scope_type.py +18 -0
- capo_codebuild/types/webhook_status.py +19 -0
- capo_codebuild/types/wrapper_boolean.py +5 -0
- capo_codebuild/types/wrapper_double.py +5 -0
- capo_codebuild/types/wrapper_int.py +5 -0
- capo_codebuild/types/wrapper_long.py +5 -0
- capo_codebuild-0.1.0.dist-info/METADATA +101 -0
- capo_codebuild-0.1.0.dist-info/RECORD +419 -0
- capo_codebuild-0.1.0.dist-info/WHEEL +5 -0
- capo_codebuild-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_codebuild-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CloudWatchLogsConfig``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.logs_config_status_type
|
|
11
|
+
import capo_codebuild.types.string
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class CloudWatchLogsConfig(TypedDict, closed=True):
|
|
15
|
+
status: "capo_codebuild.types.logs_config_status_type.LogsConfigStatusType"
|
|
16
|
+
"""<p>The current status of the logs in CloudWatch Logs for a build project. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: CloudWatch Logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: CloudWatch Logs are not enabled for this build project.</p> </li> </ul>"""
|
|
17
|
+
group_name: NotRequired["capo_codebuild.types.string.String"]
|
|
18
|
+
r"""<p> The group name of the logs in CloudWatch Logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html\">Working with Log Groups and Log Streams</a>. </p>"""
|
|
19
|
+
stream_name: NotRequired["capo_codebuild.types.string.String"]
|
|
20
|
+
r"""<p> The prefix of the stream name of the CloudWatch Logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html\">Working with Log Groups and Log Streams</a>. </p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- awsJson1_1 ser/de ---
|
|
24
|
+
def serialize_aws_json_1_1(value: CloudWatchLogsConfig) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
import capo_codebuild.types.logs_config_status_type
|
|
27
|
+
|
|
28
|
+
out["status"] = capo_codebuild.types.logs_config_status_type.serialize_aws_json_1_1(
|
|
29
|
+
value["status"]
|
|
30
|
+
)
|
|
31
|
+
if "group_name" in value:
|
|
32
|
+
out["groupName"] = value["group_name"]
|
|
33
|
+
if "stream_name" in value:
|
|
34
|
+
out["streamName"] = value["stream_name"]
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_aws_json_1_1(data: dict) -> CloudWatchLogsConfig:
|
|
39
|
+
out: CloudWatchLogsConfig = {} # type: ignore[typeddict-item]
|
|
40
|
+
if data.get("status") is not None:
|
|
41
|
+
import capo_codebuild.types.logs_config_status_type
|
|
42
|
+
|
|
43
|
+
out["status"] = (
|
|
44
|
+
capo_codebuild.types.logs_config_status_type.deserialize_aws_json_1_1(
|
|
45
|
+
data["status"]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError("CloudWatchLogsConfig.status required")
|
|
50
|
+
if data.get("groupName") is not None:
|
|
51
|
+
out["group_name"] = data["groupName"]
|
|
52
|
+
if data.get("streamName") is not None:
|
|
53
|
+
out["stream_name"] = data["streamName"]
|
|
54
|
+
return out
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CodeCoverage``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codebuild.types.non_empty_string
|
|
9
|
+
import capo_codebuild.types.non_negative_int
|
|
10
|
+
import capo_codebuild.types.percentage
|
|
11
|
+
import capo_codebuild.types.timestamp
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class CodeCoverage(TypedDict, closed=True):
|
|
15
|
+
id: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
16
|
+
"""<p>The identifier of the code coverage report.</p>"""
|
|
17
|
+
report_arn: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
18
|
+
"""<p>The ARN of the report.</p>"""
|
|
19
|
+
file_path: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
20
|
+
"""<p>The path of the test report file.</p>"""
|
|
21
|
+
line_coverage_percentage: NotRequired["capo_codebuild.types.percentage.Percentage"]
|
|
22
|
+
"""<p>The percentage of lines that are covered by your tests.</p>"""
|
|
23
|
+
lines_covered: NotRequired["capo_codebuild.types.non_negative_int.NonNegativeInt"]
|
|
24
|
+
"""<p>The number of lines that are covered by your tests.</p>"""
|
|
25
|
+
lines_missed: NotRequired["capo_codebuild.types.non_negative_int.NonNegativeInt"]
|
|
26
|
+
"""<p>The number of lines that are not covered by your tests.</p>"""
|
|
27
|
+
branch_coverage_percentage: NotRequired[
|
|
28
|
+
"capo_codebuild.types.percentage.Percentage"
|
|
29
|
+
]
|
|
30
|
+
"""<p>The percentage of branches that are covered by your tests.</p>"""
|
|
31
|
+
branches_covered: NotRequired[
|
|
32
|
+
"capo_codebuild.types.non_negative_int.NonNegativeInt"
|
|
33
|
+
]
|
|
34
|
+
"""<p>The number of conditional branches that are covered by your tests.</p>"""
|
|
35
|
+
branches_missed: NotRequired["capo_codebuild.types.non_negative_int.NonNegativeInt"]
|
|
36
|
+
"""<p>The number of conditional branches that are not covered by your tests.</p>"""
|
|
37
|
+
expired: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
|
|
38
|
+
"""<p>The date and time that the tests were run.</p>"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# --- awsJson1_1 ser/de ---
|
|
42
|
+
def serialize_aws_json_1_1(value: CodeCoverage) -> dict:
|
|
43
|
+
out: dict = {}
|
|
44
|
+
if "id" in value:
|
|
45
|
+
out["id"] = value["id"]
|
|
46
|
+
if "report_arn" in value:
|
|
47
|
+
out["reportARN"] = value["report_arn"]
|
|
48
|
+
if "file_path" in value:
|
|
49
|
+
out["filePath"] = value["file_path"]
|
|
50
|
+
if "line_coverage_percentage" in value:
|
|
51
|
+
out["lineCoveragePercentage"] = (
|
|
52
|
+
"NaN"
|
|
53
|
+
if value["line_coverage_percentage"] != value["line_coverage_percentage"]
|
|
54
|
+
else "Infinity"
|
|
55
|
+
if value["line_coverage_percentage"] == float("inf")
|
|
56
|
+
else "-Infinity"
|
|
57
|
+
if value["line_coverage_percentage"] == float("-inf")
|
|
58
|
+
else value["line_coverage_percentage"]
|
|
59
|
+
)
|
|
60
|
+
if "lines_covered" in value:
|
|
61
|
+
out["linesCovered"] = value["lines_covered"]
|
|
62
|
+
if "lines_missed" in value:
|
|
63
|
+
out["linesMissed"] = value["lines_missed"]
|
|
64
|
+
if "branch_coverage_percentage" in value:
|
|
65
|
+
out["branchCoveragePercentage"] = (
|
|
66
|
+
"NaN"
|
|
67
|
+
if value["branch_coverage_percentage"]
|
|
68
|
+
!= value["branch_coverage_percentage"]
|
|
69
|
+
else "Infinity"
|
|
70
|
+
if value["branch_coverage_percentage"] == float("inf")
|
|
71
|
+
else "-Infinity"
|
|
72
|
+
if value["branch_coverage_percentage"] == float("-inf")
|
|
73
|
+
else value["branch_coverage_percentage"]
|
|
74
|
+
)
|
|
75
|
+
if "branches_covered" in value:
|
|
76
|
+
out["branchesCovered"] = value["branches_covered"]
|
|
77
|
+
if "branches_missed" in value:
|
|
78
|
+
out["branchesMissed"] = value["branches_missed"]
|
|
79
|
+
if "expired" in value:
|
|
80
|
+
import capo_codebuild.types.timestamp
|
|
81
|
+
|
|
82
|
+
out["expired"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
|
|
83
|
+
value["expired"]
|
|
84
|
+
)
|
|
85
|
+
return out
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def deserialize_aws_json_1_1(data: dict) -> CodeCoverage:
|
|
89
|
+
out: CodeCoverage = {} # type: ignore[typeddict-item]
|
|
90
|
+
if data.get("id") is not None:
|
|
91
|
+
out["id"] = data["id"]
|
|
92
|
+
if data.get("reportARN") is not None:
|
|
93
|
+
out["report_arn"] = data["reportARN"]
|
|
94
|
+
if data.get("filePath") is not None:
|
|
95
|
+
out["file_path"] = data["filePath"]
|
|
96
|
+
if data.get("lineCoveragePercentage") is not None:
|
|
97
|
+
out["line_coverage_percentage"] = float(data["lineCoveragePercentage"])
|
|
98
|
+
if data.get("linesCovered") is not None:
|
|
99
|
+
out["lines_covered"] = data["linesCovered"]
|
|
100
|
+
if data.get("linesMissed") is not None:
|
|
101
|
+
out["lines_missed"] = data["linesMissed"]
|
|
102
|
+
if data.get("branchCoveragePercentage") is not None:
|
|
103
|
+
out["branch_coverage_percentage"] = float(data["branchCoveragePercentage"])
|
|
104
|
+
if data.get("branchesCovered") is not None:
|
|
105
|
+
out["branches_covered"] = data["branchesCovered"]
|
|
106
|
+
if data.get("branchesMissed") is not None:
|
|
107
|
+
out["branches_missed"] = data["branchesMissed"]
|
|
108
|
+
if data.get("expired") is not None:
|
|
109
|
+
import capo_codebuild.types.timestamp
|
|
110
|
+
|
|
111
|
+
out["expired"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
|
|
112
|
+
data["expired"]
|
|
113
|
+
)
|
|
114
|
+
return out
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CodeCoverageReportSummary``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codebuild.types.non_negative_int
|
|
9
|
+
import capo_codebuild.types.percentage
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CodeCoverageReportSummary(TypedDict, closed=True):
|
|
13
|
+
line_coverage_percentage: NotRequired["capo_codebuild.types.percentage.Percentage"]
|
|
14
|
+
"""<p>The percentage of lines that are covered by your tests.</p>"""
|
|
15
|
+
lines_covered: NotRequired["capo_codebuild.types.non_negative_int.NonNegativeInt"]
|
|
16
|
+
"""<p>The number of lines that are covered by your tests.</p>"""
|
|
17
|
+
lines_missed: NotRequired["capo_codebuild.types.non_negative_int.NonNegativeInt"]
|
|
18
|
+
"""<p>The number of lines that are not covered by your tests.</p>"""
|
|
19
|
+
branch_coverage_percentage: NotRequired[
|
|
20
|
+
"capo_codebuild.types.percentage.Percentage"
|
|
21
|
+
]
|
|
22
|
+
"""<p>The percentage of branches that are covered by your tests.</p>"""
|
|
23
|
+
branches_covered: NotRequired[
|
|
24
|
+
"capo_codebuild.types.non_negative_int.NonNegativeInt"
|
|
25
|
+
]
|
|
26
|
+
"""<p>The number of conditional branches that are covered by your tests.</p>"""
|
|
27
|
+
branches_missed: NotRequired["capo_codebuild.types.non_negative_int.NonNegativeInt"]
|
|
28
|
+
"""<p>The number of conditional branches that are not covered by your tests.</p>"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# --- awsJson1_1 ser/de ---
|
|
32
|
+
def serialize_aws_json_1_1(value: CodeCoverageReportSummary) -> dict:
|
|
33
|
+
out: dict = {}
|
|
34
|
+
if "line_coverage_percentage" in value:
|
|
35
|
+
out["lineCoveragePercentage"] = (
|
|
36
|
+
"NaN"
|
|
37
|
+
if value["line_coverage_percentage"] != value["line_coverage_percentage"]
|
|
38
|
+
else "Infinity"
|
|
39
|
+
if value["line_coverage_percentage"] == float("inf")
|
|
40
|
+
else "-Infinity"
|
|
41
|
+
if value["line_coverage_percentage"] == float("-inf")
|
|
42
|
+
else value["line_coverage_percentage"]
|
|
43
|
+
)
|
|
44
|
+
if "lines_covered" in value:
|
|
45
|
+
out["linesCovered"] = value["lines_covered"]
|
|
46
|
+
if "lines_missed" in value:
|
|
47
|
+
out["linesMissed"] = value["lines_missed"]
|
|
48
|
+
if "branch_coverage_percentage" in value:
|
|
49
|
+
out["branchCoveragePercentage"] = (
|
|
50
|
+
"NaN"
|
|
51
|
+
if value["branch_coverage_percentage"]
|
|
52
|
+
!= value["branch_coverage_percentage"]
|
|
53
|
+
else "Infinity"
|
|
54
|
+
if value["branch_coverage_percentage"] == float("inf")
|
|
55
|
+
else "-Infinity"
|
|
56
|
+
if value["branch_coverage_percentage"] == float("-inf")
|
|
57
|
+
else value["branch_coverage_percentage"]
|
|
58
|
+
)
|
|
59
|
+
if "branches_covered" in value:
|
|
60
|
+
out["branchesCovered"] = value["branches_covered"]
|
|
61
|
+
if "branches_missed" in value:
|
|
62
|
+
out["branchesMissed"] = value["branches_missed"]
|
|
63
|
+
return out
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def deserialize_aws_json_1_1(data: dict) -> CodeCoverageReportSummary:
|
|
67
|
+
out: CodeCoverageReportSummary = {} # type: ignore[typeddict-item]
|
|
68
|
+
if data.get("lineCoveragePercentage") is not None:
|
|
69
|
+
out["line_coverage_percentage"] = float(data["lineCoveragePercentage"])
|
|
70
|
+
if data.get("linesCovered") is not None:
|
|
71
|
+
out["lines_covered"] = data["linesCovered"]
|
|
72
|
+
if data.get("linesMissed") is not None:
|
|
73
|
+
out["lines_missed"] = data["linesMissed"]
|
|
74
|
+
if data.get("branchCoveragePercentage") is not None:
|
|
75
|
+
out["branch_coverage_percentage"] = float(data["branchCoveragePercentage"])
|
|
76
|
+
if data.get("branchesCovered") is not None:
|
|
77
|
+
out["branches_covered"] = data["branchesCovered"]
|
|
78
|
+
if data.get("branchesMissed") is not None:
|
|
79
|
+
out["branches_missed"] = data["branchesMissed"]
|
|
80
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CodeCoverages``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codebuild.types.code_coverage
|
|
7
|
+
|
|
8
|
+
CodeCoverages: TypeAlias = list["capo_codebuild.types.code_coverage.CodeCoverage"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_1 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_1(value: CodeCoverages) -> list:
|
|
13
|
+
import capo_codebuild.types.code_coverage
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codebuild.types.code_coverage.serialize_aws_json_1_1(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_aws_json_1_1(data: list) -> CodeCoverages:
|
|
22
|
+
import capo_codebuild.types.code_coverage
|
|
23
|
+
|
|
24
|
+
out: CodeCoverages = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codebuild.types.code_coverage.deserialize_aws_json_1_1(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CommandExecution``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codebuild.types.command_type
|
|
9
|
+
import capo_codebuild.types.logs_location
|
|
10
|
+
import capo_codebuild.types.non_empty_string
|
|
11
|
+
import capo_codebuild.types.sensitive_non_empty_string
|
|
12
|
+
import capo_codebuild.types.timestamp
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CommandExecution(TypedDict, closed=True):
|
|
16
|
+
id: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
17
|
+
"""<p>The ID of the command execution.</p>"""
|
|
18
|
+
sandbox_id: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
19
|
+
"""<p>A <code>sandboxId</code>.</p>"""
|
|
20
|
+
submit_time: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
|
|
21
|
+
"""<p>When the command execution process was initially submitted, expressed in Unix time format.</p>"""
|
|
22
|
+
start_time: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
|
|
23
|
+
"""<p>When the command execution process started, expressed in Unix time format.</p>"""
|
|
24
|
+
end_time: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
|
|
25
|
+
"""<p>When the command execution process ended, expressed in Unix time format.</p>"""
|
|
26
|
+
status: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
27
|
+
"""<p>The status of the command execution.</p>"""
|
|
28
|
+
command: NotRequired[
|
|
29
|
+
"capo_codebuild.types.sensitive_non_empty_string.SensitiveNonEmptyString"
|
|
30
|
+
]
|
|
31
|
+
"""<p>The command that needs to be executed.</p>"""
|
|
32
|
+
type: NotRequired["capo_codebuild.types.command_type.CommandType"]
|
|
33
|
+
"""<p>The command type.</p>"""
|
|
34
|
+
exit_code: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
35
|
+
"""<p>The exit code to return upon completion.</p>"""
|
|
36
|
+
standard_output_content: NotRequired[
|
|
37
|
+
"capo_codebuild.types.sensitive_non_empty_string.SensitiveNonEmptyString"
|
|
38
|
+
]
|
|
39
|
+
"""<p>The text written by the command to stdout.</p>"""
|
|
40
|
+
standard_err_content: NotRequired[
|
|
41
|
+
"capo_codebuild.types.sensitive_non_empty_string.SensitiveNonEmptyString"
|
|
42
|
+
]
|
|
43
|
+
"""<p>The text written by the command to stderr.</p>"""
|
|
44
|
+
logs: NotRequired["capo_codebuild.types.logs_location.LogsLocation"]
|
|
45
|
+
sandbox_arn: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
46
|
+
"""<p>A <code>sandboxArn</code>.</p>"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# --- awsJson1_1 ser/de ---
|
|
50
|
+
def serialize_aws_json_1_1(value: CommandExecution) -> dict:
|
|
51
|
+
out: dict = {}
|
|
52
|
+
if "id" in value:
|
|
53
|
+
out["id"] = value["id"]
|
|
54
|
+
if "sandbox_id" in value:
|
|
55
|
+
out["sandboxId"] = value["sandbox_id"]
|
|
56
|
+
if "submit_time" in value:
|
|
57
|
+
import capo_codebuild.types.timestamp
|
|
58
|
+
|
|
59
|
+
out["submitTime"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
|
|
60
|
+
value["submit_time"]
|
|
61
|
+
)
|
|
62
|
+
if "start_time" in value:
|
|
63
|
+
import capo_codebuild.types.timestamp
|
|
64
|
+
|
|
65
|
+
out["startTime"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
|
|
66
|
+
value["start_time"]
|
|
67
|
+
)
|
|
68
|
+
if "end_time" in value:
|
|
69
|
+
import capo_codebuild.types.timestamp
|
|
70
|
+
|
|
71
|
+
out["endTime"] = capo_codebuild.types.timestamp.serialize_aws_json_1_1(
|
|
72
|
+
value["end_time"]
|
|
73
|
+
)
|
|
74
|
+
if "status" in value:
|
|
75
|
+
out["status"] = value["status"]
|
|
76
|
+
if "command" in value:
|
|
77
|
+
out["command"] = value["command"]
|
|
78
|
+
if "type" in value:
|
|
79
|
+
import capo_codebuild.types.command_type
|
|
80
|
+
|
|
81
|
+
out["type"] = capo_codebuild.types.command_type.serialize_aws_json_1_1(
|
|
82
|
+
value["type"]
|
|
83
|
+
)
|
|
84
|
+
if "exit_code" in value:
|
|
85
|
+
out["exitCode"] = value["exit_code"]
|
|
86
|
+
if "standard_output_content" in value:
|
|
87
|
+
out["standardOutputContent"] = value["standard_output_content"]
|
|
88
|
+
if "standard_err_content" in value:
|
|
89
|
+
out["standardErrContent"] = value["standard_err_content"]
|
|
90
|
+
if "logs" in value:
|
|
91
|
+
import capo_codebuild.types.logs_location
|
|
92
|
+
|
|
93
|
+
out["logs"] = capo_codebuild.types.logs_location.serialize_aws_json_1_1(
|
|
94
|
+
value["logs"]
|
|
95
|
+
)
|
|
96
|
+
if "sandbox_arn" in value:
|
|
97
|
+
out["sandboxArn"] = value["sandbox_arn"]
|
|
98
|
+
return out
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def deserialize_aws_json_1_1(data: dict) -> CommandExecution:
|
|
102
|
+
out: CommandExecution = {} # type: ignore[typeddict-item]
|
|
103
|
+
if data.get("id") is not None:
|
|
104
|
+
out["id"] = data["id"]
|
|
105
|
+
if data.get("sandboxId") is not None:
|
|
106
|
+
out["sandbox_id"] = data["sandboxId"]
|
|
107
|
+
if data.get("submitTime") is not None:
|
|
108
|
+
import capo_codebuild.types.timestamp
|
|
109
|
+
|
|
110
|
+
out["submit_time"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
|
|
111
|
+
data["submitTime"]
|
|
112
|
+
)
|
|
113
|
+
if data.get("startTime") is not None:
|
|
114
|
+
import capo_codebuild.types.timestamp
|
|
115
|
+
|
|
116
|
+
out["start_time"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
|
|
117
|
+
data["startTime"]
|
|
118
|
+
)
|
|
119
|
+
if data.get("endTime") is not None:
|
|
120
|
+
import capo_codebuild.types.timestamp
|
|
121
|
+
|
|
122
|
+
out["end_time"] = capo_codebuild.types.timestamp.deserialize_aws_json_1_1(
|
|
123
|
+
data["endTime"]
|
|
124
|
+
)
|
|
125
|
+
if data.get("status") is not None:
|
|
126
|
+
out["status"] = data["status"]
|
|
127
|
+
if data.get("command") is not None:
|
|
128
|
+
out["command"] = data["command"]
|
|
129
|
+
if data.get("type") is not None:
|
|
130
|
+
import capo_codebuild.types.command_type
|
|
131
|
+
|
|
132
|
+
out["type"] = capo_codebuild.types.command_type.deserialize_aws_json_1_1(
|
|
133
|
+
data["type"]
|
|
134
|
+
)
|
|
135
|
+
if data.get("exitCode") is not None:
|
|
136
|
+
out["exit_code"] = data["exitCode"]
|
|
137
|
+
if data.get("standardOutputContent") is not None:
|
|
138
|
+
out["standard_output_content"] = data["standardOutputContent"]
|
|
139
|
+
if data.get("standardErrContent") is not None:
|
|
140
|
+
out["standard_err_content"] = data["standardErrContent"]
|
|
141
|
+
if data.get("logs") is not None:
|
|
142
|
+
import capo_codebuild.types.logs_location
|
|
143
|
+
|
|
144
|
+
out["logs"] = capo_codebuild.types.logs_location.deserialize_aws_json_1_1(
|
|
145
|
+
data["logs"]
|
|
146
|
+
)
|
|
147
|
+
if data.get("sandboxArn") is not None:
|
|
148
|
+
out["sandbox_arn"] = data["sandboxArn"]
|
|
149
|
+
return out
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CommandExecutionIds``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codebuild.types.non_empty_string
|
|
7
|
+
|
|
8
|
+
CommandExecutionIds: TypeAlias = list[
|
|
9
|
+
"capo_codebuild.types.non_empty_string.NonEmptyString"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- awsJson1_1 ser/de ---
|
|
14
|
+
def serialize_aws_json_1_1(value: CommandExecutionIds) -> list:
|
|
15
|
+
return list(value)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def deserialize_aws_json_1_1(data: list) -> CommandExecutionIds:
|
|
19
|
+
return [item for item in data if item is not None]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CommandExecutions``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codebuild.types.command_execution
|
|
7
|
+
|
|
8
|
+
CommandExecutions: TypeAlias = list[
|
|
9
|
+
"capo_codebuild.types.command_execution.CommandExecution"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- awsJson1_1 ser/de ---
|
|
14
|
+
def serialize_aws_json_1_1(value: CommandExecutions) -> list:
|
|
15
|
+
import capo_codebuild.types.command_execution
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codebuild.types.command_execution.serialize_aws_json_1_1(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_aws_json_1_1(data: list) -> CommandExecutions:
|
|
24
|
+
import capo_codebuild.types.command_execution
|
|
25
|
+
|
|
26
|
+
out: CommandExecutions = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(
|
|
31
|
+
capo_codebuild.types.command_execution.deserialize_aws_json_1_1(item)
|
|
32
|
+
)
|
|
33
|
+
return out
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#CommandType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
CommandType: TypeAlias = Literal["SHELL",]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# --- awsJson1_1 ser/de ---
|
|
9
|
+
def serialize_aws_json_1_1(value: CommandType) -> str:
|
|
10
|
+
return value
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def deserialize_aws_json_1_1(data: str) -> CommandType:
|
|
14
|
+
return cast(CommandType, data)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ComputeConfiguration``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codebuild.types.machine_type
|
|
9
|
+
import capo_codebuild.types.non_empty_string
|
|
10
|
+
import capo_codebuild.types.wrapper_long
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ComputeConfiguration(TypedDict, closed=True):
|
|
14
|
+
v_cpu: NotRequired["capo_codebuild.types.wrapper_long.WrapperLong"]
|
|
15
|
+
"""<p>The number of vCPUs of the instance type included in your fleet.</p>"""
|
|
16
|
+
memory: NotRequired["capo_codebuild.types.wrapper_long.WrapperLong"]
|
|
17
|
+
"""<p>The amount of memory of the instance type included in your fleet.</p>"""
|
|
18
|
+
disk: NotRequired["capo_codebuild.types.wrapper_long.WrapperLong"]
|
|
19
|
+
"""<p>The amount of disk space of the instance type included in your fleet.</p>"""
|
|
20
|
+
machine_type: NotRequired["capo_codebuild.types.machine_type.MachineType"]
|
|
21
|
+
"""<p>The machine type of the instance type included in your fleet.</p>"""
|
|
22
|
+
instance_type: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
|
|
23
|
+
"""<p>The EC2 instance type to be launched in your fleet.</p>"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# --- awsJson1_1 ser/de ---
|
|
27
|
+
def serialize_aws_json_1_1(value: ComputeConfiguration) -> dict:
|
|
28
|
+
out: dict = {}
|
|
29
|
+
if "v_cpu" in value:
|
|
30
|
+
out["vCpu"] = value["v_cpu"]
|
|
31
|
+
if "memory" in value:
|
|
32
|
+
out["memory"] = value["memory"]
|
|
33
|
+
if "disk" in value:
|
|
34
|
+
out["disk"] = value["disk"]
|
|
35
|
+
if "machine_type" in value:
|
|
36
|
+
import capo_codebuild.types.machine_type
|
|
37
|
+
|
|
38
|
+
out["machineType"] = capo_codebuild.types.machine_type.serialize_aws_json_1_1(
|
|
39
|
+
value["machine_type"]
|
|
40
|
+
)
|
|
41
|
+
if "instance_type" in value:
|
|
42
|
+
out["instanceType"] = value["instance_type"]
|
|
43
|
+
return out
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def deserialize_aws_json_1_1(data: dict) -> ComputeConfiguration:
|
|
47
|
+
out: ComputeConfiguration = {} # type: ignore[typeddict-item]
|
|
48
|
+
if data.get("vCpu") is not None:
|
|
49
|
+
out["v_cpu"] = data["vCpu"]
|
|
50
|
+
if data.get("memory") is not None:
|
|
51
|
+
out["memory"] = data["memory"]
|
|
52
|
+
if data.get("disk") is not None:
|
|
53
|
+
out["disk"] = data["disk"]
|
|
54
|
+
if data.get("machineType") is not None:
|
|
55
|
+
import capo_codebuild.types.machine_type
|
|
56
|
+
|
|
57
|
+
out["machine_type"] = (
|
|
58
|
+
capo_codebuild.types.machine_type.deserialize_aws_json_1_1(
|
|
59
|
+
data["machineType"]
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
if data.get("instanceType") is not None:
|
|
63
|
+
out["instance_type"] = data["instanceType"]
|
|
64
|
+
return out
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ComputeType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
ComputeType: TypeAlias = Literal[
|
|
6
|
+
"BUILD_GENERAL1_SMALL",
|
|
7
|
+
"BUILD_GENERAL1_MEDIUM",
|
|
8
|
+
"BUILD_GENERAL1_LARGE",
|
|
9
|
+
"BUILD_GENERAL1_XLARGE",
|
|
10
|
+
"BUILD_GENERAL1_2XLARGE",
|
|
11
|
+
"BUILD_LAMBDA_1GB",
|
|
12
|
+
"BUILD_LAMBDA_2GB",
|
|
13
|
+
"BUILD_LAMBDA_4GB",
|
|
14
|
+
"BUILD_LAMBDA_8GB",
|
|
15
|
+
"BUILD_LAMBDA_10GB",
|
|
16
|
+
"ATTRIBUTE_BASED_COMPUTE",
|
|
17
|
+
"CUSTOM_INSTANCE_TYPE",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- awsJson1_1 ser/de ---
|
|
22
|
+
def serialize_aws_json_1_1(value: ComputeType) -> str:
|
|
23
|
+
return value
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def deserialize_aws_json_1_1(data: str) -> ComputeType:
|
|
27
|
+
return cast(ComputeType, data)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ComputeTypesAllowed``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codebuild.types.non_empty_string
|
|
7
|
+
|
|
8
|
+
ComputeTypesAllowed: TypeAlias = list[
|
|
9
|
+
"capo_codebuild.types.non_empty_string.NonEmptyString"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- awsJson1_1 ser/de ---
|
|
14
|
+
def serialize_aws_json_1_1(value: ComputeTypesAllowed) -> list:
|
|
15
|
+
return list(value)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def deserialize_aws_json_1_1(data: list) -> ComputeTypesAllowed:
|
|
19
|
+
return [item for item in data if item is not None]
|