

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

# Amazon Keyspaces (Apache Cassandra 向け) のライブラリとツール
<a name="examples-tools"></a>

このセクションでは、Amazon Keyspaces (Apache Cassandra 向け) のライブラリ、コード例およびツールについて説明します。

**Topics**
+ [ライブラリと例](#examples)
+ [ハイライトされたサンプルおよびデベロッパーツールのリポジトリ](#highlights)

## ライブラリと例
<a name="examples"></a>

Amazon Keyspaces のオープンソースライブラリとデベロッパーツールは、[AWS](https://github.com/aws) と [AWS サンプル](https://github.com/aws-samples) リポジトリの GitHub にあります。

### Amazon Keyspaces (Apache Cassandra 向け) のデベロッパーツールキット
<a name="docker-container"></a>

このリポジトリには、Amazon Keyspaces の便利なデベロッパーツールを備えた Docker イメージがあります。例えば、ベストプラクティスを含む CQLSHRC ファイル、cqlsh のオプションの AWS 認証拡張、一般的なタスクを実行するヘルパーツールが含まれています。このツールキットは Amazon Keyspaces 用に最適化されていますが、Apache Cassandra クラスターでも機能します。

[https://github.com/aws-samples/amazon-keyspaces-toolkit](https://github.com/aws-samples/amazon-keyspaces-toolkit).

### Amazon Keyspaces (Apache Cassandra 向け) の事例
<a name="code-examples"></a>

このリポジトリは、Amazon Keyspaces サンプルコードの公式リストです。このリポジトリは言語別にセクションに細分されます (「[事例](https://github.com/aws-samples/amazon-keyspaces-examples#Examples/)」を参照)。各言語には独自の事例サブセクションがあります。これらの事例では、アプリケーションを構築する際に使用できる一般的な Amazon Keyspaces サービスの実装とパターンが示されています。

[https://github.com/aws-samples/amazon-keyspaces-examples/](https://github.com/aws-samples/amazon-keyspaces-examples/).

### AWS 署名バージョン 4 (SigV4) 認証プラグイン
<a name="auth-plugins"></a>

プラグインを使用すると、 AWS Identity and Access Management (IAM) ユーザーとロールを使用して Amazon Keyspaces へのアクセスを管理できます。

Java: [https://github.com/aws/aws-sigv4-auth-cassandra-java-driver-plugin](https://github.com/aws/aws-sigv4-auth-cassandra-java-driver-plugin)。

Node.js: [https://github.com/aws/aws-sigv4-auth-cassandra-nodejs-driver-plugin](https://github.com/aws/aws-sigv4-auth-cassandra-nodejs-driver-plugin)。

Python: [https://github.com/aws/aws-sigv4-auth-cassandra-python-driver-plugin](https://github.com/aws/aws-sigv4-auth-cassandra-python-driver-plugin)。

Go: [https://github.com/aws/aws-sigv4-auth-cassandra-gocql-driver-plugin](https://github.com/aws/aws-sigv4-auth-cassandra-gocql-driver-plugin)。

## ハイライトされたサンプルおよびデベロッパーツールのリポジトリ
<a name="highlights"></a>

以下は、Amazon Keyspaces (Apache Cassandra 向け) に役立つコミュニティツールのセレクションです。

### Amazon Keyspaces のプロトコルバッファ
<a name="protocol_buffers"></a>

Amazon Keyspaces でプロトコルバッファ (Protobuf) を使用すると、Apache Cassandra ユーザー定義タイプ (UDT) に代わる定義タイプを提供できます。Protobuf は、構造化データのシリアル化に使用する無料のオープンソースのクロスプラットフォームデータ形式です。アプリケーションやプログラミング言語全体で構造化データを保持しながら、CQL `BLOB` データ型とリファクタリング UDT を使用して Protobuf データを保存できます。

このリポジトリには、Amazon Keyspaces に接続し、新しいテーブルを作成し、Protobufメッセージを含む行を挿入するコード例が用意されています。その後、その行は強一貫性を保ちながら読み込まれます。

[https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/protobuf-user-defined-types](https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/protobuf-user-defined-types)

### CloudFormation Amazon Keyspaces (Apache Cassandra 向け) メトリクス用の Amazon CloudWatch ダッシュボードを作成するための テンプレート
<a name="dashboard"></a>

このリポジトリには、Amazon Keyspaces の CloudWatch メトリクスをすばやくセットアップするための CloudFormation テンプレートが用意されています。このテンプレートを使用すると、デプロイ可能な事前構築済み CloudWatch ダッシュボードに一般的に使用されるメトリクスを取り入れることができるので、より簡単に使用を開始できます。

[https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates](https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates).

### での Amazon Keyspaces (Apache Cassandra 向け) の使用 AWS Lambda
<a name="lambda"></a>

リポジトリには、Lambda から Amazon Keyspaces に接続する方法が示されている事例が含まれています。以下に一部の例を示します。

C\$1/.NET: [https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/dotnet/datastax-v3/connection-lambda](https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/dotnet/datastax-v3/connection-lambda)。

Java: [https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/connection-lambda](https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/connection-lambda)。

Python Lambda から Amazon Keyspaces をデプロイして使用する方法を示した Lambda 例がもう 1 つあり、次のリポジトリから入手できます。

[https://github.com/aws-samples/aws-keyspaces-lambda-python](https://github.com/aws-samples/aws-keyspaces-lambda-python)

### Spring と Amazon Keyspaces (Apache Cassandra 向け) の使用
<a name="spring"></a>

これは Spring Boot とともに Amazon Keyspaces を使用する方法の例です。

[https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/spring](https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/spring)

### Scala と Amazon Keyspaces (Apache Cassandra 向け) の使用
<a name="scala"></a>

これは、Scala とともに SigV4 認証プラグインを使用して Amazon Keyspaces に接続する方法を示した例です。

[https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/scala/datastax-v4/connection-sigv4](https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/scala/datastax-v4/connection-sigv4)

### での Amazon Keyspaces (Apache Cassandra 向け) の使用 AWS Glue
<a name="glue"></a>

これは、 で Amazon Keyspaces を使用する方法を示す例です AWS Glue。

[https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/scala/datastax-v4/aws-glue](https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/scala/datastax-v4/aws-glue)

### Amazon Keyspaces (Apache Cassandra 向け) Cassandra クエリ言語 (CQL) から CloudFormation コンバーターへ
<a name="cfn-converter"></a>

本パッケージは、Apache Cassandra クエリ言語 (CQL) スクリプトを CloudFormation (CloudFormation) テンプレートに変換するコマンドラインツールを実装するものです。このツールを使えば、Amazon Keyspaces のスキーマを CloudFormation スタックで簡単に管理できます。

[https://github.com/aws/amazon-keyspaces-cql-to-cfn-converter](https://github.com/aws/amazon-keyspaces-cql-to-cfn-converter).

### Java 向け Apache Cassandra ドライバーの Amazon Keyspaces (Apache Cassandra 向け) ヘルパー
<a name="java"></a>

このリポジトリには、DataStax Java ドライバーを Amazon Keyspaces (Apache Cassandra 向け) で使用する場合のドライバーポリシー、例、およびベストプラクティスが含まれています。

[https://github.com/aws-samples/amazon-keyspaces-java-driver-helpers](https://github.com/aws-samples/amazon-keyspaces-java-driver-helpers).

### Amazon Keyspaces (Apache Cassandra 向け) 圧縮の簡単なデモ
<a name="compression"></a>

このリポジトリは、パフォーマンスの向上およびスループットとストレージのコスト削減を実現できる、大きなオブジェクトの圧縮、保存、読み取り/書き込み方法を示しています。

[https://github.com/aws-samples/amazon-keyspaces-compression-example](https://github.com/aws-samples/amazon-keyspaces-compression-example).

### Amazon Keyspaces (Apache Cassandra 向け) と Amazon S3 Codec のデモ
<a name="S3-codec"></a>

カスタムの Amazon S3 Codec では、Amazon S3 オブジェクトに対する UUID ポインターのユーザー設定可能な透過的マッピングがサポートされています。

[https://github.com/aws-samples/amazon-keyspaces-large-object-s3-demo](https://github.com/aws-samples/amazon-keyspaces-large-object-s3-demo).