Class ConfigurationContent

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appconfig.ConfigurationContent
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:57.084Z") @Stability(Stable) public abstract class ConfigurationContent extends software.amazon.jsii.JsiiObject
Defines the hosted configuration content.

Example:

 Application app = new Application(this, "MyApp");
 Environment env = Environment.Builder.create(this, "MyEnv")
         .application(app)
         .build();
 HostedConfiguration.Builder.create(this, "MyHostedConfig")
         .application(app)
         .deployTo(List.of(env))
         .content(ConfigurationContent.fromInlineText("This is my configuration content."))
         .build();
 
  • Constructor Details

    • ConfigurationContent

      protected ConfigurationContent(software.amazon.jsii.JsiiObjectRef objRef)
    • ConfigurationContent

      protected ConfigurationContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ConfigurationContent

      @Stability(Stable) protected ConfigurationContent()
  • Method Details

    • fromFile

      @Stability(Stable) @NotNull public static ConfigurationContent fromFile(@NotNull String inputPath, @Nullable String contentType)
      Defines the hosted configuration content from a file.

      Parameters:
      inputPath - The path to the file that defines configuration content. This parameter is required.
      contentType - The content type of the configuration.
    • fromFile

      @Stability(Stable) @NotNull public static ConfigurationContent fromFile(@NotNull String inputPath)
      Defines the hosted configuration content from a file.

      Parameters:
      inputPath - The path to the file that defines configuration content. This parameter is required.
    • fromInline

      @Stability(Stable) @NotNull public static ConfigurationContent fromInline(@NotNull String content, @Nullable String contentType)
      Defines the hosted configuration content from inline code.

      Parameters:
      content - The inline code that defines the configuration content. This parameter is required.
      contentType - The content type of the configuration.
    • fromInline

      @Stability(Stable) @NotNull public static ConfigurationContent fromInline(@NotNull String content)
      Defines the hosted configuration content from inline code.

      Parameters:
      content - The inline code that defines the configuration content. This parameter is required.
    • fromInlineJson

      @Stability(Stable) @NotNull public static ConfigurationContent fromInlineJson(@NotNull String content, @Nullable String contentType)
      Defines the hosted configuration content as JSON from inline code.

      Parameters:
      content - The inline code that defines the configuration content. This parameter is required.
      contentType - The content type of the configuration.
    • fromInlineJson

      @Stability(Stable) @NotNull public static ConfigurationContent fromInlineJson(@NotNull String content)
      Defines the hosted configuration content as JSON from inline code.

      Parameters:
      content - The inline code that defines the configuration content. This parameter is required.
    • fromInlineText

      @Stability(Stable) @NotNull public static ConfigurationContent fromInlineText(@NotNull String content)
      Defines the hosted configuration content as text from inline code.

      Parameters:
      content - The inline code that defines the configuration content. This parameter is required.
    • fromInlineYaml

      @Stability(Stable) @NotNull public static ConfigurationContent fromInlineYaml(@NotNull String content)
      Defines the hosted configuration content as YAML from inline code.

      Parameters:
      content - The inline code that defines the configuration content. This parameter is required.
    • getContent

      @Stability(Stable) @NotNull public abstract String getContent()
      The configuration content.
    • getContentType

      @Stability(Stable) @NotNull public abstract String getContentType()
      The configuration content type.