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