Skip to content

ConfigurationProfile

Source: src/AWS/AppConfig/ConfigurationProfile.ts

An AWS AppConfig configuration profile — describes where the configuration data lives (the AppConfig hosted store, S3, SSM, Secrets Manager, or CodePipeline) and how to validate it.

Hosted Configuration Profile

const profile = yield* AppConfig.ConfigurationProfile("Settings", {
applicationId: app.applicationId,
locationUri: "hosted",
});

S3-sourced Profile with a JSON Schema Validator

const profile = yield* AppConfig.ConfigurationProfile("Settings", {
applicationId: app.applicationId,
locationUri: "s3://my-bucket/config.json",
retrievalRoleArn: role.roleArn,
validators: [{ type: "JSON_SCHEMA", content: schemaJson }],
});