AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

SourcedConfiguration

A sourced configuration represents configuration stored in an Amazon S3 bucket, AWS Secrets Manager secret, Systems Manager (SSM) Parameter Store parameter, SSM document, or AWS CodePipeline.

Import

import { SourcedConfiguration } from 'aws-cdk-lib/aws-appconfig';

Or use the module namespace:

import * as appconfig from 'aws-cdk-lib/aws-appconfig';
// appconfig.SourcedConfiguration

Properties

Configuration passed to the constructor as SourcedConfigurationProps.

locationRequired
ConfigurationSource

The location where the configuration is stored.

retrievalRoleOptional
IRoleRef

The IAM role to retrieve the configuration.

Default: - Auto generated if location type is not ConfigurationSourceType.CODE_PIPELINE otherwise no role specified.

versionNumberOptional
string

The version number of the sourced configuration to deploy. If this is not specified, then there will be no deployment.

Default: - None.

1 property inherited from ConfigurationProps
applicationRequiredinherited from ConfigurationProps
IApplication

The application associated with the configuration.

8 properties inherited from ConfigurationOptions
deletionProtectionCheckOptionalinherited from ConfigurationOptions
DeletionProtectionCheck

A parameter to configure deletion protection. Deletion protection prevents a user from deleting a configuration profile if your application has called either `GetLatestConfiguration` or `GetConfiguration` for the configuration profile during the specified interval.

Default: DeletionProtectionCheck.ACCOUNT_DEFAULT

deploymentKeyOptionalinherited from ConfigurationOptions
IKey

The deployment key of the configuration.

Default: - None.

deploymentStrategyOptionalinherited from ConfigurationOptions
IDeploymentStrategyRef

The deployment strategy for the configuration.

Default: - A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES

deployToOptionalinherited from ConfigurationOptions
IEnvironment[]

The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration. Deployments can be added later using the `IEnvironment.addDeployment` or `IEnvironment.addDeployments` methods.

Default: - None.

descriptionOptionalinherited from ConfigurationOptions
string

The description of the configuration.

Default: - No description.

nameOptionalinherited from ConfigurationOptions
string

The name of the configuration.

Default: - A name is generated.

typeOptionalinherited from ConfigurationOptions
ConfigurationType

The type of configuration.

Default: ConfigurationType.FREEFORM

validatorsOptionalinherited from ConfigurationOptions
IValidator[]

The validators for the configuration.

Default: - No validators.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter