Class SourcedConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.appconfig.SourcedConfiguration
- All Implemented Interfaces:
IConfiguration,IExtensible,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:30.741Z")
@Stability(Stable)
public class SourcedConfiguration
extends software.constructs.Construct
implements IConfiguration, IExtensible
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.
Example:
Application application;
Bucket bucket;
SourcedConfiguration.Builder.create(this, "MySourcedConfiguration")
.application(application)
.location(ConfigurationSource.fromBucket(bucket, "path/to/file.json"))
.type(ConfigurationType.FEATURE_FLAGS)
.name("MyConfig")
.description("This is my sourced configuration from CDK.")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IConfiguration
IConfiguration.Jsii$Default, IConfiguration.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IExtensible
IExtensible.Jsii$Default, IExtensible.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSourcedConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSourcedConfiguration(software.amazon.jsii.JsiiObjectRef objRef) SourcedConfiguration(software.constructs.Construct scope, String id, SourcedConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddExtension(IExtension extension) Adds an extension association to the configuration profile.voidatDeploymentTick(IEventDestination eventDestination) Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.voidatDeploymentTick(IEventDestination eventDestination, ExtensionOptions options) Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.protected voidThe application associated with the configuration.protected StringThe Amazon Resource Name (ARN) of the configuration profile.The ID of the configuration profile.protected DeletionProtectionCheckThe deployment key for the configuration.The deployment strategy for the configuration.The environments to deploy to.The description of the configuration.protected ExtensibleBaseThe location where the configuration is stored.getName()The name of the configuration.The IAM role to retrieve the configuration.The key to decrypt the configuration if applicable.getType()The configuration type.The validators for the configuration.The version number of the configuration to deploy.voidon(ActionPoint actionPoint, IEventDestination eventDestination) Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.voidon(ActionPoint actionPoint, IEventDestination eventDestination, ExtensionOptions options) Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.voidonDeploymentBaking(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentBaking(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentComplete(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentComplete(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentRolledBack(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentRolledBack(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentStart(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentStart(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentStep(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.voidonDeploymentStep(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.voidpreCreateHostedConfigurationVersion(IEventDestination eventDestination) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the configuration profile.voidpreCreateHostedConfigurationVersion(IEventDestination eventDestination, ExtensionOptions options) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the configuration profile.voidpreStartDeployment(IEventDestination eventDestination) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.voidpreStartDeployment(IEventDestination eventDestination, ExtensionOptions options) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.protected voidsetApplicationId(String value) protected voidprotected voidsetExtensible(ExtensibleBase value) Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
SourcedConfiguration
protected SourcedConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
SourcedConfiguration
protected SourcedConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SourcedConfiguration
@Stability(Stable) public SourcedConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SourcedConfigurationProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
addExistingEnvironmentsToApplication
@Stability(Stable) protected void addExistingEnvironmentsToApplication() -
addExtension
Adds an extension association to the configuration profile.- Specified by:
addExtensionin interfaceIExtensible- Parameters:
extension- The extension to create an association for. This parameter is required.
-
atDeploymentTick
@Stability(Stable) public void atDeploymentTick(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.- Specified by:
atDeploymentTickin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
atDeploymentTick
Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.- Specified by:
atDeploymentTickin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
deployConfigToEnvironments
@Stability(Stable) protected void deployConfigToEnvironments() -
on
@Stability(Stable) public void on(@NotNull ActionPoint actionPoint, @NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.- Specified by:
onin interfaceIExtensible- Parameters:
actionPoint- The action point which triggers the event. This parameter is required.eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
on
@Stability(Stable) public void on(@NotNull ActionPoint actionPoint, @NotNull IEventDestination eventDestination) Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.- Specified by:
onin interfaceIExtensible- Parameters:
actionPoint- The action point which triggers the event. This parameter is required.eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentBaking
@Stability(Stable) public void onDeploymentBaking(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentBakingin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentBaking
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentBakingin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentComplete
@Stability(Stable) public void onDeploymentComplete(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentCompletein interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentComplete
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentCompletein interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentRolledBack
@Stability(Stable) public void onDeploymentRolledBack(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentRolledBackin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentRolledBack
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentRolledBackin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentStart
@Stability(Stable) public void onDeploymentStart(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentStartin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentStart
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentStartin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentStep
@Stability(Stable) public void onDeploymentStep(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentStepin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentStep
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
onDeploymentStepin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
preCreateHostedConfigurationVersion
@Stability(Stable) public void preCreateHostedConfigurationVersion(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
preCreateHostedConfigurationVersionin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
preCreateHostedConfigurationVersion
@Stability(Stable) public void preCreateHostedConfigurationVersion(@NotNull IEventDestination eventDestination) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
preCreateHostedConfigurationVersionin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
preStartDeployment
@Stability(Stable) public void preStartDeployment(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
preStartDeploymentin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
preStartDeployment
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.- Specified by:
preStartDeploymentin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
getApplication
The application associated with the configuration.- Specified by:
getApplicationin interfaceIConfiguration
-
getConfigurationProfileArn
The Amazon Resource Name (ARN) of the configuration profile. -
getConfigurationProfileId
The ID of the configuration profile.- Specified by:
getConfigurationProfileIdin interfaceIConfiguration
-
getLocation
The location where the configuration is stored. -
getDeploymentKey
The deployment key for the configuration.- Specified by:
getDeploymentKeyin interfaceIConfiguration
-
getDeploymentStrategy
The deployment strategy for the configuration.- Specified by:
getDeploymentStrategyin interfaceIConfiguration
-
getDeployTo
The environments to deploy to.- Specified by:
getDeployToin interfaceIConfiguration
-
getDescription
The description of the configuration.- Specified by:
getDescriptionin interfaceIConfiguration
-
getName
The name of the configuration.- Specified by:
getNamein interfaceIConfiguration
-
getRetrievalRole
The IAM role to retrieve the configuration. -
getSourceKey
The key to decrypt the configuration if applicable.This key can be used when storing configuration in AWS Secrets Manager, Systems Manager Parameter Store, or Amazon S3.
-
getType
The configuration type.- Specified by:
getTypein interfaceIConfiguration
-
getValidators
The validators for the configuration.- Specified by:
getValidatorsin interfaceIConfiguration
-
getVersionNumber
The version number of the configuration to deploy.- Specified by:
getVersionNumberin interfaceIConfiguration
-
getApplicationId
-
setApplicationId
-
getExtensible
-
setExtensible
-
getDeletionProtectionCheck
-
setDeletionProtectionCheck
@Stability(Stable) protected void setDeletionProtectionCheck(@Nullable DeletionProtectionCheck value)
-