Class DefaultCdkOptions.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.DefaultCdkOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DefaultCdkOptions>
- Enclosing interface:
- DefaultCdkOptions
@Stability(Stable) public static final class DefaultCdkOptions.Builder extends Object implements software.amazon.jsii.Builder<DefaultCdkOptions>
A builder forDefaultCdkOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
all
@Stability(Stable) public DefaultCdkOptions.Builder all(Boolean all)
Sets the value ofDefaultCdkOptions.getAll()- Parameters:
all- Deploy all stacks. Requried ifstacksis not set- Returns:
this
-
app
@Stability(Stable) public DefaultCdkOptions.Builder app(String app)
Sets the value ofDefaultCdkOptions.getApp()- Parameters:
app- command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" or "cdk.out".- Returns:
this
-
assetMetadata
@Stability(Stable) public DefaultCdkOptions.Builder assetMetadata(Boolean assetMetadata)
Sets the value ofDefaultCdkOptions.getAssetMetadata()- Parameters:
assetMetadata- Include "aws:asset:*" CloudFormation metadata for resources that use assets.- Returns:
this
-
caBundlePath
@Stability(Stable) public DefaultCdkOptions.Builder caBundlePath(String caBundlePath)
Sets the value ofDefaultCdkOptions.getCaBundlePath()- Parameters:
caBundlePath- Path to CA certificate to use when validating HTTPS requests.- Returns:
this
-
color
@Stability(Stable) public DefaultCdkOptions.Builder color(Boolean color)
Sets the value ofDefaultCdkOptions.getColor()- Parameters:
color- Show colors and other style from console output.- Returns:
this
-
context
@Stability(Stable) public DefaultCdkOptions.Builder context(Map<String,String> context)
Sets the value ofDefaultCdkOptions.getContext()- Parameters:
context- Additional context.- Returns:
this
-
debug
@Stability(Stable) public DefaultCdkOptions.Builder debug(Boolean debug)
Sets the value ofDefaultCdkOptions.getDebug()- Parameters:
debug- enable emission of additional debugging information, such as creation stack traces of tokens.- Returns:
this
-
ec2Creds
@Stability(Stable) public DefaultCdkOptions.Builder ec2Creds(Boolean ec2Creds)
Sets the value ofDefaultCdkOptions.getEc2Creds()- Parameters:
ec2Creds- Force trying to fetch EC2 instance credentials.- Returns:
this
-
ignoreErrors
@Stability(Stable) public DefaultCdkOptions.Builder ignoreErrors(Boolean ignoreErrors)
Sets the value ofDefaultCdkOptions.getIgnoreErrors()- Parameters:
ignoreErrors- Ignores synthesis errors, which will likely produce an invalid output.- Returns:
this
-
json
@Stability(Stable) public DefaultCdkOptions.Builder json(Boolean json)
Sets the value ofDefaultCdkOptions.getJson()- Parameters:
json- Use JSON output instead of YAML when templates are printed to STDOUT.- Returns:
this
-
lookups
@Stability(Stable) public DefaultCdkOptions.Builder lookups(Boolean lookups)
Sets the value ofDefaultCdkOptions.getLookups()- Parameters:
lookups- Perform context lookups. Synthesis fails if this is disabled and context lookups need to be performed- Returns:
this
-
notices
@Stability(Stable) public DefaultCdkOptions.Builder notices(Boolean notices)
Sets the value ofDefaultCdkOptions.getNotices()- Parameters:
notices- Show relevant notices.- Returns:
this
-
output
@Stability(Stable) public DefaultCdkOptions.Builder output(String output)
Sets the value ofDefaultCdkOptions.getOutput()- Parameters:
output- Emits the synthesized cloud assembly into a directory.- Returns:
this
-
pathMetadata
@Stability(Stable) public DefaultCdkOptions.Builder pathMetadata(Boolean pathMetadata)
Sets the value ofDefaultCdkOptions.getPathMetadata()- Parameters:
pathMetadata- Include "aws:cdk:path" CloudFormation metadata for each resource.- Returns:
this
-
profile
@Stability(Stable) public DefaultCdkOptions.Builder profile(String profile)
Sets the value ofDefaultCdkOptions.getProfile()- Parameters:
profile- Use the indicated AWS profile as the default environment.- Returns:
this
-
proxy
@Stability(Stable) public DefaultCdkOptions.Builder proxy(String proxy)
Sets the value ofDefaultCdkOptions.getProxy()- Parameters:
proxy- Use the indicated proxy. Will read from HTTPS_PROXY environment if specified- Returns:
this
-
roleArn
@Stability(Stable) public DefaultCdkOptions.Builder roleArn(String roleArn)
Sets the value ofDefaultCdkOptions.getRoleArn()- Parameters:
roleArn- Role to pass to CloudFormation for deployment.- Returns:
this
-
stacks
@Stability(Stable) public DefaultCdkOptions.Builder stacks(List<String> stacks)
Sets the value ofDefaultCdkOptions.getStacks()- Parameters:
stacks- List of stacks to deploy. Requried ifallis not set- Returns:
this
-
staging
@Stability(Stable) public DefaultCdkOptions.Builder staging(Boolean staging)
Sets the value ofDefaultCdkOptions.getStaging()- Parameters:
staging- Copy assets to the output directory. Needed for local debugging the source files with SAM CLI- Returns:
this
-
strict
@Stability(Stable) public DefaultCdkOptions.Builder strict(Boolean strict)
Sets the value ofDefaultCdkOptions.getStrict()- Parameters:
strict- Do not construct stacks with warnings.- Returns:
this
-
trace
@Stability(Stable) public DefaultCdkOptions.Builder trace(Boolean trace)
Sets the value ofDefaultCdkOptions.getTrace()- Parameters:
trace- Print trace for stack warnings.- Returns:
this
-
verbose
@Stability(Stable) public DefaultCdkOptions.Builder verbose(Boolean verbose)
Sets the value ofDefaultCdkOptions.getVerbose()- Parameters:
verbose- show debug logs.- Returns:
this
-
versionReporting
@Stability(Stable) public DefaultCdkOptions.Builder versionReporting(Boolean versionReporting)
Sets the value ofDefaultCdkOptions.getVersionReporting()- Parameters:
versionReporting- Include "AWS::CDK::Metadata" resource in synthesized templates.- Returns:
this
-
build
@Stability(Stable) public DefaultCdkOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DefaultCdkOptions>- Returns:
- a new instance of
DefaultCdkOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-