Class SourcedConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.appconfig.alpha.SourcedConfiguration
All Implemented Interfaces:
IConfiguration, IExtensible, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.601Z") @Stability(Deprecated) @Deprecated public class SourcedConfiguration extends software.constructs.Construct implements IConfiguration, IExtensible
Deprecated.
(deprecated) 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:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appconfig.alpha.*;
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.services.kms.*;
 Application application;
 ConfigurationSource configurationSource;
 DeploymentStrategy deploymentStrategy;
 Environment environment;
 Key key;
 Role role;
 IValidator validator;
 SourcedConfiguration sourcedConfiguration = SourcedConfiguration.Builder.create(this, "MySourcedConfiguration")
         .application(application)
         .location(configurationSource)
         // the properties below are optional
         .deploymentKey(key)
         .deploymentStrategy(deploymentStrategy)
         .deployTo(List.of(environment))
         .description("description")
         .name("name")
         .retrievalRole(role)
         .type(ConfigurationType.FREEFORM)
         .validators(List.of(validator))
         .versionNumber("versionNumber")
         .build();
 
  • Constructor Details

    • SourcedConfiguration

      protected SourcedConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • SourcedConfiguration

      protected SourcedConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • SourcedConfiguration

      @Stability(Deprecated) @Deprecated public SourcedConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SourcedConfigurationProps props)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • addExistingEnvironmentsToApplication

      @Stability(Deprecated) @Deprecated protected void addExistingEnvironmentsToApplication()
      Deprecated.
    • addExtension

      @Stability(Deprecated) @Deprecated public void addExtension(@NotNull IExtension extension)
      Deprecated.
      (deprecated) Adds an extension association to the configuration profile.

      Specified by:
      addExtension in interface IExtensible
      Parameters:
      extension - The extension to create an association for. This parameter is required.
    • deploy

      @Stability(Deprecated) @Deprecated public void deploy(@NotNull IEnvironment environment)
      Deprecated.
      Use deployTo as a property instead. We do not recommend creating resources in multiple stacks. If you want to do this still, please take a look into https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.CfnDeployment.html.
      (deprecated) Deploys the configuration to the specified environment.

      Parameters:
      environment - The environment to deploy the configuration to. This parameter is required.
    • deployConfigToEnvironments

      @Stability(Deprecated) @Deprecated protected void deployConfigToEnvironments()
      Deprecated.
    • on

      @Stability(Deprecated) @Deprecated public void on(@NotNull ActionPoint actionPoint, @NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.

      Specified by:
      on in interface IExtensible
      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(Deprecated) @Deprecated public void on(@NotNull ActionPoint actionPoint, @NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.

      Specified by:
      on in interface IExtensible
      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(Deprecated) @Deprecated public void onDeploymentBaking(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentBaking in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • onDeploymentBaking

      @Stability(Deprecated) @Deprecated public void onDeploymentBaking(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentBaking in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • onDeploymentComplete

      @Stability(Deprecated) @Deprecated public void onDeploymentComplete(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentComplete in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • onDeploymentComplete

      @Stability(Deprecated) @Deprecated public void onDeploymentComplete(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentComplete in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • onDeploymentRolledBack

      @Stability(Deprecated) @Deprecated public void onDeploymentRolledBack(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentRolledBack in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • onDeploymentRolledBack

      @Stability(Deprecated) @Deprecated public void onDeploymentRolledBack(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentRolledBack in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • onDeploymentStart

      @Stability(Deprecated) @Deprecated public void onDeploymentStart(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentStart in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • onDeploymentStart

      @Stability(Deprecated) @Deprecated public void onDeploymentStart(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentStart in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • onDeploymentStep

      @Stability(Deprecated) @Deprecated public void onDeploymentStep(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentStep in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • onDeploymentStep

      @Stability(Deprecated) @Deprecated public void onDeploymentStep(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      onDeploymentStep in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • preCreateHostedConfigurationVersion

      @Stability(Deprecated) @Deprecated public void preCreateHostedConfigurationVersion(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) 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:
      preCreateHostedConfigurationVersion in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • preCreateHostedConfigurationVersion

      @Stability(Deprecated) @Deprecated public void preCreateHostedConfigurationVersion(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) 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:
      preCreateHostedConfigurationVersion in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • preStartDeployment

      @Stability(Deprecated) @Deprecated public void preStartDeployment(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options)
      Deprecated.
      (deprecated) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      preStartDeployment in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
      options - Options for the extension.
    • preStartDeployment

      @Stability(Deprecated) @Deprecated public void preStartDeployment(@NotNull IEventDestination eventDestination)
      Deprecated.
      (deprecated) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.

      Specified by:
      preStartDeployment in interface IExtensible
      Parameters:
      eventDestination - The event that occurs during the extension. This parameter is required.
    • getApplication

      @Stability(Deprecated) @Deprecated @NotNull public IApplication getApplication()
      Deprecated.
      (deprecated) The application associated with the configuration.
      Specified by:
      getApplication in interface IConfiguration
    • getConfigurationProfileArn

      @Stability(Deprecated) @Deprecated @NotNull public String getConfigurationProfileArn()
      Deprecated.
      (deprecated) The Amazon Resource Name (ARN) of the configuration profile.
    • getConfigurationProfileId

      @Stability(Deprecated) @Deprecated @NotNull public String getConfigurationProfileId()
      Deprecated.
      (deprecated) The ID of the configuration profile.
      Specified by:
      getConfigurationProfileId in interface IConfiguration
    • getLocation

      @Stability(Deprecated) @Deprecated @NotNull public ConfigurationSource getLocation()
      Deprecated.
      (deprecated) The location where the configuration is stored.
    • getDeploymentKey

      @Stability(Deprecated) @Deprecated @Nullable public IKey getDeploymentKey()
      Deprecated.
      (deprecated) The deployment key for the configuration.
      Specified by:
      getDeploymentKey in interface IConfiguration
    • getDeploymentStrategy

      @Stability(Deprecated) @Deprecated @Nullable public IDeploymentStrategy getDeploymentStrategy()
      Deprecated.
      (deprecated) The deployment strategy for the configuration.
      Specified by:
      getDeploymentStrategy in interface IConfiguration
    • getDeployTo

      @Stability(Deprecated) @Deprecated @Nullable public List<IEnvironment> getDeployTo()
      Deprecated.
      (deprecated) The environments to deploy to.
      Specified by:
      getDeployTo in interface IConfiguration
    • getDescription

      @Stability(Deprecated) @Deprecated @Nullable public String getDescription()
      Deprecated.
      (deprecated) The description of the configuration.
      Specified by:
      getDescription in interface IConfiguration
    • getName

      @Stability(Deprecated) @Deprecated @Nullable public String getName()
      Deprecated.
      (deprecated) The name of the configuration.
      Specified by:
      getName in interface IConfiguration
    • getRetrievalRole

      @Stability(Deprecated) @Deprecated @Nullable public IRole getRetrievalRole()
      Deprecated.
      (deprecated) The IAM role to retrieve the configuration.
    • getSourceKey

      @Stability(Deprecated) @Deprecated @Nullable public IKey getSourceKey()
      Deprecated.
      (deprecated) 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

      @Stability(Deprecated) @Deprecated @Nullable public ConfigurationType getType()
      Deprecated.
      (deprecated) The configuration type.
      Specified by:
      getType in interface IConfiguration
    • getValidators

      @Stability(Deprecated) @Deprecated @Nullable public List<IValidator> getValidators()
      Deprecated.
      (deprecated) The validators for the configuration.
      Specified by:
      getValidators in interface IConfiguration
    • getVersionNumber

      @Stability(Deprecated) @Deprecated @Nullable public String getVersionNumber()
      Deprecated.
      (deprecated) The version number of the configuration to deploy.
      Specified by:
      getVersionNumber in interface IConfiguration
    • getApplicationId

      @Stability(Deprecated) @Deprecated @NotNull protected String getApplicationId()
      Deprecated.
    • setApplicationId

      @Stability(Deprecated) @Deprecated protected void setApplicationId(@NotNull String value)
      Deprecated.
    • getExtensible

      @Stability(Deprecated) @Deprecated @NotNull protected ExtensibleBase getExtensible()
      Deprecated.
    • setExtensible

      @Stability(Deprecated) @Deprecated protected void setExtensible(@NotNull ExtensibleBase value)
      Deprecated.