-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
31 lines (25 loc) · 978 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Input, Output, ComponentResource, ComponentResourceOptions } from "@pulumi/pulumi";
export interface NetworkArgs {
vpcCidrBlock: Input<string>;
publicSubnetCidrBlocks: Input<string>[];
tags?: {};
};
export interface WebServerArgs {
networkId: Input<string>;
subnetId: Input<string>;
tags?: {};
}
export abstract class Network extends ComponentResource {
abstract getNetworkId(): Output<string>;
abstract getPublicSubnetIds(): Output<string>[];
constructor(componentName: string, name: string, args: NetworkArgs, opts?: ComponentResourceOptions) {
super(componentName, name, args, opts);
};
}
export abstract class WebServer extends ComponentResource {
abstract getInstanceId(): Output<string>;
abstract getInstanceAddress(): Output<string>;
constructor(componentName: string, name: string, args: WebServerArgs, opts?: ComponentResourceOptions) {
super(componentName, name, args, opts);
};
}