

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

# AWS Command Line Interface AWS SDKsの使用
<a name="home-folders-admin-cli"></a>

または AWS SDKs を使用して、スタックのホームフォルダを有効 AWS CLI または無効にできます。

次の [create-stack](https://docs.aws.amazon.com/cli/latest/reference/appstream/create-stack.html) コマンドを使用して、新しいスタックを作成中にホームフォルダを有効にできます。

```
aws appstream create-stack --name ExampleStack --storage-connectors ConnectorType=HOMEFOLDERS
```

次の [update-stack](https://docs.aws.amazon.com/cli/latest/reference/appstream/update-stack.html) コマンドを使用して、既存のスタックに対するホームフォルダを有効にできます。

```
aws appstream update-stack --name ExistingStack --storage-connectors ConnectorType=HOMEFOLDERS
```

次のコマンドを使用して、既存のスタックに対するホームフォルダを無効にできます。このコマンドによりユーザーデータは削除されません。

```
aws appstream update-stack --name ExistingStack --delete-storage-connectors
```