Package io.github.cdklabs.projen.awscdk
Class CdkConfigCommonOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.awscdk.CdkConfigCommonOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CdkConfigCommonOptions>
- Enclosing interface:
- CdkConfigCommonOptions
@Stability(Experimental) public static final class CdkConfigCommonOptions.Builder extends Object implements software.amazon.jsii.Builder<CdkConfigCommonOptions>
A builder forCdkConfigCommonOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
buildCommand
@Stability(Experimental) public CdkConfigCommonOptions.Builder buildCommand(String buildCommand)
Sets the value ofCdkConfigCommonOptions.getBuildCommand()- Parameters:
buildCommand- A command to execute before synthesis. This command will be called when runningcdk synthor whencdk watchidentifies a change in your source code before redeployment.- Returns:
this
-
cdkout
@Stability(Experimental) public CdkConfigCommonOptions.Builder cdkout(String cdkout)
Sets the value ofCdkConfigCommonOptions.getCdkout()- Parameters:
cdkout- cdk.out directory.- Returns:
this
-
context
@Stability(Experimental) public CdkConfigCommonOptions.Builder context(Map<String,? extends Object> context)
Sets the value ofCdkConfigCommonOptions.getContext()- Parameters:
context- Additional context to include incdk.json.- Returns:
this
-
featureFlags
@Stability(Experimental) public CdkConfigCommonOptions.Builder featureFlags(Boolean featureFlags)
Sets the value ofCdkConfigCommonOptions.getFeatureFlags()- Parameters:
featureFlags- Include all feature flags in cdk.json.- Returns:
this
-
requireApproval
@Stability(Experimental) public CdkConfigCommonOptions.Builder requireApproval(ApprovalLevel requireApproval)
Sets the value ofCdkConfigCommonOptions.getRequireApproval()- Parameters:
requireApproval- To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them.- Returns:
this
-
watchExcludes
@Stability(Experimental) public CdkConfigCommonOptions.Builder watchExcludes(List<String> watchExcludes)
Sets the value ofCdkConfigCommonOptions.getWatchExcludes()- Parameters:
watchExcludes- Glob patterns to exclude fromcdk watch.- Returns:
this
-
watchIncludes
@Stability(Experimental) public CdkConfigCommonOptions.Builder watchIncludes(List<String> watchIncludes)
Sets the value ofCdkConfigCommonOptions.getWatchIncludes()- Parameters:
watchIncludes- Glob patterns to include incdk watch.- Returns:
this
-
build
@Stability(Experimental) public CdkConfigCommonOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CdkConfigCommonOptions>- Returns:
- a new instance of
CdkConfigCommonOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-