Skip to content

Remove add_services metadata #7258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 71 additions & 36 deletions .doc_gen/metadata/cross_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ cross_MessageProcessingFrameworkTutorial:
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
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:
Expand Down Expand Up @@ -128,7 +129,8 @@ cross_SQSMessageApp:
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;)
synopsis:
create a web application that tracks work items in an &AURlong; Serverless database and uses &SESlong; (&SES;)
to send reports.
category: Scenarios
languages:
Expand Down Expand Up @@ -242,7 +244,8 @@ cross_DynamoDBDataTracker:
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
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:
Expand Down Expand Up @@ -276,7 +279,8 @@ cross_ApiGatewayWebsocketChat:
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;
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:
Expand Down Expand Up @@ -318,15 +322,14 @@ cross_TextractExplorer:
versions:
- sdk_version: 3
block_content: cross_TextractExplorer_JavaScript_block.xml
add_services:
cognito-identity:
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:
Expand Down Expand Up @@ -379,16 +382,10 @@ cross_LambdaAPIGateway:
versions:
- sdk_version: 2
block_content: cross_LambdaAPIGateway_Java_block.xml
add_services:
dynamodb:
sns:
JavaScript:
versions:
- sdk_version: 3
block_content: cross_LambdaAPIGateway_JavaScript_block.xml
add_services:
dynamodb:
sns:
Python:
versions:
- sdk_version: 3
Expand All @@ -397,7 +394,9 @@ cross_LambdaAPIGateway:
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
Expand All @@ -408,27 +407,22 @@ cross_LambdaScheduledEvents:
versions:
- sdk_version: 2
block_content: cross_LambdaScheduledEvents_Java_block.xml
add_services:
dynamodb:
sns:
JavaScript:
versions:
- sdk_version: 3
block_content: cross_LambdaScheduledEvents_JavaScript_block.xml
add_services:
dynamodb:
sns:
Python:
versions:
- sdk_version: 3
github: python/example_code/lambda
block_content: cross_LambdaScheduledEvents_Python_block.xml
add_services:
cloudwatch-logs:
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
Expand Down Expand Up @@ -520,20 +514,18 @@ cross_RekognitionVideoDetection:
versions:
- sdk_version: 2
block_content: cross_RekognitionVideoAnalyzer_Java_block.xml
add_services:
s3:
ses:
Python:
versions:
- sdk_version: 3
github: python/example_code/rekognition
block_content: cross_RekognitionVideoDetection_Python_block.xml
add_services:
sns:
sqs:
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
Expand Down Expand Up @@ -608,7 +600,8 @@ cross_LambdaForBrowser:
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
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
Expand Down Expand Up @@ -699,12 +692,38 @@ cross_ResilientService:
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}
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
Expand Down Expand Up @@ -854,7 +873,8 @@ cross_CognitoAutoConfirmUser:
snippet_files:
- javascriptv3/example_code/cross-services/wkflw-pools-triggers/actions/dynamodb-actions.js
services:
cognito-identity-provider: {UpdateUserPool, SignUp, InitiateAuth, DeleteUser}
cognito-identity-provider:
{UpdateUserPool, SignUp, InitiateAuth, DeleteUser}
lambda: {}
cross_CognitoAutoMigrateUser:
title: Automatically migrate known &COG; users with a &LAM; function using an &AWS; SDK
Expand Down Expand Up @@ -899,7 +919,15 @@ cross_CognitoAutoMigrateUser:
snippet_tags:
- gov2.cognito-identity-provider.Resources.complete
services:
cognito-identity-provider: {UpdateUserPool, SignUp, InitiateAuth, ForgotPassword, ConfirmForgotPassword, DeleteUser}
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
Expand Down Expand Up @@ -944,7 +972,14 @@ cross_CognitoCustomActivityLog:
snippet_tags:
- gov2.cognito-identity-provider.Resources.complete
services:
cognito-identity-provider: {UpdateUserPool, InitiateAuth, DeleteUser, AdminCreateUser, AdminSetUserPassword}
cognito-identity-provider:
{
UpdateUserPool,
InitiateAuth,
DeleteUser,
AdminCreateUser,
AdminSetUserPassword,
}
lambda: {}
cross_MonitorDynamoDB:
title: Monitor performance of &DDBlong; using an &AWS; SDK
Expand Down
13 changes: 13 additions & 0 deletions python/example_code/cloudwatch-logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Code examples that show you how to accomplish a specific task by calling multipl
functions within the same service.

- [Run a large query](scenarios/large-query/exec.py)
- [Use scheduled events to invoke a Lambda function](../../example_code/lambda)


<!--custom.examples.start-->
Expand Down Expand Up @@ -80,6 +81,18 @@ python scenarios/large-query/exec.py
<!--custom.scenarios.cloudwatch-logs_Scenario_BigQuery.start-->
<!--custom.scenarios.cloudwatch-logs_Scenario_BigQuery.end-->

#### Use scheduled events to invoke a Lambda function

This example shows you how to create an AWS Lambda function invoked by an Amazon EventBridge scheduled event.


<!--custom.scenario_prereqs.cross_LambdaScheduledEvents.start-->
<!--custom.scenario_prereqs.cross_LambdaScheduledEvents.end-->


