AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the RequestEnvironmentInfo operation. Initiates a request to compile the specified type of information of the deployed environment.
Setting the InfoType
to tail
compiles the last lines from the application
server log files of every Amazon EC2 instance in your environment.
Setting the InfoType
to bundle
compresses the application server log
files for every Amazon EC2 instance into a .zip
file. Legacy and .NET containers
do not support bundle logs.
Use RetrieveEnvironmentInfo to obtain the set of logs.
Related Topics
Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z
public class RequestEnvironmentInfoRequest : AmazonElasticBeanstalkRequest IAmazonWebServiceRequest
The RequestEnvironmentInfoRequest type exposes the following members
Name | Description | |
---|---|---|
RequestEnvironmentInfoRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
RequestEnvironmentInfoRequest(EnvironmentInfoType) |
Instantiates RequestEnvironmentInfoRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
EnvironmentId | System.String |
Gets and sets the property EnvironmentId. The ID of the environment of the requested data.
If no such environment is found,
Condition: You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns |
|
EnvironmentName | System.String |
Gets and sets the property EnvironmentName. The name of the environment of the requested data.
If no such environment is found,
Condition: You must specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns |
|
InfoType | Amazon.ElasticBeanstalk.EnvironmentInfoType |
Gets and sets the property InfoType. The type of information to request. |
The following operation requests logs from an environment named my-env:
var client = new AmazonElasticBeanstalkClient(); var response = client.RequestEnvironmentInfo(new RequestEnvironmentInfoRequest { EnvironmentName = "my-env", InfoType = "tail" });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5