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.98.0 (build 00b106d)",
date="2024-05-08T21:35:02.307Z")
@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
ModifierConstructorDescriptionprotected
protected
ConfigurationContent
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ConfigurationContent
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationContent
Defines the hosted configuration content from a file.static ConfigurationContent
Defines the hosted configuration content from a file.static ConfigurationContent
fromInline
(String content) Defines the hosted configuration content from inline code.static ConfigurationContent
fromInline
(String content, String contentType) Defines the hosted configuration content from inline code.static ConfigurationContent
fromInlineJson
(String content) Defines the hosted configuration content as JSON from inline code.static ConfigurationContent
fromInlineJson
(String content, String contentType) Defines the hosted configuration content as JSON from inline code.static ConfigurationContent
fromInlineText
(String content) Defines the hosted configuration content as text from inline code.static ConfigurationContent
fromInlineYaml
(String content) Defines the hosted configuration content as YAML from inline code.abstract String
The configuration content.abstract String
The configuration content type.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-