aws-cdk 2.1006.0 → 3.0.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.
- package/README.md +1 -1
- package/THIRD_PARTY_LICENSES +104 -86
- package/build-info.json +2 -2
- package/db.json.gz +0 -0
- package/lib/api/aws-auth.d.ts +1 -0
- package/lib/api/{logs/index.js → aws-auth.js} +2 -3
- package/lib/api/bootstrap.d.ts +1 -0
- package/lib/api/bootstrap.js +18 -0
- package/lib/api/cloud-assembly.d.ts +1 -0
- package/lib/api/cloud-assembly.js +18 -0
- package/lib/api/cloudformation.d.ts +1 -0
- package/lib/api/cloudformation.js +18 -0
- package/lib/api/context.d.ts +1 -40
- package/lib/api/context.js +16 -80
- package/lib/api/deployments.d.ts +1 -0
- package/lib/api/deployments.js +18 -0
- package/lib/api/environment.d.ts +1 -0
- package/lib/api/environment.js +18 -0
- package/lib/api/garbage-collection.d.ts +1 -0
- package/lib/api/garbage-collection.js +18 -0
- package/lib/api/hotswap.d.ts +1 -0
- package/lib/api/hotswap.js +18 -0
- package/lib/api/index.d.ts +5 -1
- package/lib/api/index.js +6 -2
- package/lib/api/logs-monitor.d.ts +1 -0
- package/lib/api/logs-monitor.js +18 -0
- package/lib/api/notices.d.ts +1 -0
- package/lib/api/notices.js +18 -0
- package/lib/api/plugin.d.ts +1 -0
- package/lib/api/{resource-import/index.js → plugin.js} +2 -3
- package/lib/api/resource-import.d.ts +1 -0
- package/lib/api/resource-import.js +18 -0
- package/lib/api/rwlock.d.ts +1 -0
- package/lib/api/{garbage-collection/index.js → rwlock.js} +2 -2
- package/lib/api/settings.d.ts +1 -26
- package/lib/api/settings.js +16 -103
- package/lib/api/stack-events.d.ts +1 -0
- package/lib/api/stack-events.js +18 -0
- package/lib/api/tags.d.ts +1 -9
- package/lib/api/tags.js +16 -8
- package/lib/api/toolkit-info.d.ts +1 -52
- package/lib/api/toolkit-info.js +16 -152
- package/lib/api/tree.d.ts +1 -31
- package/lib/api/tree.js +16 -35
- package/lib/api/work-graph.d.ts +1 -0
- package/lib/api/work-graph.js +18 -0
- package/lib/api-private.d.ts +3 -0
- package/lib/api-private.js +22 -0
- package/lib/cli/cdk-toolkit.d.ts +20 -16
- package/lib/cli/cdk-toolkit.js +102 -37
- package/lib/cli/cli-config.js +2 -2
- package/lib/cli/cli.d.ts +1 -1
- package/lib/cli/cli.js +22 -19
- package/lib/cli/io-host/cli-io-host.js +2 -2
- package/lib/cli/pretty-print-error.js +3 -1
- package/lib/cli/util/npm.d.ts +4 -1
- package/lib/cli/util/npm.js +25 -13
- package/lib/cli/version.d.ts +1 -1
- package/lib/cli/version.js +21 -25
- package/lib/commands/context.js +3 -2
- package/lib/commands/diff.d.ts +1 -50
- package/lib/commands/diff.js +5 -213
- package/lib/commands/init/init.js +3 -2
- package/lib/commands/list-stacks.js +4 -4
- package/lib/context-providers/ami.d.ts +1 -13
- package/lib/context-providers/ami.js +16 -48
- package/lib/context-providers/availability-zones.d.ts +1 -13
- package/lib/context-providers/availability-zones.js +16 -25
- package/lib/context-providers/cc-api-provider.d.ts +1 -30
- package/lib/context-providers/cc-api-provider.js +16 -136
- package/lib/context-providers/endpoint-service-availability-zones.d.ts +1 -13
- package/lib/context-providers/endpoint-service-availability-zones.js +16 -31
- package/lib/context-providers/hosted-zones.d.ts +1 -12
- package/lib/context-providers/hosted-zones.js +16 -65
- package/lib/context-providers/index.d.ts +1 -44
- package/lib/context-providers/index.js +15 -126
- package/lib/context-providers/keys.d.ts +1 -13
- package/lib/context-providers/keys.js +16 -50
- package/lib/context-providers/load-balancers.d.ts +1 -20
- package/lib/context-providers/load-balancers.js +16 -154
- package/lib/context-providers/security-groups.d.ts +1 -9
- package/lib/context-providers/security-groups.js +16 -66
- package/lib/context-providers/ssm-parameters.d.ts +1 -25
- package/lib/context-providers/ssm-parameters.js +16 -57
- package/lib/context-providers/vpcs.d.ts +1 -13
- package/lib/context-providers/vpcs.js +16 -285
- package/lib/{api/cxapp → cxapp}/cloud-assembly.d.ts +3 -59
- package/lib/cxapp/cloud-assembly.js +108 -0
- package/lib/{api/cxapp → cxapp}/cloud-executable.d.ts +10 -3
- package/lib/cxapp/cloud-executable.js +92 -0
- package/lib/{api/cxapp → cxapp}/environments.d.ts +1 -2
- package/lib/{api/cxapp → cxapp}/environments.js +2 -2
- package/lib/cxapp/exec.d.ts +14 -0
- package/lib/cxapp/exec.js +157 -0
- package/lib/cxapp/index.d.ts +4 -0
- package/lib/{api/bootstrap → cxapp}/index.js +5 -3
- package/lib/index.js +134493 -125222
- package/lib/init-templates/.init-version.json +1 -1
- package/lib/init-templates/.recommended-feature-flags.json +3 -1
- package/lib/legacy-aws-auth.d.ts +74 -0
- package/lib/legacy-aws-auth.js +40 -0
- package/lib/legacy-exports-source.d.ts +13 -18
- package/lib/legacy-exports-source.js +42 -49
- package/lib/legacy-exports.d.ts +3 -6
- package/lib/legacy-exports.js +5 -5
- package/lib/legacy-types.d.ts +31 -0
- package/lib/legacy-types.js +3 -0
- package/package.json +19 -18
- package/lib/api/aws-auth/account-cache.d.ts +0 -36
- package/lib/api/aws-auth/account-cache.js +0 -99
- package/lib/api/aws-auth/awscli-compatible.d.ts +0 -42
- package/lib/api/aws-auth/awscli-compatible.js +0 -263
- package/lib/api/aws-auth/cached.d.ts +0 -11
- package/lib/api/aws-auth/cached.js +0 -26
- package/lib/api/aws-auth/credential-plugins.d.ts +0 -36
- package/lib/api/aws-auth/credential-plugins.js +0 -152
- package/lib/api/aws-auth/index.d.ts +0 -3
- package/lib/api/aws-auth/index.js +0 -20
- package/lib/api/aws-auth/provider-caching.d.ts +0 -13
- package/lib/api/aws-auth/provider-caching.js +0 -24
- package/lib/api/aws-auth/sdk-logger.d.ts +0 -69
- package/lib/api/aws-auth/sdk-logger.js +0 -124
- package/lib/api/aws-auth/sdk-provider.d.ts +0 -207
- package/lib/api/aws-auth/sdk-provider.js +0 -357
- package/lib/api/aws-auth/sdk.d.ts +0 -229
- package/lib/api/aws-auth/sdk.js +0 -373
- package/lib/api/aws-auth/tracing.d.ts +0 -11
- package/lib/api/aws-auth/tracing.js +0 -60
- package/lib/api/aws-auth/user-agent.d.ts +0 -7
- package/lib/api/aws-auth/user-agent.js +0 -20
- package/lib/api/aws-auth/util.d.ts +0 -6
- package/lib/api/aws-auth/util.js +0 -23
- package/lib/api/bootstrap/bootstrap-environment.d.ts +0 -35
- package/lib/api/bootstrap/bootstrap-environment.js +0 -321
- package/lib/api/bootstrap/bootstrap-props.d.ts +0 -130
- package/lib/api/bootstrap/bootstrap-props.js +0 -14
- package/lib/api/bootstrap/deploy-bootstrap.d.ts +0 -39
- package/lib/api/bootstrap/deploy-bootstrap.js +0 -141
- package/lib/api/bootstrap/index.d.ts +0 -2
- package/lib/api/bootstrap/legacy-template.d.ts +0 -2
- package/lib/api/bootstrap/legacy-template.js +0 -82
- package/lib/api/cloudformation/evaluate-cloudformation-template.d.ts +0 -85
- package/lib/api/cloudformation/evaluate-cloudformation-template.js +0 -440
- package/lib/api/cloudformation/index.d.ts +0 -4
- package/lib/api/cloudformation/index.js +0 -21
- package/lib/api/cloudformation/nested-stack-helpers.d.ts +0 -25
- package/lib/api/cloudformation/nested-stack-helpers.js +0 -86
- package/lib/api/cloudformation/stack-helpers.d.ts +0 -96
- package/lib/api/cloudformation/stack-helpers.js +0 -158
- package/lib/api/cloudformation/template-body-parameter.d.ts +0 -22
- package/lib/api/cloudformation/template-body-parameter.js +0 -104
- package/lib/api/cxapp/cloud-assembly.js +0 -304
- package/lib/api/cxapp/cloud-executable.js +0 -89
- package/lib/api/cxapp/exec.d.ts +0 -56
- package/lib/api/cxapp/exec.js +0 -272
- package/lib/api/deployments/asset-manifest-builder.d.ts +0 -8
- package/lib/api/deployments/asset-manifest-builder.js +0 -35
- package/lib/api/deployments/asset-publishing.d.ts +0 -60
- package/lib/api/deployments/asset-publishing.js +0 -141
- package/lib/api/deployments/assets.d.ts +0 -11
- package/lib/api/deployments/assets.js +0 -109
- package/lib/api/deployments/cfn-api.d.ts +0 -138
- package/lib/api/deployments/cfn-api.js +0 -438
- package/lib/api/deployments/checks.d.ts +0 -9
- package/lib/api/deployments/checks.js +0 -72
- package/lib/api/deployments/deploy-stack.d.ts +0 -155
- package/lib/api/deployments/deploy-stack.js +0 -478
- package/lib/api/deployments/deployment-method.d.ts +0 -24
- package/lib/api/deployments/deployment-method.js +0 -3
- package/lib/api/deployments/deployment-result.d.ts +0 -21
- package/lib/api/deployments/deployment-result.js +0 -10
- package/lib/api/deployments/deployments.d.ts +0 -296
- package/lib/api/deployments/deployments.js +0 -331
- package/lib/api/deployments/hotswap-deployments.d.ts +0 -17
- package/lib/api/deployments/hotswap-deployments.js +0 -441
- package/lib/api/deployments/index.d.ts +0 -4
- package/lib/api/deployments/index.js +0 -21
- package/lib/api/environment/environment-access.d.ts +0 -140
- package/lib/api/environment/environment-access.js +0 -202
- package/lib/api/environment/environment-resources.d.ts +0 -75
- package/lib/api/environment/environment-resources.js +0 -207
- package/lib/api/environment/index.d.ts +0 -3
- package/lib/api/environment/index.js +0 -20
- package/lib/api/environment/placeholders.d.ts +0 -10
- package/lib/api/environment/placeholders.js +0 -23
- package/lib/api/garbage-collection/garbage-collector.d.ts +0 -158
- package/lib/api/garbage-collection/garbage-collector.js +0 -599
- package/lib/api/garbage-collection/index.d.ts +0 -1
- package/lib/api/garbage-collection/progress-printer.d.ts +0 -23
- package/lib/api/garbage-collection/progress-printer.js +0 -70
- package/lib/api/garbage-collection/stack-refresh.d.ts +0 -49
- package/lib/api/garbage-collection/stack-refresh.js +0 -151
- package/lib/api/hotswap/appsync-mapping-templates.d.ts +0 -4
- package/lib/api/hotswap/appsync-mapping-templates.js +0 -162
- package/lib/api/hotswap/code-build-projects.d.ts +0 -4
- package/lib/api/hotswap/code-build-projects.js +0 -62
- package/lib/api/hotswap/common.d.ts +0 -89
- package/lib/api/hotswap/common.js +0 -128
- package/lib/api/hotswap/ecs-services.d.ts +0 -4
- package/lib/api/hotswap/ecs-services.js +0 -159
- package/lib/api/hotswap/lambda-functions.d.ts +0 -4
- package/lib/api/hotswap/lambda-functions.js +0 -297
- package/lib/api/hotswap/s3-bucket-deployments.d.ts +0 -5
- package/lib/api/hotswap/s3-bucket-deployments.js +0 -117
- package/lib/api/hotswap/stepfunctions-state-machines.d.ts +0 -4
- package/lib/api/hotswap/stepfunctions-state-machines.js +0 -48
- package/lib/api/logs/find-cloudwatch-logs.d.ts +0 -25
- package/lib/api/logs/find-cloudwatch-logs.js +0 -95
- package/lib/api/logs/index.d.ts +0 -2
- package/lib/api/logs/logs-monitor.d.ts +0 -76
- package/lib/api/logs/logs-monitor.js +0 -187
- package/lib/api/plugin/context-provider-plugin.d.ts +0 -6
- package/lib/api/plugin/context-provider-plugin.js +0 -7
- package/lib/api/plugin/index.d.ts +0 -3
- package/lib/api/plugin/index.js +0 -20
- package/lib/api/plugin/mode.d.ts +0 -4
- package/lib/api/plugin/mode.js +0 -9
- package/lib/api/plugin/plugin.d.ts +0 -63
- package/lib/api/plugin/plugin.js +0 -102
- package/lib/api/resource-import/importer.d.ts +0 -220
- package/lib/api/resource-import/importer.js +0 -331
- package/lib/api/resource-import/index.d.ts +0 -2
- package/lib/api/resource-import/migrator.d.ts +0 -26
- package/lib/api/resource-import/migrator.js +0 -71
- package/lib/api/stack-events/index.d.ts +0 -3
- package/lib/api/stack-events/index.js +0 -20
- package/lib/api/stack-events/stack-activity-monitor.d.ts +0 -100
- package/lib/api/stack-events/stack-activity-monitor.js +0 -142
- package/lib/api/stack-events/stack-event-poller.d.ts +0 -69
- package/lib/api/stack-events/stack-event-poller.js +0 -128
- package/lib/api/stack-events/stack-progress-monitor.d.ts +0 -48
- package/lib/api/stack-events/stack-progress-monitor.js +0 -94
- package/lib/api/stack-events/stack-status.d.ts +0 -42
- package/lib/api/stack-events/stack-status.js +0 -88
- package/lib/api/util/rwlock.d.ts +0 -65
- package/lib/api/util/rwlock.js +0 -179
- package/lib/api/work-graph/index.d.ts +0 -3
- package/lib/api/work-graph/index.js +0 -20
- package/lib/api/work-graph/work-graph-builder.d.ts +0 -34
- package/lib/api/work-graph/work-graph-builder.js +0 -168
- package/lib/api/work-graph/work-graph-types.d.ts +0 -50
- package/lib/api/work-graph/work-graph-types.js +0 -13
- package/lib/api/work-graph/work-graph.d.ts +0 -72
- package/lib/api/work-graph/work-graph.js +0 -346
- package/lib/cli/activity-printer/base.d.ts +0 -50
- package/lib/cli/activity-printer/base.js +0 -114
- package/lib/cli/activity-printer/current.d.ts +0 -26
- package/lib/cli/activity-printer/current.js +0 -118
- package/lib/cli/activity-printer/display.d.ts +0 -13
- package/lib/cli/activity-printer/display.js +0 -80
- package/lib/cli/activity-printer/history.d.ts +0 -32
- package/lib/cli/activity-printer/history.js +0 -108
- package/lib/cli/activity-printer/index.d.ts +0 -3
- package/lib/cli/activity-printer/index.js +0 -20
- package/lib/notices.d.ts +0 -203
- package/lib/notices.js +0 -411
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import type * as cxapi from '@aws-cdk/cx-api';
|
|
2
|
-
import type { Tag } from '@aws-sdk/client-cloudformation';
|
|
3
|
-
import type { DeploymentMethod } from './deployment-method';
|
|
4
|
-
import type { DeployStackResult } from './deployment-result';
|
|
5
|
-
import { type IoHelper } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api/io/private';
|
|
6
|
-
import type { SDK, SdkProvider } from '../aws-auth';
|
|
7
|
-
import type { EnvironmentResources, StringWithoutPlaceholders } from '../environment';
|
|
8
|
-
import { HotswapMode, HotswapPropertyOverrides } from '../hotswap/common';
|
|
9
|
-
import type { ResourcesToImport } from '../resource-import';
|
|
10
|
-
export interface DeployStackOptions {
|
|
11
|
-
/**
|
|
12
|
-
* The stack to be deployed
|
|
13
|
-
*/
|
|
14
|
-
readonly stack: cxapi.CloudFormationStackArtifact;
|
|
15
|
-
/**
|
|
16
|
-
* The environment to deploy this stack in
|
|
17
|
-
*
|
|
18
|
-
* The environment on the stack artifact may be unresolved, this one
|
|
19
|
-
* must be resolved.
|
|
20
|
-
*/
|
|
21
|
-
readonly resolvedEnvironment: cxapi.Environment;
|
|
22
|
-
/**
|
|
23
|
-
* The SDK to use for deploying the stack
|
|
24
|
-
*
|
|
25
|
-
* Should have been initialized with the correct role with which
|
|
26
|
-
* stack operations should be performed.
|
|
27
|
-
*/
|
|
28
|
-
readonly sdk: SDK;
|
|
29
|
-
/**
|
|
30
|
-
* SDK provider (seeded with default credentials)
|
|
31
|
-
*
|
|
32
|
-
* Will be used to:
|
|
33
|
-
*
|
|
34
|
-
* - Publish assets, either legacy assets or large CFN templates
|
|
35
|
-
* that aren't themselves assets from a manifest. (Needs an SDK
|
|
36
|
-
* Provider because the file publishing role is declared as part
|
|
37
|
-
* of the asset).
|
|
38
|
-
* - Hotswap
|
|
39
|
-
*/
|
|
40
|
-
readonly sdkProvider: SdkProvider;
|
|
41
|
-
/**
|
|
42
|
-
* Information about the bootstrap stack found in the target environment
|
|
43
|
-
*/
|
|
44
|
-
readonly envResources: EnvironmentResources;
|
|
45
|
-
/**
|
|
46
|
-
* Role to pass to CloudFormation to execute the change set
|
|
47
|
-
*
|
|
48
|
-
* To obtain a `StringWithoutPlaceholders`, run a regular
|
|
49
|
-
* string though `TargetEnvironment.replacePlaceholders`.
|
|
50
|
-
*
|
|
51
|
-
* @default - No execution role; CloudFormation either uses the role currently associated with
|
|
52
|
-
* the stack, or otherwise uses current AWS credentials.
|
|
53
|
-
*/
|
|
54
|
-
readonly roleArn?: StringWithoutPlaceholders;
|
|
55
|
-
/**
|
|
56
|
-
* Notification ARNs to pass to CloudFormation to notify when the change set has completed
|
|
57
|
-
*
|
|
58
|
-
* @default - No notifications
|
|
59
|
-
*/
|
|
60
|
-
readonly notificationArns?: string[];
|
|
61
|
-
/**
|
|
62
|
-
* Name to deploy the stack under
|
|
63
|
-
*
|
|
64
|
-
* @default - Name from assembly
|
|
65
|
-
*/
|
|
66
|
-
readonly deployName?: string;
|
|
67
|
-
/**
|
|
68
|
-
* List of asset IDs which shouldn't be built
|
|
69
|
-
*
|
|
70
|
-
* @default - Build all assets
|
|
71
|
-
*/
|
|
72
|
-
readonly reuseAssets?: string[];
|
|
73
|
-
/**
|
|
74
|
-
* Tags to pass to CloudFormation to add to stack
|
|
75
|
-
*
|
|
76
|
-
* @default - No tags
|
|
77
|
-
*/
|
|
78
|
-
readonly tags?: Tag[];
|
|
79
|
-
/**
|
|
80
|
-
* What deployment method to use
|
|
81
|
-
*
|
|
82
|
-
* @default - Change set with defaults
|
|
83
|
-
*/
|
|
84
|
-
readonly deploymentMethod?: DeploymentMethod;
|
|
85
|
-
/**
|
|
86
|
-
* The collection of extra parameters
|
|
87
|
-
* (in addition to those used for assets)
|
|
88
|
-
* to pass to the deployed template.
|
|
89
|
-
* Note that parameters with `undefined` or empty values will be ignored,
|
|
90
|
-
* and not passed to the template.
|
|
91
|
-
*
|
|
92
|
-
* @default - no additional parameters will be passed to the template
|
|
93
|
-
*/
|
|
94
|
-
readonly parameters?: {
|
|
95
|
-
[name: string]: string | undefined;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Use previous values for unspecified parameters
|
|
99
|
-
*
|
|
100
|
-
* If not set, all parameters must be specified for every deployment.
|
|
101
|
-
*
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
readonly usePreviousParameters?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Deploy even if the deployed template is identical to the one we are about to deploy.
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
readonly force?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Rollback failed deployments
|
|
112
|
-
*
|
|
113
|
-
* @default true
|
|
114
|
-
*/
|
|
115
|
-
readonly rollback?: boolean;
|
|
116
|
-
readonly hotswap?: HotswapMode;
|
|
117
|
-
/**
|
|
118
|
-
* Extra properties that configure hotswap behavior
|
|
119
|
-
*/
|
|
120
|
-
readonly hotswapPropertyOverrides?: HotswapPropertyOverrides;
|
|
121
|
-
/**
|
|
122
|
-
* The extra string to append to the User-Agent header when performing AWS SDK calls.
|
|
123
|
-
*
|
|
124
|
-
* @default - nothing extra is appended to the User-Agent header
|
|
125
|
-
*/
|
|
126
|
-
readonly extraUserAgent?: string;
|
|
127
|
-
/**
|
|
128
|
-
* If set, change set of type IMPORT will be created, and resourcesToImport
|
|
129
|
-
* passed to it.
|
|
130
|
-
*/
|
|
131
|
-
readonly resourcesToImport?: ResourcesToImport;
|
|
132
|
-
/**
|
|
133
|
-
* If present, use this given template instead of the stored one
|
|
134
|
-
*
|
|
135
|
-
* @default - Use the stored template
|
|
136
|
-
*/
|
|
137
|
-
readonly overrideTemplate?: any;
|
|
138
|
-
/**
|
|
139
|
-
* Whether to build/publish assets in parallel
|
|
140
|
-
*
|
|
141
|
-
* @default true To remain backward compatible.
|
|
142
|
-
*/
|
|
143
|
-
readonly assetParallelism?: boolean;
|
|
144
|
-
}
|
|
145
|
-
export declare function deployStack(options: DeployStackOptions, ioHelper: IoHelper): Promise<DeployStackResult>;
|
|
146
|
-
export interface DestroyStackOptions {
|
|
147
|
-
/**
|
|
148
|
-
* The stack to be destroyed
|
|
149
|
-
*/
|
|
150
|
-
stack: cxapi.CloudFormationStackArtifact;
|
|
151
|
-
sdk: SDK;
|
|
152
|
-
roleArn?: string;
|
|
153
|
-
deployName?: string;
|
|
154
|
-
}
|
|
155
|
-
export declare function destroyStack(options: DestroyStackOptions, ioHelper: IoHelper): Promise<void>;
|