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 CreateConfigurationProfile operation. Creates a configuration profile, which is information that enables AppConfig to access the configuration source. Valid configuration sources include the following:
Configuration data in YAML, JSON, and other formats stored in the AppConfig hosted configuration store
Configuration data stored as objects in an Amazon Simple Storage Service (Amazon S3) bucket
Pipelines stored in CodePipeline
Secrets stored in Secrets Manager
Standard and secure string parameters stored in Amazon Web Services Systems Manager Parameter Store
Configuration data in SSM documents stored in the Systems Manager document store
A configuration profile includes the following information:
The URI location of the configuration data.
The Identity and Access Management (IAM) role that provides access to the configuration data.
A validator for the configuration data. Available validators include either a JSON Schema or an Amazon Web Services Lambda function.
For more information, see Create a Configuration and a Configuration Profile in the AppConfig User Guide.
Namespace: Amazon.AppConfig.Model
Assembly: AWSSDK.AppConfig.dll
Version: 3.x.y.z
public class CreateConfigurationProfileRequest : AmazonAppConfigRequest IAmazonWebServiceRequest
The CreateConfigurationProfileRequest type exposes the following members
Name | Description | |
---|---|---|
CreateConfigurationProfileRequest() |
Name | Type | Description | |
---|---|---|---|
ApplicationId | System.String |
Gets and sets the property ApplicationId. The application ID. |
|
Description | System.String |
Gets and sets the property Description. A description of the configuration profile. |
|
KmsKeyIdentifier | System.String |
Gets and sets the property KmsKeyIdentifier.
The identifier for an Key Management Service key to encrypt new configuration data
versions in the AppConfig hosted configuration store. This attribute is only used
for |
|
LocationUri | System.String |
Gets and sets the property LocationUri. A URI to locate the configuration. You can specify the following:
|
|
Name | System.String |
Gets and sets the property Name. A name for the configuration profile. |
|
RetrievalRoleArn | System.String |
Gets and sets the property RetrievalRoleArn.
The ARN of an IAM role with permission to access the configuration at the specified
A retrieval role ARN is not required for configurations stored in the AppConfig hosted configuration store. It is required for all other sources that store your configuration. |
|
Tags | System.Collections.Generic.Dictionary<System.String, System.String> |
Gets and sets the property Tags. Metadata to assign to the configuration profile. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define. |
|
Type | System.String |
Gets and sets the property Type.
The type of configurations contained in the profile. AppConfig supports
|
|
Validators | System.Collections.Generic.List<Amazon.AppConfig.Model.Validator> |
Gets and sets the property Validators. A list of methods for validating the configuration. |
The following create-configuration-profile example creates a configuration profile using a configuration stored in Parameter Store, a capability of Systems Manager.
var client = new AmazonAppConfigClient(); var response = client.CreateConfigurationProfile(new CreateConfigurationProfileRequest { ApplicationId = "339ohji", LocationUri = "ssm-parameter://Example-Parameter", Name = "Example-Configuration-Profile", RetrievalRoleArn = "arn:aws:iam::111122223333:role/Example-App-Config-Role" }); string applicationId = response.ApplicationId; string id = response.Id; string locationUri = response.LocationUri; string name = response.Name; string retrievalRoleArn = response.RetrievalRoleArn;
.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