

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

# Contoh kode untuk Amazon Cognito menggunakan AWS SDKs
<a name="service_code_examples"></a>

Contoh kode berikut menunjukkan cara menggunakan Amazon Cognito dengan kit pengembangan AWS perangkat lunak (SDK). 

Untuk daftar lengkap panduan pengembang AWS SDK dan contoh kode, lihat[Menggunakan layanan ini dengan AWS SDK](sdk-general-information-section.md). Topik ini juga mencakup informasi tentang memulai dan detail tentang versi SDK sebelumnya.

**Contents**
+ [Identitas Amazon Cognito](service_code_examples_cognito-identity.md)
  + [Hal-hal mendasar](service_code_examples_cognito-identity_basics.md)
    + [Tindakan](service_code_examples_cognito-identity_actions.md)
      + [`CreateIdentityPool`](cognito-identity_example_cognito-identity_CreateIdentityPool_section.md)
      + [`DeleteIdentityPool`](cognito-identity_example_cognito-identity_DeleteIdentityPool_section.md)
      + [`DescribeIdentityPool`](cognito-identity_example_cognito-identity_DescribeIdentityPool_section.md)
      + [`GetCredentialsForIdentity`](cognito-identity_example_cognito-identity_GetCredentialsForIdentity_section.md)
      + [`GetIdentityPoolRoles`](cognito-identity_example_cognito-identity_GetIdentityPoolRoles_section.md)
      + [`ListIdentityPools`](cognito-identity_example_cognito-identity_ListIdentityPools_section.md)
      + [`SetIdentityPoolRoles`](cognito-identity_example_cognito-identity_SetIdentityPoolRoles_section.md)
      + [`UpdateIdentityPool`](cognito-identity_example_cognito-identity_UpdateIdentityPool_section.md)
  + [Skenario](service_code_examples_cognito-identity_scenarios.md)
    + [Membuat aplikasi penjelajah Amazon Textract](cognito-identity_example_cross_TextractExplorer_section.md)
+ [Penyedia Identitas Amazon Cognito](service_code_examples_cognito-identity-provider.md)
  + [Hal-hal mendasar](service_code_examples_cognito-identity-provider_basics.md)
    + [Halo Amazon Cognito](cognito-identity-provider_example_cognito-identity-provider_Hello_section.md)
    + [Tindakan](service_code_examples_cognito-identity-provider_actions.md)
      + [`AdminCreateUser`](cognito-identity-provider_example_cognito-identity-provider_AdminCreateUser_section.md)
      + [`AdminGetUser`](cognito-identity-provider_example_cognito-identity-provider_AdminGetUser_section.md)
      + [`AdminInitiateAuth`](cognito-identity-provider_example_cognito-identity-provider_AdminInitiateAuth_section.md)
      + [`AdminRespondToAuthChallenge`](cognito-identity-provider_example_cognito-identity-provider_AdminRespondToAuthChallenge_section.md)
      + [`AdminSetUserPassword`](cognito-identity-provider_example_cognito-identity-provider_AdminSetUserPassword_section.md)
      + [`AssociateSoftwareToken`](cognito-identity-provider_example_cognito-identity-provider_AssociateSoftwareToken_section.md)
      + [`ConfirmDevice`](cognito-identity-provider_example_cognito-identity-provider_ConfirmDevice_section.md)
      + [`ConfirmForgotPassword`](cognito-identity-provider_example_cognito-identity-provider_ConfirmForgotPassword_section.md)
      + [`ConfirmSignUp`](cognito-identity-provider_example_cognito-identity-provider_ConfirmSignUp_section.md)
      + [`CreateUserPool`](cognito-identity-provider_example_cognito-identity-provider_CreateUserPool_section.md)
      + [`CreateUserPoolClient`](cognito-identity-provider_example_cognito-identity-provider_CreateUserPoolClient_section.md)
      + [`DeleteUser`](cognito-identity-provider_example_cognito-identity-provider_DeleteUser_section.md)
      + [`ForgotPassword`](cognito-identity-provider_example_cognito-identity-provider_ForgotPassword_section.md)
      + [`InitiateAuth`](cognito-identity-provider_example_cognito-identity-provider_InitiateAuth_section.md)
      + [`ListUserPools`](cognito-identity-provider_example_cognito-identity-provider_ListUserPools_section.md)
      + [`ListUsers`](cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md)
      + [`ResendConfirmationCode`](cognito-identity-provider_example_cognito-identity-provider_ResendConfirmationCode_section.md)
      + [`RespondToAuthChallenge`](cognito-identity-provider_example_cognito-identity-provider_RespondToAuthChallenge_section.md)
      + [`SignUp`](cognito-identity-provider_example_cognito-identity-provider_SignUp_section.md)
      + [`UpdateUserPool`](cognito-identity-provider_example_cognito-identity-provider_UpdateUserPool_section.md)
      + [`VerifySoftwareToken`](cognito-identity-provider_example_cognito-identity-provider_VerifySoftwareToken_section.md)
  + [Skenario](service_code_examples_cognito-identity-provider_scenarios.md)
    + [Secara otomatis mengonfirmasi pengguna yang dikenal dengan fungsi Lambda](cognito-identity-provider_example_cross_CognitoAutoConfirmUser_section.md)
    + [Secara otomatis memigrasikan pengguna yang dikenal dengan fungsi Lambda](cognito-identity-provider_example_cross_CognitoAutoMigrateUser_section.md)
    + [Memulai dengan kumpulan pengguna Amazon Cognito](cognito-identity-provider_example_cognito_identity_provider_GettingStarted_066_section.md)
    + [Mendaftar pengguna dengan kumpulan pengguna yang membutuhkan MFA](cognito-identity-provider_example_cognito-identity-provider_Scenario_SignUpUserWithMfa_section.md)
    + [Gunakan kumpulan identitas Amazon Cognito](cognito-identity-provider_example_cross_CognitoFlows_section.md)
    + [Menulis data aktivitas khusus dengan fungsi Lambda setelah otentikasi pengguna Amazon Cognito](cognito-identity-provider_example_cross_CognitoCustomActivityLog_section.md)
+ [Amazon Cognito Sync](service_code_examples_cognito-sync.md)
  + [Hal-hal mendasar](service_code_examples_cognito-sync_basics.md)
    + [Tindakan](service_code_examples_cognito-sync_actions.md)
      + [`ListIdentityPoolUsage`](cognito-sync_example_cognito-sync_ListIdentityPoolUsage_section.md)