@pulumi/linode 4.9.0-alpha.1700200497 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vpcSubnet.d.ts ADDED
@@ -0,0 +1,116 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages a Linode VPC subnet.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * Create a VPC subnet:
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as linode from "@pulumi/linode";
14
+ *
15
+ * const test = new linode.VpcSubnet("test", {
16
+ * ipv4: "10.0.0.0/24",
17
+ * label: "test-subnet",
18
+ * vpcId: 123,
19
+ * });
20
+ * ```
21
+ */
22
+ export declare class VpcSubnet extends pulumi.CustomResource {
23
+ /**
24
+ * Get an existing VpcSubnet resource's state with the given name, ID, and optional extra
25
+ * properties used to qualify the lookup.
26
+ *
27
+ * @param name The _unique_ name of the resulting resource.
28
+ * @param id The _unique_ provider ID of the resource to lookup.
29
+ * @param state Any extra arguments used during the lookup.
30
+ * @param opts Optional settings to control the behavior of the CustomResource.
31
+ */
32
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VpcSubnetState, opts?: pulumi.CustomResourceOptions): VpcSubnet;
33
+ /**
34
+ * Returns true if the given object is an instance of VpcSubnet. This is designed to work even
35
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
36
+ */
37
+ static isInstance(obj: any): obj is VpcSubnet;
38
+ /**
39
+ * The date and time when the VPC was created.
40
+ */
41
+ readonly created: pulumi.Output<string>;
42
+ /**
43
+ * The IPv4 range of this subnet in CIDR format.
44
+ */
45
+ readonly ipv4: pulumi.Output<string>;
46
+ /**
47
+ * The label of the VPC. Only contains ASCII letters, digits and dashes.
48
+ */
49
+ readonly label: pulumi.Output<string>;
50
+ /**
51
+ * A list of Linode IDs that added to this subnet.
52
+ */
53
+ readonly linodes: pulumi.Output<outputs.VpcSubnetLinode[]>;
54
+ /**
55
+ * The date and time when the VPC was last updated.
56
+ */
57
+ readonly updated: pulumi.Output<string>;
58
+ /**
59
+ * The id of the parent VPC for this VPC Subnet.
60
+ */
61
+ readonly vpcId: pulumi.Output<number>;
62
+ /**
63
+ * Create a VpcSubnet resource with the given unique name, arguments, and options.
64
+ *
65
+ * @param name The _unique_ name of the resource.
66
+ * @param args The arguments to use to populate this resource's properties.
67
+ * @param opts A bag of options that control this resource's behavior.
68
+ */
69
+ constructor(name: string, args: VpcSubnetArgs, opts?: pulumi.CustomResourceOptions);
70
+ }
71
+ /**
72
+ * Input properties used for looking up and filtering VpcSubnet resources.
73
+ */
74
+ export interface VpcSubnetState {
75
+ /**
76
+ * The date and time when the VPC was created.
77
+ */
78
+ created?: pulumi.Input<string>;
79
+ /**
80
+ * The IPv4 range of this subnet in CIDR format.
81
+ */
82
+ ipv4?: pulumi.Input<string>;
83
+ /**
84
+ * The label of the VPC. Only contains ASCII letters, digits and dashes.
85
+ */
86
+ label?: pulumi.Input<string>;
87
+ /**
88
+ * A list of Linode IDs that added to this subnet.
89
+ */
90
+ linodes?: pulumi.Input<pulumi.Input<inputs.VpcSubnetLinode>[]>;
91
+ /**
92
+ * The date and time when the VPC was last updated.
93
+ */
94
+ updated?: pulumi.Input<string>;
95
+ /**
96
+ * The id of the parent VPC for this VPC Subnet.
97
+ */
98
+ vpcId?: pulumi.Input<number>;
99
+ }
100
+ /**
101
+ * The set of arguments for constructing a VpcSubnet resource.
102
+ */
103
+ export interface VpcSubnetArgs {
104
+ /**
105
+ * The IPv4 range of this subnet in CIDR format.
106
+ */
107
+ ipv4: pulumi.Input<string>;
108
+ /**
109
+ * The label of the VPC. Only contains ASCII letters, digits and dashes.
110
+ */
111
+ label: pulumi.Input<string>;
112
+ /**
113
+ * The id of the parent VPC for this VPC Subnet.
114
+ */
115
+ vpcId: pulumi.Input<number>;
116
+ }
package/vpcSubnet.js ADDED
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.VpcSubnet = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages a Linode VPC subnet.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * Create a VPC subnet:
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const test = new linode.VpcSubnet("test", {
20
+ * ipv4: "10.0.0.0/24",
21
+ * label: "test-subnet",
22
+ * vpcId: 123,
23
+ * });
24
+ * ```
25
+ */
26
+ class VpcSubnet extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing VpcSubnet resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name, id, state, opts) {
37
+ return new VpcSubnet(name, state, Object.assign(Object.assign({}, opts), { id: id }));
38
+ }
39
+ /**
40
+ * Returns true if the given object is an instance of VpcSubnet. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj) {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === VpcSubnet.__pulumiType;
48
+ }
49
+ constructor(name, argsOrState, opts) {
50
+ let resourceInputs = {};
51
+ opts = opts || {};
52
+ if (opts.id) {
53
+ const state = argsOrState;
54
+ resourceInputs["created"] = state ? state.created : undefined;
55
+ resourceInputs["ipv4"] = state ? state.ipv4 : undefined;
56
+ resourceInputs["label"] = state ? state.label : undefined;
57
+ resourceInputs["linodes"] = state ? state.linodes : undefined;
58
+ resourceInputs["updated"] = state ? state.updated : undefined;
59
+ resourceInputs["vpcId"] = state ? state.vpcId : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ if ((!args || args.ipv4 === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'ipv4'");
65
+ }
66
+ if ((!args || args.label === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'label'");
68
+ }
69
+ if ((!args || args.vpcId === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'vpcId'");
71
+ }
72
+ resourceInputs["ipv4"] = args ? args.ipv4 : undefined;
73
+ resourceInputs["label"] = args ? args.label : undefined;
74
+ resourceInputs["vpcId"] = args ? args.vpcId : undefined;
75
+ resourceInputs["created"] = undefined /*out*/;
76
+ resourceInputs["linodes"] = undefined /*out*/;
77
+ resourceInputs["updated"] = undefined /*out*/;
78
+ }
79
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
80
+ super(VpcSubnet.__pulumiType, name, resourceInputs, opts);
81
+ }
82
+ }
83
+ exports.VpcSubnet = VpcSubnet;
84
+ /** @internal */
85
+ VpcSubnet.__pulumiType = 'linode:index/vpcSubnet:VpcSubnet';
86
+ //# sourceMappingURL=vpcSubnet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vpcSubnet.js","sourceRoot":"","sources":["../vpcSubnet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IA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