AWS SDK Version 3 for .NET
API Reference

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 ListEnvironments operation. Lists the environments for an application.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AppConfig.AmazonAppConfigRequest
      Amazon.AppConfig.Model.ListEnvironmentsRequest

Namespace: Amazon.AppConfig.Model
Assembly: AWSSDK.AppConfig.dll
Version: 3.x.y.z

Syntax

C#
public class ListEnvironmentsRequest : AmazonAppConfigRequest
         IAmazonWebServiceRequest

The ListEnvironmentsRequest type exposes the following members

Constructors

NameDescription
Public Method ListEnvironmentsRequest()

Properties

NameTypeDescription
Public Property ApplicationId System.String

Gets and sets the property ApplicationId.

The application ID.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Public Property NextToken System.String

Gets and sets the property NextToken.

A token to start the list. Use this token to get the next set of results.

Examples

The following list-environments example lists the available environments in your AWS account for the specified application.

To list the available environments


var client = new AmazonAppConfigClient();
var response = client.ListEnvironments(new ListEnvironmentsRequest 
{
    ApplicationId = "339ohji"
});

List<Environment> items = response.Items;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5