agent-claw: automated task changes
This commit is contained in:
35
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.d.ts
generated
vendored
Normal file
35
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Destination for assets that need to be uploaded to AWS
|
||||
*/
|
||||
export interface AwsDestination {
|
||||
/**
|
||||
* The region where this asset will need to be published
|
||||
*
|
||||
* @default - Current region
|
||||
*/
|
||||
readonly region?: string;
|
||||
/**
|
||||
* The role that needs to be assumed while publishing this asset
|
||||
*
|
||||
* @default - No role will be assumed
|
||||
*/
|
||||
readonly assumeRoleArn?: string;
|
||||
/**
|
||||
* The ExternalId that needs to be supplied while assuming this role
|
||||
*
|
||||
* @default - No ExternalId will be supplied
|
||||
*/
|
||||
readonly assumeRoleExternalId?: string;
|
||||
/**
|
||||
* Additional options to pass to STS when assuming the role.
|
||||
*
|
||||
* - `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.
|
||||
* - `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
|
||||
* @default - No additional options.
|
||||
*/
|
||||
readonly assumeRoleAdditionalOptions?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXdzLWRlc3RpbmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXdzLWRlc3RpbmF0a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J0eSBpbnN0ZWFkLlxuICAgKiAtIGBFeHRlcm5hbElkYCBzaG91bGQgbm90IGJlIHVzZWQuIFVzZSB0aGUgZGVkaWNhdGVkIGBhc3N1bWVSb2xlRXh0ZXJuYWxJZGAgaW5zdGVhZC5cbiAgICpcbiAgICogQHNlZSBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vQVdTSmF2YVNjcmlwdFNESy9sYXRlc3QvQVdTL1NUUy5odG1sI2Fzc3VtZVJvbGUtcHJvcGVydHlcbiAgICogQGRlZmF1bHQgLSBObyBhZGRpdGlvbmFsIG9wdGlvbnMuXG4gICAqL1xuICByZWFkb25seSBhc3N1bWVSb2xlQWRkaXRpb25hbE9wdGlvbnM/OiB7IFtrZXk6IHN0cmluZ106IGFueSB9O1xufVxuIl19
|
||||
181
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.d.ts
generated
vendored
Normal file
181
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.d.ts
generated
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
import type { AwsDestination } from './aws-destination';
|
||||
/**
|
||||
* A file asset
|
||||
*/
|
||||
export interface DockerImageAsset {
|
||||
/**
|
||||
* A display name for this asset
|
||||
*
|
||||
* @default - The identifier will be used as the display name
|
||||
*/
|
||||
readonly displayName?: string;
|
||||
/**
|
||||
* Source description for container assets
|
||||
*/
|
||||
readonly source: DockerImageSource;
|
||||
/**
|
||||
* Destinations for this container asset
|
||||
*/
|
||||
readonly destinations: {
|
||||
[id: string]: DockerImageDestination;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Properties for how to produce a Docker image from a source
|
||||
*/
|
||||
export interface DockerImageSource {
|
||||
/**
|
||||
* The directory containing the Docker image build instructions.
|
||||
*
|
||||
* This path is relative to the asset manifest location.
|
||||
*
|
||||
* @default - Exactly one of `directory` and `executable` is required
|
||||
*/
|
||||
readonly directory?: string;
|
||||
/**
|
||||
* A command-line executable that returns the name of a local
|
||||
* Docker image on stdout after being run.
|
||||
*
|
||||
* @default - Exactly one of `directory` and `executable` is required
|
||||
*/
|
||||
readonly executable?: string[];
|
||||
/**
|
||||
* The name of the file with build instructions
|
||||
*
|
||||
* Only allowed when `directory` is set.
|
||||
*
|
||||
* @default "Dockerfile"
|
||||
*/
|
||||
readonly dockerFile?: string;
|
||||
/**
|
||||
* Target build stage in a Dockerfile with multiple build stages
|
||||
*
|
||||
* Only allowed when `directory` is set.
|
||||
*
|
||||
* @default - The last stage in the Dockerfile
|
||||
*/
|
||||
readonly dockerBuildTarget?: string;
|
||||
/**
|
||||
* Additional build arguments
|
||||
*
|
||||
* Only allowed when `directory` is set.
|
||||
*
|
||||
* @default - No additional build arguments
|
||||
*/
|
||||
readonly dockerBuildArgs?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
/**
|
||||
* Additional build contexts
|
||||
*
|
||||
* Only allowed when `directory` is set.
|
||||
*
|
||||
* @default - No additional build contexts
|
||||
*/
|
||||
readonly dockerBuildContexts?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
/**
|
||||
* SSH agent socket or keys
|
||||
*
|
||||
* Requires building with docker buildkit.
|
||||
*
|
||||
* @default - No ssh flag is set
|
||||
*/
|
||||
readonly dockerBuildSsh?: string;
|
||||
/**
|
||||
* Additional build secrets
|
||||
*
|
||||
* Only allowed when `directory` is set.
|
||||
*
|
||||
* @default - No additional build secrets
|
||||
*/
|
||||
readonly dockerBuildSecrets?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
/**
|
||||
* Networking mode for the RUN commands during build. _Requires Docker Engine API v1.25+_.
|
||||
*
|
||||
* Specify this property to build images on a specific networking mode.
|
||||
*
|
||||
* @default - no networking mode specified
|
||||
*/
|
||||
readonly networkMode?: string;
|
||||
/**
|
||||
* Platform to build for. _Requires Docker Buildx_.
|
||||
*
|
||||
* Specify this property to build images on a specific platform/architecture.
|
||||
*
|
||||
* @default - current machine platform
|
||||
*/
|
||||
readonly platform?: string;
|
||||
/**
|
||||
* Outputs
|
||||
*
|
||||
* @default - no outputs are passed to the build command (default outputs are used)
|
||||
* @see https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs
|
||||
*/
|
||||
readonly dockerOutputs?: string[];
|
||||
/**
|
||||
* Cache from options to pass to the `docker build` command.
|
||||
*
|
||||
* @default - no cache from options are passed to the build command
|
||||
* @see https://docs.docker.com/build/cache/backends/
|
||||
*/
|
||||
readonly cacheFrom?: DockerCacheOption[];
|
||||
/**
|
||||
* Cache to options to pass to the `docker build` command.
|
||||
*
|
||||
* @default - no cache to options are passed to the build command
|
||||
* @see https://docs.docker.com/build/cache/backends/
|
||||
*/
|
||||
readonly cacheTo?: DockerCacheOption;
|
||||
/**
|
||||
* Disable the cache and pass `--no-cache` to the `docker build` command.
|
||||
*
|
||||
* @default - cache is used
|
||||
*/
|
||||
readonly cacheDisabled?: boolean;
|
||||
}
|
||||
/**
|
||||
* Where to publish docker images
|
||||
*/
|
||||
export interface DockerImageDestination extends AwsDestination {
|
||||
/**
|
||||
* Name of the ECR repository to publish to
|
||||
*/
|
||||
readonly repositoryName: string;
|
||||
/**
|
||||
* Tag of the image to publish
|
||||
*/
|
||||
readonly imageTag: string;
|
||||
}
|
||||
/**
|
||||
* Options for configuring the Docker cache backend
|
||||
*/
|
||||
export interface DockerCacheOption {
|
||||
/**
|
||||
* The type of cache to use.
|
||||
* Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.
|
||||
* @default - unspecified
|
||||
*
|
||||
* @example 'registry'
|
||||
*/
|
||||
readonly type: string;
|
||||
/**
|
||||
* Any parameters to pass into the docker cache backend configuration.
|
||||
* Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.
|
||||
* @default {} No options provided
|
||||
*
|
||||
* @example
|
||||
* declare const branch: string;
|
||||
*
|
||||
* const params = {
|
||||
* ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`,
|
||||
* mode: "max",
|
||||
* };
|
||||
*/
|
||||
readonly params?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
75
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts
generated
vendored
Normal file
75
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
import type { AwsDestination } from './aws-destination';
|
||||
/**
|
||||
* A file asset
|
||||
*/
|
||||
export interface FileAsset {
|
||||
/**
|
||||
* A display name for this asset
|
||||
*
|
||||
* @default - The identifier will be used as the display name
|
||||
*/
|
||||
readonly displayName?: string;
|
||||
/**
|
||||
* Source description for file assets
|
||||
*/
|
||||
readonly source: FileSource;
|
||||
/**
|
||||
* Destinations for this file asset
|
||||
*/
|
||||
readonly destinations: {
|
||||
[id: string]: FileDestination;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Packaging strategy for file assets
|
||||
*/
|
||||
export declare enum FileAssetPackaging {
|
||||
/**
|
||||
* Upload the given path as a file
|
||||
*/
|
||||
FILE = "file",
|
||||
/**
|
||||
* The given path is a directory, zip it and upload
|
||||
*/
|
||||
ZIP_DIRECTORY = "zip"
|
||||
}
|
||||
/**
|
||||
* Describe the source of a file asset
|
||||
*/
|
||||
export interface FileSource {
|
||||
/**
|
||||
* External command which will produce the file asset to upload.
|
||||
*
|
||||
* @default - Exactly one of `executable` and `path` is required.
|
||||
*/
|
||||
readonly executable?: string[];
|
||||
/**
|
||||
* The filesystem object to upload
|
||||
*
|
||||
* This path is relative to the asset manifest location.
|
||||
*
|
||||
* @default - Exactly one of `executable` and `path` is required.
|
||||
*/
|
||||
readonly path?: string;
|
||||
/**
|
||||
* Packaging method
|
||||
*
|
||||
* Only allowed when `path` is specified.
|
||||
*
|
||||
* @default FILE
|
||||
*/
|
||||
readonly packaging?: FileAssetPackaging;
|
||||
}
|
||||
/**
|
||||
* Where in S3 a file asset needs to be published
|
||||
*/
|
||||
export interface FileDestination extends AwsDestination {
|
||||
/**
|
||||
* The name of the bucket
|
||||
*/
|
||||
readonly bucketName: string;
|
||||
/**
|
||||
* The destination object key
|
||||
*/
|
||||
readonly objectKey: string;
|
||||
}
|
||||
18
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.js
generated
vendored
Normal file
18
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FileAssetPackaging = void 0;
|
||||
/**
|
||||
* Packaging strategy for file assets
|
||||
*/
|
||||
var FileAssetPackaging;
|
||||
(function (FileAssetPackaging) {
|
||||
/**
|
||||
* Upload the given path as a file
|
||||
*/
|
||||
FileAssetPackaging["FILE"] = "file";
|
||||
/**
|
||||
* The given path is a directory, zip it and upload
|
||||
*/
|
||||
FileAssetPackaging["ZIP_DIRECTORY"] = "zip";
|
||||
})(FileAssetPackaging || (exports.FileAssetPackaging = FileAssetPackaging = {}));
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1hc3NldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImZpbGUtYXNzZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBd0JBOztHQUVHO0FBQ0gsSUFBWSxrQkFVWDtBQVZELFdBQVksa0JBQWtCO0lBQzVCOztPQUVHO0lBQ0gsbUNBQWEsQ0FBQTtJQUViOztPQUVHO0lBQ0gsMkNBQXFCLENBQUE7QUFDdkIsQ0FBQyxFQVZXLGtCQUFrQixrQ0FBbEIsa0JBQWtCLFFBVTdCIiwic291cmNlc0NvbnRlbnQiOls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biBvYmplY3Qga2V5XG4gICAqL1xuICByZWFkb25seSBvYmplY3RLZXk6IHN0cmluZztcbn1cbiJdfQ==
|
||||
4
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/index.d.ts
generated
vendored
Normal file
4
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './schema';
|
||||
export * from './docker-image-asset';
|
||||
export * from './file-asset';
|
||||
export * from './aws-destination';
|
||||
21
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/index.js
generated
vendored
Normal file
21
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./schema"), exports);
|
||||
__exportStar(require("./docker-image-asset"), exports);
|
||||
__exportStar(require("./file-asset"), exports);
|
||||
__exportStar(require("./aws-destination"), exports);
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkNBQXlCO0FBQ3pCLHVEQUFxQztBQUNyQywrQ0FBNkI7QUFDN0Isb0RBQWtDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zY2hlbWEnO1xuZXhwb3J0ICogZnJvbSAnLi9kb2NrZXItaW1hZ2UtYXNzZXQnO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlLWFzc2V0JztcbmV4cG9ydCAqIGZyb20gJy4vYXdzLWRlc3RpbmF0aW9uJztcbiJdfQ==
|
||||
27
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/schema.d.ts
generated
vendored
Normal file
27
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/schema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { DockerImageAsset } from './docker-image-asset';
|
||||
import type { FileAsset } from './file-asset';
|
||||
/**
|
||||
* Definitions for the asset manifest
|
||||
*/
|
||||
export interface AssetManifest {
|
||||
/**
|
||||
* Version of the manifest
|
||||
*/
|
||||
readonly version: string;
|
||||
/**
|
||||
* The file assets in this manifest
|
||||
*
|
||||
* @default - No files
|
||||
*/
|
||||
readonly files?: {
|
||||
[id: string]: FileAsset;
|
||||
};
|
||||
/**
|
||||
* The Docker image assets in this manifest
|
||||
*
|
||||
* @default - No Docker images
|
||||
*/
|
||||
readonly dockerImages?: {
|
||||
[id: string]: DockerImageAsset;
|
||||
};
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/schema.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/schema.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IERvY2tlckltYWdlQXNzZXQgfSBmcm9tICcuL2RvY2tlci1pbWFnZS1hc3NldCc7XG5pbXBvcnQgdHlwZSB7IEZpbGVBc3NldCB9IGZyb20gJy4vZmlsZS1hc3NldCc7XG5cbi8qKlxuICogRGVmaW5pdGlvbnMgZm9yIHRoZSBhc3NldCBtYW5pZmVzdFxuICovXG5leHBvcnQgaW50ZXJmYWNlIEFzc2V0TWFuaWZlc3Qge1xuICAvKipcbiAgICogVmVyc2lvbiBvZiB0aGUgbWFuaWZlc3RcbiAgICovXG4gIHJlYWRvbmx5IHZlcnNpb246IHN0cmluZztcblxuICAvKipcbiAgICogVGhlIGZpbGUgYXNzZXRzIGluIHRoaXMgbWFuaWZlc3RcbiAgICpcbiAgICogQGRlZmF1bHQgLSBObyBmaWxlc1xuICAgKi9cbiAgcmVhZG9ubHkgZmlsZXM/OiB7IFtpZDogc3RyaW5nXTogRmlsZUFzc2V0IH07XG5cbiAgLyoqXG4gICAqIFRoZSBEb2NrZXIgaW1hZ2UgYXNzZXRzIGluIHRoaXMgbWFuaWZlc3RcbiAgICpcbiAgICogQGRlZmF1bHQgLSBObyBEb2NrZXIgaW1hZ2VzXG4gICAqL1xuICByZWFkb25seSBkb2NrZXJJbWFnZXM/OiB7IFtpZDogc3RyaW5nXTogRG9ja2VySW1hZ2VBc3NldCB9O1xufVxuIl19
|
||||
301
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.d.ts
generated
vendored
Normal file
301
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,301 @@
|
||||
/**
|
||||
* Information needed to access an IAM role created
|
||||
* as part of the bootstrap process
|
||||
*/
|
||||
export interface BootstrapRole {
|
||||
/**
|
||||
* The ARN of the IAM role created as part of bootrapping
|
||||
* e.g. lookupRoleArn
|
||||
*/
|
||||
readonly arn: string;
|
||||
/**
|
||||
* External ID to use when assuming the bootstrap role
|
||||
*
|
||||
* @default - No external ID
|
||||
*/
|
||||
readonly assumeRoleExternalId?: string;
|
||||
/**
|
||||
* Additional options to pass to STS when assuming the role.
|
||||
*
|
||||
* - `RoleArn` should not be used. Use the dedicated `arn` property instead.
|
||||
* - `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
|
||||
* @default - No additional options.
|
||||
*/
|
||||
readonly assumeRoleAdditionalOptions?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* Version of bootstrap stack required to use this role
|
||||
*
|
||||
* @default - No bootstrap stack required
|
||||
*/
|
||||
readonly requiresBootstrapStackVersion?: number;
|
||||
/**
|
||||
* Name of SSM parameter with bootstrap stack version
|
||||
*
|
||||
* @default - Discover SSM parameter by reading stack
|
||||
*/
|
||||
readonly bootstrapStackVersionSsmParameter?: string;
|
||||
}
|
||||
/**
|
||||
* Artifact properties for CloudFormation stacks.
|
||||
*/
|
||||
export interface AwsCloudFormationStackProperties {
|
||||
/**
|
||||
* A file relative to the assembly root which contains the CloudFormation template for this stack.
|
||||
*/
|
||||
readonly templateFile: string;
|
||||
/**
|
||||
* Values for CloudFormation stack parameters that should be passed when the stack is deployed.
|
||||
*
|
||||
* @default - No parameters
|
||||
*/
|
||||
readonly parameters?: {
|
||||
[id: string]: string;
|
||||
};
|
||||
/**
|
||||
* Values for CloudFormation stack tags that should be passed when the stack is deployed.
|
||||
*
|
||||
* N.B.: Tags are also written to stack metadata, under the path of the Stack
|
||||
* construct. Only in CDK CLI v1 are those tags found in metadata used for
|
||||
* actual deployments; in all stable versions of CDK only the stack tags
|
||||
* directly found in the `tags` property of `AwsCloudFormationStack` artifact
|
||||
* (i.e., this property) are used.
|
||||
*
|
||||
* @default - No tags
|
||||
*/
|
||||
readonly tags?: {
|
||||
[id: string]: string;
|
||||
};
|
||||
/**
|
||||
* SNS Notification ARNs that should receive CloudFormation Stack Events.
|
||||
*
|
||||
* @default - No notification arns
|
||||
*/
|
||||
readonly notificationArns?: string[];
|
||||
/**
|
||||
* The name to use for the CloudFormation stack.
|
||||
* @default - name derived from artifact ID
|
||||
*/
|
||||
readonly stackName?: string;
|
||||
/**
|
||||
* Whether to enable termination protection for this stack.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly terminationProtection?: boolean;
|
||||
/**
|
||||
* The role that needs to be assumed to deploy the stack
|
||||
*
|
||||
* @default - No role is assumed (current credentials are used)
|
||||
*/
|
||||
readonly assumeRoleArn?: string;
|
||||
/**
|
||||
* External ID to use when assuming role for cloudformation deployments
|
||||
*
|
||||
* @default - No external ID
|
||||
*/
|
||||
readonly assumeRoleExternalId?: string;
|
||||
/**
|
||||
* Additional options to pass to STS when assuming the role.
|
||||
*
|
||||
* - `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.
|
||||
* - `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
|
||||
* @default - No additional options.
|
||||
*/
|
||||
readonly assumeRoleAdditionalOptions?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* The role that is passed to CloudFormation to execute the change set
|
||||
*
|
||||
* @default - No role is passed (currently assumed role/credentials are used)
|
||||
*/
|
||||
readonly cloudFormationExecutionRoleArn?: string;
|
||||
/**
|
||||
* The role to use to look up values from the target AWS account
|
||||
*
|
||||
* @default - No role is assumed (current credentials are used)
|
||||
*/
|
||||
readonly lookupRole?: BootstrapRole;
|
||||
/**
|
||||
* If the stack template has already been included in the asset manifest, its asset URL
|
||||
*
|
||||
* @default - Not uploaded yet, upload just before deploying
|
||||
*/
|
||||
readonly stackTemplateAssetObjectUrl?: string;
|
||||
/**
|
||||
* Version of bootstrap stack required to deploy this stack
|
||||
*
|
||||
* @default - No bootstrap stack required
|
||||
*/
|
||||
readonly requiresBootstrapStackVersion?: number;
|
||||
/**
|
||||
* SSM parameter where the bootstrap stack version number can be found
|
||||
*
|
||||
* Only used if `requiresBootstrapStackVersion` is set.
|
||||
*
|
||||
* - If this value is not set, the bootstrap stack name must be known at
|
||||
* deployment time so the stack version can be looked up from the stack
|
||||
* outputs.
|
||||
* - If this value is set, the bootstrap stack can have any name because
|
||||
* we won't need to look it up.
|
||||
*
|
||||
* @default - Bootstrap stack version number looked up
|
||||
*/
|
||||
readonly bootstrapStackVersionSsmParameter?: string;
|
||||
/**
|
||||
* Whether this stack should be validated by the CLI after synthesis
|
||||
*
|
||||
* @default - false
|
||||
*/
|
||||
readonly validateOnSynth?: boolean;
|
||||
}
|
||||
/**
|
||||
* Configuration options for the Asset Manifest
|
||||
*/
|
||||
export interface AssetManifestOptions {
|
||||
/**
|
||||
* Version of bootstrap stack required to deploy this stack
|
||||
*
|
||||
* @default - Version 1 (basic modern bootstrap stack)
|
||||
*/
|
||||
readonly requiresBootstrapStackVersion?: number;
|
||||
/**
|
||||
* SSM parameter where the bootstrap stack version number can be found
|
||||
*
|
||||
* - If this value is not set, the bootstrap stack name must be known at
|
||||
* deployment time so the stack version can be looked up from the stack
|
||||
* outputs.
|
||||
* - If this value is set, the bootstrap stack can have any name because
|
||||
* we won't need to look it up.
|
||||
*
|
||||
* @default - Bootstrap stack version number looked up
|
||||
*/
|
||||
readonly bootstrapStackVersionSsmParameter?: string;
|
||||
}
|
||||
/**
|
||||
* Artifact properties for the Asset Manifest
|
||||
*/
|
||||
export interface AssetManifestProperties extends AssetManifestOptions {
|
||||
/**
|
||||
* Filename of the asset manifest
|
||||
*/
|
||||
readonly file: string;
|
||||
}
|
||||
/**
|
||||
* Artifact properties for the Construct Tree Artifact
|
||||
*/
|
||||
export interface TreeArtifactProperties {
|
||||
/**
|
||||
* Filename of the tree artifact
|
||||
*/
|
||||
readonly file: string;
|
||||
}
|
||||
/**
|
||||
* Artifact properties for nested cloud assemblies
|
||||
*/
|
||||
export interface NestedCloudAssemblyProperties {
|
||||
/**
|
||||
* Relative path to the nested cloud assembly
|
||||
*/
|
||||
readonly directoryName: string;
|
||||
/**
|
||||
* Display name for the cloud assembly
|
||||
*
|
||||
* @default - The artifact ID
|
||||
*/
|
||||
readonly displayName?: string;
|
||||
}
|
||||
/**
|
||||
* Artifact properties for a feature flag report
|
||||
*
|
||||
* A feature flag report is small enough that all the properties can be inlined
|
||||
* here, and doesn't need an additional file.
|
||||
*/
|
||||
export interface FeatureFlagReportProperties {
|
||||
/**
|
||||
* The library that this feature flag report applies to.
|
||||
*/
|
||||
readonly module: string;
|
||||
/**
|
||||
* Information about every feature flag supported by this library.
|
||||
*/
|
||||
readonly flags: {
|
||||
[flagName: string]: FeatureFlag;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* A single feature flag
|
||||
*/
|
||||
export interface FeatureFlag {
|
||||
/**
|
||||
* The library-recommended value for this flag, if any
|
||||
*
|
||||
* It is possible that there is no recommended value.
|
||||
*
|
||||
* @default - No recommended value.
|
||||
*/
|
||||
readonly recommendedValue?: any;
|
||||
/**
|
||||
* The value configured by the user
|
||||
*
|
||||
* This is the value configured at the root of the tree. Users may also have
|
||||
* configured values at specific locations in the tree; we don't report on
|
||||
* those.
|
||||
*
|
||||
* @default - Not configured by the user
|
||||
*/
|
||||
readonly userValue?: any;
|
||||
/**
|
||||
* Explanation about the purpose of this flag that can be shown to the user.
|
||||
*
|
||||
* @default - No description
|
||||
*/
|
||||
readonly explanation?: string;
|
||||
/**
|
||||
* The value of the flag that produces the same behavior as when the flag is not configured at all
|
||||
*
|
||||
*The structure of this field is a historical accident. The type of this field
|
||||
*should have been boolean, which should have contained the default value for
|
||||
*the flag appropriate for the *current* version of the CDK library. We are
|
||||
*not rectifying this accident because doing so
|
||||
*
|
||||
* Instead, the canonical way to access this value is by evaluating
|
||||
* `unconfiguredBehavesLike?.v2 ?? false`.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly unconfiguredBehavesLike?: UnconfiguredBehavesLike;
|
||||
}
|
||||
export interface UnconfiguredBehavesLike {
|
||||
/**
|
||||
* Historical accident, don't use.
|
||||
*
|
||||
* This value may be present, but it should never be used. The actual value is
|
||||
* in the `v2` field, regardless of the version of the CDK library.
|
||||
*
|
||||
* @default - ignore
|
||||
*/
|
||||
readonly v1?: any;
|
||||
/**
|
||||
* The value of the flag that produces the same behavior as when the flag is not configured at all
|
||||
*
|
||||
* Even though it is called 'v2', this is the official name of this field. In
|
||||
* any future versions of CDK (v3, v4, ...), this field will still be called 'v2'.
|
||||
*
|
||||
* The structure of this field is a historical accident. See the comment on
|
||||
* `unconfiguredBehavesLike` for more information.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly v2?: any;
|
||||
}
|
||||
/**
|
||||
* Properties for manifest artifacts
|
||||
*/
|
||||
export type ArtifactProperties = AwsCloudFormationStackProperties | AssetManifestProperties | TreeArtifactProperties | NestedCloudAssemblyProperties | FeatureFlagReportProperties;
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
462
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.d.ts
generated
vendored
Normal file
462
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.d.ts
generated
vendored
Normal file
@@ -0,0 +1,462 @@
|
||||
import type { Tag } from './metadata-schema';
|
||||
/**
|
||||
* Identifier for the context provider
|
||||
*/
|
||||
export declare enum ContextProvider {
|
||||
/**
|
||||
* AMI provider
|
||||
*/
|
||||
AMI_PROVIDER = "ami",
|
||||
/**
|
||||
* AZ provider
|
||||
*/
|
||||
AVAILABILITY_ZONE_PROVIDER = "availability-zones",
|
||||
/**
|
||||
* Route53 Hosted Zone provider
|
||||
*/
|
||||
HOSTED_ZONE_PROVIDER = "hosted-zone",
|
||||
/**
|
||||
* SSM Parameter Provider
|
||||
*/
|
||||
SSM_PARAMETER_PROVIDER = "ssm",
|
||||
/**
|
||||
* VPC Provider
|
||||
*/
|
||||
VPC_PROVIDER = "vpc-provider",
|
||||
/**
|
||||
* VPC Endpoint Service AZ Provider
|
||||
*/
|
||||
ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER = "endpoint-service-availability-zones",
|
||||
/**
|
||||
* Load balancer provider
|
||||
*/
|
||||
LOAD_BALANCER_PROVIDER = "load-balancer",
|
||||
/**
|
||||
* Load balancer listener provider
|
||||
*/
|
||||
LOAD_BALANCER_LISTENER_PROVIDER = "load-balancer-listener",
|
||||
/**
|
||||
* Security group provider
|
||||
*/
|
||||
SECURITY_GROUP_PROVIDER = "security-group",
|
||||
/**
|
||||
* KMS Key Provider
|
||||
*/
|
||||
KEY_PROVIDER = "key-provider",
|
||||
/**
|
||||
* CCAPI Provider
|
||||
*/
|
||||
CC_API_PROVIDER = "cc-api-provider",
|
||||
/**
|
||||
* A plugin provider (the actual plugin name will be in the properties)
|
||||
*/
|
||||
PLUGIN = "plugin"
|
||||
}
|
||||
/**
|
||||
* Options for context lookup roles.
|
||||
*/
|
||||
export interface ContextLookupRoleOptions {
|
||||
/**
|
||||
* Query account
|
||||
*/
|
||||
readonly account: string;
|
||||
/**
|
||||
* Query region
|
||||
*/
|
||||
readonly region: string;
|
||||
/**
|
||||
* The ARN of the role that should be used to look up the missing values
|
||||
*
|
||||
* @default - None
|
||||
*/
|
||||
readonly lookupRoleArn?: string;
|
||||
/**
|
||||
* The ExternalId that needs to be supplied while assuming this role
|
||||
*
|
||||
* @default - No ExternalId will be supplied
|
||||
*/
|
||||
readonly lookupRoleExternalId?: string;
|
||||
/**
|
||||
* Additional options to pass to STS when assuming the lookup role.
|
||||
*
|
||||
* - `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.
|
||||
* - `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
|
||||
* @default - No additional options.
|
||||
*/
|
||||
readonly assumeRoleAdditionalOptions?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Query to AMI context provider
|
||||
*/
|
||||
export interface AmiContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Owners to DescribeImages call
|
||||
*
|
||||
* @default - All owners
|
||||
*/
|
||||
readonly owners?: string[];
|
||||
/**
|
||||
* Filters to DescribeImages call
|
||||
*/
|
||||
readonly filters: {
|
||||
[key: string]: string[];
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Query to availability zone context provider
|
||||
*/
|
||||
export interface AvailabilityZonesContextQuery extends ContextLookupRoleOptions {
|
||||
}
|
||||
/**
|
||||
* Query to hosted zone context provider
|
||||
*/
|
||||
export interface HostedZoneContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* The domain name e.g. example.com to lookup
|
||||
*/
|
||||
readonly domainName: string;
|
||||
/**
|
||||
* True if the zone you want to find is a private hosted zone
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly privateZone?: boolean;
|
||||
/**
|
||||
* The VPC ID to that the private zone must be associated with
|
||||
*
|
||||
* If you provide VPC ID and privateZone is false, this will return no results
|
||||
* and raise an error.
|
||||
*
|
||||
* @default - Required if privateZone=true
|
||||
*/
|
||||
readonly vpcId?: string;
|
||||
}
|
||||
/**
|
||||
* Query to SSM Parameter Context Provider
|
||||
*/
|
||||
export interface SSMParameterContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Parameter name to query
|
||||
*/
|
||||
readonly parameterName: string;
|
||||
}
|
||||
/**
|
||||
* Query input for looking up a VPC
|
||||
*/
|
||||
export interface VpcContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Filters to apply to the VPC
|
||||
*
|
||||
* Filter parameters are the same as passed to DescribeVpcs.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html
|
||||
*/
|
||||
readonly filter: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* Whether to populate the subnetGroups field of the `VpcContextResponse`,
|
||||
* which contains potentially asymmetric subnet groups.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly returnAsymmetricSubnets?: boolean;
|
||||
/**
|
||||
* Optional tag for subnet group name.
|
||||
* If not provided, we'll look at the aws-cdk:subnet-name tag.
|
||||
* If the subnet does not have the specified tag,
|
||||
* we'll use its type as the name.
|
||||
*
|
||||
* @default 'aws-cdk:subnet-name'
|
||||
*/
|
||||
readonly subnetGroupNameTag?: string;
|
||||
/**
|
||||
* Whether to populate the `vpnGatewayId` field of the `VpcContextResponse`,
|
||||
* which contains the VPN Gateway ID, if one exists. You can explicitly
|
||||
* disable this in order to avoid the lookup if you know the VPC does not have
|
||||
* a VPN Gatway attached.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly returnVpnGateways?: boolean;
|
||||
}
|
||||
/**
|
||||
* Query to endpoint service context provider
|
||||
*/
|
||||
export interface EndpointServiceAvailabilityZonesContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Query service name
|
||||
*/
|
||||
readonly serviceName: string;
|
||||
}
|
||||
/**
|
||||
* Type of load balancer
|
||||
*/
|
||||
export declare enum LoadBalancerType {
|
||||
/**
|
||||
* Network load balancer
|
||||
*/
|
||||
NETWORK = "network",
|
||||
/**
|
||||
* Application load balancer
|
||||
*/
|
||||
APPLICATION = "application"
|
||||
}
|
||||
/**
|
||||
* Filters for selecting load balancers
|
||||
*/
|
||||
export interface LoadBalancerFilter extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Filter load balancers by their type
|
||||
*/
|
||||
readonly loadBalancerType: LoadBalancerType;
|
||||
/**
|
||||
* Find by load balancer's ARN
|
||||
* @default - does not search by load balancer arn
|
||||
*/
|
||||
readonly loadBalancerArn?: string;
|
||||
/**
|
||||
* Match load balancer tags
|
||||
* @default - does not match load balancers by tags
|
||||
*/
|
||||
readonly loadBalancerTags?: Tag[];
|
||||
}
|
||||
/**
|
||||
* Query input for looking up a load balancer
|
||||
*/
|
||||
export interface LoadBalancerContextQuery extends LoadBalancerFilter {
|
||||
}
|
||||
/**
|
||||
* The protocol for connections from clients to the load balancer
|
||||
*/
|
||||
export declare enum LoadBalancerListenerProtocol {
|
||||
/**
|
||||
* HTTP protocol
|
||||
*/
|
||||
HTTP = "HTTP",
|
||||
/**
|
||||
* HTTPS protocol
|
||||
*/
|
||||
HTTPS = "HTTPS",
|
||||
/**
|
||||
* TCP protocol
|
||||
*/
|
||||
TCP = "TCP",
|
||||
/**
|
||||
* TLS protocol
|
||||
*/
|
||||
TLS = "TLS",
|
||||
/**
|
||||
* UDP protocol
|
||||
* */
|
||||
UDP = "UDP",
|
||||
/**
|
||||
* TCP and UDP protocol
|
||||
* */
|
||||
TCP_UDP = "TCP_UDP"
|
||||
}
|
||||
/**
|
||||
* Query input for looking up a load balancer listener
|
||||
*/
|
||||
export interface LoadBalancerListenerContextQuery extends LoadBalancerFilter {
|
||||
/**
|
||||
* Find by listener's arn
|
||||
* @default - does not find by listener arn
|
||||
*/
|
||||
readonly listenerArn?: string;
|
||||
/**
|
||||
* Filter by listener protocol
|
||||
* @default - does not filter by listener protocol
|
||||
*/
|
||||
readonly listenerProtocol?: LoadBalancerListenerProtocol;
|
||||
/**
|
||||
* Filter listeners by listener port
|
||||
* @default - does not filter by a listener port
|
||||
*/
|
||||
readonly listenerPort?: number;
|
||||
}
|
||||
/**
|
||||
* Query input for looking up a security group
|
||||
*/
|
||||
export interface SecurityGroupContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Security group id
|
||||
*
|
||||
* @default - None
|
||||
*/
|
||||
readonly securityGroupId?: string;
|
||||
/**
|
||||
* Security group name
|
||||
*
|
||||
* @default - None
|
||||
*/
|
||||
readonly securityGroupName?: string;
|
||||
/**
|
||||
* VPC ID
|
||||
*
|
||||
* @default - None
|
||||
*/
|
||||
readonly vpcId?: string;
|
||||
}
|
||||
/**
|
||||
* Query input for looking up a KMS Key
|
||||
*/
|
||||
export interface KeyContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* Alias name used to search the Key
|
||||
*/
|
||||
readonly aliasName: string;
|
||||
}
|
||||
/**
|
||||
* Query input for lookup up CloudFormation resources using CC API
|
||||
*
|
||||
* The example below is required to successfully compile CDK (otherwise,
|
||||
* the CDK build will generate a synthetic example for the below, but it
|
||||
* doesn't have enough type information about the literal string union
|
||||
* to generate a validly compiling example).
|
||||
*
|
||||
* @example
|
||||
* import { CcApiContextQuery } from '@aws-cdk/cloud-assembly-schema';
|
||||
*
|
||||
* const x: CcApiContextQuery = {
|
||||
* typeName: 'AWS::Some::Type',
|
||||
* expectedMatchCount: 'exactly-one',
|
||||
* resourceModel: {SomeArn: 'arn:aws:....'},
|
||||
* propertiesToReturn: ['SomeProp'],
|
||||
* account: '11111111111',
|
||||
* region: 'us-east-1',
|
||||
* };
|
||||
*/
|
||||
export interface CcApiContextQuery extends ContextLookupRoleOptions {
|
||||
/**
|
||||
* The CloudFormation resource type.
|
||||
* See https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html
|
||||
*/
|
||||
readonly typeName: string;
|
||||
/**
|
||||
* Identifier of the resource to look up using `GetResource`.
|
||||
*
|
||||
* Specifying exactIdentifier will return exactly one result, or throw an error
|
||||
* unless `ignoreErrorOnMissingContext` is set.
|
||||
*
|
||||
* @default - Either exactIdentifier or propertyMatch should be specified.
|
||||
*/
|
||||
readonly exactIdentifier?: string;
|
||||
/**
|
||||
* The resource model to use to select the resources, using `ListResources`..
|
||||
*
|
||||
* This is needed for sub-resources where the parent Arn is required.
|
||||
*
|
||||
* See https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html#resource-operations-list-containers
|
||||
*
|
||||
* @default - no resource Model is provided
|
||||
*/
|
||||
readonly resourceModel?: Record<string, unknown>;
|
||||
/**
|
||||
* Returns any resources matching these properties, using `ListResources`.
|
||||
*
|
||||
* By default, specifying propertyMatch will successfully return 0 or more
|
||||
* results. To throw an error if the number of results is unexpected (and
|
||||
* prevent the query results from being committed to context), specify
|
||||
* `expectedMatchCount`.
|
||||
*
|
||||
* ## Notes on property completeness
|
||||
*
|
||||
* CloudControl API's `ListResources` may return fewer properties than
|
||||
* `GetResource` would, depending on the resource implementation.
|
||||
*
|
||||
* The resources that `propertyMatch` matches against will *only ever* be the
|
||||
* properties returned by the `ListResources` call.
|
||||
*
|
||||
* @default - Either exactIdentifier or propertyMatch should be specified.
|
||||
*/
|
||||
readonly propertyMatch?: Record<string, unknown>;
|
||||
/**
|
||||
* This is a set of properties returned from CC API that we want to return from ContextQuery.
|
||||
*
|
||||
* If any properties listed here are absent from the target resource, an error will be thrown.
|
||||
*
|
||||
* The returned object will always include the key `Identifier` with the CC-API returned
|
||||
* field `Identifier`.
|
||||
*
|
||||
* ## Notes on property completeness
|
||||
*
|
||||
* CloudControl API's `ListResources` may return fewer properties than
|
||||
* `GetResource` would, depending on the resource implementation.
|
||||
*
|
||||
* The returned properties here are *currently* selected from the response
|
||||
* object that CloudControl API returns to the CDK CLI.
|
||||
*
|
||||
* However, if we find there is need to do so, we may decide to change this
|
||||
* behavior in the future: we might change it to perform an additional
|
||||
* `GetResource` call for resources matched by `propertyMatch`.
|
||||
*/
|
||||
readonly propertiesToReturn: string[];
|
||||
/**
|
||||
* Expected count of results if `propertyMatch` is specified.
|
||||
*
|
||||
* If the expected result count does not match the actual count,
|
||||
* by default an error is produced and the result is not committed to cached
|
||||
* context, and the user can correct the situation and try again without
|
||||
* having to manually clear out the context key using `cdk context --remove`
|
||||
*
|
||||
* If the value of * `ignoreErrorOnMissingContext` is `true`, the value of
|
||||
* `expectedMatchCount` is `at-least-one | exactly-one` and the number
|
||||
* of found resources is 0, `dummyValue` is returned and committed to context
|
||||
* instead.
|
||||
*
|
||||
* @default 'any'
|
||||
*/
|
||||
readonly expectedMatchCount?: 'any' | 'at-least-one' | 'at-most-one' | 'exactly-one';
|
||||
/**
|
||||
* The value to return if the resource was not found and `ignoreErrorOnMissingContext` is true.
|
||||
*
|
||||
* If supplied, `dummyValue` should be an array of objects.
|
||||
*
|
||||
* `dummyValue` does not have to have elements, and it may have objects with
|
||||
* different properties than the properties in `propertiesToReturn`, but it
|
||||
* will be easiest for downstream code if the `dummyValue` conforms to
|
||||
* the expected response shape.
|
||||
*
|
||||
* @default - No dummy value available
|
||||
*/
|
||||
readonly dummyValue?: any;
|
||||
/**
|
||||
* Ignore an error and return the `dummyValue` instead if the resource was not found.
|
||||
*
|
||||
* - In case of an `exactIdentifier` lookup, return the `dummyValue` if the resource with
|
||||
* that identifier was not found.
|
||||
* - In case of a `propertyMatch` lookup, return the `dummyValue` if `expectedMatchCount`
|
||||
* is `at-least-one | exactly-one` and the number of resources found was 0.
|
||||
*
|
||||
* if `ignoreErrorOnMissingContext` is set, `dummyValue` should be set and be an array.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly ignoreErrorOnMissingContext?: boolean;
|
||||
}
|
||||
/**
|
||||
* Query input for plugins
|
||||
*
|
||||
* This alternate branch is necessary because it needs to be able to escape all type checking
|
||||
* we do on on the cloud assembly -- we cannot know the properties that will be used a priori.
|
||||
*/
|
||||
export interface PluginContextQuery {
|
||||
/**
|
||||
* The name of the plugin
|
||||
*/
|
||||
readonly pluginName: string;
|
||||
/**
|
||||
* Arbitrary other arguments for the plugin.
|
||||
*
|
||||
* This index signature is not usable in non-TypeScript/JavaScript languages.
|
||||
*
|
||||
* @jsii ignore
|
||||
*/
|
||||
[key: string]: any;
|
||||
}
|
||||
export type ContextQueryProperties = AmiContextQuery | AvailabilityZonesContextQuery | HostedZoneContextQuery | SSMParameterContextQuery | VpcContextQuery | EndpointServiceAvailabilityZonesContextQuery | LoadBalancerContextQuery | LoadBalancerListenerContextQuery | SecurityGroupContextQuery | KeyContextQuery | CcApiContextQuery | PluginContextQuery;
|
||||
102
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.js
generated
vendored
Normal file
102
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.d.ts
generated
vendored
Normal file
5
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export * from './schema';
|
||||
export * from './metadata-schema';
|
||||
export * from './artifact-schema';
|
||||
export * from './context-queries';
|
||||
export * from './interfaces';
|
||||
22
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.js
generated
vendored
Normal file
22
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./schema"), exports);
|
||||
__exportStar(require("./metadata-schema"), exports);
|
||||
__exportStar(require("./artifact-schema"), exports);
|
||||
__exportStar(require("./context-queries"), exports);
|
||||
__exportStar(require("./interfaces"), exports);
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkNBQXlCO0FBQ3pCLG9EQUFrQztBQUNsQyxvREFBa0M7QUFDbEMsb0RBQWtDO0FBQ2xDLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2NoZW1hJztcbmV4cG9ydCAqIGZyb20gJy4vbWV0YWRhdGEtc2NoZW1hJztcbmV4cG9ydCAqIGZyb20gJy4vYXJ0aWZhY3Qtc2NoZW1hJztcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dC1xdWVyaWVzJztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJmYWNlcyc7XG4iXX0=
|
||||
23
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.d.ts
generated
vendored
Normal file
23
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Interoperable representation of a deployable cloud application.
|
||||
*
|
||||
* The external and interoperable contract for a Cloud Assembly is
|
||||
* a directory containing a valid Cloud Assembly.
|
||||
*
|
||||
* Implementations should use the directory to load the Cloud Assembly from disk.
|
||||
* It is recommended that implementations validate loaded manifest files using
|
||||
* the provided functionality from this package.
|
||||
* Within an implementation, it may be prudent to keep (parts of) the Cloud Assembly
|
||||
* in memory during execution and use an implementation-specific contract.
|
||||
* However when an implementation is providing an external contract,
|
||||
* this interface should be used.
|
||||
*/
|
||||
export interface ICloudAssembly {
|
||||
/**
|
||||
* The directory of the cloud assembly.
|
||||
*
|
||||
* This directory will be used to read the Cloud Assembly from.
|
||||
* Its contents (in particular `manifest.json`) must comply with the schema defined in this package.
|
||||
*/
|
||||
readonly directory: string;
|
||||
}
|
||||
10
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.js
generated
vendored
Normal file
10
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
// The interfaces in this file, mainly exist __here__ because this is a convenient place to put them.
|
||||
// The Assembly Schema package is already a jsii package and a dependency of `aws-cdk-lib`.
|
||||
// It is effectively the only place we can put shared interfaces to be used across the jsii ecosystem.
|
||||
//
|
||||
// Putting a shared interface in here should be a huge exception.
|
||||
// It needs to be justified by great benefits it provides to the ecosystems.
|
||||
// All interfaces should be as minimal as possible.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFHQUFxRztBQUNyRywyRkFBMkY7QUFDM0Ysc0dBQXNHO0FBQ3RHLEVBQUU7QUFDRixpRUFBaUU7QUFDakUsNEVBQTRFO0FBQzVFLG1EQUFtRCIsInNvdXJjZXNDb250ZW50IjpbIi8vIFRoZSBpbnRlcmZhY2VzIGluIHRoaXMgZmlsZSwgbWFpbmx5IGV4aXN0IF9faGVyZV9fIGJlY2F1c2UgdGhpcyBpcyBhIGNvbnZlbmllbnQgcGxhY2UgdG8gcHV0IHRoZW0uXG4vLyBUaGUgQXNzZW1ibHkgU2NoZW1hIHBhY2thZ2U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GxlbWVudGF0aW9uLCBpdCBtYXkgYmUgcHJ1ZGVudCB0byBrZWVwIChwYXJ0cyBvZikgdGhlIENsb3VkIEFzc2VtYmx5XG4gKiBpbiBtZW1vcnkgZHVyaW5nIGV4ZWN1dGlvbiBhbmQgdXNlIGFuIGltcGxlbWVudGF0aW9uLXNwZWNpZmljIGNvbnRyYWN0LlxuICogSG93ZXZlciB3aGVuIGFuIGltcGxlbWVudGF0aW9uIGlzIHByb3ZpZGluZyBhbiBleHRlcm5hbCBjb250cmFjdCxcbiAqIHRoaXMgaW50ZXJmYWNlIHNob3VsZCBiZSB1c2VkLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIElDbG91ZEFzc2VtYmx5IHtcbiAgLyoqXG4gICAqIFRoZSBkaXJlY3Rvcnkgb2YgdGhlIGNsb3VkIGFzc2VtYmx5LlxuICAgKlxuICAgKiBUaGlzIGRpcmVjdG9yeSB3aWxsIGJlIHVzZWQgdG8gcmVhZCB0aGUgQ2xvdWQgQXNzZW1ibHkgZnJvbS5cbiAgICogSXRzIGNvbnRlbnRzIChpbiBwYXJ0aWN1bGFyIGBtYW5pZmVzdC5qc29uYCkgbXVzdCBjb21wbHkgd2l0aCB0aGUgc2NoZW1hIGRlZmluZWQgaW4gdGhpcyBwYWNrYWdlLlxuICAgKi9cbiAgcmVhZG9ubHkgZGlyZWN0b3J5OiBzdHJpbmc7XG59XG4iXX0=
|
||||
331
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts
generated
vendored
Normal file
331
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,331 @@
|
||||
/**
|
||||
* Common properties for asset metadata.
|
||||
*/
|
||||
interface BaseAssetMetadataEntry {
|
||||
/**
|
||||
* Requested packaging style
|
||||
*/
|
||||
readonly packaging: string;
|
||||
/**
|
||||
* Logical identifier for the asset
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* The hash of the asset source.
|
||||
*/
|
||||
readonly sourceHash: string;
|
||||
/**
|
||||
* Path on disk to the asset
|
||||
*/
|
||||
readonly path: string;
|
||||
}
|
||||
/**
|
||||
* Metadata Entry spec for files.
|
||||
*
|
||||
* @example
|
||||
* const entry = {
|
||||
* packaging: 'file',
|
||||
* s3BucketParameter: 'bucket-parameter',
|
||||
* s3KeyParamenter: 'key-parameter',
|
||||
* artifactHashParameter: 'hash-parameter',
|
||||
* }
|
||||
*/
|
||||
export interface FileAssetMetadataEntry extends BaseAssetMetadataEntry {
|
||||
/**
|
||||
* Requested packaging style
|
||||
*/
|
||||
readonly packaging: 'zip' | 'file';
|
||||
/**
|
||||
* Name of parameter where S3 bucket should be passed in
|
||||
*/
|
||||
readonly s3BucketParameter: string;
|
||||
/**
|
||||
* Name of parameter where S3 key should be passed in
|
||||
*/
|
||||
readonly s3KeyParameter: string;
|
||||
/**
|
||||
* The name of the parameter where the hash of the bundled asset should be passed in.
|
||||
*/
|
||||
readonly artifactHashParameter: string;
|
||||
}
|
||||
/**
|
||||
* Metadata Entry spec for stack tag.
|
||||
*/
|
||||
export interface Tag {
|
||||
/**
|
||||
* Tag key.
|
||||
*
|
||||
* (In the actual file on disk this will be cased as "Key", and the structure is
|
||||
* patched to match this structure upon loading:
|
||||
* https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* Tag value.
|
||||
*
|
||||
* (In the actual file on disk this will be cased as "Value", and the structure is
|
||||
* patched to match this structure upon loading:
|
||||
* https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)
|
||||
*/
|
||||
readonly value: string;
|
||||
}
|
||||
/**
|
||||
* Options for configuring the Docker cache backend
|
||||
*/
|
||||
export interface ContainerImageAssetCacheOption {
|
||||
/**
|
||||
* The type of cache to use.
|
||||
* Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.
|
||||
* @default - unspecified
|
||||
*
|
||||
* @example 'registry'
|
||||
*/
|
||||
readonly type: string;
|
||||
/**
|
||||
* Any parameters to pass into the docker cache backend configuration.
|
||||
* Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.
|
||||
* @default {} No options provided
|
||||
*
|
||||
* @example
|
||||
* declare const branch: string;
|
||||
*
|
||||
* const params = {
|
||||
* ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`,
|
||||
* mode: "max",
|
||||
* };
|
||||
*/
|
||||
readonly params?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Metadata Entry spec for container images.
|
||||
*
|
||||
* @example
|
||||
* const entry = {
|
||||
* packaging: 'container-image',
|
||||
* repositoryName: 'repository-name',
|
||||
* imageTag: 'tag',
|
||||
* }
|
||||
*/
|
||||
export interface ContainerImageAssetMetadataEntry extends BaseAssetMetadataEntry {
|
||||
/**
|
||||
* Type of asset
|
||||
*/
|
||||
readonly packaging: 'container-image';
|
||||
/**
|
||||
* ECR Repository name and repo digest (separated by "@sha256:") where this
|
||||
* image is stored.
|
||||
*
|
||||
* @default undefined If not specified, `repositoryName` and `imageTag` are
|
||||
* required because otherwise how will the stack know where to find the asset,
|
||||
* ha?
|
||||
* @deprecated specify `repositoryName` and `imageTag` instead, and then you
|
||||
* know where the image will go.
|
||||
*/
|
||||
readonly imageNameParameter?: string;
|
||||
/**
|
||||
* ECR repository name, if omitted a default name based on the asset's ID is
|
||||
* used instead. Specify this property if you need to statically address the
|
||||
* image, e.g. from a Kubernetes Pod. Note, this is only the repository name,
|
||||
* without the registry and the tag parts.
|
||||
*
|
||||
* @default - this parameter is REQUIRED after 1.21.0
|
||||
*/
|
||||
readonly repositoryName?: string;
|
||||
/**
|
||||
* The docker image tag to use for tagging pushed images. This field is
|
||||
* required if `imageParameterName` is ommited (otherwise, the app won't be
|
||||
* able to find the image).
|
||||
*
|
||||
* @default - this parameter is REQUIRED after 1.21.0
|
||||
*/
|
||||
readonly imageTag?: string;
|
||||
/**
|
||||
* Build args to pass to the `docker build` command
|
||||
*
|
||||
* @default no build args are passed
|
||||
*/
|
||||
readonly buildArgs?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* Build contexts to pass to the `docker build` command
|
||||
*
|
||||
* @default no build contexts are passed
|
||||
*/
|
||||
readonly buildContexts?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* SSH agent socket or keys to pass to the `docker build` command
|
||||
*
|
||||
* @default no ssh arg is passed
|
||||
*/
|
||||
readonly buildSsh?: string;
|
||||
/**
|
||||
* Build secrets to pass to the `docker build` command
|
||||
*
|
||||
* @default no build secrets are passed
|
||||
*/
|
||||
readonly buildSecrets?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* Docker target to build to
|
||||
*
|
||||
* @default no build target
|
||||
*/
|
||||
readonly target?: string;
|
||||
/**
|
||||
* Path to the Dockerfile (relative to the directory).
|
||||
*
|
||||
* @default - no file is passed
|
||||
*/
|
||||
readonly file?: string;
|
||||
/**
|
||||
* Networking mode for the RUN commands during build.
|
||||
*
|
||||
* @default - no networking mode specified
|
||||
*/
|
||||
readonly networkMode?: string;
|
||||
/**
|
||||
* Platform to build for. _Requires Docker Buildx_.
|
||||
*
|
||||
* @default - current machine platform
|
||||
*/
|
||||
readonly platform?: string;
|
||||
/**
|
||||
* Outputs to pass to the `docker build` command.
|
||||
*
|
||||
* @default - no outputs are passed to the build command (default outputs are used)
|
||||
* @see https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs
|
||||
*/
|
||||
readonly outputs?: string[];
|
||||
/**
|
||||
* Cache from options to pass to the `docker build` command.
|
||||
*
|
||||
* @default - no cache from options are passed to the build command
|
||||
* @see https://docs.docker.com/build/cache/backends/
|
||||
*/
|
||||
readonly cacheFrom?: ContainerImageAssetCacheOption[];
|
||||
/**
|
||||
* Cache to options to pass to the `docker build` command.
|
||||
*
|
||||
* @default - no cache to options are passed to the build command
|
||||
* @see https://docs.docker.com/build/cache/backends/
|
||||
*/
|
||||
readonly cacheTo?: ContainerImageAssetCacheOption;
|
||||
/**
|
||||
* Disable the cache and pass `--no-cache` to the `docker build` command.
|
||||
*
|
||||
* @default - cache is used
|
||||
*/
|
||||
readonly cacheDisabled?: boolean;
|
||||
}
|
||||
/**
|
||||
* @see ArtifactMetadataEntryType.ASSET
|
||||
*/
|
||||
export type AssetMetadataEntry = FileAssetMetadataEntry | ContainerImageAssetMetadataEntry;
|
||||
/**
|
||||
* @see ArtifactMetadataEntryType.INFO
|
||||
* @see ArtifactMetadataEntryType.WARN
|
||||
* @see ArtifactMetadataEntryType.ERROR
|
||||
*/
|
||||
export type LogMessageMetadataEntry = string;
|
||||
/**
|
||||
* @see ArtifactMetadataEntryType.LOGICAL_ID
|
||||
*/
|
||||
export type LogicalIdMetadataEntry = string;
|
||||
/**
|
||||
* @see ArtifactMetadataEntryType.STACK_TAGS
|
||||
*/
|
||||
export type StackTagsMetadataEntry = Tag[];
|
||||
/**
|
||||
* Any other type of metadata entry
|
||||
*
|
||||
* This could probably be changed to `any`, but it's safer not
|
||||
* to do so right now.
|
||||
* See https://github.com/cdklabs/cloud-assembly-schema/pull/121.
|
||||
*/
|
||||
export type PrimitiveType = boolean | number | string;
|
||||
/**
|
||||
* Metadata type of a PropertyMutation
|
||||
*/
|
||||
export interface PropertyMutationMetadataEntry {
|
||||
/**
|
||||
* Name of the property
|
||||
*/
|
||||
readonly propertyName: string;
|
||||
/**
|
||||
* Stack trace of the mutation
|
||||
*/
|
||||
readonly stackTrace: string[];
|
||||
}
|
||||
/**
|
||||
* Union type for all metadata entries that might exist in the manifest.
|
||||
*/
|
||||
export type MetadataEntryData = AssetMetadataEntry | LogMessageMetadataEntry | LogicalIdMetadataEntry | PrimitiveType | PropertyMutationMetadataEntry | (Tag | string)[];
|
||||
/**
|
||||
* Type of artifact metadata entry.
|
||||
*/
|
||||
export declare enum ArtifactMetadataEntryType {
|
||||
/**
|
||||
* Asset in metadata.
|
||||
*/
|
||||
ASSET = "aws:cdk:asset",
|
||||
/**
|
||||
* Metadata key used to print INFO-level messages by the toolkit when an app is syntheized.
|
||||
*/
|
||||
INFO = "aws:cdk:info",
|
||||
/**
|
||||
* Metadata key used to print WARNING-level messages by the toolkit when an app is syntheized.
|
||||
*/
|
||||
WARN = "aws:cdk:warning",
|
||||
/**
|
||||
* Metadata key used to print ERROR-level messages by the toolkit when an app is syntheized.
|
||||
*/
|
||||
ERROR = "aws:cdk:error",
|
||||
/**
|
||||
* Represents the CloudFormation logical ID of a resource at a certain path.
|
||||
*/
|
||||
LOGICAL_ID = "aws:cdk:logicalId",
|
||||
/**
|
||||
* Represents tags of a stack.
|
||||
*/
|
||||
STACK_TAGS = "aws:cdk:stack-tags",
|
||||
/**
|
||||
* Whether the resource should be excluded during refactoring.
|
||||
*/
|
||||
DO_NOT_REFACTOR = "aws:cdk:do-not-refactor",
|
||||
/**
|
||||
* Creation stack of a construct
|
||||
*/
|
||||
CREATION_STACK = "aws:cdk:creationStack",
|
||||
/**
|
||||
* A property mutation trace
|
||||
*/
|
||||
PROPERTY_ASSIGNMENT = "aws:cdk:propertyAssignment"
|
||||
}
|
||||
/**
|
||||
* A metadata entry in a cloud assembly artifact.
|
||||
*/
|
||||
export interface MetadataEntry {
|
||||
/**
|
||||
* The type of the metadata entry.
|
||||
*/
|
||||
readonly type: string;
|
||||
/**
|
||||
* The data.
|
||||
*
|
||||
* @default - no data.
|
||||
*/
|
||||
readonly data?: MetadataEntryData;
|
||||
/**
|
||||
* A stack trace for when the entry was created.
|
||||
*
|
||||
* @default - no trace.
|
||||
*/
|
||||
readonly trace?: string[];
|
||||
}
|
||||
export {};
|
||||
46
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.js
generated
vendored
Normal file
46
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
162
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.d.ts
generated
vendored
Normal file
162
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
import type { ArtifactProperties } from './artifact-schema';
|
||||
import type { ContextProvider, ContextQueryProperties } from './context-queries';
|
||||
import type { MetadataEntry } from './metadata-schema';
|
||||
/**
|
||||
* Type of cloud artifact.
|
||||
*/
|
||||
export declare enum ArtifactType {
|
||||
/**
|
||||
* Stub required because of JSII.
|
||||
*/
|
||||
NONE = "none",// required due to a jsii bug
|
||||
/**
|
||||
* The artifact is an AWS CloudFormation stack.
|
||||
*/
|
||||
AWS_CLOUDFORMATION_STACK = "aws:cloudformation:stack",
|
||||
/**
|
||||
* The artifact contains the CDK application's construct tree.
|
||||
*/
|
||||
CDK_TREE = "cdk:tree",
|
||||
/**
|
||||
* Manifest for all assets in the Cloud Assembly
|
||||
*/
|
||||
ASSET_MANIFEST = "cdk:asset-manifest",
|
||||
/**
|
||||
* Nested Cloud Assembly
|
||||
*/
|
||||
NESTED_CLOUD_ASSEMBLY = "cdk:cloud-assembly",
|
||||
/**
|
||||
* Feature flag report
|
||||
*/
|
||||
FEATURE_FLAG_REPORT = "cdk:feature-flag-report"
|
||||
}
|
||||
/**
|
||||
* Information about the application's runtime components.
|
||||
*/
|
||||
export interface RuntimeInfo {
|
||||
/**
|
||||
* The list of libraries loaded in the application, associated with their versions.
|
||||
*/
|
||||
readonly libraries: {
|
||||
[name: string]: string;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Represents a missing piece of context.
|
||||
*/
|
||||
export interface MissingContext {
|
||||
/**
|
||||
* The missing context key.
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* The provider from which we expect this context key to be obtained.
|
||||
*/
|
||||
readonly provider: ContextProvider;
|
||||
/**
|
||||
* A set of provider-specific options.
|
||||
*/
|
||||
readonly props: ContextQueryProperties;
|
||||
}
|
||||
/**
|
||||
* A manifest for a single artifact within the cloud assembly.
|
||||
*/
|
||||
export interface ArtifactManifest {
|
||||
/**
|
||||
* The type of artifact.
|
||||
*/
|
||||
readonly type: ArtifactType;
|
||||
/**
|
||||
* The environment into which this artifact is deployed.
|
||||
*
|
||||
* @default - no envrionment.
|
||||
*/
|
||||
readonly environment?: string;
|
||||
/**
|
||||
* Associated metadata.
|
||||
*
|
||||
* Metadata can be stored directly in the assembly manifest, as well as in a
|
||||
* separate file (see `additionalMetadataFile`). It should prefer to be stored
|
||||
* in the additional file, as that will reduce the size of the assembly
|
||||
* manifest in cases of a lot of metdata (which CDK does emit by default).
|
||||
*
|
||||
* @default - no metadata.
|
||||
*/
|
||||
readonly metadata?: {
|
||||
[path: string]: MetadataEntry[];
|
||||
};
|
||||
/**
|
||||
* A file with additional metadata entries.
|
||||
*
|
||||
* The schema of this file is exactly the same as the type of the `metadata` field.
|
||||
* In other words, that file contains an object mapping construct paths to arrays
|
||||
* of metadata entries.
|
||||
*
|
||||
* @default - no additional metadata
|
||||
*/
|
||||
readonly additionalMetadataFile?: string;
|
||||
/**
|
||||
* IDs of artifacts that must be deployed before this artifact.
|
||||
*
|
||||
* @default - no dependencies.
|
||||
*/
|
||||
readonly dependencies?: string[];
|
||||
/**
|
||||
* The set of properties for this artifact (depends on type)
|
||||
*
|
||||
* @default - no properties.
|
||||
*/
|
||||
readonly properties?: ArtifactProperties;
|
||||
/**
|
||||
* A string that can be shown to a user to uniquely identify this artifact inside a cloud assembly tree
|
||||
*
|
||||
* Is used by the CLI to present a list of stacks to the user in a way that
|
||||
* makes sense to them. Even though the property name "display name" doesn't
|
||||
* imply it, this field is used to select stacks as well, so all stacks should
|
||||
* have a unique display name.
|
||||
*
|
||||
* @default - no display name
|
||||
*/
|
||||
readonly displayName?: string;
|
||||
}
|
||||
/**
|
||||
* A manifest which describes the cloud assembly.
|
||||
*/
|
||||
export interface AssemblyManifest {
|
||||
/**
|
||||
* Protocol version
|
||||
*/
|
||||
readonly version: string;
|
||||
/**
|
||||
* Required CLI version, if available
|
||||
*
|
||||
* If the manifest producer knows, it can put the minimum version of the CLI
|
||||
* here that supports reading this assembly.
|
||||
*
|
||||
* If set, it can be used to show a more informative error message to users.
|
||||
*
|
||||
* @default - Minimum CLI version unknown
|
||||
*/
|
||||
readonly minimumCliVersion?: string;
|
||||
/**
|
||||
* The set of artifacts in this assembly.
|
||||
*
|
||||
* @default - no artifacts.
|
||||
*/
|
||||
readonly artifacts?: {
|
||||
[id: string]: ArtifactManifest;
|
||||
};
|
||||
/**
|
||||
* Missing context information. If this field has values, it means that the
|
||||
* cloud assembly is not complete and should not be deployed.
|
||||
*
|
||||
* @default - no missing context.
|
||||
*/
|
||||
readonly missing?: MissingContext[];
|
||||
/**
|
||||
* Runtime information.
|
||||
*
|
||||
* @default - no info.
|
||||
*/
|
||||
readonly runtime?: RuntimeInfo;
|
||||
}
|
||||
34
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.js
generated
vendored
Normal file
34
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/index.d.ts
generated
vendored
Normal file
4
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './cloud-assembly';
|
||||
export * from './assets';
|
||||
export * from './manifest';
|
||||
export * from './integ-tests';
|
||||
21
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/index.js
generated
vendored
Normal file
21
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./cloud-assembly"), exports);
|
||||
__exportStar(require("./assets"), exports);
|
||||
__exportStar(require("./manifest"), exports);
|
||||
__exportStar(require("./integ-tests"), exports);
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbURBQWlDO0FBQ2pDLDJDQUF5QjtBQUN6Qiw2Q0FBMkI7QUFDM0IsZ0RBQThCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jbG91ZC1hc3NlbWJseSc7XG5leHBvcnQgKiBmcm9tICcuL2Fzc2V0cyc7XG5leHBvcnQgKiBmcm9tICcuL21hbmlmZXN0JztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZWctdGVzdHMnO1xuIl19
|
||||
178
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.d.ts
generated
vendored
Normal file
178
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,178 @@
|
||||
/**
|
||||
* Specify what changes require manual approval.
|
||||
*/
|
||||
export declare enum RequireApproval {
|
||||
/**
|
||||
* Approval is not required
|
||||
*/
|
||||
NEVER = "never",
|
||||
/**
|
||||
* Manual approval required for any change to the stack
|
||||
*/
|
||||
ANYCHANGE = "any-change",
|
||||
/**
|
||||
* Manual approval required if changes involve a broadening of permissions or security group rules
|
||||
*/
|
||||
BROADENING = "broadening"
|
||||
}
|
||||
/**
|
||||
* Default CDK CLI options that apply to all commands
|
||||
*/
|
||||
export interface DefaultCdkOptions {
|
||||
/**
|
||||
* List of stacks to deploy
|
||||
*
|
||||
* Requried if `all` is not set
|
||||
*
|
||||
* @default - []
|
||||
*/
|
||||
readonly stacks?: string[];
|
||||
/**
|
||||
* Deploy all stacks
|
||||
*
|
||||
* Requried if `stacks` is not set
|
||||
*
|
||||
* @default - false
|
||||
*/
|
||||
readonly all?: boolean;
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
readonly app?: string;
|
||||
/**
|
||||
* Role to pass to CloudFormation for deployment
|
||||
*
|
||||
* @default - use the bootstrap cfn-exec role
|
||||
*/
|
||||
readonly roleArn?: string;
|
||||
/**
|
||||
* Additional context
|
||||
*
|
||||
* @default - no additional context
|
||||
*/
|
||||
readonly context?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
/**
|
||||
* Print trace for stack warnings
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly trace?: boolean;
|
||||
/**
|
||||
* Do not construct stacks with warnings
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly strict?: boolean;
|
||||
/**
|
||||
* Perform context lookups.
|
||||
*
|
||||
* Synthesis fails if this is disabled and context lookups need
|
||||
* to be performed
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly lookups?: boolean;
|
||||
/**
|
||||
* Ignores synthesis errors, which will likely produce an invalid output
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly ignoreErrors?: boolean;
|
||||
/**
|
||||
* Use JSON output instead of YAML when templates are printed
|
||||
* to STDOUT
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly json?: boolean;
|
||||
/**
|
||||
* show debug logs
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly verbose?: boolean;
|
||||
/**
|
||||
* enable emission of additional debugging information, such as creation stack
|
||||
* traces of tokens
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly debug?: boolean;
|
||||
/**
|
||||
* Use the indicated AWS profile as the default environment
|
||||
*
|
||||
* @default - no profile is used
|
||||
*/
|
||||
readonly profile?: string;
|
||||
/**
|
||||
* Use the indicated proxy. Will read from
|
||||
* HTTPS_PROXY environment if specified
|
||||
*
|
||||
* @default - no proxy
|
||||
*/
|
||||
readonly proxy?: string;
|
||||
/**
|
||||
* Path to CA certificate to use when validating HTTPS
|
||||
* requests.
|
||||
*
|
||||
* @default - read from AWS_CA_BUNDLE environment variable
|
||||
*/
|
||||
readonly caBundlePath?: string;
|
||||
/**
|
||||
* Force trying to fetch EC2 instance credentials
|
||||
*
|
||||
* @default - guess EC2 instance status
|
||||
*/
|
||||
readonly ec2Creds?: boolean;
|
||||
/**
|
||||
* Include "AWS::CDK::Metadata" resource in synthesized templates
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly versionReporting?: boolean;
|
||||
/**
|
||||
* Include "aws:cdk:path" CloudFormation metadata for each resource
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly pathMetadata?: boolean;
|
||||
/**
|
||||
* Include "aws:asset:*" CloudFormation metadata for resources that use assets
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly assetMetadata?: boolean;
|
||||
/**
|
||||
* Copy assets to the output directory
|
||||
*
|
||||
* Needed for local debugging the source files with SAM CLI
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly staging?: boolean;
|
||||
/**
|
||||
* Emits the synthesized cloud assembly into a directory
|
||||
*
|
||||
* @default cdk.out
|
||||
*/
|
||||
readonly output?: string;
|
||||
/**
|
||||
* Show relevant notices
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly notices?: boolean;
|
||||
/**
|
||||
* Show colors and other style from console output
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly color?: boolean;
|
||||
}
|
||||
22
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.js
generated
vendored
Normal file
22
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
92
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.d.ts
generated
vendored
Normal file
92
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
import type { DefaultCdkOptions, RequireApproval } from './common';
|
||||
/**
|
||||
* Options to use with cdk deploy
|
||||
*/
|
||||
export interface DeployOptions extends DefaultCdkOptions {
|
||||
/**
|
||||
* Only perform action on the given stack
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly exclusively?: boolean;
|
||||
/**
|
||||
* Name of the toolkit stack to use/deploy
|
||||
*
|
||||
* @default CDKToolkit
|
||||
*/
|
||||
readonly toolkitStackName?: string;
|
||||
/**
|
||||
* Reuse the assets with the given asset IDs
|
||||
*
|
||||
* @default - do not reuse assets
|
||||
*/
|
||||
readonly reuseAssets?: string[];
|
||||
/**
|
||||
* Optional name to use for the CloudFormation change set.
|
||||
* If not provided, a name will be generated automatically.
|
||||
*
|
||||
* @default - auto generate a name
|
||||
*/
|
||||
readonly changeSetName?: string;
|
||||
/**
|
||||
* Always deploy, even if templates are identical.
|
||||
* @default false
|
||||
*/
|
||||
readonly force?: boolean;
|
||||
/**
|
||||
* Rollback failed deployments
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly rollback?: boolean;
|
||||
/**
|
||||
* ARNs of SNS topics that CloudFormation will notify with stack related events
|
||||
*
|
||||
* @default - no notifications
|
||||
*/
|
||||
readonly notificationArns?: string[];
|
||||
/**
|
||||
* What kind of security changes require approval
|
||||
*
|
||||
* @default RequireApproval.NEVER
|
||||
*/
|
||||
readonly requireApproval?: RequireApproval;
|
||||
/**
|
||||
* Whether to execute the ChangeSet
|
||||
* Not providing `execute` parameter will result in execution of ChangeSet
|
||||
* @default true
|
||||
*/
|
||||
readonly execute?: boolean;
|
||||
/**
|
||||
* Additional parameters for CloudFormation at deploy time
|
||||
* @default {}
|
||||
*/
|
||||
readonly parameters?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
/**
|
||||
* Use previous values for unspecified parameters
|
||||
*
|
||||
* If not set, all parameters must be specified for every deployment.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly usePreviousParameters?: boolean;
|
||||
/**
|
||||
* Path to file where stack outputs will be written after a successful deploy as JSON
|
||||
* @default - Outputs are not written to any file
|
||||
*/
|
||||
readonly outputsFile?: string;
|
||||
/**
|
||||
* Whether we are on a CI system
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly ci?: boolean;
|
||||
/**
|
||||
* Deploy multiple stacks in parallel
|
||||
*
|
||||
* @default 1
|
||||
*/
|
||||
readonly concurrency?: number;
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwbG95LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGVwbG95LnRzIl0sIm5h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tYXRpb24gYXQgZGVwbG95IHRpbWVcbiAgICogQGRlZmF1bHQge31cbiAgICovXG4gIHJlYWRvbmx5IHBhcmFtZXRlcnM/OiB7IFtuYW1lOiBzdHJpbmddOiBzdHJpbmcgfTtcblxuICAvKipcbiAgICogVXNlIHByZXZpb3VzIHZhbHVlcyBmb3IgdW5zcGVjaWZpZWQgcGFyYW1ldGVyc1xuICAgKlxuICAgKiBJZiBub3Qgc2V0LCBhbGwgcGFyYW1ldGVycyBtdXN0IGJlIHNwZWNpZmllZCBmb3IgZXZlcnkgZGVwbG95bWVudC5cbiAgICpcbiAgICogQGRlZmF1bHQgdHJ1ZVxuICAgKi9cbiAgcmVhZG9ubHkgdXNlUHJldmlvdXNQYXJhbWV0ZXJzPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogUGF0aCB0byBmaWxlIHdoZXJlIHN0YWNrIG91dHB1dHMgd2lsbCBiZSB3cml0dGVuIGFmdGVyIGEgc3VjY2Vzc2Z1bCBkZXBsb3kgYXMgSlNPTlxuICAgKiBAZGVmYXVsdCAtIE91dHB1dHMgYXJlIG5vdCB3cml0dGVuIHRvIGFueSBmaWxlXG4gICAqL1xuICByZWFkb25seSBvdXRwdXRzRmlsZT86IHN0cmluZztcblxuICAvKipcbiAgICogV2hldGhlciB3ZSBhcmUgb24gYSBDSSBzeXN0ZW1cbiAgICpcbiAgICogQGRlZmF1bHQgZmFsc2VcbiAgICovXG4gIHJlYWRvbmx5IGNpPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogRGVwbG95IG11bHRpcGxlIHN0YWNrcyBpbiBwYXJhbGxlbFxuICAgKlxuICAgKiBAZGVmYXVsdCAxXG4gICAqL1xuICByZWFkb25seSBjb25jdXJyZW5jeT86IG51bWJlcjtcbn1cbiJdfQ==
|
||||
18
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.d.ts
generated
vendored
Normal file
18
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { DefaultCdkOptions } from './common';
|
||||
/**
|
||||
* Options to use with cdk destroy
|
||||
*/
|
||||
export interface DestroyOptions extends DefaultCdkOptions {
|
||||
/**
|
||||
* Do not ask for permission before destroying stacks
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly force?: boolean;
|
||||
/**
|
||||
* Only destroy the given stack
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly exclusively?: boolean;
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzdHJveS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRlc3Ryb3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVmYXVsdENka09wdGlvbnMgfSBmcm9tICcuL2NvbW1vbic7XG5cbi8qKlxuICogT3B0aW9ucyB0byB1c2Ugd2l0aCBjZGsgZGVzdHJveVxuICovXG5leHBvcnQgaW50ZXJmYWNlIERlc3Ryb3lPcHRpb25zIGV4dGVuZHMgRGVmYXVsdENka09wdGlvbnMge1xuICAvKipcbiAgICogRG8gbm90IGFzayBmb3IgcGVybWlzc2lvbiBiZWZvcmUgZGVzdHJveWluZyBzdGFja3NcbiAgICpcbiAgICogQGRlZmF1bHQgZmFsc2VcbiAgICovXG4gIHJlYWRvbmx5IGZvcmNlPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogT25seSBkZXN0cm95IHRoZSBnaXZlbiBzdGFja1xuICAgKlxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgcmVhZG9ubHkgZXhjbHVzaXZlbHk/OiBib29sZWFuO1xufVxuIl19
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.d.ts
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './common';
|
||||
export * from './deploy';
|
||||
export * from './destroy';
|
||||
20
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.js
generated
vendored
Normal file
20
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./common"), exports);
|
||||
__exportStar(require("./deploy"), exports);
|
||||
__exportStar(require("./destroy"), exports);
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkNBQXlCO0FBQ3pCLDJDQUF5QjtBQUN6Qiw0Q0FBMEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbW1vbic7XG5leHBvcnQgKiBmcm9tICcuL2RlcGxveSc7XG5leHBvcnQgKiBmcm9tICcuL2Rlc3Ryb3knO1xuIl19
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.d.ts
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './schema';
|
||||
export * from './commands';
|
||||
export * from './test-case';
|
||||
20
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.js
generated
vendored
Normal file
20
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./schema"), exports);
|
||||
__exportStar(require("./commands"), exports);
|
||||
__exportStar(require("./test-case"), exports);
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkNBQXlCO0FBQ3pCLDZDQUEyQjtBQUMzQiw4Q0FBNEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NjaGVtYSc7XG5leHBvcnQgKiBmcm9tICcuL2NvbW1hbmRzJztcbmV4cG9ydCAqIGZyb20gJy4vdGVzdC1jYXNlJztcbiJdfQ==
|
||||
35
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.d.ts
generated
vendored
Normal file
35
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { TestCase } from './test-case';
|
||||
/**
|
||||
* Definitions for the integration testing manifest
|
||||
*/
|
||||
export interface IntegManifest {
|
||||
/**
|
||||
* Version of the manifest
|
||||
*/
|
||||
readonly version: string;
|
||||
/**
|
||||
* Enable lookups for this test. If lookups are enabled
|
||||
* then `stackUpdateWorkflow` must be set to false.
|
||||
* Lookups should only be enabled when you are explicitly testing
|
||||
* lookups.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly enableLookups?: boolean;
|
||||
/**
|
||||
* Additional context to use when performing
|
||||
* a synth. Any context provided here will override
|
||||
* any default context
|
||||
*
|
||||
* @default - no additional context
|
||||
*/
|
||||
readonly synthContext?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
/**
|
||||
* test cases
|
||||
*/
|
||||
readonly testCases: {
|
||||
[testName: string]: TestCase;
|
||||
};
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFRlc3RDYXNlIH0gZnJvbSAnLi90ZXN0LWNhc2UnO1xuLyoqXG4gKiBEZWZpbml0aW9ucyBmb3IgdGhlIGludGVncmF0aW9uIHRlc3RpbmcgbWFuaWZlc3RcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBJbnRlZ01hbmlmZXN0IHtcbiAgLyoqXG4gICAqIFZlcnNpb24gb2YgdGhlIG1hbmlmZXN0XG4gICAqL1xuICByZWFkb25seSB2ZXJzaW9uOiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIEVuYWJsZSBsb29rdXBzIGZvciB0aGlzIHRlc3QuIElmIGxvb2t1cHMgYXJlIGVuYWJsZWRcbiAgICogdGhlbiBgc3RhY2tVcGRhdGVXb3JrZmxvd2AgbXVzdCBiZSBzZXQgdG8gZmFsc2UuXG4gICAqIExvb2t1cHMgc2hvdWxkIG9ubHkgYmUgZW5hYmxlZCB3aGVuIHlvdSBhcmUgZXhwbGljaXRseSB0ZXN0aW5nXG4gICAqIGxvb2t1cHMuXG4gICAqXG4gICAqIEBkZWZhdWx0IGZhbHNlXG4gICAqL1xuICByZWFkb25seSBlbmFibGVMb29rdXBzPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogQWRkaXRpb25hbCBjb250ZXh0IHRvIHVzZSB3aGVuIHBlcmZvcm1pbmdcbiAgICogYSBzeW50aC4gQW55IGNvbnRleHQgcHJvdmlkZWQgaGVyZSB3aWxsIG92ZXJyaWRlXG4gICAqIGFueSBkZWZhdWx0IGNvbnRleHRcbiAgICpcbiAgICogQGRlZmF1bHQgLSBubyBhZGRpdGlvbmFsIGNvbnRleHRcbiAgICovXG4gIHJlYWRvbmx5IHN5bnRoQ29udGV4dD86IHsgW25hbWU6IHN0cmluZ106IHN0cmluZyB9O1xuXG4gIC8qKlxuICAgKiB0ZXN0IGNhc2VzXG4gICAqL1xuICByZWFkb25seSB0ZXN0Q2FzZXM6IHsgW3Rlc3ROYW1lOiBzdHJpbmddOiBUZXN0Q2FzZSB9O1xufVxuIl19
|
||||
186
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.d.ts
generated
vendored
Normal file
186
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.d.ts
generated
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
import type { DeployOptions, DestroyOptions } from './commands';
|
||||
/**
|
||||
* The set of options to control the workflow of the test runner
|
||||
*/
|
||||
export interface TestOptions {
|
||||
/**
|
||||
* Run update workflow on this test case
|
||||
* This should only be set to false to test scenarios
|
||||
* that are not possible to test as part of the update workflow
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly stackUpdateWorkflow?: boolean;
|
||||
/**
|
||||
* Additional options to use for each CDK command
|
||||
*
|
||||
* @default - runner default options
|
||||
*/
|
||||
readonly cdkCommandOptions?: CdkCommands;
|
||||
/**
|
||||
* Additional commands to run at predefined points in the test workflow
|
||||
*
|
||||
* e.g. { postDeploy: ['yarn', 'test'] }
|
||||
*
|
||||
* @default - no hooks
|
||||
*/
|
||||
readonly hooks?: Hooks;
|
||||
/**
|
||||
* Whether or not to include asset hashes in the diff
|
||||
* Asset hashes can introduces a lot of unneccessary noise into tests,
|
||||
* but there are some cases where asset hashes _should_ be included. For example
|
||||
* any tests involving custom resources or bundling
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly diffAssets?: boolean;
|
||||
/**
|
||||
* List of CloudFormation resource types in this stack that can
|
||||
* be destroyed as part of an update without failing the test.
|
||||
*
|
||||
* This list should only include resources that for this specific
|
||||
* integration test we are sure will not cause errors or an outage if
|
||||
* destroyed. For example, maybe we know that a new resource will be created
|
||||
* first before the old resource is destroyed which prevents any outage.
|
||||
*
|
||||
* e.g. ['AWS::IAM::Role']
|
||||
*
|
||||
* @default - do not allow destruction of any resources on update
|
||||
*/
|
||||
readonly allowDestroy?: string[];
|
||||
/**
|
||||
* Limit deployment to these regions
|
||||
*
|
||||
* @default - can run in any region
|
||||
*/
|
||||
readonly regions?: string[];
|
||||
}
|
||||
/**
|
||||
* Represents an integration test case
|
||||
*/
|
||||
export interface TestCase extends TestOptions {
|
||||
/**
|
||||
* Stacks that should be tested as part of this test case
|
||||
* The stackNames will be passed as args to the cdk commands
|
||||
* so dependent stacks will be automatically deployed unless
|
||||
* `exclusively` is passed
|
||||
*/
|
||||
readonly stacks: string[];
|
||||
/**
|
||||
* The node id of the stack that contains assertions.
|
||||
* This is the value that can be used to deploy the stack with the CDK CLI
|
||||
*
|
||||
* @default - no assertion stack
|
||||
*/
|
||||
readonly assertionStack?: string;
|
||||
/**
|
||||
* The name of the stack that contains assertions
|
||||
*
|
||||
* @default - no assertion stack
|
||||
*/
|
||||
readonly assertionStackName?: string;
|
||||
}
|
||||
/**
|
||||
* Commands to run at predefined points during the
|
||||
* integration test workflow
|
||||
*/
|
||||
export interface Hooks {
|
||||
/**
|
||||
* Commands to run prior to deploying the cdk stacks
|
||||
* in the integration test
|
||||
*
|
||||
* @default - no commands
|
||||
*/
|
||||
readonly preDeploy?: string[];
|
||||
/**
|
||||
* Commands to run prior after deploying the cdk stacks
|
||||
* in the integration test
|
||||
*
|
||||
* @default - no commands
|
||||
*/
|
||||
readonly postDeploy?: string[];
|
||||
/**
|
||||
* Commands to run prior to destroying the cdk stacks
|
||||
* in the integration test
|
||||
*
|
||||
* @default - no commands
|
||||
*/
|
||||
readonly preDestroy?: string[];
|
||||
/**
|
||||
* Commands to run after destroying the cdk stacks
|
||||
* in the integration test
|
||||
*
|
||||
* @default - no commands
|
||||
*/
|
||||
readonly postDestroy?: string[];
|
||||
}
|
||||
/**
|
||||
* Represents a cdk command
|
||||
* i.e. `synth`, `deploy`, & `destroy`
|
||||
*/
|
||||
export interface CdkCommand {
|
||||
/**
|
||||
* Whether or not to run this command as part of the workflow
|
||||
* This can be used if you only want to test some of the workflow
|
||||
* for example enable `synth` and disable `deploy` & `destroy` in order
|
||||
* to limit the test to synthesis
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly enabled?: boolean;
|
||||
/**
|
||||
* If the runner should expect this command to fail
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly expectError?: boolean;
|
||||
/**
|
||||
* This can be used in combination with `expectedError`
|
||||
* to validate that a specific message is returned.
|
||||
*
|
||||
* @default - do not validate message
|
||||
*/
|
||||
readonly expectedMessage?: string;
|
||||
}
|
||||
/**
|
||||
* Represents a cdk deploy command
|
||||
*/
|
||||
export interface DeployCommand extends CdkCommand {
|
||||
/**
|
||||
* Additional arguments to pass to the command
|
||||
* This can be used to test specific CLI functionality
|
||||
*
|
||||
* @default - only default args are used
|
||||
*/
|
||||
readonly args?: DeployOptions;
|
||||
}
|
||||
/**
|
||||
* Represents a cdk destroy command
|
||||
*/
|
||||
export interface DestroyCommand extends CdkCommand {
|
||||
/**
|
||||
* Additional arguments to pass to the command
|
||||
* This can be used to test specific CLI functionality
|
||||
*
|
||||
* @default - only default args are used
|
||||
*/
|
||||
readonly args?: DestroyOptions;
|
||||
}
|
||||
/**
|
||||
* Options for specific cdk commands that are run
|
||||
* as part of the integration test workflow
|
||||
*/
|
||||
export interface CdkCommands {
|
||||
/**
|
||||
* Options to for the cdk deploy command
|
||||
*
|
||||
* @default - default deploy options
|
||||
*/
|
||||
readonly deploy?: DeployCommand;
|
||||
/**
|
||||
* Options to for the cdk destroy command
|
||||
*
|
||||
* @default - default destroy options
|
||||
*/
|
||||
readonly destroy?: DestroyCommand;
|
||||
}
|
||||
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.js
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
142
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/manifest.d.ts
generated
vendored
Normal file
142
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/manifest.d.ts
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
import type * as assets from './assets';
|
||||
import * as assembly from './cloud-assembly';
|
||||
import type * as integ from './integ-tests';
|
||||
export declare const VERSION_MISMATCH: string;
|
||||
/**
|
||||
* Options for the loadManifest operation
|
||||
*/
|
||||
export interface LoadManifestOptions {
|
||||
/**
|
||||
* Skip the version check
|
||||
*
|
||||
* This means you may read a newer cloud assembly than the CX API is designed
|
||||
* to support, and your application may not be aware of all features that in use
|
||||
* in the Cloud Assembly.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly skipVersionCheck?: boolean;
|
||||
/**
|
||||
* Skip enum checks
|
||||
*
|
||||
* This means you may read enum values you don't know about yet. Make sure to always
|
||||
* check the values of enums you encounter in the manifest.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly skipEnumCheck?: boolean;
|
||||
/**
|
||||
* Topologically sort all artifacts
|
||||
*
|
||||
* This parameter is only respected by the constructor of `CloudAssembly`. The
|
||||
* property lives here for backwards compatibility reasons.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly topoSort?: boolean;
|
||||
/**
|
||||
* Validate the file according to the declared JSON Schema
|
||||
*
|
||||
* Be aware that JSON Schema validation has a significant performance cost
|
||||
* (about 10x over not validating).
|
||||
*
|
||||
* @default false, unless $TESTING_CDK is set to '1'
|
||||
*/
|
||||
readonly validateSchema?: boolean;
|
||||
}
|
||||
/**
|
||||
* Protocol utility class.
|
||||
*/
|
||||
export declare abstract class Manifest {
|
||||
/**
|
||||
* Validates and saves the cloud assembly manifest to file.
|
||||
*
|
||||
* @param manifest - manifest.
|
||||
* @param filePath - output file path.
|
||||
*/
|
||||
static saveAssemblyManifest(manifest: assembly.AssemblyManifest, filePath: string): void;
|
||||
/**
|
||||
* Load and validates the cloud assembly manifest from file.
|
||||
*
|
||||
* @param filePath - path to the manifest file.
|
||||
*/
|
||||
static loadAssemblyManifest(filePath: string, options?: LoadManifestOptions): assembly.AssemblyManifest;
|
||||
/**
|
||||
* Validates and saves the asset manifest to file.
|
||||
*
|
||||
* @param manifest - manifest.
|
||||
* @param filePath - output file path.
|
||||
*/
|
||||
static saveAssetManifest(manifest: assets.AssetManifest, filePath: string): void;
|
||||
/**
|
||||
* Load and validates the asset manifest from file.
|
||||
*
|
||||
* @param filePath - path to the manifest file.
|
||||
*/
|
||||
static loadAssetManifest(filePath: string): assets.AssetManifest;
|
||||
/**
|
||||
* Validates and saves the integ manifest to file.
|
||||
*
|
||||
* @param manifest - manifest.
|
||||
* @param filePath - output file path.
|
||||
*/
|
||||
static saveIntegManifest(manifest: integ.IntegManifest, filePath: string): void;
|
||||
/**
|
||||
* Load and validates the integ manifest from file.
|
||||
*
|
||||
* @param filePath - path to the manifest file.
|
||||
*/
|
||||
static loadIntegManifest(filePath: string): integ.IntegManifest;
|
||||
/**
|
||||
* Fetch the current schema version number.
|
||||
*/
|
||||
static version(): string;
|
||||
/**
|
||||
* Return the CLI version that supports this Cloud Assembly Schema version
|
||||
*/
|
||||
static cliVersion(): string | undefined;
|
||||
/**
|
||||
* Deprecated
|
||||
* @deprecated use `saveAssemblyManifest()`
|
||||
*/
|
||||
static save(manifest: assembly.AssemblyManifest, filePath: string): void;
|
||||
/**
|
||||
* Deprecated
|
||||
* @deprecated use `loadAssemblyManifest()`
|
||||
*/
|
||||
static load(filePath: string): assembly.AssemblyManifest;
|
||||
private static validate;
|
||||
private static saveManifest;
|
||||
private static loadManifest;
|
||||
/**
|
||||
* Fix the casing of stack tags entries
|
||||
*
|
||||
* At the very beginning of the CDK we used to emit stack tags as an object with
|
||||
* `{ Key, Value }` keys; this had the "advantage" that we could stick those
|
||||
* tags directly into the `CreateChangeSet` call.
|
||||
*
|
||||
* Then we later on used jsii on the assembly schema and we were forced to type
|
||||
* the in-memory objects as `{ key, value }` with lowercase letters. Now the
|
||||
* objects have a different on-disk and in-memory format, and we need to convert
|
||||
* between them.
|
||||
*
|
||||
* For backwards compatibility reasons, we used to convert lowercase in-memory
|
||||
* to uppercase on-disk variant until very recently. This is now unnecessary,
|
||||
* since no officially supported CDK tools read the stack tags from the
|
||||
* metadata; the CLI and toolkit library read stack tags from the artifact
|
||||
* properties.
|
||||
*
|
||||
* So although we don't emit uppercase stack tag objects anymore, we might still read
|
||||
* manifests that have them. Because the manifest we read must pass JSON Schema
|
||||
* validation (which expects lowercase tag objects), we have to fix the casing
|
||||
* of these objects after reading from disk and before validating.
|
||||
*
|
||||
* That's what this function does.
|
||||
*/
|
||||
private static patchStackTagsOnRead;
|
||||
/**
|
||||
* Validates that `assumeRoleAdditionalOptions` doesn't contain nor `ExternalId` neither `RoleArn`, as they
|
||||
* should have dedicated properties preceding this (e.g `assumeRoleArn` and `assumeRoleExternalId`).
|
||||
*/
|
||||
private static validateAssumeRoleAdditionalOptions;
|
||||
}
|
||||
265
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/manifest.js
generated
vendored
Normal file
265
cdk/node_modules/@aws-cdk/cloud-assembly-schema/lib/manifest.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user