@pulumi/openstack 5.1.0-alpha.1744698012 → 5.1.0-alpha.1744986220

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.
Files changed (75) hide show
  1. package/bgpvpn/index.d.ts +12 -0
  2. package/bgpvpn/index.js +37 -0
  3. package/bgpvpn/index.js.map +1 -0
  4. package/bgpvpn/networkAssociateV2.d.ts +135 -0
  5. package/bgpvpn/networkAssociateV2.js +90 -0
  6. package/bgpvpn/networkAssociateV2.js.map +1 -0
  7. package/bgpvpn/portAssociateV2.d.ts +174 -0
  8. package/bgpvpn/portAssociateV2.js +104 -0
  9. package/bgpvpn/portAssociateV2.js.map +1 -0
  10. package/bgpvpn/routerAssociateV2.d.ts +150 -0
  11. package/bgpvpn/routerAssociateV2.js +92 -0
  12. package/bgpvpn/routerAssociateV2.js.map +1 -0
  13. package/bgpvpn/v2.d.ts +255 -0
  14. package/bgpvpn/v2.js +105 -0
  15. package/bgpvpn/v2.js.map +1 -0
  16. package/bgpvpnNetworkAssociateV2.d.ts +4 -1
  17. package/bgpvpnNetworkAssociateV2.js +6 -1
  18. package/bgpvpnNetworkAssociateV2.js.map +1 -1
  19. package/bgpvpnPortAssociateV2.d.ts +4 -1
  20. package/bgpvpnPortAssociateV2.js +6 -1
  21. package/bgpvpnPortAssociateV2.js.map +1 -1
  22. package/bgpvpnRouterAssociateV2.d.ts +4 -1
  23. package/bgpvpnRouterAssociateV2.js +6 -1
  24. package/bgpvpnRouterAssociateV2.js.map +1 -1
  25. package/bgpvpnV2.d.ts +4 -1
  26. package/bgpvpnV2.js +6 -1
  27. package/bgpvpnV2.js.map +1 -1
  28. package/firewall/getGroupV2.d.ts +194 -0
  29. package/firewall/getGroupV2.js +72 -0
  30. package/firewall/getGroupV2.js.map +1 -0
  31. package/firewall/getPolicyV2.d.ts +155 -0
  32. package/firewall/getPolicyV2.js +66 -0
  33. package/firewall/getPolicyV2.js.map +1 -0
  34. package/firewall/getRuleV2.d.ts +258 -0
  35. package/firewall/getRuleV2.js +82 -0
  36. package/firewall/getRuleV2.js.map +1 -0
  37. package/firewall/index.d.ts +9 -0
  38. package/firewall/index.js +10 -1
  39. package/firewall/index.js.map +1 -1
  40. package/getFwGroupV2.d.ts +4 -2
  41. package/getFwGroupV2.js +6 -2
  42. package/getFwGroupV2.js.map +1 -1
  43. package/getFwPolicyV2.d.ts +4 -2
  44. package/getFwPolicyV2.js +6 -2
  45. package/getFwPolicyV2.js.map +1 -1
  46. package/getFwRuleV2.d.ts +4 -2
  47. package/getFwRuleV2.js +6 -2
  48. package/getFwRuleV2.js.map +1 -1
  49. package/index.d.ts +2 -1
  50. package/index.js +3 -1
  51. package/index.js.map +1 -1
  52. package/lbFlavorprofileV2.d.ts +5 -2
  53. package/lbFlavorprofileV2.js +7 -2
  54. package/lbFlavorprofileV2.js.map +1 -1
  55. package/lbLoadbalancerV2.d.ts +4 -1
  56. package/lbLoadbalancerV2.js +6 -3
  57. package/lbLoadbalancerV2.js.map +1 -1
  58. package/loadbalancer/flavorprofileV2.d.ts +133 -0
  59. package/loadbalancer/flavorprofileV2.js +106 -0
  60. package/loadbalancer/flavorprofileV2.js.map +1 -0
  61. package/loadbalancer/index.d.ts +6 -0
  62. package/loadbalancer/index.js +11 -1
  63. package/loadbalancer/index.js.map +1 -1
  64. package/loadbalancer/l7policyV2.d.ts +1 -1
  65. package/loadbalancer/l7policyV2.js +1 -1
  66. package/loadbalancer/l7ruleV2.d.ts +1 -1
  67. package/loadbalancer/l7ruleV2.js +1 -1
  68. package/loadbalancer/listener.d.ts +1 -1
  69. package/loadbalancer/listener.js +1 -1
  70. package/loadbalancer/loadBalancer.d.ts +317 -0
  71. package/loadbalancer/loadBalancer.js +102 -0
  72. package/loadbalancer/loadBalancer.js.map +1 -0
  73. package/package.json +2 -2
  74. package/types/input.d.ts +25 -0
  75. package/types/output.d.ts +25 -0
