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.cloud_assembly_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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDefaultCdkOptions
static final class
An implementation forDefaultCdkOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Include "aws:asset:*" CloudFormation metadata for resources that use assets.default String
Path to CA certificate to use when validating HTTPS requests.default Boolean
getColor()
Show colors and other style from console output.Additional context.default Boolean
getDebug()
enable emission of additional debugging information, such as creation stack traces of tokens.default Boolean
Force trying to fetch EC2 instance credentials.default Boolean
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
Perform context lookups.default Boolean
Show relevant notices.default String
Emits the synthesized cloud assembly into a directory.default Boolean
Include "aws:cdk:path" CloudFormation metadata for each resource.default String
Use the indicated AWS profile as the default environment.default String
getProxy()
Use the indicated proxy.default String
Role to pass to CloudFormation for deployment.List of stacks to deploy.default Boolean
Copy assets to the output directory.default Boolean
Do not construct stacks with warnings.default Boolean
getTrace()
Print trace for stack warnings.default Boolean
show debug logs.default Boolean
Include "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
stacks
is 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
all
is 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.Builder
ofDefaultCdkOptions
-