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.116.0 (build 0eddcff)",
date="2025-10-24T13:34:30.680Z")
@Stability(Stable)
public abstract class ConfigurationContent
extends software.amazon.jsii.JsiiObject
Defines the hosted configuration content.
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 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, specified as a standard MIME 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 configuration content type, specified as a standard MIME type. Supported examples include: -text/plain-application/json-application/octet-stream-application/x-yaml.
-
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 configuration content type, specified as a standard MIME type. Supported examples include: -text/plain-application/json-application/octet-stream-application/x-yaml.
-
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 configuration content type, specified as a standard MIME type. Supported examples include: -text/plain-application/json-application/octet-stream-application/x-yaml.
-
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, 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
-