Class PDKNagAppProps.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • analyticsReporting

        @Stability(Stable)
        public PDKNagAppProps.Builder analyticsReporting​(Boolean analyticsReporting)
        Sets the value of AppProps.getAnalyticsReporting()
        Parameters:
        analyticsReporting - Include runtime versioning information in the Stacks of this app.
        Returns:
        this
      • autoSynth

        @Stability(Stable)
        public PDKNagAppProps.Builder autoSynth​(Boolean autoSynth)
        Sets the value of AppProps.getAutoSynth()
        Parameters:
        autoSynth - Automatically call `synth()` before the program exits. If you set this, you don't have to call synth() explicitly. Note that this feature is only available for certain programming languages, and calling synth() is still recommended.
        Returns:
        this
      • context

        @Stability(Stable)
        public PDKNagAppProps.Builder context​(Map<String,​? extends Object> context)
        Sets the value of AppProps.getContext()
        Parameters:
        context - Additional context values for the application. Context set by the CLI or the context key in cdk.json has precedence.

        Context can be read from any construct using node.getContext(key).

        Returns:
        this
      • defaultStackSynthesizer

        @Stability(Stable)
        public PDKNagAppProps.Builder defaultStackSynthesizer​(software.amazon.awscdk.IReusableStackSynthesizer defaultStackSynthesizer)
        Sets the value of AppProps.getDefaultStackSynthesizer()
        Parameters:
        defaultStackSynthesizer - The stack synthesizer to use by default for all Stacks in the App. The Stack Synthesizer controls aspects of synthesis and deployment, like how assets are referenced and what IAM roles to use. For more information, see the README of the main CDK package.
        Returns:
        this
      • outdir

        @Stability(Stable)
        public PDKNagAppProps.Builder outdir​(String outdir)
        Sets the value of AppProps.getOutdir()
        Parameters:
        outdir - The output directory into which to emit synthesized artifacts. You should never need to set this value. By default, the value you pass to the CLI's --output flag will be used, and if you change it to a different directory the CLI will fail to pick up the generated Cloud Assembly.

        This property is intended for internal and testing use.

        Returns:
        this
      • postCliContext

        @Stability(Stable)
        public PDKNagAppProps.Builder postCliContext​(Map<String,​? extends Object> postCliContext)
        Sets the value of AppProps.getPostCliContext()
        Parameters:
        postCliContext - Additional context values for the application. Context provided here has precedence over context set by:

        • The CLI via --context
        • The context key in cdk.json
        • The AppProps.context property

        This property is recommended over the AppProps.context property since you can make final decision over which context value to take in your app.

        Context can be read from any construct using node.getContext(key).

        Returns:
        this
      • stackTraces

        @Stability(Stable)
        public PDKNagAppProps.Builder stackTraces​(Boolean stackTraces)
        Sets the value of AppProps.getStackTraces()
        Parameters:
        stackTraces - Include construct creation stack trace in the `aws:cdk:trace` metadata key of all constructs.
        Returns:
        this
      • treeMetadata

        @Stability(Stable)
        public PDKNagAppProps.Builder treeMetadata​(Boolean treeMetadata)
        Sets the value of AppProps.getTreeMetadata()
        Parameters:
        treeMetadata - Include construct tree metadata as part of the Cloud Assembly.
        Returns:
        this