

 **このページは、ボールトと 2012 年リリース当時の REST API を使用する、Amazon Glacier サービスの既存のお客様のみを対象としています。**

アーカイブストレージソリューションをお探しの場合は、Amazon S3 の Amazon Glacier ストレージクラス (S3 Glacier Instant Retrieval、S3 Glacier Flexible Retrieval、S3 Glacier Deep Archive) を使用することをお勧めします。これらのストレージオプションの詳細については、「[Amazon Glacier ストレージクラス](https://aws.amazon.com/s3/storage-classes/glacier/)」を参照してください。

Amazon Glacier (元のスタンドアロンボールトベースのサービス) は、新規顧客を受け入れなくなりました。Amazon Glacier は、ボールトにデータを保存する独自の API を備えたスタンドアロンサービスであり、Amazon S3 および Amazon S3 Glacier ストレージクラスとは異なります。既存のデータは Amazon Glacier で無期限に安全性が確保され、引き続きアクセス可能です。移行は必要ありません。低コストの長期アーカイブストレージの場合、 は [Amazon S3 Glacier ストレージクラス](https://aws.amazon.com/s3/storage-classes/glacier/) AWS を推奨します。これにより、S3 バケットベースの APIs、低コスト、 AWS サービス統合で優れたカスタマーエクスペリエンスを実現できます。 AWS リージョン 拡張機能が必要な場合は、[Amazon Glacier ボールトから Amazon S3 Glacier ストレージクラスにデータを転送するためのAWS ソリューションガイダンス](https://aws.amazon.com/solutions/guidance/data-transfer-from-amazon-s3-glacier-vaults-to-amazon-s3/)を使用して、Amazon S3 Glacier ストレージクラスへの移行を検討してください。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# SDK を使用した Amazon Glacier のコード例 AWS SDKs
<a name="service_code_examples"></a>

次のコード例は、 AWS Software Development Kit (SDK) で Amazon Glacier を使用する方法を示しています。

*アクション*はより大きなプログラムからのコードの抜粋であり、コンテキスト内で実行する必要があります。アクションは個々のサービス機能を呼び出す方法を示していますが、コンテキスト内のアクションは、関連するシナリオで確認できます。

*シナリオ*は、1 つのサービス内から、または他の AWS のサービスと組み合わせて複数の関数を呼び出し、特定のタスクを実行する方法を示すコード例です。

 AWS SDK 開発者ガイドとコード例の完全なリストについては、「」を参照してください[AWS SDK での Amazon Glacier の使用](sdk-general-information-section.md)。このトピックには、使用開始方法に関する情報と、以前の SDK バージョンの詳細も含まれています。

**Contents**
+ [基本](service_code_examples_basics.md)
  + [Hello Amazon Glacier](example_glacier_Hello_section.md)
  + [アクション](service_code_examples_actions.md)
    + [`AddTagsToVault`](example_glacier_AddTagsToVault_section.md)
    + [`CreateVault`](example_glacier_CreateVault_section.md)
    + [`DeleteArchive`](example_glacier_DeleteArchive_section.md)
    + [`DeleteVault`](example_glacier_DeleteVault_section.md)
    + [`DeleteVaultNotifications`](example_glacier_DeleteVaultNotifications_section.md)
    + [`DescribeJob`](example_glacier_DescribeJob_section.md)
    + [`DescribeVault`](example_glacier_DescribeVault_section.md)
    + [`GetJobOutput`](example_glacier_GetJobOutput_section.md)
    + [`GetVaultNotifications`](example_glacier_GetVaultNotifications_section.md)
    + [`InitiateJob`](example_glacier_InitiateJob_section.md)
    + [`ListJobs`](example_glacier_ListJobs_section.md)
    + [`ListTagsForVault`](example_glacier_ListTagsForVault_section.md)
    + [`ListVaults`](example_glacier_ListVaults_section.md)
    + [`SetVaultNotifications`](example_glacier_SetVaultNotifications_section.md)
    + [`UploadArchive`](example_glacier_UploadArchive_section.md)
    + [`UploadMultipartPart`](example_glacier_UploadMultipartPart_section.md)
+ [シナリオ](service_code_examples_scenarios.md)
  + [ファイルのアーカイブ、通知の取得、ジョブの開始](example_glacier_Usage_UploadNotifyInitiate_section.md)
  + [アーカイブコンテンツの取得とアーカイブの削除](example_glacier_Usage_RetrieveDelete_section.md)