Skip to content

Causes the environment to restart the application container server running on each Amazon EC2 instance

Description

Causes the environment to restart the application container server running on each Amazon EC2 instance.

Usage

elasticbeanstalk_restart_app_server(EnvironmentId, EnvironmentName)

Arguments

  • EnvironmentId

    The ID of the environment to restart the server for.

    Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, Elastic Beanstalk returns MissingRequiredParameter error.

  • EnvironmentName

    The name of the environment to restart the server for.

    Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, Elastic Beanstalk returns MissingRequiredParameter error.

Value

An empty list.

Request syntax

svc$restart_app_server(
  EnvironmentId = "string",
  EnvironmentName = "string"
)

Examples

# The following operation restarts application servers on all instances in
# an environment named my-env:
svc$restart_app_server(
  EnvironmentName = "my-env"
)