Interface DeployOptions
- All Superinterfaces:
DefaultCdkOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DeployOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:16.195Z")
@Stability(Stable)
public interface DeployOptions
extends software.amazon.jsii.JsiiSerializable, DefaultCdkOptions
Options to use with cdk deploy.
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.*;
DeployOptions deployOptions = DeployOptions.builder()
.all(false)
.app("app")
.assetMetadata(false)
.caBundlePath("caBundlePath")
.changeSetName("changeSetName")
.ci(false)
.color(false)
.concurrency(123)
.context(Map.of(
"contextKey", "context"))
.debug(false)
.ec2Creds(false)
.exclusively(false)
.execute(false)
.force(false)
.ignoreErrors(false)
.json(false)
.lookups(false)
.notices(false)
.notificationArns(List.of("notificationArns"))
.output("output")
.outputsFile("outputsFile")
.parameters(Map.of(
"parametersKey", "parameters"))
.pathMetadata(false)
.profile("profile")
.proxy("proxy")
.requireApproval(RequireApproval.NEVER)
.reuseAssets(List.of("reuseAssets"))
.roleArn("roleArn")
.rollback(false)
.stacks(List.of("stacks"))
.staging(false)
.strict(false)
.toolkitStackName("toolkitStackName")
.trace(false)
.usePreviousParameters(false)
.verbose(false)
.versionReporting(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDeployOptionsstatic final classAn implementation forDeployOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic DeployOptions.Builderbuilder()default StringOptional name to use for the CloudFormation change set.default BooleangetCi()Whether we are on a CI system.default NumberDeploy multiple stacks in parallel.default BooleanOnly perform action on the given stack.default BooleanWhether to execute the ChangeSet Not providingexecuteparameter will result in execution of ChangeSet.default BooleangetForce()Always deploy, even if templates are identical.ARNs of SNS topics that CloudFormation will notify with stack related events.default StringPath to file where stack outputs will be written after a successful deploy as JSON.Additional parameters for CloudFormation at deploy time.default RequireApprovalWhat kind of security changes require approval.Reuse the assets with the given asset IDs.default BooleanRollback failed deployments.default StringName of the toolkit stack to use/deploy.default BooleanUse previous values for unspecified parameters.Methods inherited from interface software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions
getAll, getApp, getAssetMetadata, getCaBundlePath, getColor, getContext, getDebug, getEc2Creds, getIgnoreErrors, getJson, getLookups, getNotices, getOutput, getPathMetadata, getProfile, getProxy, getRoleArn, getStacks, getStaging, getStrict, getTrace, getVerbose, getVersionReportingMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getChangeSetName
Optional name to use for the CloudFormation change set.If not provided, a name will be generated automatically.
Default: - auto generate a name
-
getCi
Whether we are on a CI system.Default: false
-
getConcurrency
Deploy multiple stacks in parallel.Default: 1
-
getExclusively
Only perform action on the given stack.Default: false
-
getExecute
Whether to execute the ChangeSet Not providingexecuteparameter will result in execution of ChangeSet.Default: true
-
getForce
Always deploy, even if templates are identical.Default: false
-
getNotificationArns
ARNs of SNS topics that CloudFormation will notify with stack related events.Default: - no notifications
-
getOutputsFile
Path to file where stack outputs will be written after a successful deploy as JSON.Default: - Outputs are not written to any file
-
getParameters
Additional parameters for CloudFormation at deploy time.Default: {}
-
getRequireApproval
What kind of security changes require approval.Default: RequireApproval.NEVER
-
getReuseAssets
Reuse the assets with the given asset IDs.Default: - do not reuse assets
-
getRollback
Rollback failed deployments.Default: true
-
getToolkitStackName
Name of the toolkit stack to use/deploy.Default: CDKToolkit
-
getUsePreviousParameters
Use previous values for unspecified parameters.If not set, all parameters must be specified for every deployment.
Default: true
-
builder
- Returns:
- a
DeployOptions.BuilderofDeployOptions
-