Interface DeployOptions
- All Superinterfaces:
DefaultCdkOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DeployOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:54.671Z")
@Stability(Stable)
public interface DeployOptions
extends software.amazon.jsii.JsiiSerializable, DefaultCdkOptions
Options to use with cdk deploy.
Example:
App app = new App(); Stack stackUnderTest = new Stack(app, "StackUnderTest"); Stack stack = new Stack(app, "stack"); IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") .testCases(List.of(stackUnderTest)) .diffAssets(true) .stackUpdateWorkflow(true) .cdkCommandOptions(CdkCommands.builder() .deploy(DeployCommand.builder() .args(DeployOptions.builder() .requireApproval(RequireApproval.NEVER) .json(true) .build()) .build()) .destroy(DestroyCommand.builder() .args(DestroyOptions.builder() .force(true) .build()) .build()) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDeployOptions
static final class
An implementation forDeployOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeployOptions.Builder
builder()
default String
Optional name to use for the CloudFormation change set.default Boolean
getCi()
Whether we are on a CI system.default Boolean
Only perform action on the given stack.default Boolean
Whether to execute the ChangeSet Not providingexecute
parameter will result in execution of ChangeSet.default Boolean
getForce()
Always deploy, even if templates are identical.ARNs of SNS topics that CloudFormation will notify with stack related events.default String
Path to file where stack outputs will be written after a successful deploy as JSON.Additional parameters for CloudFormation at deploy time.default RequireApproval
What kind of security changes require approval.Reuse the assets with the given asset IDs.default Boolean
Rollback failed deployments.default String
Name of the toolkit stack to use/deploy.default Boolean
Use previous values for unspecified parameters.Methods inherited from interface software.amazon.awscdk.cloudassembly.schema.DefaultCdkOptions
getAll, getApp, getAssetMetadata, getCaBundlePath, getColor, getContext, getDebug, getEc2Creds, getIgnoreErrors, getJson, getLookups, getNotices, getOutput, getPathMetadata, getProfile, getProxy, getRoleArn, getStacks, getStaging, getStrict, getTrace, getVerbose, getVersionReporting
Methods 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
-
getExclusively
Only perform action on the given stack.Default: false
-
getExecute
Whether to execute the ChangeSet Not providingexecute
parameter 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.Builder
ofDeployOptions
-