Class JsonFile

  • 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.769Z")
    @Stability(Experimental)
    public class JsonFile
    extends ObjectFile
    (experimental) Represents a JSON file.
    • Constructor Detail

      • JsonFile

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

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

        @Stability(Experimental)
        public JsonFile​(@NotNull
                        software.constructs.IConstruct scope,
                        @NotNull
                        String filePath,
                        @NotNull
                        JsonFileOptions 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
      • getSupportsComments

        @Stability(Experimental)
        @NotNull
        public Boolean getSupportsComments()