@aws-cdk/aws-ec2
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -1,2 +0,1 @@ | ||
import { Token } from "@aws-cdk/cdk"; | ||
import { Connections, IConnectable } from "./connections"; | ||
@@ -121,3 +120,3 @@ /** | ||
readonly canInlineRule: boolean; | ||
constructor(port: Token); | ||
constructor(port: string); | ||
toRuleJSON(): any; | ||
@@ -124,0 +123,0 @@ } |
@@ -186,2 +186,2 @@ "use strict"; | ||
exports.AllConnections = AllConnections; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdXJpdHktZ3JvdXAtcnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNlY3VyaXR5LWdyb3VwLXJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSwrQ0FBMEQ7QUFzQjFEOztHQUVHO0FBQ0gsTUFBYSxRQUFRO0lBSWpCLFlBQTZCLE1BQWM7UUFBZCxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBSDNCLGtCQUFhLEdBQUcsSUFBSSxDQUFDO1FBQ3JCLGdCQUFXLEdBQWdCLElBQUkseUJBQVcsQ0FBQyxFQUFFLGlCQUFpQixFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7SUFHeEYsQ0FBQztJQUVEOztPQUVHO0lBQ0ksaUJBQWlCO1FBQ3BCLE9BQU8sRUFBRSxNQUFNLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBRSxDQUFDO0lBQ25DLENBQUM7SUFDRDs7T0FFRztJQUNJLGdCQUFnQjtRQUNuQixPQUFPLEVBQUUsTUFBTSxFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsQ0FBQztJQUNuQyxDQUFDO0NBQ0o7QUFuQkQsNEJBbUJDO0FBRUQ7O0dBRUc7QUFDSCxNQUFhLE9BQVEsU0FBUSxRQUFRO0lBQ2pDO1FBQ0ksS0FBSyxDQUFDLFdBQVcsQ0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cbn1cblxuLyoqXG4gKiBBbGwgVENQIFBvcnRzXG4gKi9cbmV4cG9ydCBjbGFzcyBBbGxDb25uZWN0aW9ucyBpbXBsZW1lbnRzIElQb3J0UmFuZ2Uge1xuICAgIHB1YmxpYyByZWFkb25seSBjYW5JbmxpbmVSdWxlID0gdHJ1ZTtcblxuICAgIHB1YmxpYyB0b1J1bGVKU09OKCk6IGFueSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBpcFByb3RvY29sOiAnLTEnLFxuICAgICAgICAgICAgZnJvbVBvcnQ6IC0xLFxuICAgICAgICAgICAgdG9Qb3J0OiAtMSxcbiAgICAgICAgfTtcbiAgICB9XG59Il19 |
import { Construct } from '@aws-cdk/cdk'; | ||
import { Connections, IConnectable } from './connections'; | ||
import { SecurityGroupId, SecurityGroupName, SecurityGroupVpcId } from './ec2.generated'; | ||
import { IPortRange, ISecurityGroupRule } from './security-group-rule'; | ||
@@ -10,3 +9,3 @@ import { VpcNetworkRef } from './vpc-ref'; | ||
*/ | ||
securityGroupId: SecurityGroupId; | ||
securityGroupId: string; | ||
} | ||
@@ -21,3 +20,3 @@ /** | ||
static import(parent: Construct, id: string, props: SecurityGroupRefProps): SecurityGroupRef; | ||
abstract readonly securityGroupId: SecurityGroupId; | ||
abstract readonly securityGroupId: string; | ||
readonly canInlineRule: boolean; | ||
@@ -72,11 +71,11 @@ readonly connections: Connections; | ||
*/ | ||
readonly groupName: SecurityGroupName; | ||
readonly groupName: string; | ||
/** | ||
* An attribute that represents the physical VPC ID this security group is part of. | ||
*/ | ||
readonly vpcId: SecurityGroupVpcId; | ||
readonly vpcId: string; | ||
/** | ||
* The ID of the security group | ||
*/ | ||
readonly securityGroupId: SecurityGroupId; | ||
readonly securityGroupId: string; | ||
private readonly securityGroup; | ||
@@ -83,0 +82,0 @@ private readonly directIngressRules; |
@@ -39,3 +39,3 @@ "use strict"; | ||
return { | ||
securityGroupId: new ec2_generated_1.SecurityGroupId(new cdk_1.Output(this, 'SecurityGroupId', { value: this.securityGroupId }).makeImportValue()) | ||
securityGroupId: new cdk_1.Output(this, 'SecurityGroupId', { value: this.securityGroupId }).makeImportValue().toString() | ||
}; | ||
@@ -66,3 +66,3 @@ } | ||
this.securityGroupId = this.securityGroup.securityGroupId; | ||
this.groupName = this.securityGroup.ref; | ||
this.groupName = this.securityGroup.securityGroupName; | ||
this.vpcId = this.securityGroup.securityGroupVpcId; | ||
@@ -148,2 +148,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdXJpdHktZ3JvdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzZWN1cml0eS1ncm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNDQUF3RDtBQUN4RCwrQ0FBMEQ7QUFDMUQsbURBQXlHO0FBRXpHLGlDQUFpQztBQVVqQzs7R0FFRztBQUNILE1BQXNCLGdCQUFpQixTQUFRLGVBQVM7SUFBeEQ7O1FBU29CLGtCQUFhLEdBQUcsS0FBSyxDQUFDO1FBQ3RCLGdCQUFXLEdBQUcsSUFBSSx5QkFBVyxDQUFDLEVBQUUsYUFBYSxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7SUEwQzNFLENBQUM7SUFuREc7O09BRUc7SUFDSSxNQUFNLENBQUMsTUFBTSxDQUFDLE1BQWlCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQzVFLE9BQU8sSUFBSSxxQkFBcUIsQ0FBQyxNQUFNLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBQ3hELENBQUM7SUFXTSxjQUFjLENBQUMsSUFBd0IsRUFBRSxVQUFzQixFQUFFLFdBQW1CO1FBQ3ZGLElBQUksOEJBQWMsQ0FBQyw0QkFBNEIsQ0FBQyxJQUFJLEVBQUUsY0FBTyxDQUFDLFdBQVcsQ0FBQyxrQkFDdEUsT0FBTyxFQUFFLElBQ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c2NyaXB0aW9uKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuYWRkRGlyZWN0SW5ncmVzc1J1bGUoe1xuICAgICAgICAgICAgLi4ucGVlci50b0luZ3Jlc3NSdWxlSlNPTigpLFxuICAgICAgICAgICAgLi4uY29ubmVjdGlvbi50b1J1bGVKU09OKCksXG4gICAgICAgICAgICBkZXNjcmlwdGlvblxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgYWRkRWdyZXNzUnVsZShwZWVyOiBJU2VjdXJpdHlHcm91cFJ1bGUsIGNvbm5lY3Rpb246IElQb3J0UmFuZ2UsIGRlc2NyaXB0aW9uOiBzdHJpbmcpIHtcbiAgICAgICAgaWYgKCFwZWVyLmNhbklubGluZVJ1bGUgfHwgIWNvbm5lY3Rpb24uY2FuSW5saW5lUnVsZSkge1xuICAgICAgICAgICAgc3VwZXIuYWRkRWdyZXNzUnVsZShwZWVyLCBjb25uZWN0aW9uLCBkZXNjcmlwdGlvbik7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmFkZERpcmVjdEVncmVzc1J1bGUoe1xuICAgICAgICAgICAgLi4ucGVlci50b0luZ3Jlc3NSdWxlSlNPTigpLFxuICAgICAgICAgICAgLi4uY29ubmVjdGlvbi50b1J1bGVKU09OKCksXG4gICAgICAgICAgICBkZXNjcmlwdGlvblxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBBZGQgYSBkaXJlY3QgaW5ncmVzcyBydWxlXG4gICAgICovXG4gICAgcHJpdmF0ZSBhZGREaXJlY3RJbmdyZXNzUnVsZShydWxlOiBjbG91ZGZvcm1hdGlvbi5TZWN1cml0eUdyb3VwUmVzb3VyY2UuSW5ncmVzc1Byb3BlcnR5KSB7XG4gICAgICAgIGlmICghdGhpcy5oYXNJbmdyZXNzUnVsZShydWxlKSkge1xuICAgICAgICAgICAgdGh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XN0aW5hdGlvblNlY3VyaXR5R3JvdXBJZDtcbn1cbiJdfQ== |
import cdk = require('@aws-cdk/cdk'); | ||
import { SubnetId } from './ec2.generated'; | ||
import { SubnetType, VpcSubnetRef } from "./vpc-ref"; | ||
@@ -35,3 +34,3 @@ /** | ||
private readonly azs; | ||
readonly ids?: SubnetId[]; | ||
readonly ids?: string[]; | ||
readonly names?: string[]; | ||
@@ -51,3 +50,3 @@ private readonly groups; | ||
private readonly groups; | ||
constructor(subnetIds: SubnetId[] | undefined, names: string[] | undefined, type: SubnetType, availabilityZones: string[], idField: string, nameField: string); | ||
constructor(subnetIds: string[] | undefined, names: string[] | undefined, type: SubnetType, availabilityZones: string[], idField: string, nameField: string); | ||
import(parent: cdk.Construct): VpcSubnetRef[]; | ||
@@ -54,0 +53,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cdk = require("@aws-cdk/cdk"); | ||
const ec2_generated_1 = require("./ec2.generated"); | ||
const vpc_ref_1 = require("./vpc-ref"); | ||
@@ -59,3 +58,3 @@ /** | ||
} | ||
return new cdk.StringListOutput(parent, name, { values: this.subnets.map(s => s.subnetId) }).makeImportValues().map(x => new ec2_generated_1.SubnetId(x)); | ||
return new cdk.StringListOutput(parent, name, { values: this.subnets.map(s => s.subnetId) }).makeImportValues().map(x => x.toString()); | ||
} | ||
@@ -141,2 +140,2 @@ /** | ||
exports.range = range; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBcUM7QUFDckMsbURBQTJDO0FBQzNDLHVDQUFxRDtBQUVyRDs7OztHQUlHO0FBQ0gsU0FBZ0IsT0FBTyxDQUFDLENBQVM7SUFDN0IsT0FBTyxDQUFDLENBQUMsT0FBTyxDQUFDLGVBQWU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ihgJHtmaWVsZE5hbWV9IG11c3QgaGF2ZSBhbiBlbnRyeSBmb3IgZXZlcnkgY29ycmVzcG9uZGluZyBzdWJuZXQgZ3JvdXAsIGdvdDogJHtKU09OLnN0cmluZ2lmeShuYW1lcyl9YCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbmFtZXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJuIHRoZSBpJ3RoIEFaXG4gICAgICovXG4gICAgcHJpdmF0ZSBwaWNrQVooaTogbnVtYmVyKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmF2YWlsYWJpbGl0eVpvbmVzW2kgJSB0aGlzLmF2YWlsYWJpbGl0eVpvbmVzLmxlbmd0aF07XG4gICAgfVxufVxuXG4vKipcbiAqIEdlbmVyYXRlIHRoZSBsaXN0IG9mIG51bWJlcnMgb2YgWzAuLm4pXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiByYW5nZShuOiBudW1iZXIpOiBudW1iZXJbXSB7XG4gICAgY29uc3QgcmV0OiBudW1iZXJbXSA9IFtdO1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgbjsgaSsrKSB7XG4gICAgICAgIHJldC5wdXNoKGkpO1xuICAgIH1cbiAgICByZXR1cm4gcmV0O1xufVxuIl19 |
import { Construct, IDependable } from "@aws-cdk/cdk"; | ||
import { SubnetId, VPCId } from "./ec2.generated"; | ||
/** | ||
@@ -78,3 +77,3 @@ * The type of Subnet | ||
*/ | ||
abstract readonly vpcId: VPCId; | ||
abstract readonly vpcId: string; | ||
/** | ||
@@ -116,3 +115,3 @@ * List of public subnets in this VPC | ||
*/ | ||
vpcId: VPCId; | ||
vpcId: string; | ||
/** | ||
@@ -127,3 +126,3 @@ * List of availability zones for the subnets in this VPC. | ||
*/ | ||
publicSubnetIds?: SubnetId[]; | ||
publicSubnetIds?: string[]; | ||
/** | ||
@@ -140,3 +139,3 @@ * List of names for the public subnets | ||
*/ | ||
privateSubnetIds?: SubnetId[]; | ||
privateSubnetIds?: string[]; | ||
/** | ||
@@ -153,3 +152,3 @@ * List of names for the private subnets | ||
*/ | ||
isolatedSubnetIds?: SubnetId[]; | ||
isolatedSubnetIds?: string[]; | ||
/** | ||
@@ -174,3 +173,3 @@ * List of names for the isolated subnets | ||
*/ | ||
abstract readonly subnetId: SubnetId; | ||
abstract readonly subnetId: string; | ||
/** | ||
@@ -189,3 +188,3 @@ * Parts of this VPC subnet | ||
*/ | ||
subnetId: SubnetId; | ||
subnetId: string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cdk_1 = require("@aws-cdk/cdk"); | ||
const ec2_generated_1 = require("./ec2.generated"); | ||
const util_1 = require("./util"); | ||
@@ -94,3 +93,3 @@ /** | ||
return { | ||
vpcId: new ec2_generated_1.VPCId(new cdk_1.Output(this, 'VpcId', { value: this.vpcId }).makeImportValue()), | ||
vpcId: new cdk_1.Output(this, 'VpcId', { value: this.vpcId }).makeImportValue().toString(), | ||
availabilityZones: this.availabilityZones, | ||
@@ -151,2 +150,2 @@ publicSubnetIds: pub.ids, | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidnBjLXJlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInZwYy1yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBOEQ7QUFDOUQsbURBQWtEO0FBQ2xELGlDQUEwRTtBQUUxRTs7R0FFRztBQUNILElBQVksVUFrQ1g7QUFsQ0QsV0FBWSxVQUFVO0lBQ2xCOzs7OztPQUtHO0lBQ0gsbURBQVksQ0FBQTtJQUVaOzs7Ozs7Ozs7OztPQVdHO0lBQ0gsaURBQVcsQ0FBQTtJQUVYOzs7Ozs7Ozs7T0FTRztJQUNILCtDQUFVLENBQUE7QUFDZCxDQUFDLEVBbENXLFVBQVUsR0FBVixrQkFBVSxLQUFWLGtCQUFVLFFBa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|
import cdk = require('@aws-cdk/cdk'); | ||
import { SubnetId, VPCId } from './ec2.generated'; | ||
import { SubnetType, VpcNetworkRef, VpcSubnetRef } from './vpc-ref'; | ||
@@ -172,3 +171,3 @@ /** | ||
*/ | ||
readonly vpcId: VPCId; | ||
readonly vpcId: string; | ||
/** | ||
@@ -224,5 +223,5 @@ * List of public subnets in this VPC | ||
/** | ||
* @returns {Token} The IPv4 CidrBlock as returned by the VPC | ||
* @returns The IPv4 CidrBlock as returned by the VPC | ||
*/ | ||
readonly cidr: cdk.Token; | ||
readonly cidr: string; | ||
/** | ||
@@ -246,3 +245,3 @@ * createSubnets creates the subnets specified by the subnet configuration | ||
*/ | ||
vpcId: cdk.Token; | ||
vpcId: string; | ||
/** | ||
@@ -274,3 +273,3 @@ * The CIDR notation for this subnet | ||
*/ | ||
readonly subnetId: SubnetId; | ||
readonly subnetId: string; | ||
/** | ||
@@ -285,4 +284,4 @@ * Manage tags for Construct and propagate to children | ||
constructor(parent: cdk.Construct, name: string, props: VpcSubnetProps); | ||
protected addDefaultRouteToNAT(natGatewayId: cdk.Token): void; | ||
protected addDefaultRouteToIGW(gatewayId: cdk.Token): void; | ||
protected addDefaultRouteToNAT(natGatewayId: string): void; | ||
protected addDefaultRouteToIGW(gatewayId: string): void; | ||
} | ||
@@ -297,3 +296,3 @@ /** | ||
*/ | ||
addDefaultIGWRouteEntry(gatewayId: cdk.Token): void; | ||
addDefaultIGWRouteEntry(gatewayId: string): void; | ||
/** | ||
@@ -304,3 +303,3 @@ * Creates a new managed NAT gateway attached to this public subnet. | ||
*/ | ||
addNatGateway(): import("./ec2.generated").NatGatewayId; | ||
addNatGateway(): string; | ||
} | ||
@@ -315,3 +314,3 @@ /** | ||
*/ | ||
addDefaultNatRouteEntry(natGatewayId: cdk.Token): void; | ||
addDefaultNatRouteEntry(natGatewayId: string): void; | ||
} |
@@ -99,3 +99,3 @@ "use strict"; | ||
} | ||
this.vpcId = this.resource.ref; | ||
this.vpcId = this.resource.vpcId; | ||
this.dependencyElements.push(this.resource); | ||
@@ -133,6 +133,6 @@ this.subnetConfiguration = ifUndefined(props.subnetConfiguration, VpcNetwork.DEFAULT_SUBNETS); | ||
/** | ||
* @returns {Token} The IPv4 CidrBlock as returned by the VPC | ||
* @returns The IPv4 CidrBlock as returned by the VPC | ||
*/ | ||
get cidr() { | ||
return this.resource.getAtt("CidrBlock"); | ||
return this.resource.getAtt("CidrBlock").toString(); | ||
} | ||
@@ -232,3 +232,3 @@ /** | ||
}); | ||
this.subnetId = subnet.ref; | ||
this.subnetId = subnet.subnetId; | ||
const table = new ec2_generated_1.cloudformation.RouteTableResource(this, 'RouteTable', { | ||
@@ -311,2 +311,2 @@ vpcId: props.vpcId, | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidnBjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidnBjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsb0NBQXFDO0FBRXJDLG1EQUFrRTtBQUNsRSxpREFBZ0Q7QUFDaEQsaUNBQXVEO0FBQ3ZELHVDQUFvRTtBQUVwRTs7R0FFRztBQUNILE1BQU0sUUFBUSxHQUFXLE1BQU0sQ0FBQztBQXFHaEM7O0dBRUc7QUFDSCxJQUFZLHNCQVVYO0FBVkQsV0FBWSxzQkFBc0I7SUFDOUI7O09BRUc7SUFDSCw2Q0FBbUIsQ0FBQTtJQUVuQjs7T0FFRztJQUNILGlEQUF1QixDQUFBO0FBQzNCLENBQUMsRUFWVyxzQkFBc0IsR0FBdEIsOEJBQXNCLEtBQXRCLDhCQUFzQixRQVVqQztBQW1DRDs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW1CRztBQUNILE1BQWEsVUFBVyxTQUFRLHVCQUFhO0lBa0Z6Qzs7Ozs7T0FLRztJQUNILFlBQVksTUFBcUIsRUFBRSxJQUFZLEVBQUUsUUFBeUIsRUFBRTtRQUN4RS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N1Ym5ldENvbmZpZy5uYW1lLCBpbmRleCk7XG4gICAgICAgICAgICBjb25zdCBzdWJuZXRQcm9wczogVnBjU3VibmV0UHJvcHMgPSB7XG4gICAgICAgICAgICAgICAgYXZhaWxhYmlsaXR5Wm9uZTogem9uZSxcbiAgICAgICAgICAgICAgICB2cGNJZDogdGhpcy52cGNJZCxcbiAgICAgICAgICAgICAgICBjaWRyQmxvY2s6IHRoaXMubmV0d29ya0J1aWxkZXIuYWRkU3VibmV0KGNpZHJNYXNrKSxcbiAgICAgICAgICAgICAgICBtYXBQdWJsaWNJcE9uTGF1bmNoOiAoc3VibmV0Q29uZmlnLnN1Ym5ldFR5cGUgPT09IFN1Ym5ldFR5cGUuUHVibGljKSxcbiAgICAgICAgICAgICAgICB0YWdzOiBzdWJuZXRDb25maWcudGFncyxcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHN3aXRjaCAoc3VibmV0Q29uZmlnLnN1Ym5ldFR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIFN1Ym5ldFR5cGUuUHVibGljOlxuICAgICAgICAgICAgICAgICAgICBjb25zdCBwdWJsaWNTdWJuZXQgPSBuZXcgVnBjUHVibGljU3VibmV0KHRoaXMsIG5hbWUsIHN1Ym5ldFByb3BzKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMubmF0R2F0ZXdheXMgPiAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBuZ3dBcnJheSA9IEFycmF5LmZyb20oT2JqZWN0LnZhbHVlcyh0aGlzLm5hdEdhdGV3YXlCeUFaKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAobmd3QXJyYXkubGVuZ3RoIDwgdGhpcy5uYXRHYXRld2F5cykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubmF0R2F0ZXdheUJ5QVpbem9uZV0gPSBwdWJsaWNTdWJuZXQuYWRkTmF0R2F0ZXdheSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHVibGljU3VibmV0cy5wdXNoKHB1YmxpY1N1Ym5ldCk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgU3VibmV0VHlwZS5Qcml2YXRlOlxuICAgICAgICAgICAgICAgICAgICBjb25zdCBwcml2YXRlU3VibmV0ID0gbmV3IFZwY1ByaXZhdGVTdWJuZXQodGhpcywgbmFtZSwgc3VibmV0UHJvcHMpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnByaXZhdGVTdWJuZXRzLnB1c2gocHJpdmF0ZVN1Ym5ldCk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgU3VibmV0VHlwZS5Jc29sYXRlZDpcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaXNvbGF0ZWRTdWJuZXQgPSBuZXcgVnBjUHJpdmF0ZVN1Ym5ldCh0aGlzLCBuYW1lLCBzdWJuZXRQcm9wcyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaXNvbGF0ZWRTdWJuZXRzLnB1c2goaXNvbGF0ZWRTdWJuZXQpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufVxuXG4vKipcbiAqIFNwZWNpZnkgY29uZmlndXJhdGlvbiBwYXJhbWV0ZXJzIGZvciBhIFZQQyBzdWJuZXRcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBWcGNTdWJuZXRQcm9wcyB7XG5cbiAgICAvKipcbiAgICAgKiBUaGUgYXZhaWxhYmlsaXR5IHpvbmUgZm9yIHRoZSBzdWJuZXRcbiAgICAgKi9cbiAgICBhdmFpbGFiaWxpdHlab25lOiBzdHJpbmc7XG5cbiAgICAvKipcbiAgICAgKiBUaGUgVlBDIHdoaWNoIHRoaXMg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xuICAgICAqIHN1Ym5ldCBpbiBlYWNoIEFaIHByb3ZpZGUgdGhlIGZvbGxvd2luZzpcbiAgICAgKiBzdWJuZXRDb25maWd1cmF0aW9uOiBbXG4gICAgICogICAgICB7XG4gICAgICogICAgICAgICAgY2lkck1hc2s6IDI0LFxuICAgICAqICAgICAgICAgIG5hbWU6ICdpbmdyZXNzJyxcbiAgICAgKiAgICAgICAgICBzdWJuZXRUeXBlOiBTdWJuZXRUeXBlLlB1YmxpYyxcbiAgICAgKiAgICAgIH0sXG4gICAgICogICAgICB7XG4gICAgICogICAgICAgICAgY2lkck1hc2s6IDI0LFxuICAgICAqICAgICAgICAgIG5hbWU6ICdhcHBsaWNhdGlvbicsXG4gICAgICogICAgICAgICAgc3VibmV0VHlwZTogU3VibmV0VHlwZS5Qcml2YXRlLFxuICAgICAqICAgICAgfSxcbiAgICAgKiAgICAgIHtcbiAgICAgKiAgICAgICAgICBjaWRyTWFzazogMjgsXG4gICAgICogICAgICAgICAgbmFtZTogJ3JkcycsXG4gICAgICogICAgICAgICAgc3VibmV0VHlwZTogU3VibmV0VHlwZS5Jc29sYXRlZCxcbiAgICAgKiAgICAgIH1cbiAgICAgKiBdXG4gICAgICpcbiAgICAgKiBgY2lkck1hc2tgIGlzIG9wdGlvbmFsIGFuZCBpZiBub3QgcHJvdmlkZWQgdGhlIElQIHNwYWNlIGluIHRoZSBWUEMgd2lsbCBiZVxuICAgICAqIGV2ZW5seSBkaXZpZGVkIGJldHdlZW4gdGhlIHJlcXVlc3RlZCBzdWJuZXRzLlxuICAgICAqXG4gICAgICogQGRlZmF1bHQgdGhlIFZQQyBDSURSIHdpbGwgYmUgZXZlbmx5IGRpdmlkZWQgYmV0d2VlbiAxIHB1YmxpYyBhbmQgMVxuICAgICAqIHByaXZhdGUgc3VibmV0IHBlciBBWlxuICAgICAqL1xuICAgIHN1Ym5ldENvbmZpZ3VyYXRpb24/OiBTdWJuZXRDb25maWd1cmF0aW9uW107XG59XG5cbi8qKlxuIC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ih0aGlzKSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY29uc3QgYXR0ID0gbmV3IGNsb3VkZm9ybWF0aW9uLlZQQ0dhdGV3YXlBdHRhY2htZW50UmVzb3VyY2UodGhpcywgJ1ZQQ0dXJywge1xuICAgICAgICAgICAgICAgIGludGVybmV0R2F0ZXdheUlkOiBpZ3cucmVmLFxuICAgICAgICAgICAgICAgIHZwY0lkOiB0aGlzLnJlc291cmNlLnJlZlxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAodGhpcy5wdWJsaWNTdWJuZXRzIGFzIFZwY1B1YmxpY1N1Ym5ldFtdKS5mb3JFYWNoKHB1YmxpY1N1Ym5ldCA9PiB7XG4gICAgICAgICAgICAgICAgcHVibGljU3VibmV0LmFkZERlZmF1bHRJR1dSb3V0ZUVudHJ5KGlndy5yZWYpO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIHRoaXMuZGVwZW5kZW5jeUVsZW1lbnRzLnB1c2goaWd3LCBhdHQpO1xuXG4gICAgICAgICAgICAodGhpcy5wcml2YXRlU3VibmV0cyBhcyBWcGNQcml2YXRlU3VibmV0W10pLmZvckVhY2goKHByaXZhdGVTdWJuZXQsIGkpID0+IHtcbiAgICAgICAgICAgICAgICBsZXQgbmd3SWQgPSB0aGlzLm5hdEdhdGV3YXlCeUFaW3ByaXZhdGVTdWJuZXQuYXZhaWxhYmlsaXR5Wm9uZV07XG4gICAgICAgICAgICAgICAgaWYgKG5nd0lkID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgbmd3QXJyYXkgPSBBcnJheS5mcm9tKE9iamVjdC52YWx1ZXModGhpcy5uYXRHYXRld2F5QnlBWikpO1xuICAgICAgICAgICAgICAgICAgICAvLyByb3VuZCByb2JpbiB0aGUgYXZhaWxhYmxlIE5hdEdXIHNpbmNlIG9uZSBpcyBub3QgaW4geW91ciBBWlxuICAgICAgICAgICAgICAgICAgICBuZ3dJ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AgICAgICAgICAgICAgIGF2YWlsYWJpbGl0eVpvbmU6IHpvbmUsXG4gICAgICAgICAgICAgICAgdnBjSWQ6IHRoaXMudnBjSWQsXG4gICAgICAgICAgICAgICAgY2lkckJsb2NrOiB0aGlzLm5ldHdvcmtCdWlsZGVyLmFkZFN1Ym5ldChjaWRyTWFzayksXG4gICAgICAgICAgICAgICAgbWFwUHVibGljSXBPbkxhdW5jaDogKHN1Ym5ldENvbmZpZy5zdWJuZXRUeXBlID09PSBTdWJuZXRUeXBlLlB1YmxpYyksXG4gICAgICAgICAgICAgICAgdGFnczogc3VibmV0Q29uZmlnLnRhZ3MsXG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBzd2l0Y2ggKHN1Ym5ldENvbmZpZy5zdWJuZXRUeXBlKSB7XG4gICAgICAgICAgICAgICAgY2FzZSBTdWJuZXRUeXBlLlB1YmxpYzpcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgcHVibGljU3VibmV0ID0gbmV3IFZwY1B1YmxpY1N1Ym5ldCh0aGlzLCBuYW1lLCBzdWJuZXRQcm9wcyk7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLm5hdEdhdGV3YXlzID4gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3Qgbmd3QXJyYXkgPSBBcnJheS5mcm9tKE9iamVjdC52YWx1ZXModGhpcy5uYXRHYXRld2F5QnlBWikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG5nd0FycmF5Lmxlbmd0aCA8IHRoaXMubmF0R2F0ZXdheXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm5hdEdhdGV3YXlCeUFaW3pvbmVdID0gcHVibGljU3VibmV0LmFkZE5hdEdhdGV3YXkoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnB1YmxpY1N1Ym5ldHMucHVzaChwdWJs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lZmF1bHROYXRSb3V0ZUVudHJ5KG5hdEdhdGV3YXlJZDogc3RyaW5nKSB7XG4gICAgICAgIHRoaXMuYWRkRGVmYXVsdFJvdXRlVG9OQVQobmF0R2F0ZXdheUlkKTtcbiAgICB9XG59XG5cbmZ1bmN0aW9uIGlmVW5kZWZpbmVkPFQ+KHZhbHVlOiBUIHwgdW5kZWZpbmVkLCBkZWZhdWx0VmFsdWU6IFQpOiBUIHtcbiAgICAgICByZXR1cm4gdmFsdWUgIT09IHVuZGVmaW5lZCA/IHZhbHVlIDogZGVmYXVsdFZhbHVlO1xufVxuIl19 |
{ | ||
"name": "@aws-cdk/aws-ec2", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "CDK Constructs for AWS EC2", | ||
@@ -55,12 +55,12 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.9.1", | ||
"cdk-build-tools": "^0.9.1", | ||
"cdk-integ-tools": "^0.9.1", | ||
"cfn2ts": "^0.9.1", | ||
"pkglint": "^0.9.1" | ||
"@aws-cdk/assert": "^0.9.2", | ||
"cdk-build-tools": "^0.9.2", | ||
"cdk-integ-tools": "^0.9.2", | ||
"cfn2ts": "^0.9.2", | ||
"pkglint": "^0.9.2" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-iam": "^0.9.1", | ||
"@aws-cdk/cdk": "^0.9.1", | ||
"@aws-cdk/util": "^0.9.1" | ||
"@aws-cdk/aws-iam": "^0.9.2", | ||
"@aws-cdk/cdk": "^0.9.2", | ||
"@aws-cdk/util": "^0.9.2" | ||
}, | ||
@@ -67,0 +67,0 @@ "bundledDependencies": [ |
@@ -44,3 +44,2 @@ ## AWS Compute and Networking Construct Library | ||
subnetType: SubnetType.Public, | ||
natGateway: true, | ||
}, | ||
@@ -47,0 +46,0 @@ { |
@@ -30,3 +30,3 @@ "use strict"; | ||
const somethingConnectable = new SomethingConnectable(new lib_1.Connections({ securityGroup: sg1 })); | ||
const securityGroup = lib_1.SecurityGroupRef.import(stack, 'ImportedSG', { securityGroupId: new lib_1.SecurityGroupId('sg-12345') }); | ||
const securityGroup = lib_1.SecurityGroupRef.import(stack, 'ImportedSG', { securityGroupId: 'sg-12345' }); | ||
// WHEN | ||
@@ -55,2 +55,2 @@ somethingConnectable.connections.allowTo(securityGroup, new lib_1.TcpAllPorts(), 'Connect there'); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5jb25uZWN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QuY29ubmVjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUF1RDtBQUN2RCxzQ0FBcUM7QUFFckMsZ0NBQXVJO0FBeUR2SSxNQUFNLG9CQUFvQjtJQUN0QixZQUE0QixXQUF3QjtRQUF4QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtJQUNwRCxDQUFDO0NBQ0o7QUExREQsaUJBQVM7SUFDTCxtRUFBbUUsQ0FBQyxJQUFVO1FBQzFFLFFBQVE7UUFDUixNQUFNLEtBQUssR0FBRyxJQUFJLFdBQUssQ0FBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLEVBQUUsR0FBRyxFQUFFLEVBQUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsT0FBTyxFQUFFLEVBQUMsQ0FBQyxDQUFDO1FBRWxHLE1BQU0sR0FBRyxHQUFHLElBQUksZ0JBQVUsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDekMsTUFBTSxHQUFHLEdBQUcsSUFBSSxtQkFBYSxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQ3JELE1BQU0sR0FBRyxHQUFHLElBQUksbUJBQWEsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEV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tZW50cyBJQ29ubmVjdGFibGUge1xuICAgIGNvbnN0cnVjdG9yKHB1YmxpYyByZWFkb25seSBjb25uZWN0aW9uczogQ29ubmVjdGlvbnMpIHtcbiAgICB9XG59XG4iXX0= |
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
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
2163071
12547
258
Updated@aws-cdk/aws-iam@^0.9.2
Updated@aws-cdk/cdk@^0.9.2
Updated@aws-cdk/util@^0.9.2