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.
This is the response object from the GetConfiguration operation.
Namespace: Amazon.AppConfig.Model
Assembly: AWSSDK.AppConfig.dll
Version: 3.x.y.z
public class GetConfigurationResponse : AmazonWebServiceResponse
The GetConfigurationResponse type exposes the following members
Name | Description | |
---|---|---|
GetConfigurationResponse() |
Name | Type | Description | |
---|---|---|---|
ConfigurationVersion | System.String |
Gets and sets the property ConfigurationVersion. The configuration version. |
|
Content | System.IO.MemoryStream |
Gets and sets the property Content. The content of the configuration or the configuration data.
The |
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
ContentType | System.String |
Gets and sets the property ContentType. A standard MIME type describing the format of the configuration content. For more information, see Content-Type. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
The following get-configuration example returns the configuration details of the example application. On subsequent calls to get-configuration, use the client-configuration-version parameter to only update the configuration of your application if the version has changed. Only updating the configuration when the version has changed avoids excess charges incurred by calling get-configuration.
var client = new AmazonAppConfigClient(); var response = client.GetConfiguration(new GetConfigurationRequest { Application = "example-application", ClientId = "example-id", Configuration = "Example-Configuration-Profile", Environment = "Example-Environment" }); string configurationVersion = response.ConfigurationVersion; string contentType = response.ContentType;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5