@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.854Z") @Stability(value=Stable) public interface DefaultCdkOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DefaultCdkOptions.Builder
A builder for
DefaultCdkOptions |
static class |
DefaultCdkOptions.Jsii$Proxy
An implementation for
DefaultCdkOptions |
| Modifier and Type | Method and Description |
|---|---|
static DefaultCdkOptions.Builder |
builder() |
default Boolean |
getAll()
Deploy all stacks.
|
default String |
getApp()
command-line for executing your app or a cloud assembly directory e.g.
|
default Boolean |
getAssetMetadata()
Include "aws:asset:*" CloudFormation metadata for resources that use assets.
|
default String |
getCaBundlePath()
Path to CA certificate to use when validating HTTPS requests.
|
default Boolean |
getColor()
Show colors and other style from console output.
|
default Map<String,String> |
getContext()
Additional context.
|
default Boolean |
getDebug()
enable emission of additional debugging information, such as creation stack traces of tokens.
|
default Boolean |
getEc2Creds()
Force trying to fetch EC2 instance credentials.
|
default Boolean |
getIgnoreErrors()
Ignores synthesis errors, which will likely produce an invalid output.
|
default Boolean |
getJson()
Use JSON output instead of YAML when templates are printed to STDOUT.
|
default Boolean |
getLookups()
Perform context lookups.
|
default Boolean |
getNotices()
Show relevant notices.
|
default String |
getOutput()
Emits the synthesized cloud assembly into a directory.
|
default Boolean |
getPathMetadata()
Include "aws:cdk:path" CloudFormation metadata for each resource.
|
default String |
getProfile()
Use the indicated AWS profile as the default environment.
|
default String |
getProxy()
Use the indicated proxy.
|
default String |
getRoleArn()
Role to pass to CloudFormation for deployment.
|
default List<String> |
getStacks()
List of stacks to deploy.
|
default Boolean |
getStaging()
Copy assets to the output directory.
|
default Boolean |
getStrict()
Do not construct stacks with warnings.
|
default Boolean |
getTrace()
Print trace for stack warnings.
|
default Boolean |
getVerbose()
show debug logs.
|
default Boolean |
getVersionReporting()
Include "AWS::CDK::Metadata" resource in synthesized templates.
|
@Stability(value=Stable) @Nullable default Boolean getAll()
Requried if stacks is not set
Default: - false
@Stability(value=Stable) @Nullable default String getApp()
Default: - read from cdk.json
@Stability(value=Stable) @Nullable default Boolean getAssetMetadata()
Default: true
@Stability(value=Stable) @Nullable default String getCaBundlePath()
Default: - read from AWS_CA_BUNDLE environment variable
@Stability(value=Stable) @Nullable default Boolean getColor()
Default: true
@Stability(value=Stable) @Nullable default Map<String,String> getContext()
Default: - no additional context
@Stability(value=Stable) @Nullable default Boolean getDebug()
Default: false
@Stability(value=Stable) @Nullable default Boolean getEc2Creds()
Default: - guess EC2 instance status
@Stability(value=Stable) @Nullable default Boolean getIgnoreErrors()
Default: false
@Stability(value=Stable) @Nullable default Boolean getJson()
Default: false
@Stability(value=Stable) @Nullable default Boolean getLookups()
Synthesis fails if this is disabled and context lookups need to be performed
Default: true
@Stability(value=Stable) @Nullable default Boolean getNotices()
Default: true
@Stability(value=Stable) @Nullable default String getOutput()
Default: cdk.out
@Stability(value=Stable) @Nullable default Boolean getPathMetadata()
Default: true
@Stability(value=Stable) @Nullable default String getProfile()
Default: - no profile is used
@Stability(value=Stable) @Nullable default String getProxy()
Will read from HTTPS_PROXY environment if specified
Default: - no proxy
@Stability(value=Stable) @Nullable default String getRoleArn()
Default: - use the bootstrap cfn-exec role
@Stability(value=Stable) @Nullable default List<String> getStacks()
Requried if all is not set
Default: - []
@Stability(value=Stable) @Nullable default Boolean getStaging()
Needed for local debugging the source files with SAM CLI
Default: false
@Stability(value=Stable) @Nullable default Boolean getStrict()
Default: false
@Stability(value=Stable) @Nullable default Boolean getTrace()
Default: false
@Stability(value=Stable) @Nullable default Boolean getVerbose()
Default: false
@Stability(value=Stable) @Nullable default Boolean getVersionReporting()
Default: true
@Stability(value=Stable) static DefaultCdkOptions.Builder builder()
DefaultCdkOptions.Builder of DefaultCdkOptionsCopyright © 2022. All rights reserved.