Class YamlFile

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:42.819Z")
    @Stability(Experimental)
    public class YamlFile
    extends ObjectFile
    (experimental) Represents a YAML file.
    • Constructor Detail

      • YamlFile

        protected YamlFile​(software.amazon.jsii.JsiiObjectRef objRef)
      • YamlFile

        protected YamlFile​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • YamlFile

        @Stability(Experimental)
        public YamlFile​(@NotNull
                        software.constructs.IConstruct scope,
                        @NotNull
                        String filePath,
                        @NotNull
                        YamlFileOptions options)
        Parameters:
        scope - This parameter is required.
        filePath - This parameter is required.
        options - This parameter is required.
    • Method Detail

      • synthesizeContent

        @Stability(Experimental)
        @Nullable
        protected String synthesizeContent​(@NotNull
                                           IResolver resolver)
        (experimental) Implemented by derived classes and returns the contents of the file to emit.

        Overrides:
        synthesizeContent in class ObjectFile
        Parameters:
        resolver - This parameter is required.
        Returns:
        the content to synthesize or undefined to skip the file
      • getLineWidth

        @Stability(Experimental)
        @NotNull
        public Number getLineWidth()
        (experimental) Maximum line width (set to 0 to disable folding).
      • setLineWidth

        @Stability(Experimental)
        public void setLineWidth​(@NotNull
                                 Number value)
        (experimental) Maximum line width (set to 0 to disable folding).