@aws-cdk/aws-ec2
Advanced tools
Comparing version 0.22.0 to 0.23.0
import { Construct, IConstruct, IDependable } from "@aws-cdk/cdk"; | ||
export interface IVpcSubnet extends IConstruct, IDependable { | ||
export interface IVpcSubnet extends IConstruct { | ||
/** | ||
@@ -12,2 +12,6 @@ * The Availability Zone the subnet is located in | ||
/** | ||
* Dependable that can be depended upon to force internet connectivity established on the VPC | ||
*/ | ||
readonly internetConnectivityEstablished: IDependable; | ||
/** | ||
* Exports this subnet to another stack. | ||
@@ -17,3 +21,3 @@ */ | ||
} | ||
export interface IVpcNetwork extends IConstruct, IDependable { | ||
export interface IVpcNetwork extends IConstruct { | ||
/** | ||
@@ -44,12 +48,2 @@ * Identifier for this VPC | ||
/** | ||
* Take a dependency on internet connectivity having been added to this VPC | ||
* | ||
* Take a dependency on this if your constructs need an Internet Gateway | ||
* added to the VPC before they can be constructed. | ||
* | ||
* This method is for construct authors; application builders should not | ||
* need to call this. | ||
*/ | ||
internetDependency(): IDependable; | ||
/** | ||
* Return the subnets appropriate for the placement strategy | ||
@@ -160,9 +154,9 @@ */ | ||
/** | ||
* Parts of the VPC that constitute full construction | ||
* Dependencies for internet connectivity | ||
*/ | ||
readonly dependencyElements: IDependable[]; | ||
readonly internetDependencies: IConstruct[]; | ||
/** | ||
* Dependencies for internet connectivity | ||
* Dependencies for NAT connectivity | ||
*/ | ||
readonly internetDependencies: IDependable[]; | ||
readonly natDependencies: IConstruct[]; | ||
/** | ||
@@ -185,12 +179,2 @@ * Return the subnets appropriate for the placement strategy | ||
/** | ||
* Take a dependency on internet connectivity having been added to this VPC | ||
* | ||
* Take a dependency on this if your constructs need an Internet Gateway | ||
* added to the VPC before they can be constructed. | ||
* | ||
* This method is for construct authors; application builders should not | ||
* need to call this. | ||
*/ | ||
internetDependency(): IDependable; | ||
/** | ||
* The region where this VPC is defined | ||
@@ -197,0 +181,0 @@ */ |
@@ -49,9 +49,9 @@ "use strict"; | ||
/** | ||
* Parts of the VPC that constitute full construction | ||
* Dependencies for internet connectivity | ||
*/ | ||
this.dependencyElements = []; | ||
this.internetDependencies = new Array(); | ||
/** | ||
* Dependencies for internet connectivity | ||
* Dependencies for NAT connectivity | ||
*/ | ||
this.internetDependencies = new Array(); | ||
this.natDependencies = new Array(); | ||
} | ||
@@ -95,14 +95,2 @@ /** | ||
/** | ||
* Take a dependency on internet connectivity having been added to this VPC | ||
* | ||
* Take a dependency on this if your constructs need an Internet Gateway | ||
* added to the VPC before they can be constructed. | ||
* | ||
* This method is for construct authors; application builders should not | ||
* need to call this. | ||
*/ | ||
internetDependency() { | ||
return new DependencyList(this.internetDependencies); | ||
} | ||
/** | ||
* The region where this VPC is defined | ||
@@ -115,13 +103,2 @@ */ | ||
exports.VpcNetworkBase = VpcNetworkBase; | ||
/** | ||
* Allows using an array as a list of dependables. | ||
*/ | ||
class DependencyList { | ||
constructor(dependenclyElements) { | ||
this.dependenclyElements = dependenclyElements; | ||
} | ||
get dependencyElements() { | ||
return this.dependenclyElements; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidnBjLXJlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInZwYy1yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBeUU7QUFDekUsaUNBQW9DO0FBaUZwQzs7R0FFRztBQUNILElBQVksVUFrQ1g7QUFsQ0QsV0FBWSxVQUFVO0lBQ3BCOzs7OztPQUtHO0lBQ0gsbURBQVksQ0FBQTtJQUVaOzs7Ozs7Ozs7OztPQVdHO0lBQ0gsaURBQVcsQ0FBQTtJQUVYOzs7Ozs7Ozs7T0FTRztJQUNILCtDQUFVLENBQUE7QUFDWixDQUFDLEVBbENXLFVBQVUsR0FBVixrQkFBVSxLQUFWLGtCQUFVLFFBa0NyQjtBQWdDRDs7R0FFRztBQUNILE1BQXNCLGNBQWUsU0FBUSxlQUFTO0lBQXREOztRQTJCR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l0eSB6b25lcyBpbiBsZW5ndGggYW5kIG9yZGVyLlxuICAgKi9cbiAgaXNvbGF0ZWRTdWJuZXRJZHM/OiBzdHJpbmdbXTtcblxuICAvKipcbiAgICogTGlzdCBvZiBuYW1lcyBmb3IgdGhlIGlzb2xhdGVkIHN1Ym5ldHNcbiAgICpcbiAgICogTXVzdCBiZSB1bmRlZmluZWQgb3IgaGF2ZSBhIG5hbWUgZm9yIGV2ZXJ5IGlzb2xhdGVkIHN1Ym5ldCBncm91cC5cbiAgICovXG4gIGlzb2xhdGVkU3VibmV0TmFtZXM/OiBzdHJpbmdbXTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBWcGNTdWJuZXRJbXBvcnRQcm9wcyB7XG4gIC8qKlxuICAgKiBUaGUgQXZhaWxhYmlsaXR5IFpvbmUgdGhlIHN1Ym5ldCBpcyBsb2NhdGVkIGluXG4gICAqL1xuICBhdmFpbGFiaWxpdHlab25lOiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSBzdWJuZXRJZCBmb3IgdGhpcyBwYXJ0aWN1bGFyIHN1Ym5ldFxuICAgKi9cbiAgc3VibmV0SWQ6IHN0cmluZztcbn0iXX0= |
import cdk = require('@aws-cdk/cdk'); | ||
import { CfnInternetGateway } from './ec2.generated'; | ||
import { IDependable } from '@aws-cdk/cdk'; | ||
import { CfnInternetGateway, CfnNatGateway } from './ec2.generated'; | ||
import { CfnVPCGatewayAttachment } from './ec2.generated'; | ||
@@ -47,3 +48,7 @@ import { VpcNetworkProviderProps } from './vpc-network-provider'; | ||
* | ||
* @default All AZs in the region | ||
* If you pick a higher number than the number of AZs in the region, all AZs in | ||
* the region will be selected. To use "all AZs" available to your account, use a | ||
* high number (such as 99). | ||
* | ||
* @default 3 | ||
*/ | ||
@@ -279,3 +284,3 @@ maxAZs?: number; | ||
*/ | ||
export declare class VpcSubnet extends cdk.Construct implements IVpcSubnet, cdk.ITaggable, cdk.IDependable { | ||
export declare class VpcSubnet extends cdk.Construct implements IVpcSubnet, cdk.ITaggable { | ||
static import(scope: cdk.Construct, id: string, props: VpcSubnetImportProps): IVpcSubnet; | ||
@@ -295,11 +300,9 @@ /** | ||
/** | ||
* Parts of this VPC subnet | ||
*/ | ||
readonly dependencyElements: cdk.IDependable[]; | ||
/** | ||
* The routeTableId attached to this subnet. | ||
*/ | ||
private readonly routeTableId; | ||
private readonly internetDependencies; | ||
constructor(scope: cdk.Construct, id: string, props: VpcSubnetProps); | ||
export(): VpcSubnetImportProps; | ||
readonly internetConnectivityEstablished: IDependable; | ||
protected addDefaultRouteToNAT(natGatewayId: string): void; | ||
@@ -327,3 +330,3 @@ /** | ||
*/ | ||
addNatGateway(): string; | ||
addNatGateway(): CfnNatGateway; | ||
} | ||
@@ -330,0 +333,0 @@ /** |
{ | ||
"name": "@aws-cdk/aws-ec2", | ||
"version": "0.22.0", | ||
"version": "0.23.0", | ||
"description": "CDK Constructs for AWS EC2", | ||
@@ -57,17 +57,17 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.22.0", | ||
"cdk-build-tools": "^0.22.0", | ||
"cdk-integ-tools": "^0.22.0", | ||
"cfn2ts": "^0.22.0", | ||
"pkglint": "^0.22.0" | ||
"@aws-cdk/assert": "^0.23.0", | ||
"cdk-build-tools": "^0.23.0", | ||
"cdk-integ-tools": "^0.23.0", | ||
"cfn2ts": "^0.23.0", | ||
"pkglint": "^0.23.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-iam": "^0.22.0", | ||
"@aws-cdk/cdk": "^0.22.0", | ||
"@aws-cdk/cx-api": "^0.22.0" | ||
"@aws-cdk/aws-iam": "^0.23.0", | ||
"@aws-cdk/cdk": "^0.23.0", | ||
"@aws-cdk/cx-api": "^0.23.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/cdk": "^0.22.0", | ||
"@aws-cdk/cx-api": "^0.22.0" | ||
"@aws-cdk/cdk": "^0.23.0", | ||
"@aws-cdk/cx-api": "^0.23.0" | ||
}, | ||
@@ -74,0 +74,0 @@ "engines": { |
@@ -37,3 +37,3 @@ ## AWS Compute and Networking Construct Library | ||
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', { | ||
const vpc = new ec2.VpcNetwork(this, 'TheVPC', { | ||
cidr: '10.0.0.0/21', | ||
@@ -102,3 +102,3 @@ subnetConfiguration: [ | ||
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', { | ||
const vpc = new ec2.VpcNetwork(this, 'TheVPC', { | ||
cidr: '10.0.0.0/16', | ||
@@ -149,3 +149,3 @@ natGateways: 1, | ||
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', { | ||
const vpc = new ec2.VpcNetwork(this, 'TheVPC', { | ||
cidr: '10.0.0.0/16', | ||
@@ -178,3 +178,3 @@ natGateways: 1, | ||
#### Sharing VPCs across stacks | ||
#### Sharing VPCs between stacks | ||
@@ -185,4 +185,6 @@ If you are creating multiple `Stack`s inside the same CDK application, you | ||
[sharing VPCs between stacks](test/example.share-vpcs.lit.ts) | ||
[sharing VPCs between stacks](test/integ.share-vpcs.lit.ts) | ||
#### Importing an existing VPC | ||
If your VPC is created outside your CDK app, you can use `importFromContext()`: | ||
@@ -189,0 +191,0 @@ |
@@ -18,2 +18,3 @@ import { Test } from 'nodeunit'; | ||
"with public subnets MapPublicIpOnLaunch is true"(test: Test): void; | ||
"maxAZs defaults to 3 if unset"(test: Test): void; | ||
"with maxAZs set to 2"(test: Test): void; | ||
@@ -20,0 +21,0 @@ "with natGateway set to 1"(test: Test): void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2505427
52
16343
306
+ Added@aws-cdk/aws-iam@0.23.0(transitive)
+ Added@aws-cdk/cdk@0.23.0(transitive)
+ Added@aws-cdk/cx-api@0.23.0(transitive)
- Removed@aws-cdk/aws-iam@0.22.0(transitive)
- Removed@aws-cdk/cdk@0.22.0(transitive)
- Removed@aws-cdk/cx-api@0.22.0(transitive)
Updated@aws-cdk/aws-iam@^0.23.0
Updated@aws-cdk/cdk@^0.23.0
Updated@aws-cdk/cx-api@^0.23.0