Class HostedConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.appconfig.HostedConfiguration
- All Implemented Interfaces:
IConfiguration,IExtensible,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:28.167Z")
@Stability(Stable)
public class HostedConfiguration
extends software.constructs.Construct
implements IConfiguration, IExtensible
A hosted configuration represents configuration stored in the AWS AppConfig hosted configuration store.
Example:
Application application;
Function fn;
HostedConfiguration.Builder.create(this, "MyHostedConfiguration")
.application(application)
.content(ConfigurationContent.fromInlineText("This is my configuration content."))
.validators(List.of(JsonSchemaValidator.fromFile("schema.json"), LambdaValidator.fromFunction(fn)))
.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
ConstructorsModifierConstructorDescriptionprotectedHostedConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedHostedConfiguration(software.amazon.jsii.JsiiObjectRef objRef) HostedConfiguration(software.constructs.Construct scope, String id, HostedConfigurationProps 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.The content of the hosted configuration.The configuration content type, specified as a standard MIME type.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 Amazon Resource Name (ARN) of the hosted configuration version.The latest version number of the hosted configuration.getName()The name of the configuration.getType()The configuration type.The validators for the configuration.The version label of the hosted configuration.The version number of the hosted configuration.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
-
HostedConfiguration
protected HostedConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
HostedConfiguration
protected HostedConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HostedConfiguration
@Stability(Stable) public HostedConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HostedConfigurationProps 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
-
getContent
The content of the hosted configuration. -
getHostedConfigurationVersionArn
The Amazon Resource Name (ARN) of the hosted configuration version. -
getContentType
The configuration content type, specified as a standard MIME type. Supported examples include: -text/plain-application/json-application/octet-stream-application/x-yaml.For an up-to-date list of valid MIME types, see: https://www.iana.org/assignments/media-types/media-types.xhtml
-
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
-
getLatestVersionNumber
The latest version number of the hosted configuration. -
getName
The name of the configuration.- Specified by:
getNamein interfaceIConfiguration
-
getType
The configuration type.- Specified by:
getTypein interfaceIConfiguration
-
getValidators
The validators for the configuration.- Specified by:
getValidatorsin interfaceIConfiguration
-
getVersionLabel
The version label of the hosted configuration. -
getVersionNumber
The version number of the hosted configuration.- Specified by:
getVersionNumberin interfaceIConfiguration
-
getApplicationId
-
setApplicationId
-
getExtensible
-
setExtensible
-
getDeletionProtectionCheck
-
setDeletionProtectionCheck
@Stability(Stable) protected void setDeletionProtectionCheck(@Nullable DeletionProtectionCheck value)
-