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.110.0 (build 336b265)",
date="2025-04-22T23:08:06.692Z")
@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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedConfigurationContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConfigurationContent(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationContentDefines the hosted configuration content from a file.static ConfigurationContentDefines the hosted configuration content from a file.static ConfigurationContentfromInline(String content) Defines the hosted configuration content from inline code.static ConfigurationContentfromInline(String content, String contentType) Defines the hosted configuration content from inline code.static ConfigurationContentfromInlineJson(String content) Defines the hosted configuration content as JSON from inline code.static ConfigurationContentfromInlineJson(String content, String contentType) Defines the hosted configuration content as JSON from inline code.static ConfigurationContentfromInlineText(String content) Defines the hosted configuration content as text from inline code.static ConfigurationContentfromInlineYaml(String content) Defines the hosted configuration content as YAML from inline code.abstract StringThe configuration content.abstract StringThe configuration content type.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
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
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
The configuration content. -
getContentType
The configuration content type.
-