

文档 AWS SDK 示例 GitHub 存储库中还有更多 [S AWS DK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 按服务划分的代码示例 AWS SDKs
<a name="code_example_library_by_service"></a>

以下代码示例向您展示了如何 AWS 服务 使用 AWS 软件开发套件 (SDK)。本节由 AWS 服务.

*基本功能*是向您展示如何在服务中执行基本操作的代码示例。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他 AWS 服务服务结合来完成特定任务的代码示例。

某些服务包含其他示例类别，这些类别说明如何利用特定于服务的库或函数。

**更多资源**
+  **[AWS 开发人员中心](https://aws.amazon.com/developer/code-examples/)**——您可以按类别或全文搜索筛选的代码示例。
+  **[AWS SDK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)** — 包含首选语言完整代码的 GitHub 存储库。包括有关设置和运行代码的说明。

**Topics**
+ [ACM](acm_code_examples.md)
+ [API Gateway](api-gateway_code_examples.md)
+ [API Gateway Management API](apigatewaymanagementapi_code_examples.md)
+ [Application Auto Scaling](application-auto-scaling_code_examples.md)
+ [应用程序恢复控制器](route53-recovery-cluster_code_examples.md)
+ [Athena](athena_code_examples.md)
+ [Audit Manager](auditmanager_code_examples.md)
+ [Aurora](aurora_code_examples.md)
+ [Auto Scaling](auto-scaling_code_examples.md)
+ [AWS Batch](batch_code_examples.md)
+ [Amazon Bedrock](bedrock_code_examples.md)
+ [Amazon Bedrock 运行时系统](bedrock-runtime_code_examples.md)
+ [Amazon 基岩代理商](bedrock-agent_code_examples.md)
+ [Amazon Bedrock 代理运行时](bedrock-agent-runtime_code_examples.md)
+ [AWS Budgets](budgets_code_examples.md)
+ [AWS Cloud Map](servicediscovery_code_examples.md)
+ [AWS Cloud9](cloud9_code_examples.md)
+ [CloudFormation](cloudformation_code_examples.md)
+ [CloudFront](cloudfront_code_examples.md)
+ [CloudTrail](cloudtrail_code_examples.md)
+ [CloudWatch](cloudwatch_code_examples.md)
+ [CloudWatch 活动](cloudwatch-events_code_examples.md)
+ [CloudWatch 日志](cloudwatch-logs_code_examples.md)
+ [CodeBuild](codebuild_code_examples.md)
+ [CodeCommit](codecommit_code_examples.md)
+ [CodeDeploy](codedeploy_code_examples.md)
+ [CodePipeline](codepipeline_code_examples.md)
+ [Amazon Cognito Identity](cognito-identity_code_examples.md)
+ [Amazon Cognito 身份提供者](cognito-identity-provider_code_examples.md)
+ [Amazon Cognito Sync](cognito-sync_code_examples.md)
+ [Amazon Comprehend](comprehend_code_examples.md)
+ [AWS Config](config-service_code_examples.md)
+ [Amazon Connect](connect_code_examples.md)
+ [AWS Control Tower](controltower_code_examples.md)
+ [Firehose](firehose_code_examples.md)
+ [Device Farm](device-farm_code_examples.md)
+ [Direct Connect](direct-connect_code_examples.md)
+ [Directory Service](directory-service_code_examples.md)
+ [AWS DMS](database-migration-service_code_examples.md)
+ [Amazon DocumentDB](docdb_code_examples.md)
+ [DynamoDB](dynamodb_code_examples.md)
+ [Amazon EBS](ebs_code_examples.md)
+ [Amazon EC2](ec2_code_examples.md)
+ [Amazon ECR](ecr_code_examples.md)
+ [Amazon ECS](ecs_code_examples.md)
+ [Amazon EFS](efs_code_examples.md)
+ [Amazon EKS](eks_code_examples.md)
+ [Elastic Beanstalk](elastic-beanstalk_code_examples.md)
+ [Elastic Load Balancing——版本 1](elastic-load-balancing_code_examples.md)
+ [Elastic Load Balancing——版本 2](elastic-load-balancing-v2_code_examples.md)
+ [ElastiCache](elasticache_code_examples.md)
+ [MediaStore](mediastore_code_examples.md)
+ [Amazon EMR](emr_code_examples.md)
+ [AWS Entity Resolution 数据匹配服务](entityresolution_code_examples.md)
+ [OpenSearch 服务](opensearch_code_examples.md)
+ [EventBridge](eventbridge_code_examples.md)
+ [EventBridge 调度器](scheduler_code_examples.md)
+ [AWS FIS](fis_code_examples.md)
+ [预测](forecast_code_examples.md)
+ [Amazon Glacier](glacier_code_examples.md)
+ [AWS Glue](glue_code_examples.md)
+ [AWS Health](health_code_examples.md)
+ [HealthImaging](medical-imaging_code_examples.md)
+ [HealthLake](healthlake_code_examples.md)
+ [IAM](iam_code_examples.md)
+ [Amazon Inspector](inspector_code_examples.md)
+ [AWS IoT](iot_code_examples.md)
+ [AWS IoT data](iot-data-plane_code_examples.md)
+ [AWS IoT FleetWise](iotfleetwise_code_examples.md)
+ [AWS IoT SiteWise](iotsitewise_code_examples.md)
+ [Amazon Keyspaces](keyspaces_code_examples.md)
+ [Kinesis](kinesis_code_examples.md)
+ [AWS KMS](kms_code_examples.md)
+ [Lambda](lambda_code_examples.md)
+ [Amazon Lex](lex_code_examples.md)
+ [Lightsail](lightsail_code_examples.md)
+ [Amazon Location](location_code_examples.md)
+ [Location Service Places](geo-places_code_examples.md)
+ [Amazon Managed Grafana](grafana_code_examples.md)
+ [Managed Service for Apache Flink](kinesis-analytics-v2_code_examples.md)
+ [AWS Marketplace 目录 API](marketplace-catalog_code_examples.md)
+ [AWS Marketplace 协议 API](marketplace-agreement_code_examples.md)
+ [MediaConnect](mediaconnect_code_examples.md)
+ [MediaConvert](mediaconvert_code_examples.md)
+ [MediaLive](medialive_code_examples.md)
+ [MediaPackage](mediapackage_code_examples.md)
+ [Migration Hub](migration-hub_code_examples.md)
+ [Amazon MSK](kafka_code_examples.md)
+ [Neptune](neptune_code_examples.md)
+ [Organizations](organizations_code_examples.md)
+ [合作伙伴中心](partnercentral-selling_code_examples.md)
+ [AWS Payment Cryptography](payment-cryptography_code_examples.md)
+ [Amazon Personalize](personalize_code_examples.md)
+ [Amazon Personalize Events](personalize-events_code_examples.md)
+ [Amazon Personalize Runtime](personalize-runtime_code_examples.md)
+ [Amazon Pinpoint](pinpoint_code_examples.md)
+ [Amazon Pinpoint SMS 和 Voice API](pinpoint-sms-voice_code_examples.md)
+ [Amazon Polly](polly_code_examples.md)
+ [AWS 价目表](pricing_code_examples.md)
+ [Amazon RDS](rds_code_examples.md)
+ [Amazon RDS 数据服务](rds-data_code_examples.md)
+ [Amazon Redshift](redshift_code_examples.md)
+ [Amazon Rekognition](rekognition_code_examples.md)
+ [资源组](resource-groups_code_examples.md)
+ [资源组标记 API](resource-groups-tagging-api_code_examples.md)
+ [Route 53](route-53_code_examples.md)
+ [Route 53 域注册](route-53-domains_code_examples.md)
+ [Amazon S3](s3_code_examples.md)
+ [Amazon S3 控件](s3-control_code_examples.md)
+ [S3 目录存储桶](s3-directory-buckets_code_examples.md)
+ [SageMaker AI](sagemaker_code_examples.md)
+ [Secrets Manager](secrets-manager_code_examples.md)
+ [Amazon SES](ses_code_examples.md)
+ [Amazon SES API v2](sesv2_code_examples.md)
+ [Amazon SNS](sns_code_examples.md)
+ [Amazon SQS](sqs_code_examples.md)
+ [Step Functions](sfn_code_examples.md)
+ [AWS STS](sts_code_examples.md)
+ [支持](support_code_examples.md)
+ [Systems Manager](ssm_code_examples.md)
+ [Amazon Textract](textract_code_examples.md)
+ [Amazon Transcribe](transcribe_code_examples.md)
+ [Amazon Transcribe Streaming](transcribe-streaming_code_examples.md)
+ [Amazon Translate](translate_code_examples.md)
+ [VPC Lattice](vpc-lattice_code_examples.md)
+ [AWS WAFV2](wafv2_code_examples.md)
+ [WorkSpaces](workspaces_code_examples.md)
+ [X-Ray](xray_code_examples.md)