Skip to content

Commit

Permalink
Revert "chore: update to use JSII 0.9.0 (#2255)" (#2265)
Browse files Browse the repository at this point in the history
Revert JSII 0.9.0 upgrade.

JSII 0.9.0 dotnet code generation is broken for assemblies that contain 
custom doc attributes.

This reverts commit b617078.
  • Loading branch information
rix0rrr authored Apr 15, 2019
1 parent b617078 commit d72806b
Show file tree
Hide file tree
Showing 51 changed files with 133 additions and 167 deletions.
4 changes: 1 addition & 3 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@
"@aws-cdk/aws-codepipeline": "^0.28.0",
"@aws-cdk/aws-codepipeline-actions": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-codebuild": "^0.28.0",
"@aws-cdk/cx-api": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
5 changes: 1 addition & 4 deletions packages/@aws-cdk/assets-docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/assets": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-cloudformation": "^0.28.0",
"@aws-cdk/aws-lambda": "^0.28.0",
"@aws-cdk/cx-api": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
"peerDependencies": {
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/cx-api": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-apigateway/lib/restapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export interface RestApiProps extends ResourceOptions {
export class RestApi extends cdk.Construct implements IRestApi {
/**
* Imports an existing REST API resource.
* @param scope Parent construct
* @param parent Parent construct
* @param id Construct ID
* @param props Imported rest API properties
*/
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
"peerDependencies": {
"@aws-cdk/aws-cloudwatch": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-autoscaling-common": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-autoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@
"@aws-cdk/aws-elasticloadbalancingv2": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-sns": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-autoscaling-common": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
5 changes: 1 addition & 4 deletions packages/@aws-cdk/aws-cloudfront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@
"peerDependencies": {
"@aws-cdk/aws-route53": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-certificatemanager": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-kms": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/@aws-cdk/aws-cloudtrail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@
"peerDependencies": {
"@aws-cdk/aws-kms": "^0.28.0",
"@aws-cdk/aws-logs": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-codebuild/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ export class Project extends ProjectBase {
* has permissions to access the S3 Bucket of that Pipeline -
* otherwise, builds in that Pipeline will always fail.
*
* @param scope the parent Construct for this Construct
* @param id the logical name of this Construct
* @param parent the parent Construct for this Construct
* @param name the logical name of this Construct
* @param props the properties of the referenced Project
* @returns a reference to the existing Project
*/
Expand Down
3 changes: 0 additions & 3 deletions packages/@aws-cdk/aws-codedeploy-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,5 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"engines": {
"node": ">= 8.10.0"
},
"peerDependencies": {
"@aws-cdk/cdk": "^0.28.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class LambdaDeploymentGroup extends cdk.Construct implements ILambdaDeplo

/**
* Associate a function to run after deployment completes.
* @param postHook function to run after deployment completes
* @param preHook function to run after deployment completes
* @throws an error if a post-hook function is already configured
*/
public onPostHook(postHook: lambda.IFunction): void {
Expand All @@ -215,7 +215,7 @@ export class LambdaDeploymentGroup extends cdk.Construct implements ILambdaDeplo
/**
* Grant a principal permission to codedeploy:PutLifecycleEventHookExecutionStatus
* on this deployment group resource.
* @param grantee to grant permission to
* @param principal to grant permission to
*/
public grantPutLifecycleEventHookExecutionStatus(grantee: iam.IGrantable): iam.Grant {
return iam.Grant.addToPrincipal({
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-codedeploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@
"@aws-cdk/aws-codedeploy-api": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-lambda": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-codepipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@
"construct-ctor:@aws-cdk/aws-codepipeline.CrossRegionScaffoldStack.<initializer>.params[0]",
"construct-ctor:@aws-cdk/aws-codepipeline.CrossRegionScaffoldStack.<initializer>.params[1]",
"export:@aws-cdk/aws-codepipeline.IPipeline",
"import-props-interface:@aws-cdk/aws-codepipeline.PipelineImportProps",
"resource-attribute:@aws-cdk/aws-codepipeline.IPipeline.pipelineVersion"
"import-props-interface:@aws-cdk/aws-codepipeline.PipelineImportProps"
]
}
}
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-cognito/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-lambda": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-dynamodb/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export class Table extends Construct {
/**
* Permits an IAM principal all data read operations from this table:
* BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan.
* @param grantee The principal to grant access to
* @param principal The principal to grant access to
*/
public grantReadData(grantee: iam.IGrantable) {
return this.grant(grantee, ...READ_DATA_ACTIONS);
Expand All @@ -456,7 +456,7 @@ export class Table extends Construct {
/**
* Permits an IAM principal all data write operations to this table:
* BatchWriteItem, PutItem, UpdateItem, DeleteItem.
* @param grantee The principal to grant access to
* @param principal The principal to grant access to
*/
public grantWriteData(grantee: iam.IGrantable) {
return this.grant(grantee, ...WRITE_DATA_ACTIONS);
Expand Down
6 changes: 1 addition & 5 deletions packages/@aws-cdk/aws-ecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@
"@aws-cdk/aws-route53": "^0.28.0",
"@aws-cdk/aws-secretsmanager": "^0.28.0",
"@aws-cdk/aws-servicediscovery": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-cloudformation": "^0.28.0",
"@aws-cdk/aws-lambda": "^0.28.0",
"@aws-cdk/aws-sns": "^0.28.0",
"@aws-cdk/cx-api": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
2 changes: 2 additions & 0 deletions packages/@aws-cdk/aws-eks/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export interface ClusterProps {
*
* If you want to create public load balancers, this must include public subnets.
*
* @example
*
* For example, to only select private subnets, supply the following:
*
* ```ts
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-elasticloadbalancingv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@
"@aws-cdk/aws-ec2": "^0.28.0",
"@aws-cdk/aws-route53": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
},
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iam/lib/lazy-role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class LazyRole extends cdk.Construct implements IRole {
/**
* Adds a permission to the role's default policy document.
* If there is no default policy attached to this role, it will be created.
* @param statement The permission statement to add to the policy document
* @param permission The permission statement to add to the policy document
*/
public addToPolicy(statement: PolicyStatement): boolean {
if (this.role) {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iam/lib/policy-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class PolicyStatement extends cdk.Token {
* Adds a service principal to this policy statement.
*
* @param service the service name for which a service principal is requested (e.g: `s3.amazonaws.com`).
* @param opts options for adding the service principal (such as specifying a principal in a different region)
* @param region the region in which the service principal lives (defaults to the current stack's region).
*/
public addServicePrincipal(service: string, opts?: ServicePrincipalOpts): this {
return this.addPrincipal(new ServicePrincipal(service, opts));
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iam/lib/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class Role extends Construct implements IRole {
/**
* Adds a permission to the role's default policy document.
* If there is no default policy attached to this role, it will be created.
* @param statement The permission statement to add to the policy document
* @param permission The permission statement to add to the policy document
*/
public addToPolicy(statement: PolicyStatement): boolean {
if (!this.defaultPolicy) {
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-kinesis/lib/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ export class Stream extends StreamBase {
*
* @param scope The parent creating construct (usually `this`).
* @param id The construct's name.
* @param props Stream import properties
* @param ref A `StreamAttributes` object. Can be obtained from a call to
* `stream.export()`.
*/
public static import(scope: cdk.Construct, id: string, props: StreamImportProps): IStream {
return new ImportedStream(scope, id, props);
Expand Down
5 changes: 1 addition & 4 deletions packages/@aws-cdk/aws-lambda-event-sources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"@aws-cdk/aws-lambda": "^0.28.0",
"@aws-cdk/aws-s3": "^0.28.0",
"@aws-cdk/aws-sns": "^0.28.0",
"@aws-cdk/aws-sqs": "^0.28.0",
"@aws-cdk/aws-events": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0"
"@aws-cdk/aws-sqs": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class Function extends FunctionBase {
*
* Lambda.import(this, 'MyImportedFunction', { lambdaArn: new LambdaArn('arn:aws:...') });
*
* @param scope The parent construct
* @param parent The parent construct
* @param id The name of the lambda construct
* @param props A reference to a Lambda function. Can be created manually (see
* example above) or obtained through a call to `lambda.export()`.
Expand Down
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@
"@aws-cdk/aws-s3-notifications": "^0.28.0",
"@aws-cdk/aws-sqs": "^0.28.0",
"@aws-cdk/aws-stepfunctions": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/cx-api": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
5 changes: 1 addition & 4 deletions packages/@aws-cdk/aws-quickstarts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-ec2": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-cloudformation": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-rds": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
5 changes: 1 addition & 4 deletions packages/@aws-cdk/aws-rds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
"@aws-cdk/aws-ec2": "^0.28.0",
"@aws-cdk/aws-kms": "^0.28.0",
"@aws-cdk/aws-secretsmanager": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-lambda": "^0.28.0",
"@aws-cdk/aws-sam": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/@aws-cdk/aws-route53/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-ec2": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/aws-logs": "^0.28.0",
"@aws-cdk/cx-api": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
6 changes: 1 addition & 5 deletions packages/@aws-cdk/aws-s3-deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-s3": "^0.28.0",
"@aws-cdk/cdk": "^0.28.0",
"@aws-cdk/assets": "^0.28.0",
"@aws-cdk/aws-cloudformation": "^0.28.0",
"@aws-cdk/aws-iam": "^0.28.0",
"@aws-cdk/aws-lambda": "^0.28.0"
"@aws-cdk/cdk": "^0.28.0"
},
"engines": {
"node": ">= 8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-s3/lib/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ export class Bucket extends BucketBase {
/**
* Creates a Bucket construct that represents an external bucket.
*
* @param scope The parent creating construct (usually `this`).
* @param parent The parent creating construct (usually `this`).
* @param id The construct's name.
* @param props A `BucketAttributes` object. Can be obtained from a call to
* `bucket.export()` or manually created.
Expand Down
Loading

0 comments on commit d72806b

Please sign in to comment.