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 CreateEnvironment operation. Creates an environment. For each application, you define one or more environments. An environment is a deployment group of AppConfig targets, such as applications in a Beta or Production environment. You can also define environments for application subcomponents such as the Web, Mobile and Back-end components for your application. You can configure Amazon CloudWatch alarms for each environment. The system monitors alarms during a configuration deployment. If an alarm is triggered, the system rolls back the configuration.

Inheritance Hierarchy

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

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

Syntax

C#
public class CreateEnvironmentRequest : AmazonAppConfigRequest
         IAmazonWebServiceRequest

The CreateEnvironmentRequest type exposes the following members

Constructors

NameDescription
Public Method CreateEnvironmentRequest()

Properties

NameTypeDescription
Public Property ApplicationId System.String

Gets and sets the property ApplicationId.

The application ID.

Public Property Description System.String

Gets and sets the property Description.

A description of the environment.

Public Property Monitors System.Collections.Generic.List<Amazon.AppConfig.Model.Monitor>

Gets and sets the property Monitors.

Amazon CloudWatch alarms to monitor during the deployment process.

Public Property Name System.String

Gets and sets the property Name.

A name for the environment.

Public Property Tags System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property Tags.

Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

Examples

The following create-environment example creates an AWS AppConfig environment named Example-Environment using the application you created using create-application

To create an environment


var client = new AmazonAppConfigClient();
var response = client.CreateEnvironment(new CreateEnvironmentRequest 
{
    ApplicationId = "339ohji",
    Name = "Example-Environment"
});

string applicationId = response.ApplicationId;
string id = response.Id;
string name = response.Name;
string state = response.State;

            

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