forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcross_metadata.yaml
More file actions
1003 lines (1003 loc) · 35.8 KB
/
cross_metadata.yaml
File metadata and controls
1003 lines (1003 loc) · 35.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# zexi 0.4.0
cross_Neptune_Query:
title: Use the &neptunelong; API to develop a &LAM; function that queries graph data
title_abbrev: Use the &neptune; API to query graph data
synopsis: use the &neptune; API to query graph data.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_Neptune_Java_block.xml
service_main: neptune
services:
neptune:
lambda:
cross_MessageProcessingFrameworkTutorial:
title: Use the &AWS; Message Processing Framework for .NET to publish and receive &SQS; messages
title_abbrev: Use the &AWS; Message Processing Framework for .NET with &SQS;
synopsis: create applications that publish and receive &SQS; messages using the &AWS; Message Processing Framework for .NET.
category: Scenarios
languages:
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/MessageProcessingFramework
block_content: cross_MessageProcessingFramework_Net_block.xml
service_main: sqs
services:
sqs:
cross_FSA:
title: Create an application that analyzes customer feedback and synthesizes audio
title_abbrev: Create an application to analyze customer feedback
synopsis:
create an application that analyzes customer comment cards, translates them from their original language, determines
their sentiment, and generates an audio file from the translated text.
category: Scenarios
languages:
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/FeedbackSentimentAnalyzer
block_content: cross_FSA_NetV3_block.xml
Java:
versions:
- sdk_version: 2
block_content: cross_FSA_Java_block.xml
Ruby:
versions:
- sdk_version: 3
block_content: cross_FSA_Ruby_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_FSA_JavaScript_block.xml
service_main: textract
services:
lambda:
textract:
comprehend:
translate:
polly:
cross_PAM:
title: Create a photo asset management application that lets users manage photos using labels
title_abbrev: Create a serverless application to manage photos
synopsis: create a serverless application that lets users manage photos using labels.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_PAM_Java_block.xml
Kotlin:
versions:
- sdk_version: 1
block_content: cross_PAM_Kotlin_block.xml
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/PhotoAssetManager
block_content: cross_PAM_dotnet_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_PAM_JavaScript_block.xml
PHP:
versions:
- sdk_version: 3
github: php/applications/photo_asset_manager
block_content: cross_PAM_PHP_block.xml
Rust:
versions:
- sdk_version: 1
block_content: cross_PAM_rust_block.xml
C++:
versions:
- sdk_version: 1
github: cpp/example_code/cross-service/photo_asset_manager
block_content: cross_PAM_cpp_block.xml
service_main: rekognition
services:
sns:
s3:
dynamodb:
rekognition:
lambda:
api-gateway:
cross_RedshiftDataTracker:
title: Create an &RSlong; item tracker
title_abbrev: Create a web application to track &RS; data
synopsis: create a web application that tracks and reports on work items using an &RSlong; database.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_RedshiftDataTracker_Java_block.xml
Kotlin:
versions:
- sdk_version: 1
block_content: cross_RedshiftDataTracker_Kotlin_block.xml
service_main: redshift
services:
redshift:
ses:
cross_SQSMessageApp:
title: Create a web application that sends and retrieves messages by using &SQS;
title_abbrev: Create a messaging application
synopsis: create a messaging application by using &SQS;.
category: Scenarios
languages:
Kotlin:
versions:
- sdk_version: 1
block_content: cross_SQSMessage_Kotlin_block.xml
Java:
versions:
- sdk_version: 2
block_content: cross_SQSMessage_Java_block.xml
service_main: sqs
services:
sqs:
comprehend:
cross_RDSDataTracker:
title: Create an &AUR; Serverless work item tracker
title_abbrev: Create an &AUR; Serverless work item tracker
synopsis:
create a web application that tracks work items in an &AURlong; Serverless database and uses &SESlong; (&SES;)
to send reports.
category: Scenarios
languages:
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/AuroraItemTracker
block_content: cross_RDSDataTracker_Net_block.xml
Java:
versions:
- sdk_version: 2
block_content: cross_RDSDataTracker_Java_block.xml
Kotlin:
versions:
- sdk_version: 1
block_content: cross_RDSDataTracker_Kotlin_block.xml
PHP:
versions:
- sdk_version: 3
block_content: cross_RDSDataTracker_PHP_block.xml
Python:
versions:
- sdk_version: 3
github: python/cross_service/aurora_item_tracker
block_content: cross_RDSDataTracker_Python_block.xml
C++:
versions:
- sdk_version: 1
github: cpp/example_code/cross-service/serverless-aurora
block_content: cross_RDSDataTracker_cpp_block.xml
service_main: aurora
services:
aurora:
rds:
rds-data:
ses:
cross_SnsPublishSubscription:
title: Build a publish and subscription application that translates messages
title_abbrev: Building an &SNS; application
synopsis: create an application that has subscription and publish functionality and translates messages.
category: Scenarios
languages:
Kotlin:
versions:
- sdk_version: 1
block_content: cross_SNSSubPub_Kotlin_block.xml
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/SubscribePublishTranslate
block_content: cross_SNSSubPub_Net_block.xml
Java:
versions:
- sdk_version: 2
block_content: cross_SNSSubPub_Java_block.xml
service_main: translate
services:
sns:
translate:
cross_LexChatbotLanguages:
title: Create an &LEX2; chatbot to engage your website visitors
title_abbrev: Building an &LEX2; chatbot
synopsis: create a chatbot to engage your website visitors.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_Lex_Java_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_Lex_JavaScript_block.xml
service_main: lex
services:
lex:
translate:
comprehend:
cross_DynamoDBDataTracker:
title: Create a web application to track &DDB; data
title_abbrev: Create a web application to track &DDB; data
synopsis: create a web application that tracks work items in an &DDBlong; table and uses &SESlong; (&SES;) to send reports.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_DynamoDBDataTracker_Java_block.xml
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/DynamoDbItemTracker
block_content: cross_DynamoDBDataTracker_Net_block.xml
Kotlin:
versions:
- sdk_version: 1
block_content: cross_DynamoDBDataTracker_Kotlin_block.xml
Python:
versions:
- sdk_version: 3
github: python/cross_service/dynamodb_item_tracker
block_content: cross_DynamoDBDataTracker_Python_block.xml
service_main: dynamodb
services:
dynamodb:
ses:
cross_ApiGatewayDataTracker:
title: Create an &ABP; REST API to track COVID-19 data
title_abbrev: Create a REST API to track COVID-19 data
synopsis:
create a REST API that simulates a system to track daily cases of COVID-19 in the United States, using fictional
data.
category: Scenarios
languages:
Python:
versions:
- sdk_version: 3
github: python/cross_service/apigateway_covid-19_tracker
block_content: cross_ApiGatewayDataTracker_Python_block.xml
service_main: api-gateway
services:
api-gateway:
cloudformation:
dynamodb:
lambda:
cross_ApiGatewayWebsocketChat:
title: Create a websocket chat application with &ABP;
title_abbrev: Create a websocket chat application
synopsis: create a chat application that is served by a websocket API built on &ABPlong;.
category: Scenarios
languages:
Python:
versions:
- sdk_version: 3
github: python/cross_service/apigateway_websocket_chat
block_content: cross_ApiGatewayWebsocketChat_Python_block.xml
service_main: api-gateway
services:
api-gateway:
dynamodb:
lambda:
cross_AuroraRestLendingLibrary:
title: Create a lending library REST API
title_abbrev: Create a lending library REST API
synopsis:
create a lending library where patrons can borrow and return books by using a REST API backed by an &AURlong;
database.
category: Scenarios
languages:
Python:
versions:
- sdk_version: 3
github: python/cross_service/aurora_rest_lending_library
block_content: cross_AuroraRestLendingLibrary_Python_block.xml
service_main: aurora
services:
api-gateway:
aurora:
lambda:
secrets-manager:
cross_StepFunctionsMessenger:
title: Create a messenger application with &SFN;
title_abbrev: Create a messenger application
synopsis: create an &SFNlong; messenger application that retrieves message records from a database table.
category: Scenarios
languages:
Python:
versions:
- sdk_version: 3
github: python/cross_service/stepfunctions_messenger
block_content: cross_StepFunctionsMessenger_Python_block.xml
service_main: sfn
services:
dynamodb:
lambda:
sqs:
sfn:
cross_TextractExplorer:
title: Create an &TEXTRACT; explorer application
title_abbrev: Create an &TEXTRACT; explorer application
synopsis: explore &TEXTRACTlong; output through an interactive application.
category: Scenarios
languages:
JavaScript:
versions:
- sdk_version: 3
block_content: cross_TextractExplorer_JavaScript_block.xml
Python:
versions:
- sdk_version: 3
github: python/cross_service/textract_explorer
block_content: cross_TextractExplorer_Python_block.xml
service_main: textract
services:
cognito-identity:
s3:
sns:
sqs:
textract:
cross_TextractComprehendDetectEntities:
title: Detect entities in text extracted from an image using an &AWS; SDK
title_abbrev: Detect entities in text extracted from an image
synopsis: use &CMP; to detect entities in text extracted by &TEXTRACT; from an image that is stored in &S3;.
category: Scenarios
languages:
Python:
versions:
- sdk_version: 3
github: python/cross_service/textract_comprehend_notebook
block_content: cross_TextractComprehendDetectEntities_Python_block.xml
service_main: textract
services:
comprehend:
s3:
textract:
cross_SubmitDataApp:
title: Build an application to submit data to a &DDB; table
title_abbrev: Build an app to submit data to a &DDB; table
synopsis: build an application that submits data to an &DDBlong; table and notifies you when a user updates the table.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_FirstJavaApp_Java_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_SubmitDataApp_JavaScript_block.xml
service_main: dynamodb
services:
dynamodb:
sns:
cross_LambdaAPIGateway:
title: Use &ABP; to invoke a &LAM; function
title_abbrev: Use &ABP; to invoke a &LAM; function
synopsis: create an &LAMlong; function invoked by &ABPlong;.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_LambdaAPIGateway_Java_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_LambdaAPIGateway_JavaScript_block.xml
Python:
versions:
- sdk_version: 3
github: python/example_code/lambda
block_content: cross_LambdaAPIGateway_Python_block.xml
service_main: lambda
services:
api-gateway:
dynamodb:
lambda:
sns:
cross_LambdaScheduledEvents:
title: Use scheduled events to invoke a &LAM; function
title_abbrev: Use scheduled events to invoke a &LAM; function
synopsis: create an &LAMlong; function invoked by an &EVlong; scheduled event.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_LambdaScheduledEvents_Java_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_LambdaScheduledEvents_JavaScript_block.xml
Python:
versions:
- sdk_version: 3
github: python/example_code/lambda
block_content: cross_LambdaScheduledEvents_Python_block.xml
service_main: lambda
services:
cloudwatch-logs:
dynamodb:
eventbridge:
lambda:
sns:
cross_ServerlessWorkflows:
title: Use &SFN; to invoke &LAM; functions
title_abbrev: Use &SFN; to invoke &LAM; functions
synopsis: create an &SFNlong; state machine that invokes &LAMlong; functions in sequence.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_ServerlessWorkflows_Java_block.xml
service_main: sfn
services:
dynamodb:
lambda:
ses:
sfn:
cross_TranscriptionStreamingApp:
title: Build an &TSC; streaming app
title_abbrev: Build an &TSC; streaming app
synopsis: build an app that records, transcribes, and translates live audio in real-time, and emails the results.
category: Scenarios
languages:
JavaScript:
versions:
- sdk_version: 3
block_content: cross_TranscriptionStreamingApp_JavaScript_block.xml
service_main: transcribe
services:
translate:
comprehend:
transcribe:
ses:
cross_RekognitionPhotoAnalyzerPPE:
title: Detect PPE in images with &REK; using an &AWS; SDK
title_abbrev: Detect PPE in images
synopsis: build an app that uses &REK; to detect Personal Protective Equipment (PPE) in images.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_RekognitionLambdPPE_Java_block.xml
service_main: rekognition
services:
rekognition:
s3:
dynamodb:
ses:
cross_RekognitionPhotoAnalyzer:
title: Detect objects in images with &REK; using an &AWS; SDK
title_abbrev: Detect objects in images
synopsis: build an app that uses &REK; to detect objects by category in images.
category: Scenarios
languages:
Kotlin:
versions:
- sdk_version: 1
block_content: cross_RekognitionPhotoAnalyzer_Kotlin_block.xml
Java:
versions:
- sdk_version: 2
block_content: cross_RekognitionPhotoAnalyzer_Java_block.xml
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/PhotoAnalyzerApp
block_content: cross_RekognitionPhotoAnalyzer_Net_block.xml
JavaScript:
versions:
- sdk_version: 3
block_content: cross_RekognitionPhotoAnalyzer_JavaScript_block.xml
Python:
versions:
- sdk_version: 3
github: python/cross_service/photo_analyzer
block_content: cross_RekognitionPhotoAnalyzer_Python_block.xml
service_main: rekognition
services:
rekognition:
s3:
ses:
cross_RekognitionVideoDetection:
title: Detect people and objects in a video with &REK; using an &AWS; SDK
title_abbrev: Detect people and objects in a video
synopsis: detect people and objects in a video with &REK;.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_RekognitionVideoAnalyzer_Java_block.xml
Python:
versions:
- sdk_version: 3
github: python/example_code/rekognition
block_content: cross_RekognitionVideoDetection_Python_block.xml
service_main: rekognition
services:
rekognition:
s3:
ses:
sns:
sqs:
cross_DetectFaces:
title: Detect faces in an image using an &AWS; SDK
title_abbrev: Detect faces in an image
synopsis_list:
- Save an image in an &S3; bucket.
- Use &REKlong; to detect facial details, such as age range, gender, and emotion (such as smiling).
- Display those details.
category: Scenarios
languages:
Rust:
versions:
- sdk_version: 1
block_content: cross_detect_faces_rust_block.xml
service_main: rekognition
services:
rekognition: {}
s3: {}
cross_DetectLabels:
title: Save EXIF and other image information using an &AWS; SDK
title_abbrev: Save EXIF and other image information
synopsis_list:
- Get EXIF information from a a JPG, JPEG, or PNG file.
- Upload the image file to an &S3; bucket.
- Use &REKlong; to identify the three top attributes (labels) in the file.
- Add the EXIF and label information to an &DDBlong; table in the Region.
category: Scenarios
languages:
Rust:
versions:
- sdk_version: 1
block_content: cross_detect_labels_rust_block.xml
service_main: rekognition
services:
dynamodb: {}
rekognition: {}
s3: {}
cross_Telephone:
title: Convert text to speech and back to text using an &AWS; SDK
title_abbrev: Convert text to speech and back to text
synopsis_list:
- Use &POLlong; to synthesize a plain text (UTF-8) input file to an audio file.
- Upload the audio file to an &S3; bucket.
- Use &TSClong; to convert the audio file to text.
- Display the text.
category: Scenarios
languages:
Rust:
versions:
- sdk_version: 1
block_content: cross_telephone_rust_block.xml
service_main: polly
services:
polly: {}
s3: {}
transcribe: {}
cross_LambdaForBrowser:
title: Invoke a &LAM; function from a browser
title_abbrev: Invoke a &LAM; function from a browser
synopsis: invoke an &LAMlong; function from a browser.
category: Scenarios
languages:
JavaScript:
versions:
- sdk_version: 2
block_content: cross_LambdaForBrowser_JavaScript_block.xml
- sdk_version: 3
block_content: cross_LambdaForBrowser_JavaScriptV3_block.xml
service_main: lambda
services:
lambda:
dynamodb:
cross_ResilientService:
title: Build and manage a resilient service using an &AWS; SDK
title_abbrev: Build and manage a resilient service
synopsis:
create a load-balanced web service that returns book, movie, and song recommendations. The example shows how the
service responds to failures, and how to restructure the service for more resilience when failures occur.
synopsis_list:
- Use an &ASlong; group to create &EC2long; (&EC2;) instances based on a launch template and to keep the number of instances
in a specified range.
- Handle and distribute HTTP requests with &ELBlong;.
- Monitor the health of instances in an Auto Scaling group and forward requests only to healthy instances.
- Run a Python web server on each EC2 instance to handle HTTP requests. The web server responds with recommendations and
health checks.
- Simulate a recommendation service with an &DDBlong; table.
- Control web server response to requests and health checks by updating &SYSlong; parameters.
category: Scenarios
languages:
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/ResilientService
excerpts:
- description: Run the interactive scenario at a command prompt.
snippet_tags:
- ResilientService.dotnetv3.Scenario
- description: Create a class that wraps &AS; and &EC2; actions.
snippet_tags:
- ResilientService.dotnetv3.AutoScalerWrapper
- description: Create a class that wraps &ELB; actions.
snippet_tags:
- ResilientService.dotnetv3.ELB.ElasticLoadBalancerWrapper
- description: Create a class that uses &DDB; to simulate a recommendation service.
snippet_tags:
- ResilientService.dotnetv3.RecommendationService
- description: Create a class that wraps &SYS; actions.
snippet_tags:
- ResilientService.dotnetv3.SmParameterWrapper
Java:
versions:
- sdk_version: 2
github: javav2/usecases/resilient_service
excerpts:
- description: Run the interactive scenario at a command prompt.
snippet_tags:
- javav2.example_code.workflow.ResilientService_Runner
- description: Create a class that wraps &AS; and &EC2; actions.
snippet_tags:
- javav2.example_code.workflow.ResilientService_AutoScaler
- description: Create a class that wraps &ELB; actions.
snippet_tags:
- javav2.example_code.workflow.ResilientService_LoadBalancer
- description: Create a class that uses &DDB; to simulate a recommendation service.
snippet_tags:
- javav2.example_code.workflow.ResilientService_RecommendationService
- description: Create a class that wraps &SYS; actions.
snippet_tags:
- javav2.example_code.workflow.ResilientService_ParameterHelper
Python:
versions:
- sdk_version: 3
github: python/cross_service/resilient_service
excerpts:
- description: Run the interactive scenario at a command prompt.
snippet_tags:
- python.example_code.workflow.ResilientService_Runner
- description: Create a class that wraps &AS; and &EC2; actions.
snippet_tags:
- python.example_code.workflow.ResilientService_AutoScaler
- description: Create a class that wraps &ELB; actions.
snippet_tags:
- python.example_code.workflow.ResilientService_LoadBalancer
- description: Create a class that uses &DDB; to simulate a recommendation service.
snippet_tags:
- python.example_code.workflow.ResilientService_RecommendationService
- description: Create a class that wraps &SYS; actions.
snippet_tags:
- python.example_code.workflow.ResilientService_ParameterHelper
JavaScript:
versions:
- sdk_version: 3
github: javascriptv3/example_code/cross-services/wkflw-resilient-service
excerpts:
- description: Run the interactive scenario at a command prompt.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-resilient-service/index.js
- description: Create steps to deploy all of the resources.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-resilient-service/steps-deploy.js
- description: Create steps to run the demo.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-resilient-service/steps-demo.js
- description: Create steps to destroy all of the resources.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-resilient-service/steps-destroy.js
services:
auto-scaling:
{
CreateAutoScalingGroup,
DescribeAutoScalingGroups,
TerminateInstanceInAutoScalingGroup,
AttachLoadBalancerTargetGroups,
DeleteAutoScalingGroup,
UpdateAutoScalingGroup,
}
ec2:
{
DescribeIamInstanceProfileAssociations,
ReplaceIamInstanceProfileAssociation,
RebootInstances,
CreateLaunchTemplate,
DeleteLaunchTemplate,
DescribeAvailabilityZones,
DescribeInstances,
DescribeVpcs,
DescribeSubnets,
}
elastic-load-balancing-v2:
{
DescribeLoadBalancers,
CreateTargetGroup,
DescribeTargetGroups,
DeleteTargetGroup,
CreateLoadBalancer,
CreateListener,
DeleteLoadBalancer,
DescribeTargetHealth,
}
iam: {CreateInstanceProfile, DeleteInstanceProfile}
cross_FMPlayground:
title: Create a sample application that offers playgrounds to interact with &BR; foundation models using an &AWS; SDK
title_abbrev: Create a playground application to interact with &BR; foundation models
synopsis: create playgrounds to interact with &BR; foundation models through different modalities.
category: Scenarios
languages:
.NET:
versions:
- sdk_version: 3
block_content: cross_FMPlayground_NetV3_block.xml
Java:
versions:
- sdk_version: 2
block_content: cross_FMPlayground_Java_block.xml
Python:
versions:
- sdk_version: 3
block_content: cross_FMPlayground_Python_block.xml
service_main: bedrock-runtime
services:
bedrock-runtime:
cross_Testing:
title: Example approaches for unit and integration testing with an &AWS; SDK
title_abbrev: Unit and integration test with an SDK
synopsis: examples for best-practice techniques when writing unit and integration tests using an &AWS; SDK.
category: Scenarios
languages:
Rust:
versions:
- sdk_version: 1
github: rustv1/examples/testing
excerpts:
- description: Cargo.toml for testing examples.
snippet_files:
- rustv1/examples/testing/Cargo.toml
- description: Unit testing example using automock and a service wrapper.
snippet_files:
- rustv1/examples/testing/src/wrapper.rs
- description: Integration testing example using StaticReplayClient.
snippet_files:
- rustv1/examples/testing/src/replay.rs
services:
s3:
cross_ServerlessPromptChaining:
title: Build and orchestrate generative AI applications with &BR; and &SFN;
title_abbrev: Orchestrate generative AI applications with &SFN;
synopsis: build and orchestrate generative AI applications with &BR; and &SFN;.
category: Scenarios
languages:
Python:
versions:
- sdk_version: 3
block_content: cross_ServerlessPromptChaining_Python_block.xml
service_main: bedrock
services:
bedrock:
bedrock-runtime:
bedrock-agent:
bedrock-agent-runtime:
sfn:
cross_ServerlessS3DataTransformation:
title: Transform data for your application with S3 Object Lambda
title_abbrev: Transform data with S3 Object Lambda
synopsis: transform data for your application with S3 Object Lambda.
category: Scenarios
languages:
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/S3ObjectLambdaFunction
block_content: cross_S3ObjectLambdaFunction.xml
service_main: s3
services:
s3:
lambda:
cross_CognitoAutoConfirmUser:
title: Automatically confirm known &COG; users with a &LAM; function using an &AWS; SDK
title_abbrev: Automatically confirm known users with a &LAM; function
synopsis: automatically confirm known &COG; users with a &LAM; function.
synopsis_list:
- Configure a user pool to call a &LAM; function for the <code>PreSignUp</code> trigger.
- Sign up a user with &COG;.
- The &LAM; function scans a &DDB; table and automatically confirms known users.
- Sign in as the new user, then clean up resources.
category: Scenarios
languages:
Go:
versions:
- sdk_version: 2
github: gov2/workflows/user_pools_and_lambda_triggers
sdkguide:
excerpts:
- description: Run an interactive scenario at a command prompt.
snippet_tags:
- gov2.workflows.PoolsAndTriggers.AutoConfirm
- description: Handle the <code>PreSignUp</code> trigger with a &LAM; function.
snippet_tags:
- gov2.lambda.AutoConfirmHandler
- description: Create a struct that performs common tasks.
snippet_tags:
- gov2.workflows.PoolsAndTriggers.ScenarioHelper
- description: Create a struct that wraps &COG; actions.
snippet_tags:
- gov2.cognito-identity-provider.CognitoActions.complete
- description: Create a struct that wraps &DDB; actions.
snippet_tags:
- gov2.dynamodb.DynamoActions.complete
- description: Create a struct that wraps &CWL; actions.
snippet_tags:
- gov2.cloudwatch-logs.CloudWatchLogsActions.complete
- description: Create a struct that wraps &CFN; actions.
snippet_tags:
- gov2.cloudformation.CloudFormationActions.complete
- description: Clean up resources.
snippet_tags:
- gov2.cognito-identity-provider.Resources.complete
JavaScript:
versions:
- sdk_version: 3
github: javascriptv3/example_code/cross-services/wkflw-pools-triggers
excerpts:
- description: |
Configure an interactive "Scenario" run. The JavaScript (v3) examples
share a Scenario runner to streamline complex examples. The complete
source code is on GitHub.
snippet_tags:
- javascript.v3.wkflw.pools-triggers.index
- description: |
This Scenario demonstrates auto-confirming a known user.
It orchestrates the example steps.
snippet_tags:
- javascript.v3.wkflw.pools-triggers.AutoConfirm
- description: These are steps that are shared with other Scenarios.
snippet_tags:
- javascript.v3.wkflw.pools-triggers.common
- description: A handler for the <code>PreSignUp</code> trigger with a &LAM; function.
snippet_tags:
- javascript.v3.wkflw.pools-triggers.handler.AutoConfirm
- description: Module of &CWL; actions.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-pools-triggers/actions/cloudwatch-logs-actions.js
- description: Module of &COG; actions.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-pools-triggers/actions/cognito-actions.js
- description: Module of &DDB; actions.
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-pools-triggers/actions/dynamodb-actions.js
services:
cognito-identity-provider:
{UpdateUserPool, SignUp, InitiateAuth, DeleteUser}
lambda: {}
cross_CognitoAutoMigrateUser:
title: Automatically migrate known &COG; users with a &LAM; function using an &AWS; SDK
title_abbrev: Automatically migrate known users with a &LAM; function
synopsis: automatically migrate known &COG; users with a &LAM; function.
synopsis_list:
- Configure a user pool to call a &LAM; function for the <code>MigrateUser</code> trigger.
- Sign in to &COG; with a username and email that is not in the user pool.
- The &LAM; function scans a &DDB; table and automatically migrates known users to the user pool.
- Perform the forgot password flow to reset the password for the migrated user.
- Sign in as the new user, then clean up resources.
category: Scenarios
languages:
Go:
versions:
- sdk_version: 2
github: gov2/workflows/user_pools_and_lambda_triggers
sdkguide:
excerpts:
- description: Run an interactive scenario at a command prompt.
snippet_tags:
- gov2.workflows.PoolsAndTriggers.MigrateUser
- description: Handle the <code>MigrateUser</code> trigger with a &LAM; function.
snippet_tags:
- gov2.lambda.MigrateUserHandler
- description: Create a struct that performs common tasks.
snippet_tags:
- gov2.workflows.PoolsAndTriggers.ScenarioHelper
- description: Create a struct that wraps &COG; actions.
snippet_tags:
- gov2.cognito-identity-provider.CognitoActions.complete
- description: Create a struct that wraps &DDB; actions.
snippet_tags:
- gov2.dynamodb.DynamoActions.complete
- description: Create a struct that wraps &CWL; actions.
snippet_tags:
- gov2.cloudwatch-logs.CloudWatchLogsActions.complete
- description: Create a struct that wraps &CFN; actions.
snippet_tags:
- gov2.cloudformation.CloudFormationActions.complete
- description: Clean up resources.
snippet_tags:
- gov2.cognito-identity-provider.Resources.complete
services:
cognito-identity-provider:
{
UpdateUserPool,
SignUp,
InitiateAuth,
ForgotPassword,
ConfirmForgotPassword,
DeleteUser,
}
lambda: {}
cross_CognitoCustomActivityLog:
title: Write custom activity data with a &LAM; function after &COG; user authentication using an &AWS; SDK
title_abbrev: Write custom activity data with a &LAM; function after &COG; user authentication
synopsis: write custom activity data with a &LAM; function after &COG; user authentication.
synopsis_list:
- Use administrator functions to add a user to a user pool.
- Configure a user pool to call a &LAM; function for the <code>PostAuthentication</code> trigger.
- Sign the new user in to &COG;.
- The &LAM; function writes custom information to &CWL; and to an &DDB; table.
- Get and display custom data from the &DDB; table, then clean up resources.
category: Scenarios
languages:
Go:
versions:
- sdk_version: 2
github: gov2/workflows/user_pools_and_lambda_triggers
sdkguide:
excerpts:
- description: Run an interactive scenario at a command prompt.
snippet_tags:
- gov2.workflows.PoolsAndTriggers.ActivityLog
- description: Handle the <code>PostAuthentication</code> trigger with a &LAM; function.
snippet_tags:
- gov2.lambda.ActivityLogHandler
- description: Create a struct that performs common tasks.
snippet_tags:
- gov2.workflows.PoolsAndTriggers.ScenarioHelper
- description: Create a struct that wraps &COG; actions.
snippet_tags:
- gov2.cognito-identity-provider.CognitoActions.complete
- description: Create a struct that wraps &DDB; actions.
snippet_tags:
- gov2.dynamodb.DynamoActions.complete
- description: Create a struct that wraps &CWL; actions.
snippet_tags:
- gov2.cloudwatch-logs.CloudWatchLogsActions.complete
- description: Create a struct that wraps &CFN; actions.
snippet_tags:
- gov2.cloudformation.CloudFormationActions.complete
- description: Clean up resources.
snippet_tags:
- gov2.cognito-identity-provider.Resources.complete
services:
cognito-identity-provider:
{
UpdateUserPool,
InitiateAuth,
DeleteUser,
AdminCreateUser,
AdminSetUserPassword,
}
lambda: {}
cross_MonitorDynamoDB:
title: Monitor performance of &DDBlong; using an &AWS; SDK
title_abbrev: Monitor &DDB; performance
synopsis: configure an application's use of &DDB; to monitor performance.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
block_content: cross_MonitorDynamoDB_Java_block.xml
service_main: dynamodb