@pulumi/scm 1.0.0-alpha.1762562132 → 1.0.0-alpha.1762572739
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/address.d.ts +3 -3
- package/address.js +3 -3
- package/addressGroup.d.ts +2 -2
- package/addressGroup.js +2 -2
- package/{aggregateEthernetInterface.d.ts → aggregateInterface.d.ts} +26 -24
- package/{aggregateEthernetInterface.js → aggregateInterface.js} +13 -11
- package/aggregateInterface.js.map +1 -0
- package/antiSpywareSignature.d.ts +3 -3
- package/appOverrideRule.d.ts +128 -3
- package/appOverrideRule.js +95 -0
- package/appOverrideRule.js.map +1 -1
- package/applicationFilter.d.ts +16 -0
- package/applicationFilter.js +16 -0
- package/applicationFilter.js.map +1 -1
- package/authenticationRule.d.ts +123 -0
- package/authenticationRule.js +103 -0
- package/authenticationRule.js.map +1 -1
- package/bgpRouteMapRedistribution.d.ts +6 -6
- package/certificateProfile.d.ts +29 -0
- package/certificateProfile.js +29 -0
- package/certificateProfile.js.map +1 -1
- package/decryptionProfile.d.ts +139 -0
- package/decryptionProfile.js +139 -0
- package/decryptionProfile.js.map +1 -1
- package/decryptionRule.d.ts +139 -0
- package/decryptionRule.js +119 -0
- package/decryptionRule.js.map +1 -1
- package/dnsProxy.d.ts +6 -6
- package/dnsSecurityProfile.d.ts +2 -0
- package/dnsSecurityProfile.js +2 -0
- package/dnsSecurityProfile.js.map +1 -1
- package/dynamicUserGroup.d.ts +3 -3
- package/dynamicUserGroup.js +3 -3
- package/ethernetInterface.d.ts +13 -11
- package/ethernetInterface.js +2 -0
- package/ethernetInterface.js.map +1 -1
- package/externalDynamicList.d.ts +80 -0
- package/externalDynamicList.js +80 -0
- package/externalDynamicList.js.map +1 -1
- package/folder.d.ts +60 -0
- package/folder.js +60 -0
- package/folder.js.map +1 -1
- package/getAddressGroupList.d.ts +4 -4
- package/getAddressGroupList.js +4 -4
- package/getAddressList.d.ts +4 -4
- package/getAddressList.js +4 -4
- package/getAggregateInterface.d.ts +116 -0
- package/getAggregateInterface.js +68 -0
- package/getAggregateInterface.js.map +1 -0
- package/{getAggregateEthernetInterfaceList.d.ts → getAggregateInterfaceList.d.ts} +35 -9
- package/getAggregateInterfaceList.js +66 -0
- package/getAggregateInterfaceList.js.map +1 -0
- package/getAntiSpywareProfileList.d.ts +2 -2
- package/getAntiSpywareProfileList.js +2 -2
- package/getAntiSpywareSignature.d.ts +1 -1
- package/getAntiSpywareSignatureList.d.ts +2 -2
- package/getAntiSpywareSignatureList.js +2 -2
- package/getAppOverrideRule.d.ts +65 -1
- package/getAppOverrideRule.js +52 -0
- package/getAppOverrideRule.js.map +1 -1
- package/getAppOverrideRuleList.d.ts +48 -2
- package/getAppOverrideRuleList.js +36 -2
- package/getAppOverrideRuleList.js.map +1 -1
- package/getApplicationGroupList.d.ts +4 -4
- package/getApplicationGroupList.js +4 -4
- package/getApplicationList.d.ts +2 -2
- package/getApplicationList.js +2 -2
- package/getAuthenticationRule.d.ts +74 -0
- package/getAuthenticationRule.js +62 -0
- package/getAuthenticationRule.js.map +1 -1
- package/getAuthenticationRuleList.d.ts +50 -2
- package/getAuthenticationRuleList.js +38 -2
- package/getAuthenticationRuleList.js.map +1 -1
- package/getBgpRouteMapRedistribution.d.ts +7 -7
- package/getCertificateProfileList.d.ts +2 -2
- package/getCertificateProfileList.js +2 -2
- package/getDecryptionProfile.d.ts +40 -0
- package/getDecryptionProfile.js +40 -0
- package/getDecryptionProfile.js.map +1 -1
- package/getDecryptionProfileList.d.ts +32 -0
- package/getDecryptionProfileList.js +32 -0
- package/getDecryptionProfileList.js.map +1 -1
- package/getDecryptionRule.d.ts +74 -0
- package/getDecryptionRule.js +62 -0
- package/getDecryptionRule.js.map +1 -1
- package/getDecryptionRuleList.d.ts +48 -2
- package/getDecryptionRuleList.js +36 -2
- package/getDecryptionRuleList.js.map +1 -1
- package/getDnsProxy.d.ts +1 -1
- package/getDnsSecurityProfile.d.ts +40 -0
- package/getDnsSecurityProfile.js +40 -0
- package/getDnsSecurityProfile.js.map +1 -1
- package/getDnsSecurityProfileList.d.ts +32 -0
- package/getDnsSecurityProfileList.js +32 -0
- package/getDnsSecurityProfileList.js.map +1 -1
- package/getDynamicUserGroupList.d.ts +4 -4
- package/getDynamicUserGroupList.js +4 -4
- package/getEthernetInterface.d.ts +40 -2
- package/getEthernetInterface.js +38 -0
- package/getEthernetInterface.js.map +1 -1
- package/getEthernetInterfaceList.d.ts +26 -0
- package/getEthernetInterfaceList.js +26 -0
- package/getEthernetInterfaceList.js.map +1 -1
- package/getExternalDynamicListList.d.ts +4 -4
- package/getExternalDynamicListList.js +4 -4
- package/getFolder.d.ts +36 -0
- package/getFolder.js +36 -0
- package/getFolder.js.map +1 -1
- package/getHipObjectList.d.ts +4 -4
- package/getHipObjectList.js +4 -4
- package/getHipProfileList.d.ts +4 -4
- package/getHipProfileList.js +4 -4
- package/getInterfaceManagementProfile.d.ts +89 -8
- package/getInterfaceManagementProfile.js +80 -0
- package/getInterfaceManagementProfile.js.map +1 -1
- package/getInterfaceManagementProfileList.d.ts +42 -0
- package/getInterfaceManagementProfileList.js +42 -0
- package/getInterfaceManagementProfileList.js.map +1 -1
- package/getLayer2Subinterface.d.ts +42 -2
- package/getLayer2Subinterface.js +40 -0
- package/getLayer2Subinterface.js.map +1 -1
- package/getLayer2SubinterfaceList.d.ts +26 -0
- package/getLayer2SubinterfaceList.js +26 -0
- package/getLayer2SubinterfaceList.js.map +1 -1
- package/getLayer3Subinterface.d.ts +45 -3
- package/getLayer3Subinterface.js +42 -0
- package/getLayer3Subinterface.js.map +1 -1
- package/getLayer3SubinterfaceList.d.ts +26 -0
- package/getLayer3SubinterfaceList.js +26 -0
- package/getLayer3SubinterfaceList.js.map +1 -1
- package/getLogicalRouter.d.ts +38 -0
- package/getLogicalRouter.js +38 -0
- package/getLogicalRouter.js.map +1 -1
- package/getLogicalRouterList.d.ts +40 -0
- package/getLogicalRouterList.js +30 -0
- package/getLogicalRouterList.js.map +1 -1
- package/getLoopbackInterface.d.ts +49 -7
- package/getLoopbackInterface.js +38 -0
- package/getLoopbackInterface.js.map +1 -1
- package/getLoopbackInterfaceList.d.ts +26 -0
- package/getLoopbackInterfaceList.js +26 -0
- package/getLoopbackInterfaceList.js.map +1 -1
- package/getNatRule.d.ts +86 -14
- package/getNatRule.js +76 -0
- package/getNatRule.js.map +1 -1
- package/getNatRuleList.d.ts +52 -2
- package/getNatRuleList.js +40 -2
- package/getNatRuleList.js.map +1 -1
- package/getPbfRule.d.ts +88 -0
- package/getPbfRule.js +88 -0
- package/getPbfRule.js.map +1 -1
- package/getPbfRuleList.d.ts +34 -0
- package/getPbfRuleList.js +34 -0
- package/getPbfRuleList.js.map +1 -1
- package/getQosPolicyRule.d.ts +72 -0
- package/getQosPolicyRule.js +60 -0
- package/getQosPolicyRule.js.map +1 -1
- package/getQosPolicyRuleList.d.ts +48 -2
- package/getQosPolicyRuleList.js +36 -2
- package/getQosPolicyRuleList.js.map +1 -1
- package/getRadiusServerProfile.d.ts +54 -0
- package/getRadiusServerProfile.js +54 -0
- package/getRadiusServerProfile.js.map +1 -1
- package/getSdwanTrafficDistributionProfile.d.ts +1 -1
- package/getSecurityRule.d.ts +106 -0
- package/getSecurityRule.js +94 -0
- package/getSecurityRule.js.map +1 -1
- package/getSecurityRuleList.d.ts +46 -2
- package/getSecurityRuleList.js +34 -2
- package/getSecurityRuleList.js.map +1 -1
- package/getServiceConnection.d.ts +177 -1
- package/getServiceConnection.js +176 -0
- package/getServiceConnection.js.map +1 -1
- package/getServiceConnectionGroup.d.ts +208 -0
- package/getServiceConnectionGroup.js +208 -0
- package/getServiceConnectionGroup.js.map +1 -1
- package/getServiceGroupList.d.ts +2 -2
- package/getServiceGroupList.js +2 -2
- package/getServiceList.d.ts +4 -4
- package/getServiceList.js +4 -4
- package/getSnippet.d.ts +48 -0
- package/getSnippet.js +48 -0
- package/getSnippet.js.map +1 -1
- package/getSnippetList.d.ts +24 -0
- package/getSnippetList.js +24 -0
- package/getSnippetList.js.map +1 -1
- package/getTagList.d.ts +2 -2
- package/getTagList.js +2 -2
- package/getTunnelInterface.d.ts +42 -4
- package/getTunnelInterface.js +38 -0
- package/getTunnelInterface.js.map +1 -1
- package/getTunnelInterfaceList.d.ts +26 -0
- package/getTunnelInterfaceList.js +26 -0
- package/getTunnelInterfaceList.js.map +1 -1
- package/getUrlAccessProfileList.d.ts +2 -2
- package/getUrlAccessProfileList.js +2 -2
- package/getUrlCategoryList.d.ts +4 -4
- package/getUrlCategoryList.js +4 -4
- package/getVlanInterface.d.ts +46 -6
- package/getVlanInterface.js +40 -0
- package/getVlanInterface.js.map +1 -1
- package/getVlanInterfaceList.d.ts +26 -0
- package/getVlanInterfaceList.js +26 -0
- package/getVlanInterfaceList.js.map +1 -1
- package/getVulnerabilityProtectionProfileList.d.ts +2 -2
- package/getVulnerabilityProtectionProfileList.js +2 -2
- package/getVulnerabilityProtectionSignature.d.ts +41 -1
- package/getVulnerabilityProtectionSignature.js +40 -0
- package/getVulnerabilityProtectionSignature.js.map +1 -1
- package/getVulnerabilityProtectionSignatureList.d.ts +32 -0
- package/getVulnerabilityProtectionSignatureList.js +32 -0
- package/getVulnerabilityProtectionSignatureList.js.map +1 -1
- package/getZone.d.ts +44 -0
- package/getZone.js +44 -0
- package/getZone.js.map +1 -1
- package/getZoneList.d.ts +26 -0
- package/getZoneList.js +26 -0
- package/getZoneList.js.map +1 -1
- package/ikeGateway.d.ts +49 -0
- package/ikeGateway.js +49 -0
- package/ikeGateway.js.map +1 -1
- package/index.d.ts +9 -9
- package/index.js +12 -12
- package/index.js.map +1 -1
- package/interfaceManagementProfile.d.ts +56 -24
- package/interfaceManagementProfile.js +30 -0
- package/interfaceManagementProfile.js.map +1 -1
- package/ipsecCryptoProfile.d.ts +28 -0
- package/ipsecCryptoProfile.js +28 -0
- package/ipsecCryptoProfile.js.map +1 -1
- package/ipsecTunnel.d.ts +66 -0
- package/ipsecTunnel.js +66 -0
- package/ipsecTunnel.js.map +1 -1
- package/layer2Subinterface.d.ts +36 -7
- package/layer2Subinterface.js +32 -0
- package/layer2Subinterface.js.map +1 -1
- package/layer3Subinterface.d.ts +70 -11
- package/layer3Subinterface.js +59 -0
- package/layer3Subinterface.js.map +1 -1
- package/logicalRouter.d.ts +2 -0
- package/logicalRouter.js +2 -0
- package/logicalRouter.js.map +1 -1
- package/loopbackInterface.d.ts +58 -15
- package/loopbackInterface.js +35 -2
- package/loopbackInterface.js.map +1 -1
- package/natRule.d.ts +135 -42
- package/natRule.js +121 -8
- package/natRule.js.map +1 -1
- package/package.json +2 -2
- package/pbfRule.d.ts +89 -0
- package/pbfRule.js +89 -0
- package/pbfRule.js.map +1 -1
- package/qosPolicyRule.d.ts +95 -0
- package/qosPolicyRule.js +75 -0
- package/qosPolicyRule.js.map +1 -1
- package/radiusServerProfile.d.ts +38 -0
- package/radiusServerProfile.js +38 -0
- package/radiusServerProfile.js.map +1 -1
- package/remoteNetwork.d.ts +81 -0
- package/remoteNetwork.js +81 -0
- package/remoteNetwork.js.map +1 -1
- package/sdwanTrafficDistributionProfile.d.ts +4 -4
- package/securityRule.d.ts +181 -0
- package/securityRule.js +161 -0
- package/securityRule.js.map +1 -1
- package/serviceConnection.d.ts +82 -3
- package/serviceConnection.js +81 -2
- package/serviceConnection.js.map +1 -1
- package/serviceConnectionGroup.d.ts +100 -0
- package/serviceConnectionGroup.js +100 -0
- package/serviceConnectionGroup.js.map +1 -1
- package/serviceGroup.d.ts +2 -2
- package/serviceGroup.js +2 -2
- package/snippet.d.ts +23 -0
- package/snippet.js +23 -0
- package/snippet.js.map +1 -1
- package/tag.d.ts +3 -3
- package/tag.js +3 -3
- package/tunnelInterface.d.ts +42 -12
- package/tunnelInterface.js +32 -2
- package/tunnelInterface.js.map +1 -1
- package/types/input.d.ts +607 -335
- package/types/output.d.ts +1945 -1069
- package/vlanInterface.d.ts +40 -20
- package/vlanInterface.js +20 -0
- package/vlanInterface.js.map +1 -1
- package/vulnerabilityProtectionSignature.d.ts +12 -10
- package/vulnerabilityProtectionSignature.js +14 -0
- package/vulnerabilityProtectionSignature.js.map +1 -1
- package/zone.d.ts +71 -0
- package/zone.js +71 -0
- package/zone.js.map +1 -1
- package/aggregateEthernetInterface.js.map +0 -1
- package/getAggregateEthernetInterface.d.ts +0 -78
- package/getAggregateEthernetInterface.js +0 -30
- package/getAggregateEthernetInterface.js.map +0 -1
- package/getAggregateEthernetInterfaceList.js +0 -40
- package/getAggregateEthernetInterfaceList.js.map +0 -1
package/qosPolicyRule.d.ts
CHANGED
|
@@ -3,6 +3,77 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* QosPolicyRule resource
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scm from "@pulumi/scm";
|
|
12
|
+
*
|
|
13
|
+
* // --- 2. ANCHOR QOS POLICY RULE (Used for relative positioning) ---
|
|
14
|
+
* const anchorQosRule = new scm.QosPolicyRule("anchor_qos_rule", {
|
|
15
|
+
* name: "anchor-qos-rule",
|
|
16
|
+
* description: "Base rule for testing 'before' and 'after' positioning.",
|
|
17
|
+
* folder: "All",
|
|
18
|
+
* position: "pre",
|
|
19
|
+
* action: {
|
|
20
|
+
* "class": "2",
|
|
21
|
+
* },
|
|
22
|
+
* schedule: "non-work-hours",
|
|
23
|
+
* dscpTos: {
|
|
24
|
+
* codepoints: [{
|
|
25
|
+
* name: "Set-EF",
|
|
26
|
+
* type: {
|
|
27
|
+
* ef: {},
|
|
28
|
+
* },
|
|
29
|
+
* }],
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* // --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
|
|
33
|
+
* const ruleTopQosRule = new scm.QosPolicyRule("rule_top_qos_rule", {
|
|
34
|
+
* name: "top-absolute-qos-rule",
|
|
35
|
+
* description: "Placed at the very TOP of the QoS rulebase (Highest Priority).",
|
|
36
|
+
* folder: "All",
|
|
37
|
+
* position: "pre",
|
|
38
|
+
* relativePosition: "top",
|
|
39
|
+
* action: {
|
|
40
|
+
* "class": "2",
|
|
41
|
+
* },
|
|
42
|
+
* });
|
|
43
|
+
* const ruleBottomQosRule = new scm.QosPolicyRule("rule_bottom_qos_rule", {
|
|
44
|
+
* name: "bottom-absolute-qos-rule",
|
|
45
|
+
* description: "Placed at the very BOTTOM of the QoS rulebase (Lowest Priority)",
|
|
46
|
+
* folder: "All",
|
|
47
|
+
* position: "pre",
|
|
48
|
+
* relativePosition: "bottom",
|
|
49
|
+
* action: {
|
|
50
|
+
* "class": "3",
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* // --- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
|
|
54
|
+
* const ruleBeforeAnchorQos = new scm.QosPolicyRule("rule_before_anchor_qos", {
|
|
55
|
+
* name: "before-anchor-qos-rule",
|
|
56
|
+
* description: "Positioned immediately BEFORE the anchor-qos-rule.",
|
|
57
|
+
* folder: "All",
|
|
58
|
+
* position: "pre",
|
|
59
|
+
* relativePosition: "before",
|
|
60
|
+
* targetRule: anchorQosRule.id,
|
|
61
|
+
* action: {
|
|
62
|
+
* "class": "5",
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
* const ruleAfterAnchorQos = new scm.QosPolicyRule("rule_after_anchor_qos", {
|
|
66
|
+
* name: "after-anchor-qos-rule",
|
|
67
|
+
* description: "Positioned immediately AFTER the anchor-qos-rule.",
|
|
68
|
+
* folder: "All",
|
|
69
|
+
* position: "pre",
|
|
70
|
+
* relativePosition: "after",
|
|
71
|
+
* targetRule: anchorQosRule.id,
|
|
72
|
+
* action: {
|
|
73
|
+
* "class": "4",
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
6
77
|
*/
|
|
7
78
|
export declare class QosPolicyRule extends pulumi.CustomResource {
|
|
8
79
|
/**
|
|
@@ -48,6 +119,10 @@ export declare class QosPolicyRule extends pulumi.CustomResource {
|
|
|
48
119
|
* The relative position of the rule
|
|
49
120
|
*/
|
|
50
121
|
readonly position: pulumi.Output<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Relative positioning rule. String must be one of these: `"before"`, `"after"`, `"top"`, `"bottom"`. If not specified, rule is created at the bottom of the ruleset.
|
|
124
|
+
*/
|
|
125
|
+
readonly relativePosition: pulumi.Output<string | undefined>;
|
|
51
126
|
/**
|
|
52
127
|
* Schedule
|
|
53
128
|
*/
|
|
@@ -56,6 +131,10 @@ export declare class QosPolicyRule extends pulumi.CustomResource {
|
|
|
56
131
|
* The snippet in which the resource is defined
|
|
57
132
|
*/
|
|
58
133
|
readonly snippet: pulumi.Output<string | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* The name or UUID of the rule to position this rule relative to. Required when `relativePosition` is `"before"` or `"after"`.
|
|
136
|
+
*/
|
|
137
|
+
readonly targetRule: pulumi.Output<string | undefined>;
|
|
59
138
|
readonly tfid: pulumi.Output<string>;
|
|
60
139
|
/**
|
|
61
140
|
* Create a QosPolicyRule resource with the given unique name, arguments, and options.
|
|
@@ -98,6 +177,10 @@ export interface QosPolicyRuleState {
|
|
|
98
177
|
* The relative position of the rule
|
|
99
178
|
*/
|
|
100
179
|
position?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Relative positioning rule. String must be one of these: `"before"`, `"after"`, `"top"`, `"bottom"`. If not specified, rule is created at the bottom of the ruleset.
|
|
182
|
+
*/
|
|
183
|
+
relativePosition?: pulumi.Input<string>;
|
|
101
184
|
/**
|
|
102
185
|
* Schedule
|
|
103
186
|
*/
|
|
@@ -106,6 +189,10 @@ export interface QosPolicyRuleState {
|
|
|
106
189
|
* The snippet in which the resource is defined
|
|
107
190
|
*/
|
|
108
191
|
snippet?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The name or UUID of the rule to position this rule relative to. Required when `relativePosition` is `"before"` or `"after"`.
|
|
194
|
+
*/
|
|
195
|
+
targetRule?: pulumi.Input<string>;
|
|
109
196
|
tfid?: pulumi.Input<string>;
|
|
110
197
|
}
|
|
111
198
|
/**
|
|
@@ -140,6 +227,10 @@ export interface QosPolicyRuleArgs {
|
|
|
140
227
|
* The relative position of the rule
|
|
141
228
|
*/
|
|
142
229
|
position?: pulumi.Input<string>;
|
|
230
|
+
/**
|
|
231
|
+
* Relative positioning rule. String must be one of these: `"before"`, `"after"`, `"top"`, `"bottom"`. If not specified, rule is created at the bottom of the ruleset.
|
|
232
|
+
*/
|
|
233
|
+
relativePosition?: pulumi.Input<string>;
|
|
143
234
|
/**
|
|
144
235
|
* Schedule
|
|
145
236
|
*/
|
|
@@ -148,4 +239,8 @@ export interface QosPolicyRuleArgs {
|
|
|
148
239
|
* The snippet in which the resource is defined
|
|
149
240
|
*/
|
|
150
241
|
snippet?: pulumi.Input<string>;
|
|
242
|
+
/**
|
|
243
|
+
* The name or UUID of the rule to position this rule relative to. Required when `relativePosition` is `"before"` or `"after"`.
|
|
244
|
+
*/
|
|
245
|
+
targetRule?: pulumi.Input<string>;
|
|
151
246
|
}
|
package/qosPolicyRule.js
CHANGED
|
@@ -7,6 +7,77 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* QosPolicyRule resource
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as scm from "@pulumi/scm";
|
|
16
|
+
*
|
|
17
|
+
* // --- 2. ANCHOR QOS POLICY RULE (Used for relative positioning) ---
|
|
18
|
+
* const anchorQosRule = new scm.QosPolicyRule("anchor_qos_rule", {
|
|
19
|
+
* name: "anchor-qos-rule",
|
|
20
|
+
* description: "Base rule for testing 'before' and 'after' positioning.",
|
|
21
|
+
* folder: "All",
|
|
22
|
+
* position: "pre",
|
|
23
|
+
* action: {
|
|
24
|
+
* "class": "2",
|
|
25
|
+
* },
|
|
26
|
+
* schedule: "non-work-hours",
|
|
27
|
+
* dscpTos: {
|
|
28
|
+
* codepoints: [{
|
|
29
|
+
* name: "Set-EF",
|
|
30
|
+
* type: {
|
|
31
|
+
* ef: {},
|
|
32
|
+
* },
|
|
33
|
+
* }],
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* // --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
|
|
37
|
+
* const ruleTopQosRule = new scm.QosPolicyRule("rule_top_qos_rule", {
|
|
38
|
+
* name: "top-absolute-qos-rule",
|
|
39
|
+
* description: "Placed at the very TOP of the QoS rulebase (Highest Priority).",
|
|
40
|
+
* folder: "All",
|
|
41
|
+
* position: "pre",
|
|
42
|
+
* relativePosition: "top",
|
|
43
|
+
* action: {
|
|
44
|
+
* "class": "2",
|
|
45
|
+
* },
|
|
46
|
+
* });
|
|
47
|
+
* const ruleBottomQosRule = new scm.QosPolicyRule("rule_bottom_qos_rule", {
|
|
48
|
+
* name: "bottom-absolute-qos-rule",
|
|
49
|
+
* description: "Placed at the very BOTTOM of the QoS rulebase (Lowest Priority)",
|
|
50
|
+
* folder: "All",
|
|
51
|
+
* position: "pre",
|
|
52
|
+
* relativePosition: "bottom",
|
|
53
|
+
* action: {
|
|
54
|
+
* "class": "3",
|
|
55
|
+
* },
|
|
56
|
+
* });
|
|
57
|
+
* // --- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
|
|
58
|
+
* const ruleBeforeAnchorQos = new scm.QosPolicyRule("rule_before_anchor_qos", {
|
|
59
|
+
* name: "before-anchor-qos-rule",
|
|
60
|
+
* description: "Positioned immediately BEFORE the anchor-qos-rule.",
|
|
61
|
+
* folder: "All",
|
|
62
|
+
* position: "pre",
|
|
63
|
+
* relativePosition: "before",
|
|
64
|
+
* targetRule: anchorQosRule.id,
|
|
65
|
+
* action: {
|
|
66
|
+
* "class": "5",
|
|
67
|
+
* },
|
|
68
|
+
* });
|
|
69
|
+
* const ruleAfterAnchorQos = new scm.QosPolicyRule("rule_after_anchor_qos", {
|
|
70
|
+
* name: "after-anchor-qos-rule",
|
|
71
|
+
* description: "Positioned immediately AFTER the anchor-qos-rule.",
|
|
72
|
+
* folder: "All",
|
|
73
|
+
* position: "pre",
|
|
74
|
+
* relativePosition: "after",
|
|
75
|
+
* targetRule: anchorQosRule.id,
|
|
76
|
+
* action: {
|
|
77
|
+
* "class": "4",
|
|
78
|
+
* },
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
10
81
|
*/
|
|
11
82
|
class QosPolicyRule extends pulumi.CustomResource {
|
|
12
83
|
/**
|
|
@@ -43,8 +114,10 @@ class QosPolicyRule extends pulumi.CustomResource {
|
|
|
43
114
|
resourceInputs["folder"] = state?.folder;
|
|
44
115
|
resourceInputs["name"] = state?.name;
|
|
45
116
|
resourceInputs["position"] = state?.position;
|
|
117
|
+
resourceInputs["relativePosition"] = state?.relativePosition;
|
|
46
118
|
resourceInputs["schedule"] = state?.schedule;
|
|
47
119
|
resourceInputs["snippet"] = state?.snippet;
|
|
120
|
+
resourceInputs["targetRule"] = state?.targetRule;
|
|
48
121
|
resourceInputs["tfid"] = state?.tfid;
|
|
49
122
|
}
|
|
50
123
|
else {
|
|
@@ -59,8 +132,10 @@ class QosPolicyRule extends pulumi.CustomResource {
|
|
|
59
132
|
resourceInputs["folder"] = args?.folder;
|
|
60
133
|
resourceInputs["name"] = args?.name;
|
|
61
134
|
resourceInputs["position"] = args?.position;
|
|
135
|
+
resourceInputs["relativePosition"] = args?.relativePosition;
|
|
62
136
|
resourceInputs["schedule"] = args?.schedule;
|
|
63
137
|
resourceInputs["snippet"] = args?.snippet;
|
|
138
|
+
resourceInputs["targetRule"] = args?.targetRule;
|
|
64
139
|
resourceInputs["tfid"] = undefined /*out*/;
|
|
65
140
|
}
|
|
66
141
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/qosPolicyRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qosPolicyRule.js","sourceRoot":"","sources":["../qosPolicyRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"qosPolicyRule.js","sourceRoot":"","sources":["../qosPolicyRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAwDD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YAC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AAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAvHL,sCAwHC;AA1GG,gBAAgB;AACO,0BAAY,GAAG,uCAAuC,CAAC"}
|
package/radiusServerProfile.d.ts
CHANGED
|
@@ -3,6 +3,44 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* RadiusServerProfile resource
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scm from "@pulumi/scm";
|
|
12
|
+
*
|
|
13
|
+
* const chapRadiusProfile = new scm.RadiusServerProfile("chap_radius_profile", {
|
|
14
|
+
* name: "CHAP_only_rsp_1",
|
|
15
|
+
* folder: "All",
|
|
16
|
+
* retries: 5,
|
|
17
|
+
* timeout: 60,
|
|
18
|
+
* protocol: {
|
|
19
|
+
* cHAP: {},
|
|
20
|
+
* },
|
|
21
|
+
* servers: [{
|
|
22
|
+
* name: "Chap_Server_Primary",
|
|
23
|
+
* ipAddress: "10.1.1.10",
|
|
24
|
+
* port: 1812,
|
|
25
|
+
* secret: "-AQ==lhyuV6U/j9Trb9JL9L0UoBecg9Y=kTOWntGhZ1KFyLD+etKQ3g==",
|
|
26
|
+
* }],
|
|
27
|
+
* });
|
|
28
|
+
* const papRadiusProfile = new scm.RadiusServerProfile("pap_radius_profile", {
|
|
29
|
+
* name: "pap_only_rsp_1",
|
|
30
|
+
* folder: "All",
|
|
31
|
+
* retries: 5,
|
|
32
|
+
* timeout: 60,
|
|
33
|
+
* protocol: {
|
|
34
|
+
* pAP: {},
|
|
35
|
+
* },
|
|
36
|
+
* servers: [{
|
|
37
|
+
* name: "pap_Server_Primary",
|
|
38
|
+
* ipAddress: "10.1.1.10",
|
|
39
|
+
* port: 1812,
|
|
40
|
+
* secret: "-AQ==lhyuV6U/j9Trb9JL9L0UoBecg9Y=kTOWntGhZ1KFyLD+etKQ3g==",
|
|
41
|
+
* }],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
6
44
|
*/
|
|
7
45
|
export declare class RadiusServerProfile extends pulumi.CustomResource {
|
|
8
46
|
/**
|
package/radiusServerProfile.js
CHANGED
|
@@ -7,6 +7,44 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* RadiusServerProfile resource
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as scm from "@pulumi/scm";
|
|
16
|
+
*
|
|
17
|
+
* const chapRadiusProfile = new scm.RadiusServerProfile("chap_radius_profile", {
|
|
18
|
+
* name: "CHAP_only_rsp_1",
|
|
19
|
+
* folder: "All",
|
|
20
|
+
* retries: 5,
|
|
21
|
+
* timeout: 60,
|
|
22
|
+
* protocol: {
|
|
23
|
+
* cHAP: {},
|
|
24
|
+
* },
|
|
25
|
+
* servers: [{
|
|
26
|
+
* name: "Chap_Server_Primary",
|
|
27
|
+
* ipAddress: "10.1.1.10",
|
|
28
|
+
* port: 1812,
|
|
29
|
+
* secret: "-AQ==lhyuV6U/j9Trb9JL9L0UoBecg9Y=kTOWntGhZ1KFyLD+etKQ3g==",
|
|
30
|
+
* }],
|
|
31
|
+
* });
|
|
32
|
+
* const papRadiusProfile = new scm.RadiusServerProfile("pap_radius_profile", {
|
|
33
|
+
* name: "pap_only_rsp_1",
|
|
34
|
+
* folder: "All",
|
|
35
|
+
* retries: 5,
|
|
36
|
+
* timeout: 60,
|
|
37
|
+
* protocol: {
|
|
38
|
+
* pAP: {},
|
|
39
|
+
* },
|
|
40
|
+
* servers: [{
|
|
41
|
+
* name: "pap_Server_Primary",
|
|
42
|
+
* ipAddress: "10.1.1.10",
|
|
43
|
+
* port: 1812,
|
|
44
|
+
* secret: "-AQ==lhyuV6U/j9Trb9JL9L0UoBecg9Y=kTOWntGhZ1KFyLD+etKQ3g==",
|
|
45
|
+
* }],
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
10
48
|
*/
|
|
11
49
|
class RadiusServerProfile extends pulumi.CustomResource {
|
|
12
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radiusServerProfile.js","sourceRoot":"","sources":["../radiusServerProfile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"radiusServerProfile.js","sourceRoot":"","sources":["../radiusServerProfile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H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MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAxGL,kDAyGC;AA3FG,gBAAgB;AACO,gCAAY,GAAG,mDAAmD,CAAC"}
|
package/remoteNetwork.d.ts
CHANGED
|
@@ -5,6 +5,87 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
* RemoteNetwork resource
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scm from "@pulumi/scm";
|
|
12
|
+
*
|
|
13
|
+
* // --- DEPENDENCY 1: IKE Crypto Profile ---
|
|
14
|
+
* // This profile defines the encryption and authentication algorithms for the IKE Gateway.
|
|
15
|
+
* // The values are taken from the 'createTestIKECryptoProfile' helper function.
|
|
16
|
+
* const example = new scm.IkeCryptoProfile("example", {
|
|
17
|
+
* name: "example-ike-crypto-prf-for-rn",
|
|
18
|
+
* folder: "Remote Networks",
|
|
19
|
+
* hashes: ["sha256"],
|
|
20
|
+
* dhGroups: ["group14"],
|
|
21
|
+
* encryptions: ["aes-256-cbc"],
|
|
22
|
+
* });
|
|
23
|
+
* // --- DEPENDENCY 2: IKE Gateway ---
|
|
24
|
+
* // This defines the VPN peer. It depends on the IKE Crypto Profile created above.
|
|
25
|
+
* // The values are taken from the 'createTestIKEGateway' helper function.
|
|
26
|
+
* const exampleIkeGateway = new scm.IkeGateway("example", {
|
|
27
|
+
* name: "example-ike-gateway-for-rn",
|
|
28
|
+
* folder: "Remote Networks",
|
|
29
|
+
* authentication: {
|
|
30
|
+
* preSharedKey: {
|
|
31
|
+
* key: "secret",
|
|
32
|
+
* },
|
|
33
|
+
* },
|
|
34
|
+
* peerAddress: {
|
|
35
|
+
* ip: "1.1.1.1",
|
|
36
|
+
* },
|
|
37
|
+
* protocol: {
|
|
38
|
+
* ikev1: {
|
|
39
|
+
* ikeCryptoProfile: example.name,
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* }, {
|
|
43
|
+
* dependsOn: [example],
|
|
44
|
+
* });
|
|
45
|
+
* // --- DEPENDENCY 3: IPsec Tunnel ---
|
|
46
|
+
* // This defines the tunnel interface itself and uses the IKE Gateway.
|
|
47
|
+
* // The values are taken from the 'createTestIPsecTunnel' helper function.
|
|
48
|
+
* const exampleIpsecTunnel = new scm.IpsecTunnel("example", {
|
|
49
|
+
* name: "example-ipsec-tunnel-for-rn",
|
|
50
|
+
* folder: "Remote Networks",
|
|
51
|
+
* antiReplay: true,
|
|
52
|
+
* copyTos: false,
|
|
53
|
+
* enableGreEncapsulation: false,
|
|
54
|
+
* autoKey: {
|
|
55
|
+
* ikeGateways: [{
|
|
56
|
+
* name: exampleIkeGateway.name,
|
|
57
|
+
* }],
|
|
58
|
+
* ipsecCryptoProfile: "PaloAlto-Networks-IPSec-Crypto",
|
|
59
|
+
* },
|
|
60
|
+
* }, {
|
|
61
|
+
* dependsOn: [exampleIkeGateway],
|
|
62
|
+
* });
|
|
63
|
+
* // --- MAIN RESOURCE: Remote Network ---
|
|
64
|
+
* // This is the final resource, which uses the IPsec Tunnel created above.
|
|
65
|
+
* // The values are taken directly from the 'Test_deployment_services_RemoteNetworksAPIService_Create' test.
|
|
66
|
+
* const exampleRemoteNetwork = new scm.RemoteNetwork("example", {
|
|
67
|
+
* name: "example-remote-network",
|
|
68
|
+
* folder: "Remote Networks",
|
|
69
|
+
* licenseType: "FWAAS-AGGREGATE",
|
|
70
|
+
* region: "us-west-2",
|
|
71
|
+
* spnName: "us-west-dakota",
|
|
72
|
+
* subnets: ["192.168.1.0/24"],
|
|
73
|
+
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
74
|
+
* protocol: {
|
|
75
|
+
* bgp: {
|
|
76
|
+
* enable: true,
|
|
77
|
+
* peerAs: "65000",
|
|
78
|
+
* localIpAddress: "169.254.1.1",
|
|
79
|
+
* peerIpAddress: "169.254.1.2",
|
|
80
|
+
* doNotExportRoutes: false,
|
|
81
|
+
* originateDefaultRoute: false,
|
|
82
|
+
* summarizeMobileUserRoutes: false,
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* }, {
|
|
86
|
+
* dependsOn: [exampleIpsecTunnel],
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
8
89
|
*/
|
|
9
90
|
export declare class RemoteNetwork extends pulumi.CustomResource {
|
|
10
91
|
/**
|
package/remoteNetwork.js
CHANGED
|
@@ -9,6 +9,87 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* RemoteNetwork resource
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as scm from "@pulumi/scm";
|
|
16
|
+
*
|
|
17
|
+
* // --- DEPENDENCY 1: IKE Crypto Profile ---
|
|
18
|
+
* // This profile defines the encryption and authentication algorithms for the IKE Gateway.
|
|
19
|
+
* // The values are taken from the 'createTestIKECryptoProfile' helper function.
|
|
20
|
+
* const example = new scm.IkeCryptoProfile("example", {
|
|
21
|
+
* name: "example-ike-crypto-prf-for-rn",
|
|
22
|
+
* folder: "Remote Networks",
|
|
23
|
+
* hashes: ["sha256"],
|
|
24
|
+
* dhGroups: ["group14"],
|
|
25
|
+
* encryptions: ["aes-256-cbc"],
|
|
26
|
+
* });
|
|
27
|
+
* // --- DEPENDENCY 2: IKE Gateway ---
|
|
28
|
+
* // This defines the VPN peer. It depends on the IKE Crypto Profile created above.
|
|
29
|
+
* // The values are taken from the 'createTestIKEGateway' helper function.
|
|
30
|
+
* const exampleIkeGateway = new scm.IkeGateway("example", {
|
|
31
|
+
* name: "example-ike-gateway-for-rn",
|
|
32
|
+
* folder: "Remote Networks",
|
|
33
|
+
* authentication: {
|
|
34
|
+
* preSharedKey: {
|
|
35
|
+
* key: "secret",
|
|
36
|
+
* },
|
|
37
|
+
* },
|
|
38
|
+
* peerAddress: {
|
|
39
|
+
* ip: "1.1.1.1",
|
|
40
|
+
* },
|
|
41
|
+
* protocol: {
|
|
42
|
+
* ikev1: {
|
|
43
|
+
* ikeCryptoProfile: example.name,
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* }, {
|
|
47
|
+
* dependsOn: [example],
|
|
48
|
+
* });
|
|
49
|
+
* // --- DEPENDENCY 3: IPsec Tunnel ---
|
|
50
|
+
* // This defines the tunnel interface itself and uses the IKE Gateway.
|
|
51
|
+
* // The values are taken from the 'createTestIPsecTunnel' helper function.
|
|
52
|
+
* const exampleIpsecTunnel = new scm.IpsecTunnel("example", {
|
|
53
|
+
* name: "example-ipsec-tunnel-for-rn",
|
|
54
|
+
* folder: "Remote Networks",
|
|
55
|
+
* antiReplay: true,
|
|
56
|
+
* copyTos: false,
|
|
57
|
+
* enableGreEncapsulation: false,
|
|
58
|
+
* autoKey: {
|
|
59
|
+
* ikeGateways: [{
|
|
60
|
+
* name: exampleIkeGateway.name,
|
|
61
|
+
* }],
|
|
62
|
+
* ipsecCryptoProfile: "PaloAlto-Networks-IPSec-Crypto",
|
|
63
|
+
* },
|
|
64
|
+
* }, {
|
|
65
|
+
* dependsOn: [exampleIkeGateway],
|
|
66
|
+
* });
|
|
67
|
+
* // --- MAIN RESOURCE: Remote Network ---
|
|
68
|
+
* // This is the final resource, which uses the IPsec Tunnel created above.
|
|
69
|
+
* // The values are taken directly from the 'Test_deployment_services_RemoteNetworksAPIService_Create' test.
|
|
70
|
+
* const exampleRemoteNetwork = new scm.RemoteNetwork("example", {
|
|
71
|
+
* name: "example-remote-network",
|
|
72
|
+
* folder: "Remote Networks",
|
|
73
|
+
* licenseType: "FWAAS-AGGREGATE",
|
|
74
|
+
* region: "us-west-2",
|
|
75
|
+
* spnName: "us-west-dakota",
|
|
76
|
+
* subnets: ["192.168.1.0/24"],
|
|
77
|
+
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
78
|
+
* protocol: {
|
|
79
|
+
* bgp: {
|
|
80
|
+
* enable: true,
|
|
81
|
+
* peerAs: "65000",
|
|
82
|
+
* localIpAddress: "169.254.1.1",
|
|
83
|
+
* peerIpAddress: "169.254.1.2",
|
|
84
|
+
* doNotExportRoutes: false,
|
|
85
|
+
* originateDefaultRoute: false,
|
|
86
|
+
* summarizeMobileUserRoutes: false,
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* }, {
|
|
90
|
+
* dependsOn: [exampleIpsecTunnel],
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
12
93
|
*/
|
|
13
94
|
class RemoteNetwork extends pulumi.CustomResource {
|
|
14
95
|
/**
|
package/remoteNetwork.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteNetwork.js","sourceRoot":"","sources":["../remoteNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"remoteNetwork.js","sourceRoot":"","sources":["../remoteNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA4DD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,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pulumi.CustomResour
|
|
|
29
29
|
*/
|
|
30
30
|
readonly folder: pulumi.Output<string | undefined>;
|
|
31
31
|
/**
|
|
32
|
-
* Link tags
|
|
32
|
+
* Link-Tags for interfaces identified by defined tags
|
|
33
33
|
*/
|
|
34
34
|
readonly linkTags: pulumi.Output<outputs.SdwanTrafficDistributionProfileLinkTag[] | undefined>;
|
|
35
35
|
/**
|
|
@@ -44,7 +44,7 @@ export declare class SdwanTrafficDistributionProfile extends pulumi.CustomResour
|
|
|
44
44
|
/**
|
|
45
45
|
* Traffic distribution
|
|
46
46
|
*/
|
|
47
|
-
readonly trafficDistribution: pulumi.Output<string
|
|
47
|
+
readonly trafficDistribution: pulumi.Output<string>;
|
|
48
48
|
/**
|
|
49
49
|
* Create a SdwanTrafficDistributionProfile resource with the given unique name, arguments, and options.
|
|
50
50
|
*
|
|
@@ -67,7 +67,7 @@ export interface SdwanTrafficDistributionProfileState {
|
|
|
67
67
|
*/
|
|
68
68
|
folder?: pulumi.Input<string>;
|
|
69
69
|
/**
|
|
70
|
-
* Link tags
|
|
70
|
+
* Link-Tags for interfaces identified by defined tags
|
|
71
71
|
*/
|
|
72
72
|
linkTags?: pulumi.Input<pulumi.Input<inputs.SdwanTrafficDistributionProfileLinkTag>[]>;
|
|
73
73
|
/**
|
|
@@ -97,7 +97,7 @@ export interface SdwanTrafficDistributionProfileArgs {
|
|
|
97
97
|
*/
|
|
98
98
|
folder?: pulumi.Input<string>;
|
|
99
99
|
/**
|
|
100
|
-
* Link tags
|
|
100
|
+
* Link-Tags for interfaces identified by defined tags
|
|
101
101
|
*/
|
|
102
102
|
linkTags?: pulumi.Input<pulumi.Input<inputs.SdwanTrafficDistributionProfileLinkTag>[]>;
|
|
103
103
|
/**
|