

Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh [SDK AWS Doc](https://github.com/awsdocs/aws-doc-sdk-examples). GitHub 

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Contoh kode untuk Lambda menggunakan AWS SDKs
<a name="lambda_code_examples"></a>

Contoh kode berikut menunjukkan cara menggunakan AWS Lambda kit pengembangan AWS perangkat lunak (SDK).

*Dasar-dasar* adalah contoh kode yang menunjukkan kepada Anda bagaimana melakukan operasi penting dalam suatu layanan.

*Tindakan* merupakan kutipan kode dari program yang lebih besar dan harus dijalankan dalam konteks. Sementara tindakan menunjukkan cara memanggil fungsi layanan individual, Anda dapat melihat tindakan dalam konteks dalam skenario terkait.

*Skenario* adalah contoh kode yang menunjukkan kepada Anda bagaimana menyelesaikan tugas tertentu dengan memanggil beberapa fungsi dalam layanan atau dikombinasikan dengan yang lain Layanan AWS.

*AWS kontribusi komunitas* adalah contoh yang dibuat dan dikelola oleh banyak tim AWS. Untuk memberikan umpan balik, gunakan mekanisme yang disediakan di repositori yang ditautkan.

**Sumber daya lainnya**
+  **[Panduan Pengembang Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)** - Informasi lebih lanjut tentang Lambda.
+ **[Referensi API Lambda](https://docs.aws.amazon.com/lambda/latest/dg/API_Reference.html)** — Detail tentang semua tindakan Lambda yang tersedia.
+ **[AWS Pusat Pengembang](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23lambda)** - Contoh kode yang dapat Anda filter berdasarkan kategori atau pencarian teks lengkap.
+ **[AWS Contoh SDK](https://github.com/awsdocs/aws-doc-sdk-examples)** — GitHub repo dengan kode lengkap dalam bahasa pilihan. Termasuk instruksi untuk mengatur dan menjalankan kode.

**Contents**
+ [Hal-hal mendasar](lambda_code_examples_basics.md)
  + [Halo Lambda](lambda_example_lambda_Hello_section.md)
  + [Pelajari dasar-dasarnya](lambda_example_lambda_Scenario_GettingStartedFunctions_section.md)
  + [Tindakan](lambda_code_examples_actions.md)
    + [`CreateAlias`](lambda_example_lambda_CreateAlias_section.md)
    + [`CreateFunction`](lambda_example_lambda_CreateFunction_section.md)
    + [`DeleteAlias`](lambda_example_lambda_DeleteAlias_section.md)
    + [`DeleteFunction`](lambda_example_lambda_DeleteFunction_section.md)
    + [`DeleteFunctionConcurrency`](lambda_example_lambda_DeleteFunctionConcurrency_section.md)
    + [`DeleteProvisionedConcurrencyConfig`](lambda_example_lambda_DeleteProvisionedConcurrencyConfig_section.md)
    + [`GetAccountSettings`](lambda_example_lambda_GetAccountSettings_section.md)
    + [`GetAlias`](lambda_example_lambda_GetAlias_section.md)
    + [`GetFunction`](lambda_example_lambda_GetFunction_section.md)
    + [`GetFunctionConcurrency`](lambda_example_lambda_GetFunctionConcurrency_section.md)
    + [`GetFunctionConfiguration`](lambda_example_lambda_GetFunctionConfiguration_section.md)
    + [`GetPolicy`](lambda_example_lambda_GetPolicy_section.md)
    + [`GetProvisionedConcurrencyConfig`](lambda_example_lambda_GetProvisionedConcurrencyConfig_section.md)
    + [`Invoke`](lambda_example_lambda_Invoke_section.md)
    + [`ListFunctions`](lambda_example_lambda_ListFunctions_section.md)
    + [`ListProvisionedConcurrencyConfigs`](lambda_example_lambda_ListProvisionedConcurrencyConfigs_section.md)
    + [`ListTags`](lambda_example_lambda_ListTags_section.md)
    + [`ListVersionsByFunction`](lambda_example_lambda_ListVersionsByFunction_section.md)
    + [`PublishVersion`](lambda_example_lambda_PublishVersion_section.md)
    + [`PutFunctionConcurrency`](lambda_example_lambda_PutFunctionConcurrency_section.md)
    + [`PutProvisionedConcurrencyConfig`](lambda_example_lambda_PutProvisionedConcurrencyConfig_section.md)
    + [`RemovePermission`](lambda_example_lambda_RemovePermission_section.md)
    + [`TagResource`](lambda_example_lambda_TagResource_section.md)
    + [`UntagResource`](lambda_example_lambda_UntagResource_section.md)
    + [`UpdateAlias`](lambda_example_lambda_UpdateAlias_section.md)
    + [`UpdateFunctionCode`](lambda_example_lambda_UpdateFunctionCode_section.md)
    + [`UpdateFunctionConfiguration`](lambda_example_lambda_UpdateFunctionConfiguration_section.md)
+ [Skenario](lambda_code_examples_scenarios.md)
  + [Secara otomatis mengonfirmasi pengguna yang dikenal dengan fungsi Lambda](lambda_example_cross_CognitoAutoConfirmUser_section.md)
  + [Secara otomatis memigrasikan pengguna yang dikenal dengan fungsi Lambda](lambda_example_cross_CognitoAutoMigrateUser_section.md)
  + [Membuat API REST untuk melacak data COVID-19](lambda_example_cross_ApiGatewayDataTracker_section.md)
  + [Membuat API REST pustaka peminjaman](lambda_example_cross_AuroraRestLendingLibrary_section.md)
  + [Membuat aplikasi messenger](lambda_example_cross_StepFunctionsMessenger_section.md)
  + [Membuat aplikasi nirserver untuk mengelola foto](lambda_example_cross_PAM_section.md)
  + [Membuat aplikasi obrolan websocket](lambda_example_cross_ApiGatewayWebsocketChat_section.md)
  + [Buat aplikasi untuk menganalisis umpan balik pelanggan](lambda_example_cross_FSA_section.md)
  + [Menginvokasi fungsi Lambda dari browser](lambda_example_cross_LambdaForBrowser_section.md)
  + [Mengubah data dengan S3 Object Lambda](lambda_example_cross_ServerlessS3DataTransformation_section.md)
  + [Menggunakan API Gateway untuk menginvokasi fungsi Lambda](lambda_example_cross_LambdaAPIGateway_section.md)
  + [Menggunakan Step Functions untuk menginvokasi fungsi Lambda](lambda_example_cross_ServerlessWorkflows_section.md)
  + [Menggunakan peristiwa terjadwal untuk menginvokasi fungsi Lambda](lambda_example_cross_LambdaScheduledEvents_section.md)
  + [Gunakan Neptunus API untuk menanyakan data grafik](lambda_example_cross_Neptune_Query_section.md)
  + [Menulis data aktivitas khusus dengan fungsi Lambda setelah otentikasi pengguna Amazon Cognito](lambda_example_cross_CognitoCustomActivityLog_section.md)
+ [Contoh nirserver](lambda_code_examples_serverless_examples.md)
  + [Menghubungkan ke database Amazon RDS dalam fungsi Lambda](lambda_example_serverless_connect_RDS_Lambda_section.md)
  + [Memanggil fungsi Lambda dari pemicu Kinesis](lambda_example_serverless_Kinesis_Lambda_section.md)
  + [Memanggil fungsi Lambda dari pemicu DynamoDB](lambda_example_serverless_DynamoDB_Lambda_section.md)
  + [Memanggil fungsi Lambda dari pemicu Amazon DocumentDB](lambda_example_serverless_DocumentDB_Lambda_section.md)
  + [Memanggil fungsi Lambda dari pemicu MSK Amazon](lambda_example_serverless_MSK_Lambda_section.md)
  + [Menginvokasi fungsi Lambda dari pemicu Amazon S3](lambda_example_serverless_S3_Lambda_section.md)
  + [Memanggil fungsi Lambda dari pemicu Amazon SNS](lambda_example_serverless_SNS_Lambda_section.md)
  + [Memanggil fungsi Lambda dari pemicu Amazon SQS](lambda_example_serverless_SQS_Lambda_section.md)
  + [Melaporkan kegagalan item batch untuk fungsi Lambda dengan pemicu Kinesis](lambda_example_serverless_Kinesis_Lambda_batch_item_failures_section.md)
  + [Melaporkan kegagalan item batch untuk fungsi Lambda dengan pemicu DynamoDB](lambda_example_serverless_DynamoDB_Lambda_batch_item_failures_section.md)
  + [Melaporkan kegagalan item batch untuk fungsi Lambda dengan pemicu Amazon SQS](lambda_example_serverless_SQS_Lambda_batch_item_failures_section.md)
+ [AWS kontribusi komunitas](lambda_code_examples_aws_community_contributions.md)
  + [Membangun dan menguji aplikasi tanpa server](lambda_example_tributary-lite_serverless-application_section.md)