

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

# ElastiCache パラメータグループを作成する
<a name="ParameterGroups.Creating"></a>

デフォルト値から変更するパラメータの値が 1 つ以上ある場合、新しいパラメータグループを作成する必要があります。ElastiCache コンソール、AWS CLI、または ElastiCache API を使用して、パラメータグループを作成できます。

## ElastiCache パラメータグループを作成する (コンソール)
<a name="ParameterGroups.Creating.CON"></a>

次の手順では、ElastiCache コンソールを使用してパラメータグループを編集する方法を示します。

**ElastiCache コンソールを使用してパラメータグループを作成するには**

1. AWS マネジメントコンソール にサインインして、ElastiCache コンソール ([https://console.aws.amazon.com/elasticache/](https://console.aws.amazon.com/elasticache/)) を開きます。

1. 使用可能なすべてのパラメータグループのリストを表示するには、左側のナビゲーションペインで [**Parameter Groups**] を選択します。

1. パラメータグループを作成するには、[**Create Parameter Group**] を選択します。

   [**Create Parameter Group**] 画面が表示されます。

1. [**Family**] のリストから、パラメータグループのテンプレートとなるパラメータグループファミリーを選択します。

   *memcached1.4* や *redis3.2* などのパラメータグループファミリーは、パラメータグループの実際のパラメータとその初期値を定義します。パラメータグループファミリーは、クラスターのエンジンおよびバージョンと一致している必要があります。

1. **Name** ボックスで、このパラメータグループの一意の名前を入力します。

   クラスターを作成、またはクラスターのパラメータグループを変更するときは、パラメータグループを名前で選択します。したがって、わかりやすくパラメータグループのファミリーを特定するのに役立つ名前をお勧めします。

   パラメータグループの命名に関する制約は次のとおりです。
   + 先頭を ASCII 文字にする必要があります。
   + ASCII 文字、数字、ハイフンのみを含めることができます。
   + 1～255 文字にする必要があります。
   + 連続する 2 つのハイフンを含めることはできません。
   + ハイフンで終わることはできません。

1. **Description** ボックスに、パラメータグループの説明を入力します。

1. パラメータグループを作成するには、作成**** を選択します。

   パラメータグループを作成しないでプロセスを終了するには、**Cancel** を選択します。

1. パラメータグループが作成されると、ファミリーのデフォルト値が設定されます。デフォルト値を変更するには、パラメータグループを変更する必要があります。詳細については、「[ElastiCache パラメータグループを変更する](ParameterGroups.Modifying.md)」を参照してください。

## ElastiCache パラメータグループを作成する (AWS CLI)
<a name="ParameterGroups.Creating.CLI"></a>

AWS CLI を使用してパラメータグループを作成するには、以下のパラメータを指定して `create-cache-parameter-group` コマンドを使用します。
+ `--cache-parameter-group-name` — パラメータグループの名前。

  パラメータグループの命名に関する制約は次のとおりです。
  + 先頭を ASCII 文字にする必要があります。
  + ASCII 文字、数字、ハイフンのみを含めることができます。
  + 1～255 文字にする必要があります。
  + 連続する 2 つのハイフンを含めることはできません。
  + ハイフンで終わることはできません。
+ `--cache-parameter-group-family` — パラメータグループのエンジンとバージョンファミリー。
+ `--description` — パラメータグループについてユーザーが入力する説明。

**Example**  
次の例では、memcached1.4 ファミリーをテンプレートとして使用して、*myMem14* という名前のパラメータグループを作成します。  
Linux、macOS、Unix の場合:  

```
aws elasticache create-cache-parameter-group \
    --cache-parameter-group-name myMem14  \
    --cache-parameter-group-family memcached1.4 \
    --description "My first parameter group"
```
Windows の場合:  

```
aws elasticache create-cache-parameter-group ^
    --cache-parameter-group-name myMem14  ^
    --cache-parameter-group-family memcached1.4 ^
    --description "My first parameter group"
```
このコマンドの出力は次のようになります。  

```
{
    "CacheParameterGroup": {
        "CacheParameterGroupName": "myMem14", 
        "CacheParameterGroupFamily": "memcached1.4", 
        "Description": "My first  parameter group"
    }
}
```

**Example**  
次の例では、redis2.8 ファミリーをテンプレートとして使用して、*myRed28* という名前のパラメータグループを作成します。  
Linux、macOS、Unix の場合:  

```
aws elasticache create-cache-parameter-group \
    --cache-parameter-group-name myRed28  \
    --cache-parameter-group-family redis2.8 \
    --description "My first parameter group"
```
Windows の場合:  

```
aws elasticache create-cache-parameter-group ^
    --cache-parameter-group-name myRed28  ^
    --cache-parameter-group-family redis2.8 ^
    --description "My first parameter group"
```
このコマンドの出力は次のようになります。  

```
{
    "CacheParameterGroup": {
        "CacheParameterGroupName": "myRed28", 
        "CacheParameterGroupFamily": "redis2.8", 
        "Description": "My first parameter group"
    }
}
```

パラメータグループが作成されると、ファミリーのデフォルト値が設定されます。デフォルト値を変更するには、パラメータグループを変更する必要があります。詳細については、「[ElastiCache パラメータグループを変更する](ParameterGroups.Modifying.md)」を参照してください。

詳細については、[ を参照してください。`create-cache-parameter-group`](https://docs.aws.amazon.com/cli/latest/reference/elasticache/create-cache-parameter-group.html)

## ElastiCache パラメータグループを作成する (ElastiCache API)
<a name="ParameterGroups.Creating.API"></a>

ElastiCache API を使用してパラメータグループを作成するには、以下のパラメータを指定して `CreateCacheParameterGroup` アクションを使用します。
+ `ParameterGroupName` — パラメータグループの名前。

  パラメータグループの命名に関する制約は次のとおりです。
  + 先頭を ASCII 文字にする必要があります。
  + ASCII 文字、数字、ハイフンのみを含めることができます。
  + 1～255 文字にする必要があります。
  + 連続する 2 つのハイフンを含めることはできません。
  + ハイフンで終わることはできません。
+ `CacheParameterGroupFamily` — パラメータグループのエンジンとバージョンファミリー。例えば、`memcached1.4`。
+ `CacheParameterGroupFamily` — パラメータグループのエンジンとバージョンファミリー。例えば、`redis2.8`。
+ `Description` — パラメータグループについてユーザーが入力する説明。

**Example**  
次の例では、memcached1.4 ファミリーをテンプレートとして使用して、*myMem14* という名前のパラメータグループを作成します。  

```
https://elasticache.us-west-2.amazonaws.com/
   ?Action=CreateCacheParameterGroup
   &CacheParameterGroupFamily=memcached1.4
   &CacheParameterGroupName=myMem14
   &Description=My%20first%20parameter%20group
   &SignatureVersion=4
   &SignatureMethod=HmacSHA256
   &Timestamp=20150202T192317Z
   &Version=2015-02-02
   &X-Amz-Credential=<credential>
```
このアクションからの応答は、次のようになります。  

```
<CreateCacheParameterGroupResponse xmlns="http://elasticache.amazonaws.com/doc/2013-06-15/">
  <CreateCacheParameterGroupResult>
    <CacheParameterGroup>
      <CacheParameterGroupName>myMem14</CacheParameterGroupName>
      <CacheParameterGroupFamily>memcached1.4</CacheParameterGroupFamily>
      <Description>My first  parameter group</Description>
    </CacheParameterGroup>
  </CreateCacheParameterGroupResult>
  <ResponseMetadata>
    <RequestId>d8465952-af48-11e0-8d36-859edca6f4b8</RequestId>
  </ResponseMetadata>
</CreateCacheParameterGroupResponse>
```

**Example**  
次の例では、redis2.8 ファミリーをテンプレートとして使用して、*myRed28* という名前のパラメータグループを作成します。  

```
https://elasticache.us-west-2.amazonaws.com/
   ?Action=CreateCacheParameterGroup
   &CacheParameterGroupFamily=redis2.8
   &CacheParameterGroupName=myRed28
   &Description=My%20first%20parameter%20group
   &SignatureVersion=4
   &SignatureMethod=HmacSHA256
   &Timestamp=20150202T192317Z
   &Version=2015-02-02
   &X-Amz-Credential=<credential>
```
このアクションからの応答は、次のようになります。  

```
<CreateCacheParameterGroupResponse xmlns="http://elasticache.amazonaws.com/doc/2013-06-15/">
  <CreateCacheParameterGroupResult>
    <CacheParameterGroup>
      <CacheParameterGroupName>myRed28</CacheParameterGroupName>
      <CacheParameterGroupFamily>redis2.8</CacheParameterGroupFamily>
      <Description>My first parameter group</Description>
    </CacheParameterGroup>
  </CreateCacheParameterGroupResult>
  <ResponseMetadata>
    <RequestId>d8465952-af48-11e0-8d36-859edca6f4b8</RequestId>
  </ResponseMetadata>
</CreateCacheParameterGroupResponse>
```

パラメータグループが作成されると、ファミリーのデフォルト値が設定されます。デフォルト値を変更するには、パラメータグループを変更する必要があります。詳細については、「[ElastiCache パラメータグループを変更する](ParameterGroups.Modifying.md)」を参照してください。

詳細については、[ を参照してください。`CreateCacheParameterGroup`](https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_CreateCacheParameterGroup.html)