Skip to content

Commit

Permalink
Merge branch 'master' into huijbers/fix-user-context
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 21, 2021
2 parents a9e9511 + e5c616f commit 21838d7
Show file tree
Hide file tree
Showing 301 changed files with 5,629 additions and 1,960 deletions.
3 changes: 0 additions & 3 deletions buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ phases:

# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
pre_build:
commands:
- /bin/bash ./fetch-dotnet-snk.sh
build:
commands:
- 'if ${BUMP_CANDIDATE:-false}; then /bin/bash ./scripts/bump-candidate.sh; fi'
Expand Down
60 changes: 0 additions & 60 deletions fetch-dotnet-snk.sh

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"conventional-changelog-cli": "^2.1.1",
"fs-extra": "^9.0.1",
"fs-extra": "^9.1.0",
"graceful-fs": "^4.2.4",
"jest-junit": "^12.0.0",
"jsii-diff": "^1.15.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.Alexa.Ask",
"packageId": "Amazon.CDK.Alexa.Ask",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AppDelivery",
"packageId": "Amazon.CDK.AppDelivery",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.Assets",
"packageId": "Amazon.CDK.Assets",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AccessAnalyzer",
"packageId": "Amazon.CDK.AWS.AccessAnalyzer",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-acmpca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.ACMPCA",
"packageId": "Amazon.CDK.AWS.ACMPCA",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AmazonMQ",
"packageId": "Amazon.CDK.AWS.AmazonMQ",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Amplify",
"packageId": "Amazon.CDK.AWS.Amplify",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
4 changes: 1 addition & 3 deletions packages/@aws-cdk/aws-apigateway/lib/usage-plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,8 @@ export class UsagePlan extends Resource {
* @param apiKey
*/
public addApiKey(apiKey: IApiKey): void {
const prefix = 'UsagePlanKeyResource';

// Postfixing apikey id only from the 2nd child, to keep physicalIds of UsagePlanKey for existing CDK apps unmodifed.
const id = this.node.tryFindChild(prefix) ? `${prefix}:${Names.nodeUniqueId(apiKey.node)}` : prefix;
const id = `UsagePlanKeyResource:${Names.nodeUniqueId(apiKey.node)}`;

new CfnUsagePlanKey(this, id, {
keyId: apiKey.keyId,
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.APIGateway",
"packageId": "Amazon.CDK.AWS.APIGateway",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@
"UsagePlanName": "Basic"
}
},
"myapiUsagePlanUsagePlanKeyResource050D133F": {
"myapiUsagePlanUsagePlanKeyResourcetestapigatewayrestapimyapiApiKeyC43601CB600D112D": {
"Type": "AWS::ApiGateway::UsagePlanKey",
"Properties": {
"KeyId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"myusageplan4B391740": {
"Type": "AWS::ApiGateway::UsagePlan"
},
"myusageplanUsagePlanKeyResource095B4EA9": {
"myusageplanUsagePlanKeyResourcetestapigatewayusageplanmultikeymyapikey1DDABC389A2809A73": {
"Type": "AWS::ApiGateway::UsagePlanKey",
"Properties": {
"KeyId": {
Expand Down
28 changes: 28 additions & 0 deletions packages/@aws-cdk/aws-apigateway/test/usage-plan.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,32 @@ describe('usage plan', () => {
},
}, ResourcePart.Properties);
});

test('UsagePlanKeys have unique logical ids', () => {
// GIVEN
const app = new cdk.App();
const stack = new cdk.Stack(app, 'my-stack');
const usagePlan = new apigateway.UsagePlan(stack, 'my-usage-plan');
const apiKey1 = new apigateway.ApiKey(stack, 'my-api-key-1', {
apiKeyName: 'my-api-key-1',
});
const apiKey2 = new apigateway.ApiKey(stack, 'my-api-key-2', {
apiKeyName: 'my-api-key-2',
});

// WHEN
usagePlan.addApiKey(apiKey1);
usagePlan.addApiKey(apiKey2);

// THEN
const template = app.synth().getStackByName(stack.stackName).template;
const logicalIds = Object.entries(template.Resources)
.filter(([_, v]) => (v as any).Type === 'AWS::ApiGateway::UsagePlanKey')
.map(([k, _]) => k);

expect(logicalIds).toEqual([
'myusageplanUsagePlanKeyResourcemystackmyapikey1EE9AA1B359121274',
'myusageplanUsagePlanKeyResourcemystackmyapikey2B4E8EB1456DC88E9',
]);
});
});
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2-integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.APIGatewayv2.Integrations",
"packageId": "Amazon.CDK.AWS.APIGatewayv2.Integrations",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.APIGatewayv2",
"packageId": "Amazon.CDK.AWS.APIGatewayv2",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppConfig",
"packageId": "Amazon.CDK.AWS.AppConfig",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppFlow",
"packageId": "Amazon.CDK.AWS.AppFlow",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,9 @@ export enum PredefinedMetric {
* @see https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html#monitoring-metrics-concurrency
*/
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION = 'LambdaProvisionedConcurrencyUtilization',
/**
* KAFKA_BROKER_STORAGE_UTILIZATION
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
KAFKA_BROKER_STORAGE_UTILIZATION = 'KafkaBrokerStorageUtilization',
}
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.ApplicationAutoScaling",
"packageId": "Amazon.CDK.AWS.ApplicationAutoScaling",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-applicationinsights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.ApplicationInsights",
"packageId": "Amazon.CDK.AWS.ApplicationInsights",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appmesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppMesh",
"packageId": "Amazon.CDK.AWS.AppMesh",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppStream",
"packageId": "Amazon.CDK.AWS.AppStream",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppSync",
"packageId": "Amazon.CDK.AWS.AppSync",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Athena",
"packageId": "Amazon.CDK.AWS.Athena",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-auditmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AuditManager",
"packageId": "Amazon.CDK.AWS.AuditManager",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling.Common",
"packageId": "Amazon.CDK.AWS.AutoScaling.Common",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-hooktargets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling.HookTargets",
"packageId": "Amazon.CDK.AWS.AutoScaling.HookTargets",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
14 changes: 12 additions & 2 deletions packages/@aws-cdk/aws-autoscaling/lib/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,25 @@ export enum EbsDeviceVolumeType {
STANDARD = 'standard',

/**
* Provisioned IOPS SSD
* Provisioned IOPS SSD - IO1
*/
IO1 = 'io1',

/**
* General Purpose SSD
* Provisioned IOPS SSD - IO2
*/
IO2 = 'io2',

/**
* General Purpose SSD - GP2
*/
GP2 = 'gp2',

/**
* General Purpose SSD - GP3
*/
GP3 = 'gp3',

/**
* Throughput Optimized HDD
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling",
"packageId": "Amazon.CDK.AWS.AutoScaling",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscalingplans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScalingPlans",
"packageId": "Amazon.CDK.AWS.AutoScalingPlans",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Backup",
"packageId": "Amazon.CDK.AWS.Backup",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
Loading

0 comments on commit 21838d7

Please sign in to comment.