

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Contoh Elastic Beanstalk menggunakan AWS CLI
<a name="cli_elastic-beanstalk_code_examples"></a>

Contoh kode berikut menunjukkan cara melakukan tindakan dan mengimplementasikan skenario umum dengan menggunakan AWS Command Line Interface with Elastic Beanstalk.

*Tindakan* merupakan kutipan kode dari program yang lebih besar dan harus dijalankan dalam konteks. Sementara tindakan menunjukkan cara memanggil fungsi layanan individual, Anda dapat melihat tindakan dalam konteks dalam skenario terkait.

Setiap contoh menyertakan tautan ke kode sumber lengkap, di mana Anda dapat menemukan instruksi tentang cara mengatur dan menjalankan kode dalam konteks.

**Topics**
+ [Tindakan](#actions)

## Tindakan
<a name="actions"></a>

### `abort-environment-update`
<a name="elastic-beanstalk_AbortEnvironmentUpdate_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`abort-environment-update`.

**AWS CLI**  
**Untuk membatalkan penerapan**  
Perintah berikut membatalkan penerapan versi aplikasi yang sedang berjalan untuk lingkungan bernama: `my-env`  

```
aws elasticbeanstalk abort-environment-update --environment-name my-env
```
+  Untuk detail API, lihat [AbortEnvironmentUpdate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/abort-environment-update.html)di *Referensi AWS CLI Perintah*. 

### `check-dns-availability`
<a name="elastic-beanstalk_CheckDnsAvailability_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`check-dns-availability`.

**AWS CLI**  
**Untuk memeriksa ketersediaan CNAME**  
Perintah berikut memeriksa ketersediaan subdomain`my-cname.elasticbeanstalk.com`:  

```
aws elasticbeanstalk check-dns-availability --cname-prefix my-cname
```
Output:  

```
{
    "Available": true,
    "FullyQualifiedCNAME": "my-cname.elasticbeanstalk.com"
}
```
+  Untuk detail API, lihat [CheckDnsAvailability](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/check-dns-availability.html)di *Referensi AWS CLI Perintah*. 

### `create-application-version`
<a name="elastic-beanstalk_CreateApplicationVersion_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-application-version`.

**AWS CLI**  
**Untuk membuat versi aplikasi baru**  
Perintah berikut membuat versi baru, “v1" dari aplikasi bernama" MyApp “:  

```
aws elasticbeanstalk create-application-version --application-name MyApp --version-label v1 --description MyAppv1 --source-bundle S3Bucket="amzn-s3-demo-bucket",S3Key="sample.war" --auto-create-application
```
Aplikasi akan dibuat secara otomatis jika belum ada, karena auto-create-application opsi. Bundel sumber adalah file.war yang disimpan dalam bucket s3 bernama “amzn-s3-demo-bucket” yang berisi aplikasi sampel Apache Tomcat.  
Output:  

```
{
  "ApplicationVersion": {
      "ApplicationName": "MyApp",
      "VersionLabel": "v1",
      "Description": "MyAppv1",
      "DateCreated": "2015-02-03T23:01:25.412Z",
      "DateUpdated": "2015-02-03T23:01:25.412Z",
      "SourceBundle": {
          "S3Bucket": "amzn-s3-demo-bucket",
          "S3Key": "sample.war"
      }
  }
}
```
+  Untuk detail API, lihat [CreateApplicationVersion](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/create-application-version.html)di *Referensi AWS CLI Perintah*. 

### `create-application`
<a name="elastic-beanstalk_CreateApplication_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-application`.

**AWS CLI**  
**Untuk membuat aplikasi baru**  
Perintah berikut membuat aplikasi baru bernama "MyApp“:  

```
aws elasticbeanstalk create-application --application-name MyApp --description "my application"
```
`create-application`Perintah hanya mengkonfigurasi nama dan deskripsi aplikasi. Untuk mengunggah kode sumber untuk aplikasi, buat versi awal aplikasi menggunakan`create-application-version`. `create-application-version`juga memiliki `auto-create-application` opsi yang memungkinkan Anda membuat aplikasi dan versi aplikasi dalam satu langkah.  
Output:  

```
{
  "Application": {
      "ApplicationName": "MyApp",
      "ConfigurationTemplates": [],
      "DateUpdated": "2015-02-12T18:32:21.181Z",
      "Description": "my application",
      "DateCreated": "2015-02-12T18:32:21.181Z"
  }
}
```
+  Untuk detail API, lihat [CreateApplication](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/create-application.html)di *Referensi AWS CLI Perintah*. 

### `create-configuration-template`
<a name="elastic-beanstalk_CreateConfigurationTemplate_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-configuration-template`.

**AWS CLI**  
**Untuk membuat template konfigurasi**  
Perintah berikut membuat template konfigurasi bernama `my-app-v1` dari pengaturan yang diterapkan ke lingkungan dengan id`e-rpqsewtp2j`:  

```
aws elasticbeanstalk create-configuration-template --application-name my-app --template-name my-app-v1 --environment-id e-rpqsewtp2j
```
Output:  

```
{
    "ApplicationName": "my-app",
    "TemplateName": "my-app-v1",
    "DateCreated": "2015-08-12T18:40:39Z",
    "DateUpdated": "2015-08-12T18:40:39Z",
    "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8"
}
```
+  Untuk detail API, lihat [CreateConfigurationTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/create-configuration-template.html)di *Referensi AWS CLI Perintah*. 

### `create-environment`
<a name="elastic-beanstalk_CreateEnvironment_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-environment`.

**AWS CLI**  
**Untuk membuat lingkungan baru untuk aplikasi**  
Perintah berikut menciptakan lingkungan baru untuk versi “v1" dari aplikasi java bernama “my-app”:  

```
aws elasticbeanstalk create-environment --application-name my-app --environment-name my-env --cname-prefix my-app --version-label v1 --solution-stack-name "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8"
```
Output:  

```
{
  "ApplicationName": "my-app",
  "EnvironmentName": "my-env",
  "VersionLabel": "v1",
  "Status": "Launching",
  "EnvironmentId": "e-izqpassy4h",
  "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8",
  "CNAME": "my-app.elasticbeanstalk.com",
  "Health": "Grey",
  "Tier": {
      "Type": "Standard",
      "Name": "WebServer",
      "Version": " "
  },
  "DateUpdated": "2015-02-03T23:04:54.479Z",
  "DateCreated": "2015-02-03T23:04:54.479Z"
}
```
`v1`adalah label dari versi aplikasi yang sebelumnya diunggah dengan create-application-version.  
**Untuk menentukan file JSON untuk menentukan opsi konfigurasi lingkungan**  
`create-environment`Perintah berikut menentukan bahwa file JSON dengan nama `myoptions.json` harus digunakan untuk mengganti nilai yang diperoleh dari tumpukan solusi atau template konfigurasi:  

```
aws elasticbeanstalk create-environment --environment-name sample-env --application-name sampleapp --option-settings file://myoptions.json
```
`myoptions.json`adalah objek JSON yang mendefinisikan beberapa pengaturan:  

```
[
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "Interval",
    "Value": "15"
  },
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "Timeout",
    "Value": "8"
  },
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "HealthyThreshold",
    "Value": "2"
  },
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "UnhealthyThreshold",
    "Value": "3"
  }
]
```
Untuk informasi selengkapnya, lihat Nilai Opsi dalam Panduan Pengembang *AWS Elastic Beanstalk*.  
+  Untuk detail API, lihat [CreateEnvironment](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/create-environment.html)di *Referensi AWS CLI Perintah*. 

### `create-storage-location`
<a name="elastic-beanstalk_CreateStorageLocation_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-storage-location`.

**AWS CLI**  
**Untuk membuat lokasi penyimpanan**  
Perintah berikut membuat lokasi penyimpanan di Amazon S3:  

```
aws elasticbeanstalk create-storage-location
```
Output:  

```
{
    "S3Bucket": "elasticbeanstalk-us-west-2-0123456789012"
}
```
+  Untuk detail API, lihat [CreateStorageLocation](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/create-storage-location.html)di *Referensi AWS CLI Perintah*. 

### `delete-application-version`
<a name="elastic-beanstalk_DeleteApplicationVersion_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-application-version`.

**AWS CLI**  
**Untuk menghapus versi aplikasi**  
Perintah berikut menghapus versi aplikasi bernama `22a0-stage-150819_182129` untuk aplikasi bernama`my-app`:  

```
aws elasticbeanstalk delete-application-version --version-label 22a0-stage-150819_182129 --application-name my-app
```
+  Untuk detail API, lihat [DeleteApplicationVersion](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/delete-application-version.html)di *Referensi AWS CLI Perintah*. 

### `delete-application`
<a name="elastic-beanstalk_DeleteApplication_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-application`.

**AWS CLI**  
**Untuk menghapus aplikasi**  
Perintah berikut menghapus aplikasi bernama`my-app`:  

```
aws elasticbeanstalk delete-application --application-name my-app
```
+  Untuk detail API, lihat [DeleteApplication](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/delete-application.html)di *Referensi AWS CLI Perintah*. 

### `delete-configuration-template`
<a name="elastic-beanstalk_DeleteConfigurationTemplate_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-configuration-template`.

**AWS CLI**  
**Untuk menghapus template konfigurasi**  
Perintah berikut menghapus template konfigurasi bernama `my-template` untuk aplikasi bernama`my-app`:  

```
aws elasticbeanstalk delete-configuration-template --template-name my-template --application-name my-app
```
+  Untuk detail API, lihat [DeleteConfigurationTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/delete-configuration-template.html)di *Referensi AWS CLI Perintah*. 

### `delete-environment-configuration`
<a name="elastic-beanstalk_DeleteEnvironmentConfiguration_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-environment-configuration`.

**AWS CLI**  
**Untuk menghapus konfigurasi draf**  
Perintah berikut menghapus konfigurasi draf untuk lingkungan bernama`my-env`:  

```
aws elasticbeanstalk delete-environment-configuration --environment-name my-env --application-name my-app
```
+  Untuk detail API, lihat [DeleteEnvironmentConfiguration](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/delete-environment-configuration.html)di *Referensi AWS CLI Perintah*. 

### `describe-application-versions`
<a name="elastic-beanstalk_DescribeApplicationVersions_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-application-versions`.

**AWS CLI**  
**Untuk melihat informasi tentang versi aplikasi**  
Perintah berikut mengambil informasi tentang versi aplikasi berlabel`v2`:  

```
aws elasticbeanstalk describe-application-versions --application-name my-app --version-label "v2"
```
Output:  

```
{
    "ApplicationVersions": [
        {
            "ApplicationName": "my-app",
            "VersionLabel": "v2",
            "Description": "update cover page",
            "DateCreated": "2015-07-23T01:32:26.079Z",
            "DateUpdated": "2015-07-23T01:32:26.079Z",
            "SourceBundle": {
                "S3Bucket": "elasticbeanstalk-us-west-2-015321684451",
                "S3Key": "my-app/5026-stage-150723_224258.war"
            }
        },
      {
          "ApplicationName": "my-app",
          "VersionLabel": "v1",
          "Description": "initial version",
          "DateCreated": "2015-07-23T22:26:10.816Z",
          "DateUpdated": "2015-07-23T22:26:10.816Z",
          "SourceBundle": {
              "S3Bucket": "elasticbeanstalk-us-west-2-015321684451",
              "S3Key": "my-app/5026-stage-150723_222618.war"
          }
      }
    ]
}
```
+  Untuk detail API, lihat [DescribeApplicationVersions](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-application-versions.html)di *Referensi AWS CLI Perintah*. 

### `describe-applications`
<a name="elastic-beanstalk_DescribeApplications_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-applications`.

**AWS CLI**  
**Untuk melihat daftar aplikasi**  
Perintah berikut mengambil informasi tentang aplikasi di wilayah saat ini:  

```
aws elasticbeanstalk describe-applications
```
Output:  

```
{
    "Applications": [
        {
            "ApplicationName": "ruby",
            "ConfigurationTemplates": [],
            "DateUpdated": "2015-08-13T21:05:44.376Z",
            "Versions": [
                "Sample Application"
            ],
            "DateCreated": "2015-08-13T21:05:44.376Z"
        },
        {
            "ApplicationName": "pythonsample",
            "Description": "Application created from the EB CLI using \"eb init\"",
            "Versions": [
                "Sample Application"
            ],
            "DateCreated": "2015-08-13T19:05:43.637Z",
            "ConfigurationTemplates": [],
            "DateUpdated": "2015-08-13T19:05:43.637Z"
        },
        {
            "ApplicationName": "nodejs-example",
            "ConfigurationTemplates": [],
            "DateUpdated": "2015-08-06T17:50:02.486Z",
            "Versions": [
                "add elasticache",
                "First Release"
            ],
            "DateCreated": "2015-08-06T17:50:02.486Z"
        }
    ]
}
```
+  Untuk detail API, lihat [DescribeApplications](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-applications.html)di *Referensi AWS CLI Perintah*. 

### `describe-configuration-options`
<a name="elastic-beanstalk_DescribeConfigurationOptions_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-configuration-options`.

**AWS CLI**  
**Untuk melihat opsi konfigurasi untuk lingkungan**  
Perintah berikut mengambil deskripsi dari semua opsi konfigurasi yang tersedia untuk lingkungan bernama: `my-env`  

```
aws elasticbeanstalk describe-configuration-options --environment-name my-env --application-name my-app
```
Output (disingkat):  

```
{
    "Options": [
        {
            "Name": "JVMOptions",
            "UserDefined": false,
            "DefaultValue": "Xms=256m,Xmx=256m,XX:MaxPermSize=64m,JVM Options=",
            "ChangeSeverity": "RestartApplicationServer",
            "Namespace": "aws:cloudformation:template:parameter",
            "ValueType": "KeyValueList"
        },
        {
            "Name": "Interval",
            "UserDefined": false,
            "DefaultValue": "30",
            "ChangeSeverity": "NoInterruption",
            "Namespace": "aws:elb:healthcheck",
            "MaxValue": 300,
            "MinValue": 5,
            "ValueType": "Scalar"
        },
        ...
        {
            "Name": "LowerThreshold",
            "UserDefined": false,
            "DefaultValue": "2000000",
            "ChangeSeverity": "NoInterruption",
            "Namespace": "aws:autoscaling:trigger",
            "MinValue": 0,
            "ValueType": "Scalar"
        },
        {
            "Name": "ListenerEnabled",
            "UserDefined": false,
            "DefaultValue": "true",
            "ChangeSeverity": "Unknown",
            "Namespace": "aws:elb:listener",
            "ValueType": "Boolean"
        }
    ]
}
```
Opsi konfigurasi yang tersedia bervariasi per platform dan versi konfigurasi. Untuk informasi selengkapnya tentang ruang nama dan opsi yang didukung, lihat Nilai Opsi dalam Panduan Pengembang Elastic *AWS Beanstalk*.  
+  Untuk detail API, lihat [DescribeConfigurationOptions](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-configuration-options.html)di *Referensi AWS CLI Perintah*. 

### `describe-configuration-settings`
<a name="elastic-beanstalk_DescribeConfigurationSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-configuration-settings`.

**AWS CLI**  
**Untuk melihat pengaturan konfigurasi untuk lingkungan**  
Perintah berikut mengambil pengaturan konfigurasi untuk lingkungan bernama`my-env`:  

```
aws elasticbeanstalk describe-configuration-settings --environment-name my-env --application-name my-app
```
Output (disingkat):  

```
{
    "ConfigurationSettings": [
        {
            "ApplicationName": "my-app",
            "EnvironmentName": "my-env",
            "Description": "Environment created from the EB CLI using \"eb create\"",
            "DeploymentStatus": "deployed",
            "DateCreated": "2015-08-13T19:16:25Z",
            "OptionSettings": [
                {
                    "OptionName": "Availability Zones",
                    "ResourceName": "AWSEBAutoScalingGroup",
                    "Namespace": "aws:autoscaling:asg",
                    "Value": "Any"
                },
                {
                    "OptionName": "Cooldown",
                    "ResourceName": "AWSEBAutoScalingGroup",
                    "Namespace": "aws:autoscaling:asg",
                    "Value": "360"
                },
                ...
                {
                    "OptionName": "ConnectionDrainingTimeout",
                    "ResourceName": "AWSEBLoadBalancer",
                    "Namespace": "aws:elb:policies",
                    "Value": "20"
                },
                {
                    "OptionName": "ConnectionSettingIdleTimeout",
                    "ResourceName": "AWSEBLoadBalancer",
                    "Namespace": "aws:elb:policies",
                    "Value": "60"
                }
            ],
            "DateUpdated": "2015-08-13T23:30:07Z",
            "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8"
        }
    ]
}
```
Untuk informasi selengkapnya tentang ruang nama dan opsi yang didukung, lihat Nilai Opsi dalam Panduan Pengembang Elastic *AWS Beanstalk*.  
+  Untuk detail API, lihat [DescribeConfigurationSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-configuration-settings.html)di *Referensi AWS CLI Perintah*. 

### `describe-environment-health`
<a name="elastic-beanstalk_DescribeEnvironmentHealth_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-environment-health`.

**AWS CLI**  
**Untuk melihat kesehatan lingkungan**  
Perintah berikut mengambil informasi kesehatan secara keseluruhan untuk lingkungan bernama`my-env`:  

```
aws elasticbeanstalk describe-environment-health --environment-name my-env --attribute-names All
```
Output:  

```
{
    "Status": "Ready",
    "EnvironmentName": "my-env",
    "Color": "Green",
    "ApplicationMetrics": {
        "Duration": 10,
        "Latency": {
            "P99": 0.004,
            "P75": 0.002,
            "P90": 0.003,
            "P95": 0.004,
            "P85": 0.003,
            "P10": 0.001,
            "P999": 0.004,
            "P50": 0.001
        },
        "RequestCount": 45,
        "StatusCodes": {
            "Status3xx": 0,
            "Status2xx": 45,
            "Status5xx": 0,
            "Status4xx": 0
        }
    },
    "RefreshedAt": "2015-08-20T21:09:18Z",
    "HealthStatus": "Ok",
    "InstancesHealth": {
        "Info": 0,
        "Ok": 1,
        "Unknown": 0,
        "Severe": 0,
        "Warning": 0,
        "Degraded": 0,
        "NoData": 0,
        "Pending": 0
    },
    "Causes": []
}
```
Informasi Kesehatan hanya tersedia untuk lingkungan dengan pelaporan kesehatan yang ditingkatkan diaktifkan. Untuk informasi lebih lanjut, lihat Pelaporan dan Pemantauan Kesehatan yang Ditingkatkan di Panduan Pengembang *AWS Elastic Beanstalk*.  
+  Untuk detail API, lihat [DescribeEnvironmentHealth](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-environment-health.html)di *Referensi AWS CLI Perintah*. 

### `describe-environment-resources`
<a name="elastic-beanstalk_DescribeEnvironmentResources_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-environment-resources`.

**AWS CLI**  
**Untuk melihat informasi tentang AWS sumber daya di lingkungan Anda**  
Perintah berikut mengambil informasi tentang sumber daya dalam lingkungan bernama`my-env`:  

```
aws elasticbeanstalk describe-environment-resources --environment-name my-env
```
Output:  

```
{
    "EnvironmentResources": {
        "EnvironmentName": "my-env",
        "AutoScalingGroups": [
            {
                "Name": "awseb-e-qu3fyyjyjs-stack-AWSEBAutoScalingGroup-QSB2ZO88SXZT"
            }
        ],
        "Triggers": [],
        "LoadBalancers": [
            {
                "Name": "awseb-e-q-AWSEBLoa-1EEPZ0K98BIF0"
            }
        ],
        "Queues": [],
        "Instances": [
            {
                "Id": "i-0c91c786"
            }
        ],
        "LaunchConfigurations": [
            {
                "Name": "awseb-e-qu3fyyjyjs-stack-AWSEBAutoScalingLaunchConfiguration-1UUVQIBC96TQ2"
            }
        ]
    }
}
```
+  Untuk detail API, lihat [DescribeEnvironmentResources](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-environment-resources.html)di *Referensi AWS CLI Perintah*. 

### `describe-environments`
<a name="elastic-beanstalk_DescribeEnvironments_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-environments`.

**AWS CLI**  
**Untuk melihat informasi tentang lingkungan**  
Perintah berikut mengambil informasi tentang lingkungan bernama`my-env`:  

```
aws elasticbeanstalk describe-environments --environment-names my-env
```
Output:  

```
{
    "Environments": [
        {
            "ApplicationName": "my-app",
            "EnvironmentName": "my-env",
            "VersionLabel": "7f58-stage-150812_025409",
            "Status": "Ready",
            "EnvironmentId": "e-rpqsewtp2j",
            "EndpointURL": "awseb-e-w-AWSEBLoa-1483140XB0Q4L-109QXY8121.us-west-2.elb.amazonaws.com",
            "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8",
            "CNAME": "my-env.elasticbeanstalk.com",
            "Health": "Green",
            "AbortableOperationInProgress": false,
            "Tier": {
                "Version": " ",
                "Type": "Standard",
                "Name": "WebServer"
            },
            "DateUpdated": "2015-08-12T18:16:55.019Z",
            "DateCreated": "2015-08-07T20:48:49.599Z"
        }
    ]
}
```
+  Untuk detail API, lihat [DescribeEnvironments](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-environments.html)di *Referensi AWS CLI Perintah*. 

### `describe-events`
<a name="elastic-beanstalk_DescribeEvents_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-events`.

**AWS CLI**  
**Untuk melihat acara untuk suatu lingkungan**  
Perintah berikut mengambil peristiwa untuk lingkungan bernama`my-env`:  

```
aws elasticbeanstalk describe-events --environment-name my-env
```
Output (disingkat):  

```
{
    "Events": [
        {
            "ApplicationName": "my-app",
            "EnvironmentName": "my-env",
            "Message": "Environment health has transitioned from Info to Ok.",
            "EventDate": "2015-08-20T07:06:53.535Z",
            "Severity": "INFO"
        },
        {
            "ApplicationName": "my-app",
            "EnvironmentName": "my-env",
            "Severity": "INFO",
            "RequestId": "b7f3960b-4709-11e5-ba1e-07e16200da41",
            "Message": "Environment update completed successfully.",
            "EventDate": "2015-08-20T07:06:02.049Z"
        },
        ...
        {
            "ApplicationName": "my-app",
            "EnvironmentName": "my-env",
            "Severity": "INFO",
            "RequestId": "ca8dfbf6-41ef-11e5-988b-651aa638f46b",
            "Message": "Using elasticbeanstalk-us-west-2-012445113685 as Amazon S3 storage bucket for environment data.",
            "EventDate": "2015-08-13T19:16:27.561Z"
        },
        {
            "ApplicationName": "my-app",
            "EnvironmentName": "my-env",
            "Severity": "INFO",
            "RequestId": "cdfba8f6-41ef-11e5-988b-65638f41aa6b",
            "Message": "createEnvironment is starting.",
            "EventDate": "2015-08-13T19:16:26.581Z"
        }
    ]
}
```
+  Untuk detail API, lihat [DescribeEvents](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-events.html)di *Referensi AWS CLI Perintah*. 

### `describe-instances-health`
<a name="elastic-beanstalk_DescribeInstancesHealth_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-instances-health`.

**AWS CLI**  
**Untuk melihat kesehatan lingkungan**  
Perintah berikut mengambil informasi kesehatan untuk instance di lingkungan bernama: `my-env`  

```
aws elasticbeanstalk describe-instances-health --environment-name my-env --attribute-names All
```
Output:  

```
{
    "InstanceHealthList": [
        {
            "InstanceId": "i-08691cc7",
            "ApplicationMetrics": {
                "Duration": 10,
                "Latency": {
                    "P99": 0.006,
                    "P75": 0.002,
                    "P90": 0.004,
                    "P95": 0.005,
                    "P85": 0.003,
                    "P10": 0.0,
                    "P999": 0.006,
                    "P50": 0.001
                },
                "RequestCount": 48,
                "StatusCodes": {
                    "Status3xx": 0,
                    "Status2xx": 47,
                    "Status5xx": 0,
                    "Status4xx": 1
                }
            },
            "System": {
                "LoadAverage": [
                    0.0,
                    0.02,
                    0.05
                ],
                "CPUUtilization": {
                    "SoftIRQ": 0.1,
                    "IOWait": 0.2,
                    "System": 0.3,
                    "Idle": 97.8,
                    "User": 1.5,
                    "IRQ": 0.0,
                    "Nice": 0.1
                }
            },
            "Color": "Green",
            "HealthStatus": "Ok",
            "LaunchedAt": "2015-08-13T19:17:09Z",
            "Causes": []
        }
    ],
    "RefreshedAt": "2015-08-20T21:09:08Z"
}
```
Informasi Kesehatan hanya tersedia untuk lingkungan dengan pelaporan kesehatan yang ditingkatkan diaktifkan. Untuk informasi lebih lanjut, lihat Pelaporan dan Pemantauan Kesehatan yang Ditingkatkan di Panduan Pengembang *AWS Elastic Beanstalk*.  
+  Untuk detail API, lihat [DescribeInstancesHealth](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-instances-health.html)di *Referensi AWS CLI Perintah*. 

### `list-available-solution-stacks`
<a name="elastic-beanstalk_ListAvailableSolutionStacks_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-available-solution-stacks`.

**AWS CLI**  
**Untuk melihat tumpukan solusi**  
Perintah berikut mencantumkan tumpukan solusi untuk semua konfigurasi platform yang tersedia saat ini dan semua yang telah Anda gunakan di masa lalu:  

```
aws elasticbeanstalk list-available-solution-stacks
```
Output (disingkat):  

```
{
    "SolutionStacks": [
        "64bit Amazon Linux 2015.03 v2.0.0 running Node.js",
        "64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.6",
        "64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.5",
        "64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.4",
        "64bit Amazon Linux 2015.03 v2.0.0 running Python 3.4",
        "64bit Amazon Linux 2015.03 v2.0.0 running Python 2.7",
        "64bit Amazon Linux 2015.03 v2.0.0 running Python",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Puma)",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Passenger Standalone)",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Puma)",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Passenger Standalone)",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Puma)",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Passenger Standalone)",
        "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 1.9.3",
        "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8",
        "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 7",
        "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 6",
        "64bit Windows Server Core 2012 R2 running IIS 8.5",
        "64bit Windows Server 2012 R2 running IIS 8.5",
        "64bit Windows Server 2012 running IIS 8",
        "64bit Windows Server 2008 R2 running IIS 7.5",
        "64bit Amazon Linux 2015.03 v2.0.0 running Docker 1.6.2",
        "64bit Amazon Linux 2015.03 v2.0.0 running Multi-container Docker 1.6.2 (Generic)",
        "64bit Debian jessie v2.0.0 running GlassFish 4.1 Java 8 (Preconfigured - Docker)",
        "64bit Debian jessie v2.0.0 running GlassFish 4.0 Java 7 (Preconfigured - Docker)",
        "64bit Debian jessie v2.0.0 running Go 1.4 (Preconfigured - Docker)",
        "64bit Debian jessie v2.0.0 running Go 1.3 (Preconfigured - Docker)",
        "64bit Debian jessie v2.0.0 running Python 3.4 (Preconfigured - Docker)",
    ],
    "SolutionStackDetails": [
        {
            "PermittedFileTypes": [
                "zip"
            ],
            "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Node.js"
        },
        ...
    ]
}
```
+  Untuk detail API, lihat [ListAvailableSolutionStacks](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/list-available-solution-stacks.html)di *Referensi AWS CLI Perintah*. 

### `rebuild-environment`
<a name="elastic-beanstalk_RebuildEnvironment_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`rebuild-environment`.

**AWS CLI**  
**Untuk membangun kembali lingkungan**  
Perintah berikut mengakhiri dan membuat ulang sumber daya dalam lingkungan bernama: `my-env`  

```
aws elasticbeanstalk rebuild-environment --environment-name my-env
```
+  Untuk detail API, lihat [RebuildEnvironment](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/rebuild-environment.html)di *Referensi AWS CLI Perintah*. 

### `request-environment-info`
<a name="elastic-beanstalk_RequestEnvironmentInfo_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`request-environment-info`.

**AWS CLI**  
**Untuk meminta log berekor**  
Perintah berikut meminta log dari lingkungan bernama`my-env`:  

```
aws elasticbeanstalk request-environment-info --environment-name my-env --info-type tail
```
Setelah meminta log, ambil lokasinya dengan. retrieve-environment-info  
+  Untuk detail API, lihat [RequestEnvironmentInfo](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/request-environment-info.html)di *Referensi AWS CLI Perintah*. 

### `restart-app-server`
<a name="elastic-beanstalk_RestartAppServer_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`restart-app-server`.

**AWS CLI**  
**Untuk me-restart server aplikasi**  
Perintah berikut me-restart server aplikasi pada semua instance dalam lingkungan bernama: `my-env`  

```
aws elasticbeanstalk restart-app-server --environment-name my-env
```
+  Untuk detail API, lihat [RestartAppServer](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/restart-app-server.html)di *Referensi AWS CLI Perintah*. 

### `retrieve-environment-info`
<a name="elastic-beanstalk_RetrieveEnvironmentInfo_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`retrieve-environment-info`.

**AWS CLI**  
**Untuk mengambil log berekor**  
Perintah berikut mengambil link ke log dari lingkungan bernama`my-env`:  

```
aws elasticbeanstalk retrieve-environment-info --environment-name my-env --info-type tail
```
Output:  

```
{
    "EnvironmentInfo": [
        {
            "SampleTimestamp": "2015-08-20T22:23:17.703Z",
            "Message": "https://elasticbeanstalk-us-west-2-0123456789012.s3.amazonaws.com/resources/environments/logs/tail/e-fyqyju3yjs/i-09c1c867/TailLogs-1440109397703.out?AWSAccessKeyId=AKGPT4J56IAJ2EUBL5CQ&Expires=1440195891&Signature=n%2BEalOV6A2HIOx4Rcfb7LT16bBM%3D",
            "InfoType": "tail",
            "Ec2InstanceId": "i-09c1c867"
        }
    ]
}
```
Lihat tautan di browser. Sebelum pengambilan, log harus diminta dengan request-environment-info.  
+  Untuk detail API, lihat [RetrieveEnvironmentInfo](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/retrieve-environment-info.html)di *Referensi AWS CLI Perintah*. 

### `swap-environment-cnames`
<a name="elastic-beanstalk_SwapEnvironmentCnames_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`swap-environment-cnames`.

**AWS CLI**  
**Untuk menukar CNAMES lingkungan**  
Perintah berikut menukar subdomain yang ditetapkan dari dua lingkungan:  

```
aws elasticbeanstalk swap-environment-cnames --source-environment-name my-env-blue --destination-environment-name my-env-green
```
+  Untuk detail API, lihat [SwapEnvironmentCnames](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/swap-environment-cnames.html)di *Referensi AWS CLI Perintah*. 

### `terminate-environment`
<a name="elastic-beanstalk_TerminateEnvironment_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`terminate-environment`.

**AWS CLI**  
**Untuk mengakhiri lingkungan**  
Perintah berikut mengakhiri lingkungan Elastic Beanstalk bernama: `my-env`  

```
aws elasticbeanstalk terminate-environment --environment-name my-env
```
Output:  

```
{
    "ApplicationName": "my-app",
    "EnvironmentName": "my-env",
    "Status": "Terminating",
    "EnvironmentId": "e-fh2eravpns",
    "EndpointURL": "awseb-e-f-AWSEBLoa-1I9XUMP4-8492WNUP202574.us-west-2.elb.amazonaws.com",
    "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8",
    "CNAME": "my-env.elasticbeanstalk.com",
    "Health": "Grey",
    "AbortableOperationInProgress": false,
    "Tier": {
        "Version": " ",
        "Type": "Standard",
        "Name": "WebServer"
    },
    "DateUpdated": "2015-08-12T19:05:54.744Z",
    "DateCreated": "2015-08-12T18:52:53.622Z"
}
```
+  Untuk detail API, lihat [TerminateEnvironment](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/terminate-environment.html)di *Referensi AWS CLI Perintah*. 

### `update-application-version`
<a name="elastic-beanstalk_UpdateApplicationVersion_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-application-version`.

**AWS CLI**  
**Untuk mengubah deskripsi versi aplikasi**  
Perintah berikut memperbarui deskripsi versi aplikasi bernama`22a0-stage-150819_185942`:  

```
aws elasticbeanstalk update-application-version --version-label 22a0-stage-150819_185942 --application-name my-app --description "new description"
```
Output:  

```
{
    "ApplicationVersion": {
        "ApplicationName": "my-app",
        "VersionLabel": "22a0-stage-150819_185942",
        "Description": "new description",
        "DateCreated": "2015-08-19T18:59:17.646Z",
        "DateUpdated": "2015-08-20T22:53:28.871Z",
        "SourceBundle": {
            "S3Bucket": "elasticbeanstalk-us-west-2-0123456789012",
            "S3Key": "my-app/22a0-stage-150819_185942.war"
        }
    }
}
```
+  Untuk detail API, lihat [UpdateApplicationVersion](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/update-application-version.html)di *Referensi AWS CLI Perintah*. 

### `update-application`
<a name="elastic-beanstalk_UpdateApplication_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-application`.

**AWS CLI**  
**Untuk mengubah deskripsi aplikasi**  
Perintah berikut memperbarui deskripsi aplikasi bernama`my-app`:  

```
aws elasticbeanstalk update-application --application-name my-app --description "my Elastic Beanstalk application"
```
Output:  

```
{
    "Application": {
        "ApplicationName": "my-app",
        "Description": "my Elastic Beanstalk application",
        "Versions": [
            "2fba-stage-150819_234450",
            "bf07-stage-150820_214945",
            "93f8",
            "fd7c-stage-150820_000431",
            "22a0-stage-150819_185942"
        ],
        "DateCreated": "2015-08-13T19:15:50.449Z",
        "ConfigurationTemplates": [],
        "DateUpdated": "2015-08-20T22:34:56.195Z"
    }
}
```
+  Untuk detail API, lihat [UpdateApplication](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/update-application.html)di *Referensi AWS CLI Perintah*. 

### `update-configuration-template`
<a name="elastic-beanstalk_UpdateConfigurationTemplate_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-configuration-template`.

**AWS CLI**  
**Untuk memperbarui templat konfigurasi**  
Perintah berikut menghapus konfigurasi metrik kesehatan CloudWatch kustom yang dikonfigurasi `ConfigDocument` dari template konfigurasi yang disimpan bernama`my-template`:  

```
aws elasticbeanstalk update-configuration-template --template-name my-template --application-name my-app --options-to-remove Namespace=aws:elasticbeanstalk:healthreporting:system,OptionName=ConfigDocument
```
Output:  

```
{
    "ApplicationName": "my-app",
    "TemplateName": "my-template",
    "DateCreated": "2015-08-20T22:39:31Z",
    "DateUpdated": "2015-08-20T22:43:11Z",
    "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8"
}
```
Untuk informasi selengkapnya tentang ruang nama dan opsi yang didukung, lihat Nilai Opsi dalam Panduan Pengembang Elastic *AWS Beanstalk*.  
+  Untuk detail API, lihat [UpdateConfigurationTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/update-configuration-template.html)di *Referensi AWS CLI Perintah*. 

### `update-environment`
<a name="elastic-beanstalk_UpdateEnvironment_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-environment`.

**AWS CLI**  
**Untuk memperbarui lingkungan ke versi baru**  
Perintah berikut memperbarui lingkungan bernama “my-env” ke versi “v2" dari aplikasi yang dimilikinya:  

```
aws elasticbeanstalk update-environment --environment-name my-env --version-label v2
```
Perintah ini mensyaratkan bahwa lingkungan “my-env” sudah ada dan milik aplikasi yang memiliki versi aplikasi yang valid dengan label “v2".  
Output:  

```
{
  "ApplicationName": "my-app",
  "EnvironmentName": "my-env",
  "VersionLabel": "v2",
  "Status": "Updating",
  "EnvironmentId": "e-szqipays4h",
  "EndpointURL": "awseb-e-i-AWSEBLoa-1RDLX6TC9VUAO-0123456789.us-west-2.elb.amazonaws.com",
  "SolutionStackName": "64bit Amazon Linux running Tomcat 7",
  "CNAME": "my-env.elasticbeanstalk.com",
  "Health": "Grey",
  "Tier": {
      "Version": " ",
      "Type": "Standard",
      "Name": "WebServer"
  },
  "DateUpdated": "2015-02-03T23:12:29.119Z",
  "DateCreated": "2015-02-03T23:04:54.453Z"
}
```
**Untuk mengatur variabel lingkungan**  
Perintah berikut menetapkan nilai variabel "PARAM1" di lingkungan “my-env” ke "“: ParamValue  

```
aws elasticbeanstalk update-environment --environment-name my-env --option-settings Namespace=aws:elasticbeanstalk:application:environment,OptionName=PARAM1,Value=ParamValue
```
`option-settings`Parameter mengambil namespace selain nama dan nilai variabel. Elastic Beanstalk mendukung beberapa ruang nama untuk opsi selain variabel lingkungan.  
**Untuk mengkonfigurasi pengaturan opsi dari file**  
Perintah berikut mengkonfigurasi beberapa opsi di `aws:elb:loadbalancer` namespace dari file:  

```
aws elasticbeanstalk update-environment --environment-name my-env --option-settings file://options.json
```
`options.json`adalah objek JSON yang mendefinisikan beberapa pengaturan:  

```
[
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "Interval",
    "Value": "15"
  },
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "Timeout",
    "Value": "8"
  },
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "HealthyThreshold",
    "Value": "2"
  },
  {
    "Namespace": "aws:elb:healthcheck",
    "OptionName": "UnhealthyThreshold",
    "Value": "3"
  }
]
```
Output:  

```
{
    "ApplicationName": "my-app",
    "EnvironmentName": "my-env",
    "VersionLabel": "7f58-stage-150812_025409",
    "Status": "Updating",
    "EnvironmentId": "e-wtp2rpqsej",
    "EndpointURL": "awseb-e-w-AWSEBLoa-14XB83101Q4L-104QXY80921.sa-east-1.elb.amazonaws.com",
    "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8",
    "CNAME": "my-env.elasticbeanstalk.com",
    "Health": "Grey",
    "AbortableOperationInProgress": true,
    "Tier": {
        "Version": " ",
        "Type": "Standard",
        "Name": "WebServer"
    },
    "DateUpdated": "2015-08-12T18:15:23.804Z",
    "DateCreated": "2015-08-07T20:48:49.599Z"
}
```
Untuk informasi selengkapnya tentang ruang nama dan opsi yang didukung, lihat Nilai Opsi dalam Panduan Pengembang Elastic *AWS Beanstalk*.  
+  Untuk detail API, lihat [UpdateEnvironment](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/update-environment.html)di *Referensi AWS CLI Perintah*. 

### `validate-configuration-settings`
<a name="elastic-beanstalk_ValidateConfigurationSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`validate-configuration-settings`.

**AWS CLI**  
**Untuk memvalidasi pengaturan konfigurasi**  
Perintah berikut memvalidasi dokumen konfigurasi metrik CloudWatch kustom:  

```
aws elasticbeanstalk validate-configuration-settings --application-name my-app --environment-name my-env --option-settings file://options.json
```
`options.json`adalah dokumen JSON yang mencakup satu atau lebih pengaturan konfigurasi untuk memvalidasi:  

```
[
    {
        "Namespace": "aws:elasticbeanstalk:healthreporting:system",
        "OptionName": "ConfigDocument",
        "Value": "{\"CloudWatchMetrics\": {\"Environment\": {\"ApplicationLatencyP99.9\": null,\"InstancesSevere\": 60,\"ApplicationLatencyP90\": 60,\"ApplicationLatencyP99\": null,\"ApplicationLatencyP95\": 60,\"InstancesUnknown\": 60,\"ApplicationLatencyP85\": 60,\"InstancesInfo\": null,\"ApplicationRequests2xx\": null,\"InstancesDegraded\": null,\"InstancesWarning\": 60,\"ApplicationLatencyP50\": 60,\"ApplicationRequestsTotal\": null,\"InstancesNoData\": null,\"InstancesPending\": 60,\"ApplicationLatencyP10\": null,\"ApplicationRequests5xx\": null,\"ApplicationLatencyP75\": null,\"InstancesOk\": 60,\"ApplicationRequests3xx\": null,\"ApplicationRequests4xx\": null},\"Instance\": {\"ApplicationLatencyP99.9\": null,\"ApplicationLatencyP90\": 60,\"ApplicationLatencyP99\": null,\"ApplicationLatencyP95\": null,\"ApplicationLatencyP85\": null,\"CPUUser\": 60,\"ApplicationRequests2xx\": null,\"CPUIdle\": null,\"ApplicationLatencyP50\": null,\"ApplicationRequestsTotal\": 60,\"RootFilesystemUtil\": null,\"LoadAverage1min\": null,\"CPUIrq\": null,\"CPUNice\": 60,\"CPUIowait\": 60,\"ApplicationLatencyP10\": null,\"LoadAverage5min\": null,\"ApplicationRequests5xx\": null,\"ApplicationLatencyP75\": 60,\"CPUSystem\": 60,\"ApplicationRequests3xx\": 60,\"ApplicationRequests4xx\": null,\"InstanceHealth\": null,\"CPUSoftirq\": 60}},\"Version\": 1}"
    }
]
```
Jika opsi yang Anda tentukan valid untuk lingkungan tertentu, Elastic Beanstalk mengembalikan array Pesan kosong:  

```
{
    "Messages": []
}
```
Jika validasi gagal, respons akan mencakup informasi tentang kesalahan:  

```
{
    "Messages": [
        {
            "OptionName": "ConfigDocumet",
            "Message": "Invalid option specification (Namespace: 'aws:elasticbeanstalk:healthreporting:system', OptionName: 'ConfigDocumet'): Unknown configuration setting.",
            "Namespace": "aws:elasticbeanstalk:healthreporting:system",
            "Severity": "error"
        }
    ]
}
```
Untuk informasi selengkapnya tentang ruang nama dan opsi yang didukung, lihat Nilai Opsi dalam Panduan Pengembang Elastic *AWS Beanstalk*.  
+  Untuk detail API, lihat [ValidateConfigurationSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/validate-configuration-settings.html)di *Referensi AWS CLI Perintah*. 