@@ -0,0 +1,12 @@
1
+ export { NetworkAssociateV2Args, NetworkAssociateV2State } from "./networkAssociateV2";
2
+ export type NetworkAssociateV2 = import("./networkAssociateV2").NetworkAssociateV2;
3
+ export declare const NetworkAssociateV2: typeof import("./networkAssociateV2").NetworkAssociateV2;
4
+ export { PortAssociateV2Args, PortAssociateV2State } from "./portAssociateV2";
5
+ export type PortAssociateV2 = import("./portAssociateV2").PortAssociateV2;
6
+ export declare const PortAssociateV2: typeof import("./portAssociateV2").PortAssociateV2;
7
+ export { RouterAssociateV2Args, RouterAssociateV2State } from "./routerAssociateV2";
8
+ export type RouterAssociateV2 = import("./routerAssociateV2").RouterAssociateV2;
9
+ export declare const RouterAssociateV2: typeof import("./routerAssociateV2").RouterAssociateV2;
10
+ export { V2Args, V2State } from "./v2";
11
+ export type V2 = import("./v2").V2;
12
+ export declare const V2: typeof import("./v2").V2;
@@ -0,0 +1,37 @@
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.V2 = exports.RouterAssociateV2 = exports.PortAssociateV2 = exports.NetworkAssociateV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ exports.NetworkAssociateV2 = null;
9
+ utilities.lazyLoad(exports, ["NetworkAssociateV2"], () => require("./networkAssociateV2"));
10
+ exports.PortAssociateV2 = null;
11
+ utilities.lazyLoad(exports, ["PortAssociateV2"], () => require("./portAssociateV2"));
12
+ exports.RouterAssociateV2 = null;
13
+ utilities.lazyLoad(exports, ["RouterAssociateV2"], () => require("./routerAssociateV2"));
14
+ exports.V2 = null;
15
+ utilities.lazyLoad(exports, ["V2"], () => require("./v2"));
16
+ const _module = {
17
+ version: utilities.getVersion(),
18
+ construct: (name, type, urn) => {
19
+ switch (type) {
20
+ case "openstack:bgpvpn/networkAssociateV2:NetworkAssociateV2":
21
+ return new exports.NetworkAssociateV2(name, undefined, { urn });
22
+ case "openstack:bgpvpn/portAssociateV2:PortAssociateV2":
23
+ return new exports.PortAssociateV2(name, undefined, { urn });
24
+ case "openstack:bgpvpn/routerAssociateV2:RouterAssociateV2":
25
+ return new exports.RouterAssociateV2(name, undefined, { urn });
26
+ case "openstack:bgpvpn/v2:V2":
27
+ return new exports.V2(name, undefined, { urn });
28
+ default:
29
+ throw new Error(`unknown resource type ${type}`);
30
+ }
31
+ },
32
+ };
33
+ pulumi.runtime.registerResourceModule("openstack", "bgpvpn/networkAssociateV2", _module);
34
+ pulumi.runtime.registerResourceModule("openstack", "bgpvpn/portAssociateV2", _module);
35
+ pulumi.runtime.registerResourceModule("openstack", "bgpvpn/routerAssociateV2", _module);
36
+ pulumi.runtime.registerResourceModule("openstack", "bgpvpn/v2", _module);
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../bgpvpn/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,kBAAkB,GAA6D,IAAW,CAAC;AACxG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAI9E,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAIxE,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAI5E,QAAA,EAAE,GAA6B,IAAW,CAAC;AACxD,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE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## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as openstack from "@pulumi/openstack";
10
+ *
11
+ * const association1 = new openstack.bgpvpn.NetworkAssociateV2("association_1", {
12
+ * bgpvpnId: "e7189337-5684-46ee-bcb1-44f1a57066c9",
13
+ * networkId: "de83d56c-4d2f-44f7-ac24-af393252204f",
14
+ * });
15
+ * ```
16
+ *
17
+ * ## Import
18
+ *
19
+ * BGP VPN network associations can be imported using the BGP VPN ID and BGP VPN
20
+ *
21
+ * network association ID separated by a slash, e.g.:
22
+ *
23
+ * hcl
24
+ *
25
+ * ```sh
26
+ * $ pulumi import openstack:bgpvpn/networkAssociateV2:NetworkAssociateV2 association_1 2145aaa9-edaa-44fb-9815-e47a96677a72/67bb952a-f9d1-4fc8-ae84-082253a879d4
27
+ * ```
28
+ */
29
+ export declare class NetworkAssociateV2 extends pulumi.CustomResource {
30
+ /**
31
+ * Get an existing NetworkAssociateV2 resource's state with the given name, ID, and optional extra
32
+ * properties used to qualify the lookup.
33
+ *
34
+ * @param name The _unique_ name of the resulting resource.
35
+ * @param id The _unique_ provider ID of the resource to lookup.
36
+ * @param state Any extra arguments used during the lookup.
37
+ * @param opts Optional settings to control the behavior of the CustomResource.
38
+ */
39
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NetworkAssociateV2State, opts?: pulumi.CustomResourceOptions): NetworkAssociateV2;
40
+ /**
41
+ * Returns true if the given object is an instance of NetworkAssociateV2. This is designed to work even
42
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
+ */
44
+ static isInstance(obj: any): obj is NetworkAssociateV2;
45
+ /**
46
+ * The ID of the BGP VPN to which the network will be
47
+ * associated. Changing this creates a new BGP VPN network association
48
+ */
49
+ readonly bgpvpnId: pulumi.Output<string>;
50
+ /**
51
+ * The ID of the network to be associated with the BGP
52
+ * VPN. Changing this creates a new BGP VPN network association.
53
+ */
54
+ readonly networkId: pulumi.Output<string>;
55
+ /**
56
+ * The ID of the project that owns the BGP VPN network
57
+ * association. Only administrative and users with `advsvc` role can specify a
58
+ * project ID other than their own. Changing this creates a new BGP VPN network
59
+ * association.
60
+ */
61
+ readonly projectId: pulumi.Output<string>;
62
+ /**
63
+ * The region in which to obtain the V2 Networking client.
64
+ * A Networking client is needed to create a BGP VPN network association. If
65
+ * omitted, the `region` argument of the provider is used. Changing this creates
66
+ * a new BGP VPN network association.
67
+ */
68
+ readonly region: pulumi.Output<string>;
69
+ /**
70
+ * Create a NetworkAssociateV2 resource with the given unique name, arguments, and options.
71
+ *
72
+ * @param name The _unique_ name of the resource.
73
+ * @param args The arguments to use to populate this resource's properties.
74
+ * @param opts A bag of options that control this resource's behavior.
75
+ */
76
+ constructor(name: string, args: NetworkAssociateV2Args, opts?: pulumi.CustomResourceOptions);
77
+ }
78
+ /**
79
+ * Input properties used for looking up and filtering NetworkAssociateV2 resources.
80
+ */
81
+ export interface NetworkAssociateV2State {
82
+ /**
83
+ * The ID of the BGP VPN to which the network will be
84
+ * associated. Changing this creates a new BGP VPN network association
85
+ */
86
+ bgpvpnId?: pulumi.Input<string>;
87
+ /**
88
+ * The ID of the network to be associated with the BGP
89
+ * VPN. Changing this creates a new BGP VPN network association.
90
+ */
91
+ networkId?: pulumi.Input<string>;
92
+ /**
93
+ * The ID of the project that owns the BGP VPN network
94
+ * association. Only administrative and users with `advsvc` role can specify a
95
+ * project ID other than their own. Changing this creates a new BGP VPN network
96
+ * association.
97
+ */
98
+ projectId?: pulumi.Input<string>;
99
+ /**
100
+ * The region in which to obtain the V2 Networking client.
101
+ * A Networking client is needed to create a BGP VPN network association. If
102
+ * omitted, the `region` argument of the provider is used. Changing this creates
103
+ * a new BGP VPN network association.
104
+ */
105
+ region?: pulumi.Input<string>;
106
+ }
107
+ /**
108
+ * The set of arguments for constructing a NetworkAssociateV2 resource.
109
+ */
110
+ export interface NetworkAssociateV2Args {
111
+ /**
112
+ * The ID of the BGP VPN to which the network will be
113
+ * associated. Changing this creates a new BGP VPN network association
114
+ */
115
+ bgpvpnId: pulumi.Input<string>;
116
+ /**
117
+ * The ID of the network to be associated with the BGP
118
+ * VPN. Changing this creates a new BGP VPN network association.
119
+ */
120
+ networkId: pulumi.Input<string>;
121
+ /**
122
+ * The ID of the project that owns the BGP VPN network
123
+ * association. Only administrative and users with `advsvc` role can specify a
124
+ * project ID other than their own. Changing this creates a new BGP VPN network
125
+ * association.
126
+ */
127
+ projectId?: pulumi.Input<string>;
128
+ /**
129
+ * The region in which to obtain the V2 Networking client.
130
+ * A Networking client is needed to create a BGP VPN network association. If
131
+ * omitted, the `region` argument of the provider is used. Changing this creates
132
+ * a new BGP VPN network association.
133
+ */
134
+ region?: pulumi.Input<string>;
135
+ }
@@ -0,0 +1,90 @@
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.NetworkAssociateV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a V2 BGP VPN network association resource within OpenStack.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as openstack from "@pulumi/openstack";
16
+ *
17
+ * const association1 = new openstack.bgpvpn.NetworkAssociateV2("association_1", {
18
+ * bgpvpnId: "e7189337-5684-46ee-bcb1-44f1a57066c9",
19
+ * networkId: "de83d56c-4d2f-44f7-ac24-af393252204f",
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * BGP VPN network associations can be imported using the BGP VPN ID and BGP VPN
26
+ *
27
+ * network association ID separated by a slash, e.g.:
28
+ *
29
+ * hcl
30
+ *
31
+ * ```sh
32
+ * $ pulumi import openstack:bgpvpn/networkAssociateV2:NetworkAssociateV2 association_1 2145aaa9-edaa-44fb-9815-e47a96677a72/67bb952a-f9d1-4fc8-ae84-082253a879d4
33
+ * ```
34
+ */
35
+ class NetworkAssociateV2 extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing NetworkAssociateV2 resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new NetworkAssociateV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of NetworkAssociateV2. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === NetworkAssociateV2.__pulumiType;
57
+ }
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["bgpvpnId"] = state ? state.bgpvpnId : undefined;
64
+ resourceInputs["networkId"] = state ? state.networkId : undefined;
65
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
66
+ resourceInputs["region"] = state ? state.region : undefined;
67
+ }
68
+ else {
69
+ const args = argsOrState;
70
+ if ((!args || args.bgpvpnId === undefined) && !opts.urn) {
71
+ throw new Error("Missing required property 'bgpvpnId'");
72
+ }
73
+ if ((!args || args.networkId === undefined) && !opts.urn) {
74
+ throw new Error("Missing required property 'networkId'");
75
+ }
76
+ resourceInputs["bgpvpnId"] = args ? args.bgpvpnId : undefined;
77
+ resourceInputs["networkId"] = args ? args.networkId : undefined;
78
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
79
+ resourceInputs["region"] = args ? args.region : undefined;
80
+ }
81
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
82
+ const aliasOpts = { aliases: [{ type: "openstack:index/bgpvpnNetworkAssociateV2:BgpvpnNetworkAssociateV2" }] };
83
+ opts = pulumi.mergeOptions(opts, aliasOpts);
84
+ super(NetworkAssociateV2.__pulumiType, name, resourceInputs, opts);
85
+ }
86
+ }
87
+ exports.NetworkAssociateV2 = NetworkAssociateV2;
88
+ /** @internal */
89
+ NetworkAssociateV2.__pulumiType = 'openstack:bgpvpn/networkAssociateV2:NetworkAssociateV2';
90
+ //# sourceMappingURL=networkAssociateV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkAssociateV2.js","sourceRoot":"","sources":["../../bgpvpn/networkAssociateV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,UAAU,CAAC,G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QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,mEAAmE,EAAE,CAAC,EAAE,CAAC;QAC/G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAvFL,gDAwFC;AA1EG,gBAAgB;AACO,+BAAY,GAAG,wDAAwD,CAAC"}
@@ -0,0 +1,174 @@
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 V2 BGP VPN port association resource within OpenStack.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as openstack from "@pulumi/openstack";
12
+ *
13
+ * const association1 = new openstack.bgpvpn.PortAssociateV2("association_1", {
14
+ * bgpvpnId: "19382ec5-8098-47d9-a9c6-6270c91103f4",
15
+ * portId: "b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f",
16
+ * routes: [
17
+ * {
18
+ * type: "prefix",
19
+ * prefix: "192.168.170.1/32",
20
+ * },
21
+ * {
22
+ * type: "bgpvpn",
23
+ * bgpvpnId: "35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c",
24
+ * },
25
+ * ],
26
+ * });
27
+ * ```
28
+ *
29
+ * ## Import
30
+ *
31
+ * BGP VPN port associations can be imported using the BGP VPN ID and BGP VPN port
32
+ *
33
+ * association ID separated by a slash, e.g.:
34
+ *
35
+ * hcl
36
+ *
37
+ * ```sh
38
+ * $ pulumi import openstack:bgpvpn/portAssociateV2:PortAssociateV2 association_1 5bb44ecf-f8fe-4d75-8fc5-313f96ee2696/8f8fc660-3f28-414e-896a-0c7c51162fcf
39
+ * ```
40
+ */
41
+ export declare class PortAssociateV2 extends pulumi.CustomResource {
42
+ /**
43
+ * Get an existing PortAssociateV2 resource's state with the given name, ID, and optional extra
44
+ * properties used to qualify the lookup.
45
+ *
46
+ * @param name The _unique_ name of the resulting resource.
47
+ * @param id The _unique_ provider ID of the resource to lookup.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PortAssociateV2State, opts?: pulumi.CustomResourceOptions): PortAssociateV2;
52
+ /**
53
+ * Returns true if the given object is an instance of PortAssociateV2. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj: any): obj is PortAssociateV2;
57
+ /**
58
+ * A boolean flag indicating whether fixed
59
+ * IPs should be advertised. Defaults to true.
60
+ */
61
+ readonly advertiseFixedIps: pulumi.Output<boolean>;
62
+ /**
63
+ * The ID of the BGP VPN to which the port will be
64
+ * associated. Changing this creates a new BGP VPN port association.
65
+ */
66
+ readonly bgpvpnId: pulumi.Output<string>;
67
+ /**
68
+ * The ID of the port to be associated with the BGP VPN.
69
+ * Changing this creates a new BGP VPN port association.
70
+ */
71
+ readonly portId: pulumi.Output<string>;
72
+ /**
73
+ * The ID of the project that owns the port
74
+ * association. Only administrative and users with `advsvc` role can specify a
75
+ * project ID other than their own. Changing this creates a new BGP VPN port
76
+ * association.
77
+ */
78
+ readonly projectId: pulumi.Output<string>;
79
+ /**
80
+ * The region in which to obtain the V2 Networking client.
81
+ * A Networking client is needed to create a BGP VPN port association. If
82
+ * omitted, the `region` argument of the provider is used. Changing this creates
83
+ * a new BGP VPN port association.
84
+ */
85
+ readonly region: pulumi.Output<string>;
86
+ /**
87
+ * A list of dictionaries containing the following keys:
88
+ */
89
+ readonly routes: pulumi.Output<outputs.bgpvpn.PortAssociateV2Route[] | undefined>;
90
+ /**
91
+ * Create a PortAssociateV2 resource with the given unique name, arguments, and options.
92
+ *
93
+ * @param name The _unique_ name of the resource.
94
+ * @param args The arguments to use to populate this resource's properties.
95
+ * @param opts A bag of options that control this resource's behavior.
96
+ */
97
+ constructor(name: string, args: PortAssociateV2Args, opts?: pulumi.CustomResourceOptions);
98
+ }
99
+ /**
100
+ * Input properties used for looking up and filtering PortAssociateV2 resources.
101
+ */
102
+ export interface PortAssociateV2State {
103
+ /**
104
+ * A boolean flag indicating whether fixed
105
+ * IPs should be advertised. Defaults to true.
106
+ */
107
+ advertiseFixedIps?: pulumi.Input<boolean>;
108
+ /**
109
+ * The ID of the BGP VPN to which the port will be
110
+ * associated. Changing this creates a new BGP VPN port association.
111
+ */
112
+ bgpvpnId?: pulumi.Input<string>;
113
+ /**
114
+ * The ID of the port to be associated with the BGP VPN.
115
+ * Changing this creates a new BGP VPN port association.
116
+ */
117
+ portId?: pulumi.Input<string>;
118
+ /**
119
+ * The ID of the project that owns the port
120
+ * association. Only administrative and users with `advsvc` role can specify a
121
+ * project ID other than their own. Changing this creates a new BGP VPN port
122
+ * association.
123
+ */
124
+ projectId?: pulumi.Input<string>;
125
+ /**
126
+ * The region in which to obtain the V2 Networking client.
127
+ * A Networking client is needed to create a BGP VPN port association. If
128
+ * omitted, the `region` argument of the provider is used. Changing this creates
129
+ * a new BGP VPN port association.
130
+ */
131
+ region?: pulumi.Input<string>;
132
+ /**
133
+ * A list of dictionaries containing the following keys:
134
+ */
135
+ routes?: pulumi.Input<pulumi.Input<inputs.bgpvpn.PortAssociateV2Route>[]>;
136
+ }
137
+ /**
138
+ * The set of arguments for constructing a PortAssociateV2 resource.
139
+ */
140
+ export interface PortAssociateV2Args {
141
+ /**
142
+ * A boolean flag indicating whether fixed
143
+ * IPs should be advertised. Defaults to true.
144
+ */
145
+ advertiseFixedIps?: pulumi.Input<boolean>;
146
+ /**
147
+ * The ID of the BGP VPN to which the port will be
148
+ * associated. Changing this creates a new BGP VPN port association.
149
+ */
150
+ bgpvpnId: pulumi.Input<string>;
151
+ /**
152
+ * The ID of the port to be associated with the BGP VPN.
153
+ * Changing this creates a new BGP VPN port association.
154
+ */
155
+ portId: pulumi.Input<string>;
156
+ /**
157
+ * The ID of the project that owns the port
158
+ * association. Only administrative and users with `advsvc` role can specify a
159
+ * project ID other than their own. Changing this creates a new BGP VPN port
160
+ * association.
161
+ */
162
+ projectId?: pulumi.Input<string>;
163
+ /**
164
+ * The region in which to obtain the V2 Networking client.
165
+ * A Networking client is needed to create a BGP VPN port association. If
166
+ * omitted, the `region` argument of the provider is used. Changing this creates
167
+ * a new BGP VPN port association.
168
+ */
169
+ region?: pulumi.Input<string>;
170
+ /**
171
+ * A list of dictionaries containing the following keys:
172
+ */
173
+ routes?: pulumi.Input<pulumi.Input<inputs.bgpvpn.PortAssociateV2Route>[]>;
174
+ }
@@ -0,0 +1,104 @@
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.PortAssociateV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a V2 BGP VPN port association resource within OpenStack.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as openstack from "@pulumi/openstack";
16
+ *
17
+ * const association1 = new openstack.bgpvpn.PortAssociateV2("association_1", {
18
+ * bgpvpnId: "19382ec5-8098-47d9-a9c6-6270c91103f4",
19
+ * portId: "b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f",
20
+ * routes: [
21
+ * {
22
+ * type: "prefix",
23
+ * prefix: "192.168.170.1/32",
24
+ * },
25
+ * {
26
+ * type: "bgpvpn",
27
+ * bgpvpnId: "35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c",
28
+ * },
29
+ * ],
30
+ * });
31
+ * ```
32
+ *
33
+ * ## Import
34
+ *
35
+ * BGP VPN port associations can be imported using the BGP VPN ID and BGP VPN port
36
+ *
37
+ * association ID separated by a slash, e.g.:
38
+ *
39
+ * hcl
40
+ *
41
+ * ```sh
42
+ * $ pulumi import openstack:bgpvpn/portAssociateV2:PortAssociateV2 association_1 5bb44ecf-f8fe-4d75-8fc5-313f96ee2696/8f8fc660-3f28-414e-896a-0c7c51162fcf
43
+ * ```
44
+ */
45
+ class PortAssociateV2 extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing PortAssociateV2 resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param state Any extra arguments used during the lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name, id, state, opts) {
56
+ return new PortAssociateV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
57
+ }
58
+ /**
59
+ * Returns true if the given object is an instance of PortAssociateV2. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj) {
63
+ if (obj === undefined || obj === null) {
64
+ return false;
65
+ }
66
+ return obj['__pulumiType'] === PortAssociateV2.__pulumiType;
67
+ }
68
+ constructor(name, argsOrState, opts) {
69
+ let resourceInputs = {};
70
+ opts = opts || {};
71
+ if (opts.id) {
72
+ const state = argsOrState;
73
+ resourceInputs["advertiseFixedIps"] = state ? state.advertiseFixedIps : undefined;
74
+ resourceInputs["bgpvpnId"] = state ? state.bgpvpnId : undefined;
75
+ resourceInputs["portId"] = state ? state.portId : undefined;
76
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
77
+ resourceInputs["region"] = state ? state.region : undefined;
78
+ resourceInputs["routes"] = state ? state.routes : undefined;
79
+ }
80
+ else {
81
+ const args = argsOrState;
82
+ if ((!args || args.bgpvpnId === undefined) && !opts.urn) {
83
+ throw new Error("Missing required property 'bgpvpnId'");
84
+ }
85
+ if ((!args || args.portId === undefined) && !opts.urn) {
86
+ throw new Error("Missing required property 'portId'");
87
+ }
88
+ resourceInputs["advertiseFixedIps"] = args ? args.advertiseFixedIps : undefined;
89
+ resourceInputs["bgpvpnId"] = args ? args.bgpvpnId : undefined;
90
+ resourceInputs["portId"] = args ? args.portId : undefined;
91
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
92
+ resourceInputs["region"] = args ? args.region : undefined;
93
+ resourceInputs["routes"] = args ? args.routes : undefined;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ const aliasOpts = { aliases: [{ type: "openstack:index/bgpvpnPortAssociateV2:BgpvpnPortAssociateV2" }] };
97
+ opts = pulumi.mergeOptions(opts, aliasOpts);
98
+ super(PortAssociateV2.__pulumiType, name, resourceInputs, opts);
99
+ }
100
+ }
101
+ exports.PortAssociateV2 = PortAssociateV2;
102
+ /** @internal */
103
+ PortAssociateV2.__pulumiType = 'openstack:bgpvpn/portAssociateV2:PortAssociateV2';
104
+ //# sourceMappingURL=portAssociateV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portAssociateV2.js","sourceRoot":"","sources":["../../bgpvpn/portAssociateV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ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