MCPcopy Create free account

hub / github.com/awsdocs/aws-doc-sdk-examples / endpoints

Endpoints108 in github.com/awsdocs/aws-doc-sdk-examples

Route_stub_and_patch
pytest.fixture(name="stub_and_patch")
python/example_code/s3/s3_basics/test/conftest.py:None
Routeadd_book
app.route("/books", methods=["POST"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routeadd_patron
app.route("/patrons", methods=["POST"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routebook_lending
app.route("/lending/{book_id}/{patron_id}", methods=["PUT", "DELETE"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routedelete_patron
app.route("/patrons/{patron_id}", methods=["DELETE"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routeindex
app.route("/")
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routelist_authors
app.route("/authors", methods=["GET"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routelist_books
app.route("/books", methods=["GET"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routelist_books_by_author
app.route("/books/{author_id}", methods=["GET"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routelist_borrowed_books
app.route("/lending", methods=["GET"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routelist_patrons
app.route("/patrons", methods=["GET"])
python/cross_service/aurora_rest_lending_library/library_api/app.py:None
Routelist_states
app.route("/states", methods=["GET"])
python/cross_service/apigateway_covid-19_tracker/app.py:None
Routesetup_method
patch("boto3.client")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routestate_cases
app.route("/states/{state}", methods=["DELETE", "GET", "POST", "PUT"])
python/cross_service/apigateway_covid-19_tracker/app.py:None
Routestate_date_cases
app.route("/states/{state}/{date}", methods=["DELETE", "GET"])
python/cross_service/apigateway_covid-19_tracker/app.py:None
Routetest_add_integration_method
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/api-gateway/aws_service/test/test_aws_service.py:None
Routetest_add_route_and_integration
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/cross_service/apigateway_websocket_chat/test/test_websocket_chat.py:None
Routetest_alias_management
pytest.mark.parametrize( "error_code, stop_on_action", [ (None, None), ("TestException
python/example_code/kms/test/test_alias_management.py:None
Routetest_clean_s3_object_locking
patch("cleanup.boto3.client")
python/example_code/s3/scenarios/object-locking/test/test_object-locking.py:None
Routetest_clean_up_error_contact_list_not_found
patch("builtins.input", return_value="n")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_clean_up_error_identity_not_found
patch("builtins.input", return_value="y")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_clean_up_error_template_not_found
patch("builtins.input", return_value="n")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_clean_up_success
patch("builtins.input", return_value="n")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_cleanup_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_delete_state_machine", 0),
python/example_code/stepfunctions/test/test_cleanup.py:None
Routetest_cleanup_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_delete_db_instance", 0),
python/example_code/aurora/test/test_get_started_aurora_cleanup.py:None
Routetest_cleanup_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_delete_table", 0),
python/example_code/keyspaces/test/test_cleanup.py:None
Routetest_cleanup_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_delete_db_instance", 0),
python/example_code/rds/test/test_get_started_instances_cleanup.py:None
Routetest_clear_staging
pytest.mark.parametrize( "assessment_uuid, evidence_date, tokens, folders, stop_on_action, error_code",
python/example_code/auditmanager/test/test_create_assessment_report.py:None
Routetest_connector
pytest.mark.parametrize( "module_name, topic", [ ("snippets.connector_cloudwatch_metrics_usage
python/example_code/greengrass/test/test_greengrass_snippets.py:None
Routetest_create_and_delete_my_bucket
pytest.mark.parametrize( "keep, error_code, stop_on_method", [ (True, None, None), (Fa
python/example_code/s3/s3_basics/test/test_demo_bucket_basics.py:None
Routetest_create_batch_job_failure
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/s3/s3_versioning/test/test_batch_versioning.py:None
Routetest_create_bucket_for_copy
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/ses/test/test_ses_receipt_handler.py:None
Routetest_create_keyspace_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_get_keyspace", 0),
python/example_code/keyspaces/test/test_create_keyspace.py:None
Routetest_create_notification_channel
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_create_rest_api
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/api-gateway/aws_service/test/test_aws_service.py:None
Routetest_create_rest_api
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/lambda/test/test_api_gateway_rest.py:None
Routetest_create_service_linked_role
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/iam/test/test_service_linked_roles.py:None
Routetest_create_subnet_group
patch("example_code.neptune.neptune_scenario.get_subnet_ids")
python/example_code/neptune/tests/test_create_subnet_group.py:None
Routetest_create_table_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_get_table", 0), ("
python/example_code/keyspaces/test/test_create_table.py:None
Routetest_create_versioned_bucket
pytest.mark.parametrize( "error_code,stop_on_method,keep_going", [ (None, None, True),
python/example_code/s3/s3_versioning/test/test_versioning.py:None
Routetest_delete_bucket
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/emr/test/test_emr_usage_demo.py:None
Routetest_delete_event
pytest.mark.parametrize( "error_code,stop_on_method", [(None, None), ("TestException", "stub_remove_ta
python/example_code/lambda/test/test_scheduled_lambda.py:None
Routetest_delete_notification_channel
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_delete_policy
pytest.mark.parametrize("error_code", [None, "DeleteConflict"])
python/example_code/iam/test/test_policy_wrapper.py:None
Routetest_delete_role
pytest.mark.parametrize("error_code", [None, "DeleteConflict"])
python/example_code/iam/test/test_role_wrapper.py:None
Routetest_delete_roles
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/emr/test/test_emr_usage_demo.py:None
Routetest_delete_security_groups
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/emr/test/test_emr_usage_demo.py:None
Routetest_delete_user
pytest.mark.parametrize("error_code", [None, "DeleteConflict"])
python/example_code/iam/test/test_user_wrapper.py:None
Routetest_demo_s3_object_locking
patch("demo.boto3.client")
python/example_code/s3/scenarios/object-locking/test/test_object-locking.py:None
Routetest_deploy_resources
patch("builtins.input", side_effect=cycle(["3"]))
python/cross_service/resilient_service/test/test_runner_integ.py:None
Routetest_deploy_s3_object_locking
patch("deploy.boto3.client")
python/example_code/s3/scenarios/object-locking/test/test_object-locking.py:None
Routetest_destroy
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/glue/test/test_scaffold.py:None
Routetest_do_celebrity_recognition
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_do_content_moderation
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_do_face_detection
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_do_label_detection
pytest.mark.parametrize( "poll_status,error_code,stop_on_method", [ ("SUCCEEDED", None, None),
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_do_person_tracking
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_do_scenario
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/s3/s3_basics/test/test_scenario_getting_started.py:None
Routetest_do_synthesis_task
pytest.mark.parametrize( "include_visemes,error_code,stop_on_method", [ (True, None, None),
python/example_code/polly/test/test_polly_wrapper.py:None
Routetest_ecr_getting_started_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_create_repository", 0),
python/example_code/ecr/test/test_ecr_getting_started.py:None
Routetest_extract_job_output
pytest.mark.parametrize( "error_code,file_name,file_contents,output", [ ( None,
python/example_code/comprehend/test/test_comprehend_demo_resources.py:None
Routetest_gather_subscriber_email_addresses_error_contact_exists
patch("builtins.input", return_value="user@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_gather_subscriber_email_addresses_error_send_email_failed
patch("builtins.input", return_value="user@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_gather_subscriber_email_addresses_success
patch("builtins.input", return_value="user@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_get_input
pytest.mark.parametrize( "inputs, outputs, error_code", [ (["bad-uuid"], (None, None), "Nostub
python/example_code/auditmanager/test/test_create_assessment_report.py:None
Routetest_get_launch_template
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/auto-scaling/test/test_scenario_groups_and_instances.py:None
Routetest_grant_management
pytest.mark.parametrize( "error_code, stop_on_action, delete_choice", [ (None, None, "retire")
python/example_code/kms/test/test_grant_management.py:None
Routetest_handle_message
pytest.mark.parametrize( "error_code,error_method,status_code", [ (None, None, 200), (
python/cross_service/apigateway_websocket_chat/test/test_lambda_chat.py:None
Routetest_integration_deploy_demo_cleanup
patch("boto3.client")
python/example_code/s3/scenarios/object-locking/test/test_object-locking.py:None
Routetest_iot_sitewise_getting_started_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_create_stack", 0),
python/example_code/iotsitewise/test/test_iot_sitewise_getting_started.py:None
Routetest_key_policies
pytest.mark.parametrize( "error_code, stop_on_action", [ (None, None), ("TestException
python/example_code/kms/test/test_key_policies.py:None
Routetest_kms_scenario_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_create_key", 0), (
python/example_code/kms/test/test_kms_scenario.py:None
Routetest_lambda_handler
pytest.mark.parametrize( "table_name,route,connection_id,user_name,msg_body,domain,stage,status_code",
python/cross_service/apigateway_websocket_chat/test/test_lambda_chat.py:None
Routetest_load_sample_data
mock.patch("builtins.open", new_callable=mock.mock_open, read_data='{"key": "value"}')
python/example_code/firehose/scenarios/firehose-put-actions/test/test_firehose.py:None
Routetest_main
patch("main.input", create=True)
python/example_code/s3/scenarios/object-locking/test/test_object-locking.py:None
Routetest_main_failure
patch("time.sleep", return_value=None) # Prevent actual sleep in tests
python/example_code/bedrock-runtime/test/test_nova_reel.py:None
Routetest_main_success
patch("time.sleep", return_value=None) # Prevent actual sleep in tests
python/example_code/bedrock-runtime/test/test_nova_reel.py:None
Routetest_poll_notification
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/example_code/rekognition/test/test_rekognition_video_detection.py:None
Routetest_prepare_application_error_contact_list_limit_exceeded
patch("builtins.input", return_value="verified@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_prepare_application_error_identity_already_exists
patch("builtins.input", return_value="verified@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_prepare_application_error_identity_limit_exceeded
patch("builtins.input", return_value="verified@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_prepare_application_error_identity_not_found
patch("builtins.input", return_value="invalid@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_prepare_application_success
patch("builtins.input", return_value="verified@example.com")
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
Routetest_prepare_for_cleanup_failure
pytest.mark.parametrize("fail_at", ["put_object", "list_versions"])
python/example_code/s3/s3_versioning/test/test_batch_versioning.py:None
Routetest_prerequisites_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_get_role", 0), ("T
python/example_code/stepfunctions/test/test_prerequisites.py:None
Routetest_remove_connection_permissions
pytest.mark.parametrize( "error_code,stop_on_method", [ (None, None), ("TestException"
python/cross_service/apigateway_websocket_chat/test/test_websocket_chat.py:None
Routetest_revise_stanza
pytest.mark.parametrize("revision", ["lower", "upper", "reverse", "delete"])
python/example_code/s3/s3_versioning/test/test_revise_stanza.py:None
Routetest_revive_object
pytest.mark.parametrize( "stop_on_method,has_delete_markers,marker_is_latest,has_versions", [
python/example_code/s3/s3_versioning/test/test_versioning.py:None
Routetest_run
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/glue/test/test_scenario_getting_started_crawlers_and_jobs.py:None
Routetest_run_scenario
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/dynamodb/GettingStarted/test/test_scenario_getting_started_movies.py:None
Routetest_run_scenario
pytest.mark.parametrize( "error_code, stop_on_method", [ (None, None), ("TestException
python/example_code/lambda/test/test_scenario_getting_started_functions.py:None
Routetest_run_state_machine_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_start_execution", 0),
python/example_code/stepfunctions/test/test_run_state_machine.py:None
Routetest_scenario_cleanup_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_delete_schedule_group", 0)
python/example_code/scheduler/scenario/test/test_scenario_cleanup.py:None
Routetest_scenario_cleanup_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_list_objects_directory", 0
python/example_code/s3-directory-buckets/tests/test_s3_express_getting_started_cleanup.py:None
Routetest_scenario_create_recurring_schedule_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_create_schedule", 0), ("TE
python/example_code/scheduler/scenario/test/test_scenario_create_recurring_schedule.py:None
Routetest_scenario_create_session_and_add_objects_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_put_object", 0), (
python/example_code/s3-directory-buckets/tests/test_s3_express_getting_started_create_session_and_add_objects.py:None
Routetest_scenario_create_vpc_and_users_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_create_vpc", 0), (
python/example_code/s3-directory-buckets/tests/test_s3_express_getting_started_create_vpc_and_users.py:None
Routetest_scenario_show_lexicographical_differences_error
pytest.mark.parametrize( "error, stop_on_index", [ ("TESTERROR-stub_put_object_other_object",
python/example_code/s3-directory-buckets/tests/test_s3_express_getting_started_show_lexicographical_differences.py:None
Routetest_schedule_lambda_function
pytest.mark.parametrize( "failed_target_count,error_code,stop_on_method", [ (0, None, None),
python/example_code/lambda/test/test_scheduled_lambda.py:None
Routetest_send_coupon_newsletter_error_send_email_failed
patch( "newsletter.load_file_content", return_value=json.dumps(["Coupon 1", "Coupon 2"]),
python/example_code/sesv2/newsletter_scenario/test/newsletter_test.py:None
next →1–100 of 108, ranked by callers