Interface DefaultCdkOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
DeployOptions,DestroyOptions
- All Known Implementing Classes:
DefaultCdkOptions.Jsii$Proxy,DeployOptions.Jsii$Proxy,DestroyOptions.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloudassembly.schema.*;
DefaultCdkOptions defaultCdkOptions = DefaultCdkOptions.builder()
.all(false)
.app("app")
.assetMetadata(false)
.caBundlePath("caBundlePath")
.color(false)
.context(Map.of(
"contextKey", "context"))
.debug(false)
.ec2Creds(false)
.ignoreErrors(false)
.json(false)
.lookups(false)
.notices(false)
.output("output")
.pathMetadata(false)
.profile("profile")
.proxy("proxy")
.roleArn("roleArn")
.stacks(List.of("stacks"))
.staging(false)
.strict(false)
.trace(false)
.verbose(false)
.versionReporting(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDefaultCdkOptionsstatic final classAn implementation forDefaultCdkOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultCdkOptions.Builderbuilder()default BooleangetAll()Deploy all stacks.default StringgetApp()command-line for executing your app or a cloud assembly directory e.g.default BooleanInclude "aws:asset:*" CloudFormation metadata for resources that use assets.default StringPath to CA certificate to use when validating HTTPS requests.default BooleangetColor()Show colors and other style from console output.Additional context.default BooleangetDebug()enable emission of additional debugging information, such as creation stack traces of tokens.default BooleanForce trying to fetch EC2 instance credentials.default BooleanIgnores synthesis errors, which will likely produce an invalid output.default BooleangetJson()Use JSON output instead of YAML when templates are printed to STDOUT.default BooleanPerform context lookups.default BooleanShow relevant notices.default StringEmits the synthesized cloud assembly into a directory.default BooleanInclude "aws:cdk:path" CloudFormation metadata for each resource.default StringUse the indicated AWS profile as the default environment.default StringgetProxy()Use the indicated proxy.default StringRole to pass to CloudFormation for deployment.List of stacks to deploy.default BooleanCopy assets to the output directory.default BooleanDo not construct stacks with warnings.default BooleangetTrace()Print trace for stack warnings.default Booleanshow debug logs.default BooleanInclude "AWS::CDK::Metadata" resource in synthesized templates.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAll
Deploy all stacks.Requried if
stacksis not setDefault: - false
-
getApp
command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" or "cdk.out".Default: - read from cdk.json
-
getAssetMetadata
Include "aws:asset:*" CloudFormation metadata for resources that use assets.Default: true
-
getCaBundlePath
Path to CA certificate to use when validating HTTPS requests.Default: - read from AWS_CA_BUNDLE environment variable
-
getColor
Show colors and other style from console output.Default: true
-
getContext
Additional context.Default: - no additional context
-
getDebug
enable emission of additional debugging information, such as creation stack traces of tokens.Default: false
-
getEc2Creds
Force trying to fetch EC2 instance credentials.Default: - guess EC2 instance status
-
getIgnoreErrors
Ignores synthesis errors, which will likely produce an invalid output.Default: false
-
getJson
Use JSON output instead of YAML when templates are printed to STDOUT.Default: false
-
getLookups
Perform context lookups.Synthesis fails if this is disabled and context lookups need to be performed
Default: true
-
getNotices
Show relevant notices.Default: true
-
getOutput
Emits the synthesized cloud assembly into a directory.Default: cdk.out
-
getPathMetadata
Include "aws:cdk:path" CloudFormation metadata for each resource.Default: true
-
getProfile
Use the indicated AWS profile as the default environment.Default: - no profile is used
-
getProxy
Use the indicated proxy.Will read from HTTPS_PROXY environment if specified
Default: - no proxy
-
getRoleArn
Role to pass to CloudFormation for deployment.Default: - use the bootstrap cfn-exec role
-
getStacks
List of stacks to deploy.Requried if
allis not setDefault: - []
-
getStaging
Copy assets to the output directory.Needed for local debugging the source files with SAM CLI
Default: false
-
getStrict
Do not construct stacks with warnings.Default: false
-
getTrace
Print trace for stack warnings.Default: false
-
getVerbose
show debug logs.Default: false
-
getVersionReporting
Include "AWS::CDK::Metadata" resource in synthesized templates.Default: true
-
builder
- Returns:
- a
DefaultCdkOptions.BuilderofDefaultCdkOptions
-