<!--custom.scenarios.cross_LambdaScheduledEvents.start-->
<!--custom.scenarios.cross_LambdaScheduledEvents.end-->

### Tests

⚠ Running tests might result in charges to your AWS account.
Expand Down
28 changes: 27 additions & 1 deletion python/example_code/dynamodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ functions within the same service.
- [Create a websocket chat application](../../cross_service/apigateway_websocket_chat)
- [Query a table by using batches of PartiQL statements](partiql/scenario_partiql_batch.py)
- [Query a table using PartiQL](partiql/scenario_partiql_single.py)
- [Use API Gateway to invoke a Lambda function](../../example_code/lambda)
- [Use scheduled events to invoke a Lambda function](../../example_code/lambda)


<!--custom.examples.start-->
Expand Down Expand Up @@ -259,6 +261,30 @@ python partiql/scenario_partiql_single.py
<!--custom.scenarios.dynamodb_Scenario_PartiQLSingle.start-->
<!--custom.scenarios.dynamodb_Scenario_PartiQLSingle.end-->

#### Use API Gateway to invoke a Lambda function

This example shows you how to create an AWS Lambda function invoked by Amazon API Gateway.


<!--custom.scenario_prereqs.cross_LambdaAPIGateway.start-->
<!--custom.scenario_prereqs.cross_LambdaAPIGateway.end-->


<!--custom.scenarios.cross_LambdaAPIGateway.start-->
<!--custom.scenarios.cross_LambdaAPIGateway.end-->

#### Use scheduled events to invoke a Lambda function

This example shows you how to create an AWS Lambda function invoked by an Amazon EventBridge scheduled event.


<!--custom.scenario_prereqs.cross_LambdaScheduledEvents.start-->
<!--custom.scenario_prereqs.cross_LambdaScheduledEvents.end-->


<!--custom.scenarios.cross_LambdaScheduledEvents.start-->
<!--custom.scenarios.cross_LambdaScheduledEvents.end-->

### Tests

⚠ Running tests might result in charges to your AWS account.
Expand All @@ -285,4 +311,4 @@ in the `python` folder.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
15 changes: 14 additions & 1 deletion python/example_code/s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ functions within the same service.
- [Create an Amazon Textract explorer application](../../cross_service/textract_explorer)
- [Detect entities in text extracted from an image](../../cross_service/textract_comprehend_notebook)
- [Detect objects in images](../../cross_service/photo_analyzer)
- [Detect people and objects in a video](../../example_code/rekognition)
- [Make conditional requests](scenarios/conditional_requests/scenario.py)
- [Manage versioned objects in batches with a Lambda function](../../example_code/s3/s3_versioning)
- [Upload or download large files](file_transfer/file_transfer.py)
Expand Down Expand Up @@ -191,6 +192,18 @@ This example shows you how to build an app that uses Amazon Rekognition to detec
<!--custom.scenarios.cross_RekognitionPhotoAnalyzer.start-->
<!--custom.scenarios.cross_RekognitionPhotoAnalyzer.end-->

#### Detect people and objects in a video

This example shows you how to detect people and objects in a video with Amazon Rekognition.


<!--custom.scenario_prereqs.cross_RekognitionVideoDetection.start-->
<!--custom.scenario_prereqs.cross_RekognitionVideoDetection.end-->


<!--custom.scenarios.cross_RekognitionVideoDetection.start-->
<!--custom.scenarios.cross_RekognitionVideoDetection.end-->

#### Make conditional requests

This example shows you how to add preconditions to Amazon S3 requests.
Expand Down Expand Up @@ -290,4 +303,4 @@ in the `python` folder.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
15 changes: 14 additions & 1 deletion python/example_code/ses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ functions within the same service.
- [Create a web application to track DynamoDB data](../../cross_service/dynamodb_item_tracker)
- [Create an Aurora Serverless work item tracker](../../cross_service/aurora_item_tracker)
- [Detect objects in images](../../cross_service/photo_analyzer)
- [Detect people and objects in a video](../../example_code/rekognition)
- [Generate credentials to connect to an SMTP endpoint](ses_generate_smtp_credentials.py)
- [Verify an email identity and send messages](ses_email.py)

Expand Down Expand Up @@ -139,6 +140,18 @@ This example shows you how to build an app that uses Amazon Rekognition to detec
<!--custom.scenarios.cross_RekognitionPhotoAnalyzer.start-->
<!--custom.scenarios.cross_RekognitionPhotoAnalyzer.end-->

#### Detect people and objects in a video

This example shows you how to detect people and objects in a video with Amazon Rekognition.


<!--custom.scenario_prereqs.cross_RekognitionVideoDetection.start-->
<!--custom.scenario_prereqs.cross_RekognitionVideoDetection.end-->


<!--custom.scenarios.cross_RekognitionVideoDetection.start-->
<!--custom.scenarios.cross_RekognitionVideoDetection.end-->

#### Generate credentials to connect to an SMTP endpoint

This example shows you how to generate credentials to connect to an Amazon SES SMTP endpoint.
Expand Down Expand Up @@ -205,4 +218,4 @@ in the `python` folder.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
Loading
Loading