@aws-cdk/app-staging-synthesizer-alpha 2.82.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@aws-cdk/app-staging-synthesizer-alpha",
3
+ "private": false,
4
+ "version": "2.82.0-alpha.0",
5
+ "description": "Cdk synthesizer for with app-scoped staging stack",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "jsii": {
9
+ "outdir": "dist",
10
+ "projectReferences": true,
11
+ "metadata": {
12
+ "jsii": {
13
+ "rosetta": {
14
+ "strict": true
15
+ }
16
+ }
17
+ },
18
+ "targets": {
19
+ "java": {
20
+ "maven": {
21
+ "groupId": "software.amazon.awscdk",
22
+ "artifactId": "cdk-app-staging-synthesizer-alpha"
23
+ },
24
+ "package": "software.amazon.awscdk.app.staging.synthesizer.alpha"
25
+ },
26
+ "python": {
27
+ "distName": "aws-cdk.app-staging-synthesizer-alpha",
28
+ "module": "aws_cdk.app_staging_synthesizer_alpha",
29
+ "classifiers": [
30
+ "Framework :: AWS CDK",
31
+ "Framework :: AWS CDK :: 2"
32
+ ]
33
+ },
34
+ "dotnet": {
35
+ "namespace": "Amazon.CDK.AppStagingSynthesizer.Alpha",
36
+ "packageId": "Amazon.CDK.AppStagingSynthesizer.Alpha",
37
+ "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png"
38
+ }
39
+ }
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/aws/aws-cdk.git",
44
+ "directory": "packages/@aws-cdk/app-staging-synthesizer-alpha"
45
+ },
46
+ "scripts": {
47
+ "build": "cdk-build",
48
+ "watch": "cdk-watch",
49
+ "lint": "cdk-lint",
50
+ "test": "cdk-test",
51
+ "integ": "integ-runner",
52
+ "pkglint": "pkglint -f",
53
+ "package": "cdk-package",
54
+ "awslint": "cdk-awslint",
55
+ "build+test": "yarn build && yarn test",
56
+ "build+test+package": "yarn build+test && yarn package",
57
+ "compat": "cdk-compat",
58
+ "rosetta:extract": "yarn --silent jsii-rosetta extract",
59
+ "build+extract": "yarn build && yarn rosetta:extract",
60
+ "build+test+extract": "yarn build+test && yarn rosetta:extract"
61
+ },
62
+ "keywords": [
63
+ "aws",
64
+ "cdk"
65
+ ],
66
+ "author": {
67
+ "name": "Amazon Web Services",
68
+ "url": "https://aws.amazon.com",
69
+ "organization": true
70
+ },
71
+ "license": "Apache-2.0",
72
+ "homepage": "https://github.com/aws/aws-cdk",
73
+ "engines": {
74
+ "node": ">= 14.15.0"
75
+ },
76
+ "stability": "experimental",
77
+ "maturity": "experimental",
78
+ "awscdkio": {
79
+ "announce": false
80
+ },
81
+ "cdk-build": {
82
+ "env": {
83
+ "AWSLINT_BASE_CONSTRUCT": true
84
+ }
85
+ },
86
+ "dependencies": {
87
+ "aws-cdk-lib": "2.82.0",
88
+ "constructs": "^10.0.0"
89
+ },
90
+ "devDependencies": {
91
+ "aws-cdk-lib": "2.82.0",
92
+ "@aws-cdk/integ-runner": "2.82.0-alpha.0",
93
+ "@aws-cdk/integ-tests-alpha": "2.82.0-alpha.0",
94
+ "constructs": "^10.0.0",
95
+ "@aws-cdk/cdk-build-tools": "2.82.0-alpha.0",
96
+ "@aws-cdk/pkglint": "2.82.0-alpha.0"
97
+ },
98
+ "peerDependencies": {
99
+ "aws-cdk-lib": "2.82.0",
100
+ "constructs": "^10.0.0"
101
+ },
102
+ "publishConfig": {
103
+ "tag": "latest"
104
+ }
105
+ }
@@ -0,0 +1,6 @@
1
+ import { Construct } from "constructs";
2
+ class MyConstruct extends Construct {
3
+ constructor(scope: Construct, id: string) {
4
+ super(scope, id);
5
+ /// here
6
+ } }
@@ -0,0 +1,22 @@
1
+ // Fixture with packages imported, but nothing else
2
+ import { App, Stack, StackProps, Duration, DockerImageAssetSource, FileAssetSource } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
5
+ import {
6
+ AppStagingSynthesizer,
7
+ BootstrapRole,
8
+ DefaultStagingStack,
9
+ DefaultStagingStackOptions,
10
+ IStagingResources,
11
+ FileStagingLocation,
12
+ ImageStagingLocation,
13
+ DeploymentIdentities,
14
+ } from '@aws-cdk/app-staging-synthesizer-alpha';
15
+ import * as path from 'path';
16
+
17
+ class Fixture extends Stack {
18
+ constructor(scope: Construct, id: string) {
19
+ super(scope, id);
20
+ /// here
21
+ }
22
+ }
@@ -0,0 +1,44 @@
1
+ // Fixture with packages imported, but nothing else
2
+ import { App, Stack, StackProps, DockerImageAssetSource, FileAssetSource } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import {
5
+ AppStagingSynthesizer,
6
+ DefaultStagingStack,
7
+ BootstrapRole,
8
+ FileStagingLocation,
9
+ ImageStagingLocation,
10
+ ObtainStagingResourcesContext,
11
+ IStagingResourcesFactory,
12
+ IStagingResources,
13
+ } from '@aws-cdk/app-staging-synthesizer-alpha';
14
+
15
+ interface CustomStagingStackProps extends StackProps {}
16
+
17
+ class CustomStagingStack extends Stack implements IStagingResources {
18
+ public constructor(scope: Construct, id: string, props: CustomStagingStackProps) {
19
+ super(scope, id, props);
20
+ }
21
+
22
+ public addFile(asset: FileAssetSource): FileStagingLocation {
23
+ return {
24
+ bucketName: 'myBucket',
25
+ assumeRoleArn: 'myArn',
26
+ dependencyStack: this,
27
+ };
28
+ }
29
+
30
+ public addDockerImage(asset: DockerImageAssetSource): ImageStagingLocation {
31
+ return {
32
+ repoName: 'myRepo',
33
+ assumeRoleArn: 'myArn',
34
+ dependencyStack: this,
35
+ };
36
+ }
37
+ }
38
+
39
+ class Fixture extends Stack {
40
+ constructor(scope: Construct, id: string) {
41
+ super(scope, id);
42
+ /// here
43
+ }
44
+ }