CreateSchema
Generates a schema file for a specified table or view, detailing its structure and attributes for use in DynamoDB operations.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Accepts Output Streams | Description |
| TableName | String | True | False | Specifies the name of the table or view for which the schema is being created. This is a required input for schema generation. |
| FileName | String | False | False | The full file path and name where the generated schema will be saved. If not provided, the schema will be returned in the FileData output instead. 'C:\\Users\\User\\Desktop\\table.rsd' |
| FileStream | String | False | True | A writable output stream where the schema data will be written if FileName is not set. This allows direct streaming of the schema data. |
Result Set Columns
| Name | Type | Description |
| Result | String | Indicates whether the schema creation was successful or failed. Possible values are 'Success' or 'Failure'. |
| FileData | String | The generated schema encoded in Base64 format. This output is only provided when FileName is not specified, allowing the schema to be handled programmatically. |