From 585f2c7b9688708344ab3af8d70f90d6e55d9ff6 Mon Sep 17 00:00:00 2001 From: David Souther Date: Thu, 19 Oct 2023 15:09:23 -0400 Subject: [PATCH] Tools, Rust: Allow finding snippets in rust src/bin Closes #5506 Closes #5545 --- .tools/readmes/snippets.py | 6 +- .../examples/auto-scaling/README.md | 16 ++--- rust_dev_preview/examples/batch/README.md | 8 +-- .../examples/cloudwatch/README.md | 8 +-- rust_dev_preview/examples/dynamodb/README.md | 14 ++--- rust_dev_preview/examples/ebs/README.md | 8 +-- rust_dev_preview/examples/ec2/README.md | 8 +-- rust_dev_preview/examples/ecr/README.md | 8 +-- rust_dev_preview/examples/ecs/README.md | 8 +-- rust_dev_preview/examples/eks/README.md | 8 +-- rust_dev_preview/examples/firehose/README.md | 10 ++-- rust_dev_preview/examples/glue/README.md | 41 ++++++++----- rust_dev_preview/examples/iam/README.md | 58 +++++++++---------- rust_dev_preview/examples/iot/README.md | 8 +-- rust_dev_preview/examples/kinesis/README.md | 8 +-- rust_dev_preview/examples/kms/README.md | 8 +-- rust_dev_preview/examples/lambda/README.md | 6 +- rust_dev_preview/examples/medialive/README.md | 8 +-- .../examples/mediapackage/README.md | 8 +-- rust_dev_preview/examples/polly/README.md | 10 ++-- rust_dev_preview/examples/qldb/README.md | 10 ++-- rust_dev_preview/examples/rds/README.md | 8 +-- rust_dev_preview/examples/s3/README.md | 35 +++++++---- rust_dev_preview/examples/sagemaker/README.md | 8 +-- rust_dev_preview/examples/ses/README.md | 8 +-- rust_dev_preview/examples/sns/README.md | 8 +-- rust_dev_preview/examples/sqs/README.md | 8 +-- rust_dev_preview/examples/ssm/README.md | 8 +-- rust_dev_preview/examples/sts/README.md | 8 +-- rust_dev_preview/examples/textract/README.md | 8 +-- 30 files changed, 196 insertions(+), 170 deletions(-) diff --git a/.tools/readmes/snippets.py b/.tools/readmes/snippets.py index 60de3d11c33..f7710f70ef1 100644 --- a/.tools/readmes/snippets.py +++ b/.tools/readmes/snippets.py @@ -55,7 +55,11 @@ def tag_from_line(token, line) -> str: def scan_for_snippets(root): snippets = {} for root, dirs, files in os.walk(root): - dirs[:] = [d for d in dirs if d not in IGNORE_FOLDERS] + dirs[:] = [ + d + for d in dirs + if d not in IGNORE_FOLDERS or ("rust_dev_preview" in root and "src" in root) + ] for f in files: ext = os.path.splitext(f)[1].lower() if ext in EXT_IGNORES: diff --git a/rust_dev_preview/examples/auto-scaling/README.md b/rust_dev_preview/examples/auto-scaling/README.md index 62c2cecd015..6b45db185d2 100644 --- a/rust_dev_preview/examples/auto-scaling/README.md +++ b/rust_dev_preview/examples/auto-scaling/README.md @@ -1,4 +1,4 @@ - + # Auto Scaling code examples for the SDK for Rust ## Overview @@ -41,13 +41,13 @@ Code excerpts that show you how to call individual service functions. * [Create a group](src/bin/create-autoscaling-group.rs#L32) (`CreateAutoScalingGroup`) * [Delete a group](src/bin/delete-autoscaling-group.rs#L32) (`DeleteAutoScalingGroup`) -* [Disable metrics collection for a group](src/scenario.rs#L608) (`DisableMetricsCollection`) -* [Enable metrics collection for a group](src/scenario.rs#L288) (`EnableMetricsCollection`) +* [Disable metrics collection for a group](src/scenario.rs#L617) (`DisableMetricsCollection`) +* [Enable metrics collection for a group](src/scenario.rs#L297) (`EnableMetricsCollection`) * [Get information about groups](src/bin/list-autoscaling-groups.rs#L24) (`DescribeAutoScalingGroups`) -* [Get information about instances](src/scenario.rs#L529) (`DescribeAutoScalingInstances`) -* [Get information about scaling activities](src/scenario.rs#L393) (`DescribeScalingActivities`) -* [Set the desired capacity of a group](src/scenario.rs#L586) (`SetDesiredCapacity`) -* [Terminate an instance in a group](src/scenario.rs#L645) (`TerminateInstanceInAutoScalingGroup`) +* [Get information about instances](src/scenario.rs#L535) (`DescribeAutoScalingInstances`) +* [Get information about scaling activities](src/scenario.rs#L402) (`DescribeScalingActivities`) +* [Set the desired capacity of a group](src/scenario.rs#L595) (`SetDesiredCapacity`) +* [Terminate an instance in a group](src/scenario.rs#L654) (`TerminateInstanceInAutoScalingGroup`) * [Update a group](src/bin/update-autoscaling-group.rs#L32) (`UpdateAutoScalingGroup`) ### Scenarios @@ -55,7 +55,7 @@ Code excerpts that show you how to call individual service functions. Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -* [Manage groups and instances](README.md) +* [Manage groups and instances](rust_dev_preview/examples/auto-scaling/Cargo.toml) ## Run the examples diff --git a/rust_dev_preview/examples/batch/README.md b/rust_dev_preview/examples/batch/README.md index 6032a79f9b9..a3504884535 100644 --- a/rust_dev_preview/examples/batch/README.md +++ b/rust_dev_preview/examples/batch/README.md @@ -1,4 +1,4 @@ - + # AWS Batch code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Batch. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Batch. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -51,7 +51,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/cloudwatch/README.md b/rust_dev_preview/examples/cloudwatch/README.md index 67c351cec32..83cb1ae7f86 100644 --- a/rust_dev_preview/examples/cloudwatch/README.md +++ b/rust_dev_preview/examples/cloudwatch/README.md @@ -1,4 +1,4 @@ - + # CloudWatch code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon CloudWatch. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon CloudWatch. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -45,7 +45,7 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/dynamodb/README.md b/rust_dev_preview/examples/dynamodb/README.md index 20d6f98dc84..9da993e82c5 100644 --- a/rust_dev_preview/examples/dynamodb/README.md +++ b/rust_dev_preview/examples/dynamodb/README.md @@ -1,4 +1,4 @@ - + # DynamoDB code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon DynamoDB. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon DynamoDB. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -37,17 +37,17 @@ Code excerpts that show you how to call individual service functions. * [Create a table](src/scenario/create.rs#L14) (`CreateTable`) * [Delete a table](src/scenario/delete.rs#L38) (`DeleteTable`) * [Delete an item from a table](src/scenario/delete.rs#L14) (`DeleteItem`) -* [List tables](src/bin/list-tables-main.rs#L8) (`ListTables`) +* [List tables](src/scenario/list.rs#L9) (`ListTables`) * [Put an item in a table](src/scenario/add.rs#L27) (`PutItem`) * [Query a table](src/scenario/movies/server.rs#L28) (`Query`) -* [Scan a table](src/scenario/list.rs#L181) (`Scan`) +* [Scan a table](src/scenario/list.rs#L180) (`Scan`) ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -* [Query a table using PartiQL](src/bin/partiql.rs) +* [Query a table using PartiQL](src/bin/partiql.rs) ## Run the examples @@ -80,7 +80,7 @@ This example shows you how to do the following: ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/ebs/README.md b/rust_dev_preview/examples/ebs/README.md index aba6cfc2e13..d7b740f79b9 100644 --- a/rust_dev_preview/examples/ebs/README.md +++ b/rust_dev_preview/examples/ebs/README.md @@ -1,4 +1,4 @@ - + # Amazon EBS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Block Store (A ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Block Store (A ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -53,7 +53,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/ec2/README.md b/rust_dev_preview/examples/ec2/README.md index ee56595f403..3eebfd76ba7 100644 --- a/rust_dev_preview/examples/ec2/README.md +++ b/rust_dev_preview/examples/ec2/README.md @@ -1,4 +1,4 @@ - + # Amazon EC2 code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Compute Cloud ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Compute Cloud ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -59,7 +59,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/ecr/README.md b/rust_dev_preview/examples/ecr/README.md index 9bfd2b5d242..8c1a2acf2a0 100644 --- a/rust_dev_preview/examples/ecr/README.md +++ b/rust_dev_preview/examples/ecr/README.md @@ -1,4 +1,4 @@ - + # Amazon ECR code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Container Regi ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Container Regi ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/ecs/README.md b/rust_dev_preview/examples/ecs/README.md index 669851cd915..8a45b12c8ad 100644 --- a/rust_dev_preview/examples/ecs/README.md +++ b/rust_dev_preview/examples/ecs/README.md @@ -1,4 +1,4 @@ - + # Amazon ECS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Container Serv ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Container Serv ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -53,7 +53,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/eks/README.md b/rust_dev_preview/examples/eks/README.md index ebd6cf9072d..22f682d4787 100644 --- a/rust_dev_preview/examples/eks/README.md +++ b/rust_dev_preview/examples/eks/README.md @@ -1,4 +1,4 @@ - + # Amazon EKS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Kubernetes Ser ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Elastic Kubernetes Ser ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/firehose/README.md b/rust_dev_preview/examples/firehose/README.md index 942859f4183..f26556d99d0 100644 --- a/rust_dev_preview/examples/firehose/README.md +++ b/rust_dev_preview/examples/firehose/README.md @@ -1,4 +1,4 @@ - + # Kinesis Data Firehose code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Kinesis Data Firehose. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Kinesis Data Firehose. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -34,7 +34,7 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev Code excerpts that show you how to call individual service functions. -* [Write multiple data records](src/bin/put-records-batch.rs#L33) (`PutRecordBatch`) +* [Write multiple data records](src/bin/put-records-batch.rs#L32) (`PutRecordBatch`) ## Run the examples @@ -51,7 +51,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/glue/README.md b/rust_dev_preview/examples/glue/README.md index 085944bf525..ba4d0feff74 100644 --- a/rust_dev_preview/examples/glue/README.md +++ b/rust_dev_preview/examples/glue/README.md @@ -1,4 +1,4 @@ - + # AWS Glue code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Glue. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,36 +24,41 @@ Shows how to use the AWS SDK for Rust to work with AWS Glue. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. + +### Get started + +* [Hello AWS Glue](src/run.rs#L15) (`ListJobs`) + ### Single actions Code excerpts that show you how to call individual service functions. -* [Create a crawler](src/prepare.rs#L45) (`CreateCrawler`) -* [Create a job definition](src/prepare.rs#L250) (`CreateJob`) -* [Delete a crawler](src/cleanup.rs#L85) (`DeleteCrawler`) -* [Delete a database from the Data Catalog](src/cleanup.rs#L76) (`DeleteDatabase`) +* [Create a crawler](src/prepare.rs#L50) (`CreateCrawler`) +* [Create a job definition](src/prepare.rs#L253) (`CreateJob`) +* [Delete a crawler](src/cleanup.rs#L82) (`DeleteCrawler`) +* [Delete a database from the Data Catalog](src/cleanup.rs#L73) (`DeleteDatabase`) * [Delete a job definition](src/cleanup.rs#L15) (`DeleteJob`) * [Delete a table from a database](src/cleanup.rs#L23) (`DeleteTable`) -* [Get a crawler](src/prepare.rs#L113) (`GetCrawler`) -* [Get a database from the Data Catalog](src/prepare.rs#L143) (`GetDatabase`) -* [Get a job run](src/run.rs#L73) (`GetJobRun`) -* [Get tables from a database](src/prepare.rs#L158) (`GetTables`) -* [List job definitions](src/run.rs#L16) (`ListJobs`) -* [Start a crawler](src/prepare.rs#L74) (`StartCrawler`) -* [Start a job run](src/run.rs#L41) (`StartJobRun`) +* [Get a crawler](src/prepare.rs#L118) (`GetCrawler`) +* [Get a database from the Data Catalog](src/prepare.rs#L148) (`GetDatabase`) +* [Get a job run](src/run.rs#L70) (`GetJobRun`) +* [Get tables from a database](src/prepare.rs#L163) (`GetTables`) +* [List job definitions](src/run.rs#L15) (`ListJobs`) +* [Start a crawler](src/prepare.rs#L79) (`StartCrawler`) +* [Start a job run](src/run.rs#L39) (`StartJobRun`) ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -* [Get started with crawlers and jobs](src/prepare.rs) +* [Get started with crawlers and jobs](src/prepare.rs) ## Run the examples @@ -63,6 +68,10 @@ functions within the same service. +#### Hello AWS Glue + +This example shows you how to get started using AWS Glue. + #### Get started with crawlers and jobs @@ -86,7 +95,7 @@ This example shows you how to do the following: ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/iam/README.md b/rust_dev_preview/examples/iam/README.md index c1cbb01d8a8..df4bc49192b 100644 --- a/rust_dev_preview/examples/iam/README.md +++ b/rust_dev_preview/examples/iam/README.md @@ -1,4 +1,4 @@ - + # IAM code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Identity and Access Manag ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Identity and Access Manag ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -39,37 +39,37 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev Code excerpts that show you how to call individual service functions. -* [Attach a policy to a role](src/iam-service-lib.rs#L224) (`AttachRolePolicy`) -* [Attach a policy to a user](src/iam-service-lib.rs#L239) (`AttachUserPolicy`) -* [Create a policy](src/iam-service-lib.rs#L21) (`CreatePolicy`) -* [Create a role](src/iam-service-lib.rs#L68) (`CreateRole`) -* [Create a service-linked role](src/iam-service-lib.rs#L427) (`CreateServiceLinkedRole`) -* [Create a user](src/iam-service-lib.rs#L90) (`CreateUser`) -* [Create an access key](src/iam-service-lib.rs#L273) (`CreateAccessKey`) -* [Delete a policy](src/iam-service-lib.rs#L341) (`DeletePolicy`) -* [Delete a role](src/iam-service-lib.rs#L163) (`DeleteRole`) -* [Delete a service-linked role](src/iam-service-lib.rs#L179) (`DeleteServiceLinkedRole`) -* [Delete a user](src/iam-service-lib.rs#L194) (`DeleteUser`) -* [Delete an access key](src/iam-service-lib.rs#L297) (`DeleteAccessKey`) -* [Delete an inline policy from a user](src/iam-service-lib.rs#L352) (`DeleteUserPolicy`) -* [Detach a policy from a role](src/iam-service-lib.rs#L324) (`DetachRolePolicy`) -* [Detach a policy from a user](src/iam-service-lib.rs#L256) (`DetachUserPolicy`) -* [Get a role](src/iam-service-lib.rs#L116) (`GetRole`) -* [Get the account password policy](src/iam-service-lib.rs#L446) (`GetAccountPasswordPolicy`) -* [List SAML providers](src/iam-service-lib.rs#L496) (`ListSAMLProviders`) -* [List groups](src/iam-service-lib.rs#L408) (`ListGroups`) -* [List inline policies for a role](src/iam-service-lib.rs#L477) (`ListRolePolicies`) -* [List policies](src/iam-service-lib.rs#L369) (`ListPolicies`) -* [List policies attached to a role](src/iam-service-lib.rs#L456) (`ListAttachedRolePolicies`) -* [List roles](src/iam-service-lib.rs#L98) (`ListRoles`) -* [List users](src/iam-service-lib.rs#L126) (`ListUsers`) +* [Attach a policy to a role](src/iam-service-lib.rs#L223) (`AttachRolePolicy`) +* [Attach a policy to a user](src/iam-service-lib.rs#L238) (`AttachUserPolicy`) +* [Create a policy](src/iam-service-lib.rs#L20) (`CreatePolicy`) +* [Create a role](src/iam-service-lib.rs#L67) (`CreateRole`) +* [Create a service-linked role](src/iam-service-lib.rs#L424) (`CreateServiceLinkedRole`) +* [Create a user](src/iam-service-lib.rs#L89) (`CreateUser`) +* [Create an access key](src/iam-service-lib.rs#L272) (`CreateAccessKey`) +* [Delete a policy](src/iam-service-lib.rs#L340) (`DeletePolicy`) +* [Delete a role](src/iam-service-lib.rs#L162) (`DeleteRole`) +* [Delete a service-linked role](src/iam-service-lib.rs#L178) (`DeleteServiceLinkedRole`) +* [Delete a user](src/iam-service-lib.rs#L193) (`DeleteUser`) +* [Delete an access key](src/iam-service-lib.rs#L296) (`DeleteAccessKey`) +* [Delete an inline policy from a user](src/iam-service-lib.rs#L351) (`DeleteUserPolicy`) +* [Detach a policy from a role](src/iam-service-lib.rs#L323) (`DetachRolePolicy`) +* [Detach a policy from a user](src/iam-service-lib.rs#L255) (`DetachUserPolicy`) +* [Get a role](src/iam-service-lib.rs#L115) (`GetRole`) +* [Get the account password policy](src/iam-service-lib.rs#L443) (`GetAccountPasswordPolicy`) +* [List SAML providers](src/iam-service-lib.rs#L493) (`ListSAMLProviders`) +* [List groups](src/iam-service-lib.rs#L405) (`ListGroups`) +* [List inline policies for a role](src/iam-service-lib.rs#L474) (`ListRolePolicies`) +* [List policies](src/iam-service-lib.rs#L368) (`ListPolicies`) +* [List policies attached to a role](src/iam-service-lib.rs#L453) (`ListAttachedRolePolicies`) +* [List roles](src/iam-service-lib.rs#L97) (`ListRoles`) +* [List users](src/iam-service-lib.rs#L125) (`ListUsers`) ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -* [Create a user and assume a role](src/bin/iam-getting-started.rs) +* [Create a user and assume a role](src/bin/iam-getting-started.rs) ## Run the examples @@ -106,7 +106,7 @@ This example shows you how to create a user and assume a role. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/iot/README.md b/rust_dev_preview/examples/iot/README.md index 962308e53c6..10ed783f4d7 100644 --- a/rust_dev_preview/examples/iot/README.md +++ b/rust_dev_preview/examples/iot/README.md @@ -1,4 +1,4 @@ - + # AWS IoT code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS IoT. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS IoT. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/kinesis/README.md b/rust_dev_preview/examples/kinesis/README.md index 2f92e743ab5..843587da51c 100644 --- a/rust_dev_preview/examples/kinesis/README.md +++ b/rust_dev_preview/examples/kinesis/README.md @@ -1,4 +1,4 @@ - + # Kinesis code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Kinesis. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Kinesis. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -55,7 +55,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/kms/README.md b/rust_dev_preview/examples/kms/README.md index 348861aec92..fede279eb82 100644 --- a/rust_dev_preview/examples/kms/README.md +++ b/rust_dev_preview/examples/kms/README.md @@ -1,4 +1,4 @@ - + # AWS KMS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Key Management Service (A ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Key Management Service (A ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -58,7 +58,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/lambda/README.md b/rust_dev_preview/examples/lambda/README.md index 433bbb75cbf..e2110412dce 100644 --- a/rust_dev_preview/examples/lambda/README.md +++ b/rust_dev_preview/examples/lambda/README.md @@ -1,4 +1,4 @@ - + # Lambda code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Lambda. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -50,7 +50,7 @@ Code excerpts that show you how to call individual service functions. Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -* [Get started with functions](rust_dev_preview/examples/lambda/Cargo.toml) +* [Get started with functions](rust_dev_preview/examples/lambda/Cargo.toml) ## Run the examples diff --git a/rust_dev_preview/examples/medialive/README.md b/rust_dev_preview/examples/medialive/README.md index 278bf21ad9a..3c7e584815e 100644 --- a/rust_dev_preview/examples/medialive/README.md +++ b/rust_dev_preview/examples/medialive/README.md @@ -1,4 +1,4 @@ - + # MediaLive code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Elemental MediaLive. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Elemental MediaLive. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -51,7 +51,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/mediapackage/README.md b/rust_dev_preview/examples/mediapackage/README.md index 27188f70e44..ebaffe472b3 100644 --- a/rust_dev_preview/examples/mediapackage/README.md +++ b/rust_dev_preview/examples/mediapackage/README.md @@ -1,4 +1,4 @@ - + # MediaPackage code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Elemental MediaPackage. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Elemental MediaPackage. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/polly/README.md b/rust_dev_preview/examples/polly/README.md index 8a028dc33c5..8c124d056e7 100644 --- a/rust_dev_preview/examples/polly/README.md +++ b/rust_dev_preview/examples/polly/README.md @@ -1,4 +1,4 @@ - + # Amazon Polly code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Polly. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Polly. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -37,7 +37,7 @@ Code excerpts that show you how to call individual service functions. * [Get voices available for synthesis](src/bin/describe-voices.rs#L24) (`DescribeVoices`) * [List pronunciation lexicons](src/bin/list-lexicons.rs#L24) (`ListLexicons`) * [Store a pronunciation lexicon](src/bin/put-lexicon.rs#L36) (`PutLexicon`) -* [Synthesize speech from text](src/bin/synthesize-speech-presigned.rs#L37) (`SynthesizeSpeech`) +* [Synthesize speech from text](src/bin/synthesize-speech.rs#L31) (`SynthesizeSpeech`) ## Run the examples @@ -54,7 +54,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/qldb/README.md b/rust_dev_preview/examples/qldb/README.md index 76cdb593627..871a49369fd 100644 --- a/rust_dev_preview/examples/qldb/README.md +++ b/rust_dev_preview/examples/qldb/README.md @@ -1,4 +1,4 @@ - + # Amazon QLDB code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Quantum Ledger Databas ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Quantum Ledger Databas ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -35,7 +35,7 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev Code excerpts that show you how to call individual service functions. * [Create a ledger](src/bin/create-ledger.rs#L29) (`CreateLedger`) -* [List your ledgers](src/bin/list-ledgers.rs#L25) (`ListLedgers`) +* [List your ledgers](src/bin/list-ledgers.rs#L24) (`ListLedgers`) ## Run the examples @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/rds/README.md b/rust_dev_preview/examples/rds/README.md index 3c0f14caf4c..64d156cc19c 100644 --- a/rust_dev_preview/examples/rds/README.md +++ b/rust_dev_preview/examples/rds/README.md @@ -1,4 +1,4 @@ - + # Amazon RDS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Relational Database Se ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Relational Database Se ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -45,7 +45,7 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/s3/README.md b/rust_dev_preview/examples/s3/README.md index c74b44bb10b..f1fd073c886 100644 --- a/rust_dev_preview/examples/s3/README.md +++ b/rust_dev_preview/examples/s3/README.md @@ -1,4 +1,4 @@ - + # Amazon S3 code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Storage Service ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Storage Service ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -35,28 +35,29 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev Code excerpts that show you how to call individual service functions. * [Complete a multipart upload](src/bin/s3-multipart-upload.rs#L138) (`CompleteMultipartUpload`) -* [Copy an object from one bucket to another](src/s3-service-lib.rs#L82) (`CopyObject`) -* [Create a bucket](src/s3-service-lib.rs#L139) (`CreateBucket`) +* [Copy an object from one bucket to another](src/s3-service-lib.rs#L85) (`CopyObject`) +* [Create a bucket](src/s3-service-lib.rs#L142) (`CreateBucket`) * [Create a multipart upload](src/bin/s3-multipart-upload.rs#L50) (`CreateMultipartUpload`) * [Delete an empty bucket](src/s3-service-lib.rs#L25) (`DeleteBucket`) * [Delete an object](src/bin/delete-object.rs#L32) (`DeleteObject`) * [Delete multiple objects](src/s3-service-lib.rs#L33) (`DeleteObjects`) -* [Get an object from a bucket](src/bin/get-object.rs#L19) (`GetObject`) +* [Get an object from a bucket](src/bin/get-object.rs#L18) (`GetObject`) * [Get an object from a bucket if it has been modified](src/bin/if-modified-since.rs#L6) (`GetObject`) * [Get the Region location for a bucket](src/bin/list-buckets.rs#L28) (`GetBucketLocation`) * [List buckets](src/bin/list-buckets.rs#L28) (`ListBuckets`) * [List object versions in a bucket](src/bin/list-object-versions.rs#L28) (`ListObjectVersions`) -* [List objects in a bucket](src/s3-service-lib.rs#L70) (`ListObjects`) +* [List objects in a bucket](src/s3-service-lib.rs#L73) (`ListObjectsV2`) * [Upload a single part of a multipart upload](src/bin/s3-multipart-upload.rs#L114) (`UploadPart`) -* [Upload an object to a bucket](src/s3-service-lib.rs#L120) (`PutObject`) +* [Upload an object to a bucket](src/s3-service-lib.rs#L123) (`PutObject`) ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -* [Get started with buckets and objects](src/bin/s3-getting-started.rs) -* [Upload or download large files](src/bin/s3-multipart-upload.rs) +* [Create a presigned URL](src/bin/put-object-presigned.rs) +* [Get started with buckets and objects](src/bin/s3-getting-started.rs) +* [Upload or download large files](src/bin/s3-multipart-upload.rs) ## Run the examples @@ -68,6 +69,18 @@ functions within the same service. +#### Create a presigned URL + +This example shows you how to create a presigned URL for Amazon S3 and upload an object. + + + + + + + + + #### Get started with buckets and objects This example shows you how to do the following: @@ -102,7 +115,7 @@ This example shows you how to upload or download large files to and from Amazon ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/sagemaker/README.md b/rust_dev_preview/examples/sagemaker/README.md index 51a03c8dbf1..07aece07d79 100644 --- a/rust_dev_preview/examples/sagemaker/README.md +++ b/rust_dev_preview/examples/sagemaker/README.md @@ -1,4 +1,4 @@ - + # SageMaker code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon SageMaker. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon SageMaker. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/ses/README.md b/rust_dev_preview/examples/ses/README.md index cbc41b73b3c..5c52384d79c 100644 --- a/rust_dev_preview/examples/ses/README.md +++ b/rust_dev_preview/examples/ses/README.md @@ -1,4 +1,4 @@ - + # Amazon SES code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Email Service ( ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Email Service ( ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -45,7 +45,7 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/sns/README.md b/rust_dev_preview/examples/sns/README.md index c1e1bea3e62..75cdb5cfb53 100644 --- a/rust_dev_preview/examples/sns/README.md +++ b/rust_dev_preview/examples/sns/README.md @@ -1,4 +1,4 @@ - + # Amazon SNS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Notification Se ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Notification Se ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -54,7 +54,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/sqs/README.md b/rust_dev_preview/examples/sqs/README.md index 711820d664d..43e8f388146 100644 --- a/rust_dev_preview/examples/sqs/README.md +++ b/rust_dev_preview/examples/sqs/README.md @@ -1,4 +1,4 @@ - + # Amazon SQS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Queue Service ( ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Simple Queue Service ( ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -53,7 +53,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/ssm/README.md b/rust_dev_preview/examples/ssm/README.md index 618e9a669fe..0008802d8ec 100644 --- a/rust_dev_preview/examples/ssm/README.md +++ b/rust_dev_preview/examples/ssm/README.md @@ -1,4 +1,4 @@ - + # Systems Manager code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Systems Manager. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Systems Manager. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -52,7 +52,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/sts/README.md b/rust_dev_preview/examples/sts/README.md index 4b9d62ffe51..73d5b72542b 100644 --- a/rust_dev_preview/examples/sts/README.md +++ b/rust_dev_preview/examples/sts/README.md @@ -1,4 +1,4 @@ - + # AWS STS code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Security Token Service (A ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with AWS Security Token Service (A ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -51,7 +51,7 @@ Code excerpts that show you how to call individual service functions. ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder. diff --git a/rust_dev_preview/examples/textract/README.md b/rust_dev_preview/examples/textract/README.md index 4851e94ee07..f36be4545ba 100644 --- a/rust_dev_preview/examples/textract/README.md +++ b/rust_dev_preview/examples/textract/README.md @@ -1,4 +1,4 @@ - + # Amazon Textract code examples for the SDK for Rust ## Overview @@ -12,7 +12,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Textract. ## ⚠ Important -* Running this code might result in charges to your AWS account. +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/?aws-products-pricing.sort-by=item.additionalFields.productNameLowercase&aws-products-pricing.sort-order=asc&awsf.Free%20Tier%20Type=*all&awsf.tech-category=*all) and [Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -24,7 +24,7 @@ Shows how to use the AWS SDK for Rust to work with Amazon Textract. ### Prerequisites -For prerequisites, see the [README](../README.md#Prerequisites) in the `rust_dev_preview` folder. +For prerequisites, see the [README](../../README.md#Prerequisites) in the `rust_dev_preview` folder. @@ -56,7 +56,7 @@ This example sends a message to and receives the message from a queue in the Reg ⚠ Running tests might result in charges to your AWS account. -To find instructions for running these tests, see the [README](../README.md#Tests) +To find instructions for running these tests, see the [README](../../README.md#Tests) in the `rust_dev_preview` folder.