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.

This is the response object from the GetHostedConfigurationVersion operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.AppConfig.Model.GetHostedConfigurationVersionResponse

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

Syntax

C#
public class GetHostedConfigurationVersionResponse : AmazonWebServiceResponse

The GetHostedConfigurationVersionResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ApplicationId System.String

Gets and sets the property ApplicationId.

The application ID.

Public Property ConfigurationProfileId System.String

Gets and sets the property ConfigurationProfileId.

The configuration profile ID.

Public Property Content System.IO.MemoryStream

Gets and sets the property Content.

The content of the configuration or the configuration data.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property 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.

Public Property Description System.String

Gets and sets the property Description.

A description of the configuration.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property KmsKeyArn System.String

Gets and sets the property KmsKeyArn.

The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the configuration data in the AppConfig hosted configuration store.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property VersionLabel System.String

Gets and sets the property VersionLabel.

A user-defined label for an AppConfig hosted configuration version.

Public Property VersionNumber System.Int32

Gets and sets the property VersionNumber.

The configuration version.

Examples

The following get-hosted-configuration-version example retrieves the configuration details of the AWS AppConfig hosted configuration.

To retrieve hosted configuration details


var client = new AmazonAppConfigClient();
var response = client.GetHostedConfigurationVersion(new GetHostedConfigurationVersionRequest 
{
    ApplicationId = "339ohji",
    ConfigurationProfileId = "ur8hx2f",
    VersionNumber = 1
});

string applicationId = response.ApplicationId;
string configurationProfileId = response.ConfigurationProfileId;
string contentType = response.ContentType;
int versionNumber = response.VersionNumber;

            

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