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,37 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ._base import (
|
|
4
|
+
CodeBuildError as CodeBuildError,
|
|
5
|
+
)
|
|
6
|
+
from ._base import (
|
|
7
|
+
DeserializationError as DeserializationError,
|
|
8
|
+
)
|
|
9
|
+
from ._base import (
|
|
10
|
+
SerializationError as SerializationError,
|
|
11
|
+
)
|
|
12
|
+
from ._base import (
|
|
13
|
+
ServiceError as ServiceError,
|
|
14
|
+
)
|
|
15
|
+
from ._base import (
|
|
16
|
+
UnknownServiceError as UnknownServiceError,
|
|
17
|
+
)
|
|
18
|
+
from ._base import (
|
|
19
|
+
WaiterFailedError as WaiterFailedError,
|
|
20
|
+
)
|
|
21
|
+
from ._base import (
|
|
22
|
+
WaiterTimeoutError as WaiterTimeoutError,
|
|
23
|
+
)
|
|
24
|
+
from .account_limit_exceeded_exception import (
|
|
25
|
+
AccountLimitExceededException as AccountLimitExceededException,
|
|
26
|
+
)
|
|
27
|
+
from .account_suspended_exception import (
|
|
28
|
+
AccountSuspendedException as AccountSuspendedException,
|
|
29
|
+
)
|
|
30
|
+
from .invalid_input_exception import InvalidInputException as InvalidInputException
|
|
31
|
+
from .o_auth_provider_exception import OAuthProviderException as OAuthProviderException
|
|
32
|
+
from .resource_already_exists_exception import (
|
|
33
|
+
ResourceAlreadyExistsException as ResourceAlreadyExistsException,
|
|
34
|
+
)
|
|
35
|
+
from .resource_not_found_exception import (
|
|
36
|
+
ResourceNotFoundException as ResourceNotFoundException,
|
|
37
|
+
)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class CodeBuildError(Exception):
|
|
5
|
+
"""Base class for all CodeBuild service errors."""
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ServiceError(CodeBuildError):
|
|
9
|
+
"""Base class for all modeled service errors.
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
fault: ``"client"`` or ``"server"``.
|
|
13
|
+
is_throttling_error: Whether this error is a throttling error.
|
|
14
|
+
is_retryable: Whether this error is retryable.
|
|
15
|
+
code: The wire error code, or ``None``.
|
|
16
|
+
message: The error message, or ``None``.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
code: str | None = None
|
|
20
|
+
|
|
21
|
+
def __init__(
|
|
22
|
+
self,
|
|
23
|
+
fault: Literal["client", "server"],
|
|
24
|
+
*,
|
|
25
|
+
is_throttling_error: bool,
|
|
26
|
+
is_retryable: bool,
|
|
27
|
+
code: str | None = None,
|
|
28
|
+
message: str | None = None,
|
|
29
|
+
) -> None:
|
|
30
|
+
super().__init__(f"{code or '<no code>'}: {message or '<no message>'}")
|
|
31
|
+
self.fault = fault
|
|
32
|
+
self.is_throttling_error = is_throttling_error
|
|
33
|
+
self.is_retryable = is_retryable
|
|
34
|
+
self.code = code
|
|
35
|
+
self.message = message
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class SerializationError(CodeBuildError):
|
|
39
|
+
"""Raised when a value cannot be serialized."""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class DeserializationError(CodeBuildError):
|
|
43
|
+
"""Raised when a value cannot be deserialized or a required member is missing."""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class UnknownServiceError(ServiceError):
|
|
47
|
+
"""Raised when the server returns an error code the client does not model.
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
code: ``<Code>`` text from the response body, or ``None`` if absent.
|
|
51
|
+
message: ``<Message>`` text from the response body, or ``None``.
|
|
52
|
+
response: The original HTTP response object, for arbitrary inspection.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def __init__(
|
|
56
|
+
self, *, code: str | None, message: str | None, response: object
|
|
57
|
+
) -> None:
|
|
58
|
+
_status = getattr(response, "status", 500)
|
|
59
|
+
_fault: Literal["client", "server"] = "client" if _status < 500 else "server"
|
|
60
|
+
_throttling = _status == 429
|
|
61
|
+
_retryable = _throttling or _status >= 500
|
|
62
|
+
super().__init__(
|
|
63
|
+
_fault,
|
|
64
|
+
is_throttling_error=_throttling,
|
|
65
|
+
is_retryable=_retryable,
|
|
66
|
+
code=code,
|
|
67
|
+
message=message,
|
|
68
|
+
)
|
|
69
|
+
self.response = response
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class WaiterFailedError(CodeBuildError):
|
|
73
|
+
"""Raised when a waiter hits an acceptor with ``state="failure"``.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
waiter_name: snake_case waiter name (e.g. ``bucket_exists``).
|
|
77
|
+
reason: Short description of which acceptor fired.
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
def __init__(self, waiter_name: str, reason: str) -> None:
|
|
81
|
+
super().__init__(f"waiter {waiter_name} failed: {reason}")
|
|
82
|
+
self.waiter_name = waiter_name
|
|
83
|
+
self.reason = reason
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class WaiterTimeoutError(CodeBuildError):
|
|
87
|
+
"""Raised when a waiter exhausts ``max_wait_time`` without a terminal acceptor."""
|
|
88
|
+
|
|
89
|
+
def __init__(self, waiter_name: str, max_wait_time: float) -> None:
|
|
90
|
+
super().__init__(
|
|
91
|
+
f"waiter {waiter_name} timed out after {max_wait_time} seconds"
|
|
92
|
+
)
|
|
93
|
+
self.waiter_name = waiter_name
|
|
94
|
+
self.max_wait_time = max_wait_time
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#AccountLimitExceededException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AccountLimitExceededException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_codebuild.types.string.String"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: AccountLimitExceededException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_1(data: dict) -> AccountLimitExceededException_:
|
|
26
|
+
out: AccountLimitExceededException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("message") is not None:
|
|
28
|
+
out["message"] = data["message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AccountLimitExceededException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codebuild#AccountLimitExceededException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "AccountLimitExceededException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: AccountLimitExceededException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="AccountLimitExceededException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_aws_json_1_1(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "AccountLimitExceededException":
|
|
53
|
+
return cls(deserialize_aws_json_1_1(data), message)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#AccountSuspendedException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AccountSuspendedException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_codebuild.types.string.String"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: AccountSuspendedException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_1(data: dict) -> AccountSuspendedException_:
|
|
26
|
+
out: AccountSuspendedException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("message") is not None:
|
|
28
|
+
out["message"] = data["message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AccountSuspendedException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codebuild#AccountSuspendedException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "AccountSuspendedException"
|
|
36
|
+
|
|
37
|
+
def __init__(self, data: AccountSuspendedException_, message: str | None = None):
|
|
38
|
+
super().__init__(
|
|
39
|
+
"client",
|
|
40
|
+
is_throttling_error=False,
|
|
41
|
+
is_retryable=False,
|
|
42
|
+
code="AccountSuspendedException",
|
|
43
|
+
message=message,
|
|
44
|
+
)
|
|
45
|
+
self.data = data
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_aws_json_1_1(
|
|
49
|
+
cls, data: dict, message: str | None = None
|
|
50
|
+
) -> "AccountSuspendedException":
|
|
51
|
+
return cls(deserialize_aws_json_1_1(data), message)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#InvalidInputException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class InvalidInputException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_codebuild.types.string.String"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: InvalidInputException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_1(data: dict) -> InvalidInputException_:
|
|
26
|
+
out: InvalidInputException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("message") is not None:
|
|
28
|
+
out["message"] = data["message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class InvalidInputException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codebuild#InvalidInputException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "InvalidInputException"
|
|
36
|
+
|
|
37
|
+
def __init__(self, data: InvalidInputException_, message: str | None = None):
|
|
38
|
+
super().__init__(
|
|
39
|
+
"client",
|
|
40
|
+
is_throttling_error=False,
|
|
41
|
+
is_retryable=False,
|
|
42
|
+
code="InvalidInputException",
|
|
43
|
+
message=message,
|
|
44
|
+
)
|
|
45
|
+
self.data = data
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_aws_json_1_1(
|
|
49
|
+
cls, data: dict, message: str | None = None
|
|
50
|
+
) -> "InvalidInputException":
|
|
51
|
+
return cls(deserialize_aws_json_1_1(data), message)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#OAuthProviderException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class OAuthProviderException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_codebuild.types.string.String"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: OAuthProviderException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_1(data: dict) -> OAuthProviderException_:
|
|
26
|
+
out: OAuthProviderException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("message") is not None:
|
|
28
|
+
out["message"] = data["message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class OAuthProviderException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codebuild#OAuthProviderException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "OAuthProviderException"
|
|
36
|
+
|
|
37
|
+
def __init__(self, data: OAuthProviderException_, message: str | None = None):
|
|
38
|
+
super().__init__(
|
|
39
|
+
"client",
|
|
40
|
+
is_throttling_error=False,
|
|
41
|
+
is_retryable=False,
|
|
42
|
+
code="OAuthProviderException",
|
|
43
|
+
message=message,
|
|
44
|
+
)
|
|
45
|
+
self.data = data
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_aws_json_1_1(
|
|
49
|
+
cls, data: dict, message: str | None = None
|
|
50
|
+
) -> "OAuthProviderException":
|
|
51
|
+
return cls(deserialize_aws_json_1_1(data), message)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ResourceAlreadyExistsException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ResourceAlreadyExistsException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_codebuild.types.string.String"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: ResourceAlreadyExistsException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_1(data: dict) -> ResourceAlreadyExistsException_:
|
|
26
|
+
out: ResourceAlreadyExistsException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("message") is not None:
|
|
28
|
+
out["message"] = data["message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ResourceAlreadyExistsException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codebuild#ResourceAlreadyExistsException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "ResourceAlreadyExistsException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: ResourceAlreadyExistsException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="ResourceAlreadyExistsException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_aws_json_1_1(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "ResourceAlreadyExistsException":
|
|
53
|
+
return cls(deserialize_aws_json_1_1(data), message)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ResourceNotFoundException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ResourceNotFoundException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_codebuild.types.string.String"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: ResourceNotFoundException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_1(data: dict) -> ResourceNotFoundException_:
|
|
26
|
+
out: ResourceNotFoundException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("message") is not None:
|
|
28
|
+
out["message"] = data["message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ResourceNotFoundException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codebuild#ResourceNotFoundException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "ResourceNotFoundException"
|
|
36
|
+
|
|
37
|
+
def __init__(self, data: ResourceNotFoundException_, message: str | None = None):
|
|
38
|
+
super().__init__(
|
|
39
|
+
"client",
|
|
40
|
+
is_throttling_error=False,
|
|
41
|
+
is_retryable=False,
|
|
42
|
+
code="ResourceNotFoundException",
|
|
43
|
+
message=message,
|
|
44
|
+
)
|
|
45
|
+
self.data = data
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_aws_json_1_1(
|
|
49
|
+
cls, data: dict, message: str | None = None
|
|
50
|
+
) -> "ResourceNotFoundException":
|
|
51
|
+
return cls(deserialize_aws_json_1_1(data), message)
|
capo_codebuild/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Generated from Smithy prelude shape ``smithy.api#Blob``."""
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# --- awsJson1_1 ser/de ---
|
|
7
|
+
def serialize_aws_json_1_1(value: bytes) -> str:
|
|
8
|
+
return base64.b64encode(value).decode("ascii")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def deserialize_aws_json_1_1(data: str) -> bytes:
|
|
12
|
+
return base64.b64decode(data)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy prelude shape ``smithy.api#Timestamp``."""
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# --- awsJson1_1 ser/de ---
|
|
7
|
+
def serialize_aws_json_1_1(value: datetime.datetime) -> float:
|
|
8
|
+
value = (
|
|
9
|
+
value.astimezone(datetime.timezone.utc)
|
|
10
|
+
if value.tzinfo
|
|
11
|
+
else value.replace(tzinfo=datetime.timezone.utc)
|
|
12
|
+
)
|
|
13
|
+
return value.timestamp()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_aws_json_1_1(data: float) -> datetime.datetime:
|
|
17
|
+
return datetime.datetime.fromtimestamp(float(data), tz=datetime.timezone.utc)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ArtifactNamespace``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
ArtifactNamespace: TypeAlias = Literal[
|
|
6
|
+
"NONE",
|
|
7
|
+
"BUILD_ID",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_1 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_1(value: ArtifactNamespace) -> str:
|
|
13
|
+
return value
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_aws_json_1_1(data: str) -> ArtifactNamespace:
|
|
17
|
+
return cast(ArtifactNamespace, data)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ArtifactPackaging``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
ArtifactPackaging: TypeAlias = Literal[
|
|
6
|
+
"NONE",
|
|
7
|
+
"ZIP",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_1 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_1(value: ArtifactPackaging) -> str:
|
|
13
|
+
return value
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_aws_json_1_1(data: str) -> ArtifactPackaging:
|
|
17
|
+
return cast(ArtifactPackaging, data)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#ArtifactsType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
ArtifactsType: TypeAlias = Literal[
|
|
6
|
+
"CODEPIPELINE",
|
|
7
|
+
"S3",
|
|
8
|
+
"NO_ARTIFACTS",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# --- awsJson1_1 ser/de ---
|
|
13
|
+
def serialize_aws_json_1_1(value: ArtifactsType) -> str:
|
|
14
|
+
return value
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def deserialize_aws_json_1_1(data: str) -> ArtifactsType:
|
|
18
|
+
return cast(ArtifactsType, data)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#AuthType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
AuthType: TypeAlias = Literal[
|
|
6
|
+
"OAUTH",
|
|
7
|
+
"BASIC_AUTH",
|
|
8
|
+
"PERSONAL_ACCESS_TOKEN",
|
|
9
|
+
"CODECONNECTIONS",
|
|
10
|
+
"SECRETS_MANAGER",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# --- awsJson1_1 ser/de ---
|
|
15
|
+
def serialize_aws_json_1_1(value: AuthType) -> str:
|
|
16
|
+
return value
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_aws_json_1_1(data: str) -> AuthType:
|
|
20
|
+
return cast(AuthType, data)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#AutoRetryConfig``."""
|
|
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.string
|
|
9
|
+
import capo_codebuild.types.wrapper_int
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AutoRetryConfig(TypedDict, closed=True):
|
|
13
|
+
auto_retry_limit: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
|
|
14
|
+
"""<p>The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the <code>RetryBuild</code> API to automatically retry your build for up to 2 additional times.</p>"""
|
|
15
|
+
auto_retry_number: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
|
|
16
|
+
"""<p>The number of times that the build has been retried. The initial build will have an auto-retry number of 0.</p>"""
|
|
17
|
+
next_auto_retry: NotRequired["capo_codebuild.types.string.String"]
|
|
18
|
+
"""<p>The build ARN of the auto-retried build triggered by the current build. The next auto-retry will be <code>null</code> for builds that don't trigger an auto-retry.</p>"""
|
|
19
|
+
previous_auto_retry: NotRequired["capo_codebuild.types.string.String"]
|
|
20
|
+
"""<p>The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be <code>null</code> for the initial build.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- awsJson1_1 ser/de ---
|
|
24
|
+
def serialize_aws_json_1_1(value: AutoRetryConfig) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "auto_retry_limit" in value:
|
|
27
|
+
out["autoRetryLimit"] = value["auto_retry_limit"]
|
|
28
|
+
if "auto_retry_number" in value:
|
|
29
|
+
out["autoRetryNumber"] = value["auto_retry_number"]
|
|
30
|
+
if "next_auto_retry" in value:
|
|
31
|
+
out["nextAutoRetry"] = value["next_auto_retry"]
|
|
32
|
+
if "previous_auto_retry" in value:
|
|
33
|
+
out["previousAutoRetry"] = value["previous_auto_retry"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_aws_json_1_1(data: dict) -> AutoRetryConfig:
|
|
38
|
+
out: AutoRetryConfig = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("autoRetryLimit") is not None:
|
|
40
|
+
out["auto_retry_limit"] = data["autoRetryLimit"]
|
|
41
|
+
if data.get("autoRetryNumber") is not None:
|
|
42
|
+
out["auto_retry_number"] = data["autoRetryNumber"]
|
|
43
|
+
if data.get("nextAutoRetry") is not None:
|
|
44
|
+
out["next_auto_retry"] = data["nextAutoRetry"]
|
|
45
|
+
if data.get("previousAutoRetry") is not None:
|
|
46
|
+
out["previous_auto_retry"] = data["previousAutoRetry"]
|
|
47
|
+
return out
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codebuild#BatchDeleteBuildsInput``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codebuild.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codebuild.types.build_ids
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class BatchDeleteBuildsInput(TypedDict, closed=True):
|
|
14
|
+
ids: "capo_codebuild.types.build_ids.BuildIds"
|
|
15
|
+
"""<p>The IDs of the builds to delete.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- awsJson1_1 ser/de ---
|
|
19
|
+
def serialize_aws_json_1_1(value: BatchDeleteBuildsInput) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
import capo_codebuild.types.build_ids
|
|
22
|
+
|
|
23
|
+
out["ids"] = capo_codebuild.types.build_ids.serialize_aws_json_1_1(value["ids"])
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_aws_json_1_1(data: dict) -> BatchDeleteBuildsInput:
|
|
28
|
+
out: BatchDeleteBuildsInput = {} # type: ignore[typeddict-item]
|
|
29
|
+
if data.get("ids") is not None:
|
|
30
|
+
import capo_codebuild.types.build_ids
|
|
31
|
+
|
|
32
|
+
out["ids"] = capo_codebuild.types.build_ids.deserialize_aws_json_1_1(
|
|
33
|
+
data["ids"]
|
|
34
|
+
)
|
|
35
|
+
else:
|
|
36
|
+
raise DeserializationError("BatchDeleteBuildsInput.ids required")
|
|
37
|
+
return out
|