@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-22T00:23:08.210Z") @Stability(value=Stable) public class Yaml extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
protected |
Yaml(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Yaml(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static List<Object> |
load(String urlOrFile)
Downloads a set of YAML documents (k8s manifest for example) from a URL or a file and returns them as javascript objects.
|
static void |
save(String filePath,
List<? extends Object> docs)
Saves a set of objects as a multi-document YAML file.
|
static String |
stringify(Object doc)
Stringify a document into yaml.
|
static String |
tmp(List<? extends Object> docs)
Saves a set of YAML documents into a temp file (in /tmp).
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Yaml(software.amazon.jsii.JsiiObjectRef objRef)
protected Yaml(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static List<Object> load(@NotNull String urlOrFile)
Empty documents are filtered out.
urlOrFile
- a URL of a file path to load from. This parameter is required.@Stability(value=Stable) public static void save(@NotNull String filePath, @NotNull List<? extends Object> docs)
filePath
- The output path. This parameter is required.docs
- The set of objects. This parameter is required.@Stability(value=Stable) @NotNull public static String stringify(@NotNull Object doc)
doc
- An object. This parameter is required.Copyright © 2021. All rights reserved.