sst 2.48.5 → 2.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,323 +0,0 @@
1
- import * as cxapi from "@aws-cdk/cx-api";
2
- import * as cdk_assets from "cdk-assets";
3
- import { type ResourceIdentifierSummaries, ResourcesToImport, Template } from "sst-aws-cdk/lib/api/deployments/cloudformation.js";
4
- import { DeploymentMethod } from "sst-aws-cdk/lib/api/deployments/deployment-method.js";
5
- import { DeployStackResult } from "sst-aws-cdk/lib/api/deployments/deployment-result.js";
6
- import { type RootTemplateWithNestedStacks } from "sst-aws-cdk/lib/api/deployments/nested-stack-helpers.js";
7
- import type { SdkProvider } from "sst-aws-cdk/lib/api/aws-auth/sdk-provider.js";
8
- import { EnvironmentAccess } from "sst-aws-cdk/lib/api/environment-access.js";
9
- import { type EnvironmentResources } from "sst-aws-cdk/lib/api/environment-resources.js";
10
- import { HotswapMode, HotswapPropertyOverrides } from "sst-aws-cdk/lib/api/hotswap/common.js";
11
- import type { Tag } from "sst-aws-cdk/lib/api/tags.js";
12
- import { StackActivityProgress } from "sst-aws-cdk/lib/api/util/cloudformation/stack-activity-monitor.js";
13
- import { AssetManifest } from "cdk-assets";
14
- export interface DeployStackOptions {
15
- /**
16
- * Stack to deploy
17
- */
18
- readonly stack: cxapi.CloudFormationStackArtifact;
19
- /**
20
- * Execution role for the deployment (pass through to CloudFormation)
21
- *
22
- * @default - Current role
23
- */
24
- readonly roleArn?: string;
25
- /**
26
- * Topic ARNs to send a message when deployment finishes (pass through to CloudFormation)
27
- *
28
- * @default - No notifications
29
- */
30
- readonly notificationArns?: string[];
31
- /**
32
- * Override name under which stack will be deployed
33
- *
34
- * @default - Use artifact default
35
- */
36
- readonly deployName?: string;
37
- /**
38
- * Don't show stack deployment events, just wait
39
- *
40
- * @default false
41
- */
42
- readonly quiet?: boolean;
43
- /**
44
- * Name of the toolkit stack, if not the default name
45
- *
46
- * @default 'CDKToolkit'
47
- */
48
- readonly toolkitStackName?: string;
49
- /**
50
- * List of asset IDs which should NOT be built or uploaded
51
- *
52
- * @default - Build all assets
53
- */
54
- readonly reuseAssets?: string[];
55
- /**
56
- * Stack tags (pass through to CloudFormation)
57
- */
58
- readonly tags?: Tag[];
59
- /**
60
- * Stage the change set but don't execute it
61
- *
62
- * @default - true
63
- * @deprecated Use 'deploymentMethod' instead
64
- */
65
- readonly execute?: boolean;
66
- /**
67
- * Optional name to use for the CloudFormation change set.
68
- * If not provided, a name will be generated automatically.
69
- *
70
- * @deprecated Use 'deploymentMethod' instead
71
- */
72
- readonly changeSetName?: string;
73
- /**
74
- * Select the deployment method (direct or using a change set)
75
- *
76
- * @default - Change set with default options
77
- */
78
- readonly deploymentMethod?: DeploymentMethod;
79
- /**
80
- * Force deployment, even if the deployed template is identical to the one we are about to deploy.
81
- * @default false deployment will be skipped if the template is identical
82
- */
83
- readonly force?: boolean;
84
- /**
85
- * Extra parameters for CloudFormation
86
- * @default - no additional parameters will be passed to the template
87
- */
88
- readonly parameters?: {
89
- [name: string]: string | undefined;
90
- };
91
- /**
92
- * Use previous values for unspecified parameters
93
- *
94
- * If not set, all parameters must be specified for every deployment.
95
- *
96
- * @default true
97
- */
98
- readonly usePreviousParameters?: boolean;
99
- /**
100
- * Display mode for stack deployment progress.
101
- *
102
- * @default - StackActivityProgress.Bar - stack events will be displayed for
103
- * the resource currently being deployed.
104
- */
105
- readonly progress?: StackActivityProgress;
106
- /**
107
- * Whether we are on a CI system
108
- *
109
- * @default false
110
- */
111
- readonly ci?: boolean;
112
- /**
113
- * Rollback failed deployments
114
- *
115
- * @default true
116
- */
117
- readonly rollback?: boolean;
118
- readonly hotswap?: HotswapMode;
119
- /**
120
- * Properties that configure hotswap behavior
121
- */
122
- readonly hotswapPropertyOverrides?: HotswapPropertyOverrides;
123
- /**
124
- * The extra string to append to the User-Agent header when performing AWS SDK calls.
125
- *
126
- * @default - nothing extra is appended to the User-Agent header
127
- */
128
- readonly extraUserAgent?: string;
129
- /**
130
- * List of existing resources to be IMPORTED into the stack, instead of being CREATED
131
- */
132
- readonly resourcesToImport?: ResourcesToImport;
133
- /**
134
- * If present, use this given template instead of the stored one
135
- *
136
- * @default - Use the stored template
137
- */
138
- readonly overrideTemplate?: any;
139
- /**
140
- * Whether to build/publish assets in parallel
141
- *
142
- * @default true To remain backward compatible.
143
- */
144
- readonly assetParallelism?: boolean;
145
- /**
146
- * Whether to deploy if the app contains no stacks.
147
- *
148
- * @default false
149
- */
150
- ignoreNoStacks?: boolean;
151
- }
152
- export interface RollbackStackOptions {
153
- /**
154
- * Stack to roll back
155
- */
156
- readonly stack: cxapi.CloudFormationStackArtifact;
157
- /**
158
- * Execution role for the deployment (pass through to CloudFormation)
159
- *
160
- * @default - Current role
161
- */
162
- readonly roleArn?: string;
163
- /**
164
- * Don't show stack deployment events, just wait
165
- *
166
- * @default false
167
- */
168
- readonly quiet?: boolean;
169
- /**
170
- * Whether we are on a CI system
171
- *
172
- * @default false
173
- */
174
- readonly ci?: boolean;
175
- /**
176
- * Name of the toolkit stack, if not the default name
177
- *
178
- * @default 'CDKToolkit'
179
- */
180
- readonly toolkitStackName?: string;
181
- /**
182
- * Whether to force a rollback or not
183
- *
184
- * Forcing a rollback will orphan all undeletable resources.
185
- *
186
- * @default false
187
- */
188
- readonly force?: boolean;
189
- /**
190
- * Orphan the resources with the given logical IDs
191
- *
192
- * @default - No orphaning
193
- */
194
- readonly orphanLogicalIds?: string[];
195
- /**
196
- * Display mode for stack deployment progress.
197
- *
198
- * @default - StackActivityProgress.Bar - stack events will be displayed for
199
- * the resource currently being deployed.
200
- */
201
- readonly progress?: StackActivityProgress;
202
- /**
203
- * Whether to validate the version of the bootstrap stack permissions
204
- *
205
- * @default true
206
- */
207
- readonly validateBootstrapStackVersion?: boolean;
208
- }
209
- export interface RollbackStackResult {
210
- readonly notInRollbackableState?: boolean;
211
- readonly success?: boolean;
212
- }
213
- interface AssetOptions {
214
- /**
215
- * Stack with assets to build.
216
- */
217
- readonly stack: cxapi.CloudFormationStackArtifact;
218
- /**
219
- * Execution role for the building.
220
- *
221
- * @default - Current role
222
- */
223
- readonly roleArn?: string;
224
- }
225
- export interface BuildStackAssetsOptions extends AssetOptions {
226
- /**
227
- * Stack name this asset is for
228
- */
229
- readonly stackName?: string;
230
- }
231
- interface PublishStackAssetsOptions extends AssetOptions {
232
- /**
233
- * Stack name this asset is for
234
- */
235
- readonly stackName?: string;
236
- }
237
- export interface DestroyStackOptions {
238
- stack: cxapi.CloudFormationStackArtifact;
239
- deployName?: string;
240
- roleArn?: string;
241
- quiet?: boolean;
242
- force?: boolean;
243
- ci?: boolean;
244
- }
245
- export interface StackExistsOptions {
246
- stack: cxapi.CloudFormationStackArtifact;
247
- deployName?: string;
248
- tryLookupRole?: boolean;
249
- }
250
- export interface DeploymentsProps {
251
- sdkProvider: SdkProvider;
252
- readonly toolkitStackName?: string;
253
- readonly quiet?: boolean;
254
- }
255
- /**
256
- * Scope for a single set of deployments from a set of Cloud Assembly Artifacts
257
- *
258
- * Manages lookup of SDKs, Bootstrap stacks, etc.
259
- */
260
- export declare class Deployments {
261
- private readonly props;
262
- readonly envs: EnvironmentAccess;
263
- /**
264
- * SDK provider for asset publishing (do not use for anything else).
265
- *
266
- * This SDK provider is only allowed to be used for that purpose, nothing else.
267
- *
268
- * It's not a different object, but the field name should imply that this
269
- * object should not be used directly, except to pass to asset handling routines.
270
- */
271
- private readonly assetSdkProvider;
272
- /**
273
- * SDK provider for passing to deployStack
274
- *
275
- * This SDK provider is only allowed to be used for that purpose, nothing else.
276
- *
277
- * It's not a different object, but the field name should imply that this
278
- * object should not be used directly, except to pass to `deployStack`.
279
- */
280
- private readonly deployStackSdkProvider;
281
- private readonly publisherCache;
282
- private _allowCrossAccountAssetPublishing;
283
- constructor(props: DeploymentsProps);
284
- /**
285
- * Resolves the environment for a stack.
286
- */
287
- resolveEnvironment(stack: cxapi.CloudFormationStackArtifact): Promise<cxapi.Environment>;
288
- readCurrentTemplateWithNestedStacks(rootStackArtifact: cxapi.CloudFormationStackArtifact, retrieveProcessedTemplate?: boolean): Promise<RootTemplateWithNestedStacks>;
289
- readCurrentTemplate(stackArtifact: cxapi.CloudFormationStackArtifact): Promise<Template>;
290
- resourceIdentifierSummaries(stackArtifact: cxapi.CloudFormationStackArtifact): Promise<ResourceIdentifierSummaries>;
291
- deployStack(options: DeployStackOptions): Promise<DeployStackResult | undefined>;
292
- rollbackStack(options: RollbackStackOptions): Promise<RollbackStackResult>;
293
- destroyStack(options: DestroyStackOptions): Promise<void>;
294
- stackExists(options: StackExistsOptions): Promise<boolean>;
295
- /**
296
- * Build a single asset from an asset manifest
297
- *
298
- * If an assert manifest artifact is given, the bootstrap stack version
299
- * will be validated according to the constraints in that manifest artifact.
300
- * If that is not necessary, `'no-version-validation'` can be passed.
301
- */
302
- buildSingleAsset(assetArtifact: cxapi.AssetManifestArtifact | "no-version-validation", assetManifest: cdk_assets.AssetManifest, asset: cdk_assets.IManifestEntry, options: BuildStackAssetsOptions): Promise<void>;
303
- /**
304
- * Publish a single asset from an asset manifest
305
- */
306
- publishSingleAsset(assetManifest: cdk_assets.AssetManifest, asset: cdk_assets.IManifestEntry, options: PublishStackAssetsOptions): Promise<void>;
307
- private allowCrossAccountAssetPublishingForEnv;
308
- /**
309
- * Return whether a single asset has been published already
310
- */
311
- isSingleAssetPublished(assetManifest: cdk_assets.AssetManifest, asset: cdk_assets.IManifestEntry, options: PublishStackAssetsOptions): Promise<boolean>;
312
- /**
313
- * Validate that the bootstrap stack has the right version for this stack
314
- *
315
- * Call into envResources.validateVersion, but prepend the stack name in case of failure.
316
- */
317
- validateBootstrapStackVersion(stackName: string, requiresBootstrapStackVersion: number | undefined, bootstrapStackVersionSsmParameter: string | undefined, envResources: EnvironmentResources): Promise<void>;
318
- private cachedPublisher;
319
- }
320
- export declare function publishAssets(manifest: AssetManifest, sdk: SdkProvider, targetEnv: cxapi.Environment, options: {
321
- quiet?: boolean;
322
- }): Promise<void>;
323
- export {};