ConfigurationType Enum
The configuration type.
| Source | aws-appconfig/lib/configuration.ts |
|---|---|
| Type last changed |
Example
ts
declare const application: appconfig.Application;
declare const kmsKey: kms.Key;
new appconfig.HostedConfiguration(this, 'MyHostedConfiguration', {
application,
content: appconfig.ConfigurationContent.fromInlineText('This is my configuration content.'),
type: appconfig.ConfigurationType.FEATURE_FLAGS,
kmsKey, // set customer managed key
});
python
# application: appconfig.Application
# kms_key: kms.Key
appconfig.HostedConfiguration(self, "MyHostedConfiguration",
application=application,
content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."),
type=appconfig.ConfigurationType.FEATURE_FLAGS,
kms_key=kms_key
)
java
Application application;
Key kmsKey;
HostedConfiguration.Builder.create(this, "MyHostedConfiguration")
.application(application)
.content(ConfigurationContent.fromInlineText("This is my configuration content."))
.type(ConfigurationType.FEATURE_FLAGS)
.kmsKey(kmsKey)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
Application application;
Key kmsKey;
new HostedConfiguration(this, "MyHostedConfiguration", new HostedConfigurationProps {
Application = application,
Content = ConfigurationContent.FromInlineText("This is my configuration content."),
Type = ConfigurationType.FEATURE_FLAGS,
KmsKey = kmsKey
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var application Application
var kmsKey Key
appconfig.NewHostedConfiguration(this, jsii.String("MyHostedConfiguration"), &HostedConfigurationProps{
Application: Application,
Content: appconfig.ConfigurationContent_FromInlineText(jsii.String("This is my configuration content.")),
Type: appconfig.ConfigurationType_FEATURE_FLAGS,
KmsKey: KmsKey,
})
Members
| Member | Description |
|---|---|
FREEFORM | Freeform configuration profile. |
FEATURE_FLAGS | Feature flag configuration profile. |
Referenced by
ConfigurationOptions.typetypetypeTypeTypeHostedConfiguration.typetypetypeTypeTypeIConfiguration.typetypetypeTypeTypeSourcedConfiguration.typetypetypeTypeType