Class DestroyOptions.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.DestroyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DestroyOptions>
- Enclosing interface:
DestroyOptions
@Stability(Stable)
public static final class DestroyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DestroyOptions>
A builder for
DestroyOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDefaultCdkOptions.getAll()
Sets the value ofDefaultCdkOptions.getApp()
assetMetadata
(Boolean assetMetadata) Sets the value ofDefaultCdkOptions.getAssetMetadata()
build()
Builds the configured instance.caBundlePath
(String caBundlePath) Sets the value ofDefaultCdkOptions.getCaBundlePath()
Sets the value ofDefaultCdkOptions.getColor()
Sets the value ofDefaultCdkOptions.getContext()
Sets the value ofDefaultCdkOptions.getDebug()
Sets the value ofDefaultCdkOptions.getEc2Creds()
exclusively
(Boolean exclusively) Sets the value ofDestroyOptions.getExclusively()
Sets the value ofDestroyOptions.getForce()
ignoreErrors
(Boolean ignoreErrors) Sets the value ofDefaultCdkOptions.getIgnoreErrors()
Sets the value ofDefaultCdkOptions.getJson()
Sets the value ofDefaultCdkOptions.getLookups()
Sets the value ofDefaultCdkOptions.getNotices()
Sets the value ofDefaultCdkOptions.getOutput()
pathMetadata
(Boolean pathMetadata) Sets the value ofDefaultCdkOptions.getPathMetadata()
Sets the value ofDefaultCdkOptions.getProfile()
Sets the value ofDefaultCdkOptions.getProxy()
Sets the value ofDefaultCdkOptions.getRoleArn()
Sets the value ofDefaultCdkOptions.getStacks()
Sets the value ofDefaultCdkOptions.getStaging()
Sets the value ofDefaultCdkOptions.getStrict()
Sets the value ofDefaultCdkOptions.getTrace()
Sets the value ofDefaultCdkOptions.getVerbose()
versionReporting
(Boolean versionReporting) Sets the value ofDefaultCdkOptions.getVersionReporting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exclusively
Sets the value ofDestroyOptions.getExclusively()
- Parameters:
exclusively
- Only destroy the given stack.- Returns:
this
-
force
Sets the value ofDestroyOptions.getForce()
- Parameters:
force
- Do not ask for permission before destroying stacks.- Returns:
this
-
all
Sets the value ofDefaultCdkOptions.getAll()
- Parameters:
all
- Deploy all stacks. Requried ifstacks
is not set- Returns:
this
-
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
Sets the value ofDefaultCdkOptions.getAssetMetadata()
- Parameters:
assetMetadata
- Include "aws:asset:*" CloudFormation metadata for resources that use assets.- Returns:
this
-
caBundlePath
Sets the value ofDefaultCdkOptions.getCaBundlePath()
- Parameters:
caBundlePath
- Path to CA certificate to use when validating HTTPS requests.- Returns:
this
-
color
Sets the value ofDefaultCdkOptions.getColor()
- Parameters:
color
- Show colors and other style from console output.- Returns:
this
-
context
Sets the value ofDefaultCdkOptions.getContext()
- Parameters:
context
- Additional context.- Returns:
this
-
debug
Sets the value ofDefaultCdkOptions.getDebug()
- Parameters:
debug
- enable emission of additional debugging information, such as creation stack traces of tokens.- Returns:
this
-
ec2Creds
Sets the value ofDefaultCdkOptions.getEc2Creds()
- Parameters:
ec2Creds
- Force trying to fetch EC2 instance credentials.- Returns:
this
-
ignoreErrors
Sets the value ofDefaultCdkOptions.getIgnoreErrors()
- Parameters:
ignoreErrors
- Ignores synthesis errors, which will likely produce an invalid output.- Returns:
this
-
json
Sets the value ofDefaultCdkOptions.getJson()
- Parameters:
json
- Use JSON output instead of YAML when templates are printed to STDOUT.- Returns:
this
-
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
Sets the value ofDefaultCdkOptions.getNotices()
- Parameters:
notices
- Show relevant notices.- Returns:
this
-
output
Sets the value ofDefaultCdkOptions.getOutput()
- Parameters:
output
- Emits the synthesized cloud assembly into a directory.- Returns:
this
-
pathMetadata
Sets the value ofDefaultCdkOptions.getPathMetadata()
- Parameters:
pathMetadata
- Include "aws:cdk:path" CloudFormation metadata for each resource.- Returns:
this
-
profile
Sets the value ofDefaultCdkOptions.getProfile()
- Parameters:
profile
- Use the indicated AWS profile as the default environment.- Returns:
this
-
proxy
Sets the value ofDefaultCdkOptions.getProxy()
- Parameters:
proxy
- Use the indicated proxy. Will read from HTTPS_PROXY environment if specified- Returns:
this
-
roleArn
Sets the value ofDefaultCdkOptions.getRoleArn()
- Parameters:
roleArn
- Role to pass to CloudFormation for deployment.- Returns:
this
-
stacks
Sets the value ofDefaultCdkOptions.getStacks()
- Parameters:
stacks
- List of stacks to deploy. Requried ifall
is not set- Returns:
this
-
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
Sets the value ofDefaultCdkOptions.getStrict()
- Parameters:
strict
- Do not construct stacks with warnings.- Returns:
this
-
trace
Sets the value ofDefaultCdkOptions.getTrace()
- Parameters:
trace
- Print trace for stack warnings.- Returns:
this
-
verbose
Sets the value ofDefaultCdkOptions.getVerbose()
- Parameters:
verbose
- show debug logs.- Returns:
this
-
versionReporting
Sets the value ofDefaultCdkOptions.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<DestroyOptions>
- Returns:
- a new instance of
DestroyOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-