@pulumi/scm 1.0.0-alpha.1762562132 → 1.0.0-alpha.1762844275
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/natRule.d.ts
CHANGED
|
@@ -3,6 +3,123 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* NatRule 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 exampleTag = new scm.Tag("example_tag", {
|
|
14
|
+
* folder: "All",
|
|
15
|
+
* name: "example-tag",
|
|
16
|
+
* color: "Red",
|
|
17
|
+
* });
|
|
18
|
+
* //Source Translation (SNAT) - Dynamic IP and Port
|
|
19
|
+
* const exampleNatRule = new scm.NatRule("example_nat_rule", {
|
|
20
|
+
* name: "snat-to-internet-1",
|
|
21
|
+
* froms: ["any"],
|
|
22
|
+
* tos: ["untrust"],
|
|
23
|
+
* sources: ["any"],
|
|
24
|
+
* destinations: ["any"],
|
|
25
|
+
* service: "service-https",
|
|
26
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
27
|
+
* disabled: false,
|
|
28
|
+
* natType: "ipv4",
|
|
29
|
+
* folder: "All",
|
|
30
|
+
* tags: [exampleTag.name],
|
|
31
|
+
* sourceTranslation: {
|
|
32
|
+
* dynamicIpAndPort: {
|
|
33
|
+
* translatedAddresses: [
|
|
34
|
+
* "1.1.1.1",
|
|
35
|
+
* "1.1.1.5",
|
|
36
|
+
* ],
|
|
37
|
+
* },
|
|
38
|
+
* },
|
|
39
|
+
* destinationTranslation: {
|
|
40
|
+
* translatedAddress: "192.168.1.10",
|
|
41
|
+
* translatedPort: 8080,
|
|
42
|
+
* },
|
|
43
|
+
* activeActiveDeviceBinding: "1",
|
|
44
|
+
* });
|
|
45
|
+
* //Source Translation (SNAT) - Static IP - Bidirectional - no
|
|
46
|
+
* const exampleNatStaticRule = new scm.NatRule("example_nat_static_rule", {
|
|
47
|
+
* name: "snat-to-bid-1",
|
|
48
|
+
* froms: ["any"],
|
|
49
|
+
* tos: ["untrust"],
|
|
50
|
+
* sources: ["any"],
|
|
51
|
+
* destinations: ["any"],
|
|
52
|
+
* service: "service-https",
|
|
53
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
54
|
+
* disabled: false,
|
|
55
|
+
* natType: "ipv4",
|
|
56
|
+
* folder: "All",
|
|
57
|
+
* tags: [exampleTag.name],
|
|
58
|
+
* sourceTranslation: {
|
|
59
|
+
* staticIp: {
|
|
60
|
+
* translatedAddress: "1.1.1.5",
|
|
61
|
+
* biDirectional: "no",
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* destinationTranslation: {
|
|
65
|
+
* translatedAddress: "192.168.1.10",
|
|
66
|
+
* translatedPort: 8080,
|
|
67
|
+
* },
|
|
68
|
+
* activeActiveDeviceBinding: "1",
|
|
69
|
+
* });
|
|
70
|
+
* //Source Translation (SNAT) - Static IP - Bidirectional - yes
|
|
71
|
+
* const exampleNatStaticRule2 = new scm.NatRule("example_nat_static_rule_2", {
|
|
72
|
+
* name: "snat-to-bid-yes-1",
|
|
73
|
+
* froms: ["any"],
|
|
74
|
+
* tos: ["untrust"],
|
|
75
|
+
* sources: ["any"],
|
|
76
|
+
* destinations: ["any"],
|
|
77
|
+
* service: "service-https",
|
|
78
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
79
|
+
* disabled: false,
|
|
80
|
+
* natType: "ipv4",
|
|
81
|
+
* folder: "All",
|
|
82
|
+
* tags: [exampleTag.name],
|
|
83
|
+
* sourceTranslation: {
|
|
84
|
+
* staticIp: {
|
|
85
|
+
* translatedAddress: "1.1.1.5",
|
|
86
|
+
* biDirectional: "yes",
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* activeActiveDeviceBinding: "1",
|
|
90
|
+
* });
|
|
91
|
+
* //Source Translation (SNAT) - Dynamic IP
|
|
92
|
+
* const exampleNatDynamicRule = new scm.NatRule("example_nat_dynamic_rule", {
|
|
93
|
+
* name: "snat-to-dyanamic-1",
|
|
94
|
+
* froms: ["any"],
|
|
95
|
+
* tos: ["untrust"],
|
|
96
|
+
* sources: ["any"],
|
|
97
|
+
* destinations: ["any"],
|
|
98
|
+
* service: "service-https",
|
|
99
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
100
|
+
* disabled: false,
|
|
101
|
+
* natType: "ipv4",
|
|
102
|
+
* folder: "All",
|
|
103
|
+
* tags: [exampleTag.name],
|
|
104
|
+
* sourceTranslation: {
|
|
105
|
+
* dynamicIp: {
|
|
106
|
+
* translatedAddresses: ["1.1.1.0/24"],
|
|
107
|
+
* fallback: {
|
|
108
|
+
* translatedAddresses: ["1.1.1.0"],
|
|
109
|
+
* interfaceAddress: {
|
|
110
|
+
* "interface": "ethernet1/1",
|
|
111
|
+
* ip: "1.1.1.5",
|
|
112
|
+
* },
|
|
113
|
+
* },
|
|
114
|
+
* },
|
|
115
|
+
* },
|
|
116
|
+
* destinationTranslation: {
|
|
117
|
+
* translatedAddress: "192.168.1.10",
|
|
118
|
+
* translatedPort: 8080,
|
|
119
|
+
* },
|
|
120
|
+
* activeActiveDeviceBinding: "1",
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
6
123
|
*/
|
|
7
124
|
export declare class NatRule extends pulumi.CustomResource {
|
|
8
125
|
/**
|
|
@@ -28,6 +145,10 @@ export declare class NatRule extends pulumi.CustomResource {
|
|
|
28
145
|
* NAT rule description
|
|
29
146
|
*/
|
|
30
147
|
readonly description: pulumi.Output<string | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Destination translation
|
|
150
|
+
*/
|
|
151
|
+
readonly destinationTranslation: pulumi.Output<outputs.NatRuleDestinationTranslation | undefined>;
|
|
31
152
|
/**
|
|
32
153
|
* Destination address(es) of the original packet
|
|
33
154
|
*/
|
|
@@ -41,13 +162,9 @@ export declare class NatRule extends pulumi.CustomResource {
|
|
|
41
162
|
*/
|
|
42
163
|
readonly disabled: pulumi.Output<boolean>;
|
|
43
164
|
/**
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
readonly distribution: pulumi.Output<string | undefined>;
|
|
47
|
-
/**
|
|
48
|
-
* DNS rewrite
|
|
165
|
+
* Dynamic destination translation
|
|
49
166
|
*/
|
|
50
|
-
readonly
|
|
167
|
+
readonly dynamicDestinationTranslation: pulumi.Output<outputs.NatRuleDynamicDestinationTranslation | undefined>;
|
|
51
168
|
/**
|
|
52
169
|
* The folder in which the resource is defined
|
|
53
170
|
*/
|
|
@@ -97,14 +214,6 @@ export declare class NatRule extends pulumi.CustomResource {
|
|
|
97
214
|
* Destination zone of the original packet
|
|
98
215
|
*/
|
|
99
216
|
readonly tos: pulumi.Output<string[]>;
|
|
100
|
-
/**
|
|
101
|
-
* Translated destination IP address
|
|
102
|
-
*/
|
|
103
|
-
readonly translatedAddressSingle: pulumi.Output<string | undefined>;
|
|
104
|
-
/**
|
|
105
|
-
* Translated destination port
|
|
106
|
-
*/
|
|
107
|
-
readonly translatedPort: pulumi.Output<number | undefined>;
|
|
108
217
|
/**
|
|
109
218
|
* Create a NatRule resource with the given unique name, arguments, and options.
|
|
110
219
|
*
|
|
@@ -126,6 +235,10 @@ export interface NatRuleState {
|
|
|
126
235
|
* NAT rule description
|
|
127
236
|
*/
|
|
128
237
|
description?: pulumi.Input<string>;
|
|
238
|
+
/**
|
|
239
|
+
* Destination translation
|
|
240
|
+
*/
|
|
241
|
+
destinationTranslation?: pulumi.Input<inputs.NatRuleDestinationTranslation>;
|
|
129
242
|
/**
|
|
130
243
|
* Destination address(es) of the original packet
|
|
131
244
|
*/
|
|
@@ -139,13 +252,9 @@ export interface NatRuleState {
|
|
|
139
252
|
*/
|
|
140
253
|
disabled?: pulumi.Input<boolean>;
|
|
141
254
|
/**
|
|
142
|
-
*
|
|
143
|
-
*/
|
|
144
|
-
distribution?: pulumi.Input<string>;
|
|
145
|
-
/**
|
|
146
|
-
* DNS rewrite
|
|
255
|
+
* Dynamic destination translation
|
|
147
256
|
*/
|
|
148
|
-
|
|
257
|
+
dynamicDestinationTranslation?: pulumi.Input<inputs.NatRuleDynamicDestinationTranslation>;
|
|
149
258
|
/**
|
|
150
259
|
* The folder in which the resource is defined
|
|
151
260
|
*/
|
|
@@ -195,14 +304,6 @@ export interface NatRuleState {
|
|
|
195
304
|
* Destination zone of the original packet
|
|
196
305
|
*/
|
|
197
306
|
tos?: pulumi.Input<pulumi.Input<string>[]>;
|
|
198
|
-
/**
|
|
199
|
-
* Translated destination IP address
|
|
200
|
-
*/
|
|
201
|
-
translatedAddressSingle?: pulumi.Input<string>;
|
|
202
|
-
/**
|
|
203
|
-
* Translated destination port
|
|
204
|
-
*/
|
|
205
|
-
translatedPort?: pulumi.Input<number>;
|
|
206
307
|
}
|
|
207
308
|
/**
|
|
208
309
|
* The set of arguments for constructing a NatRule resource.
|
|
@@ -216,6 +317,10 @@ export interface NatRuleArgs {
|
|
|
216
317
|
* NAT rule description
|
|
217
318
|
*/
|
|
218
319
|
description?: pulumi.Input<string>;
|
|
320
|
+
/**
|
|
321
|
+
* Destination translation
|
|
322
|
+
*/
|
|
323
|
+
destinationTranslation?: pulumi.Input<inputs.NatRuleDestinationTranslation>;
|
|
219
324
|
/**
|
|
220
325
|
* Destination address(es) of the original packet
|
|
221
326
|
*/
|
|
@@ -229,13 +334,9 @@ export interface NatRuleArgs {
|
|
|
229
334
|
*/
|
|
230
335
|
disabled?: pulumi.Input<boolean>;
|
|
231
336
|
/**
|
|
232
|
-
*
|
|
337
|
+
* Dynamic destination translation
|
|
233
338
|
*/
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* DNS rewrite
|
|
237
|
-
*/
|
|
238
|
-
dnsRewrite?: pulumi.Input<inputs.NatRuleDnsRewrite>;
|
|
339
|
+
dynamicDestinationTranslation?: pulumi.Input<inputs.NatRuleDynamicDestinationTranslation>;
|
|
239
340
|
/**
|
|
240
341
|
* The folder in which the resource is defined
|
|
241
342
|
*/
|
|
@@ -284,12 +385,4 @@ export interface NatRuleArgs {
|
|
|
284
385
|
* Destination zone of the original packet
|
|
285
386
|
*/
|
|
286
387
|
tos: pulumi.Input<pulumi.Input<string>[]>;
|
|
287
|
-
/**
|
|
288
|
-
* Translated destination IP address
|
|
289
|
-
*/
|
|
290
|
-
translatedAddressSingle?: pulumi.Input<string>;
|
|
291
|
-
/**
|
|
292
|
-
* Translated destination port
|
|
293
|
-
*/
|
|
294
|
-
translatedPort?: pulumi.Input<number>;
|
|
295
388
|
}
|
package/natRule.js
CHANGED
|
@@ -7,6 +7,123 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* NatRule 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 exampleTag = new scm.Tag("example_tag", {
|
|
18
|
+
* folder: "All",
|
|
19
|
+
* name: "example-tag",
|
|
20
|
+
* color: "Red",
|
|
21
|
+
* });
|
|
22
|
+
* //Source Translation (SNAT) - Dynamic IP and Port
|
|
23
|
+
* const exampleNatRule = new scm.NatRule("example_nat_rule", {
|
|
24
|
+
* name: "snat-to-internet-1",
|
|
25
|
+
* froms: ["any"],
|
|
26
|
+
* tos: ["untrust"],
|
|
27
|
+
* sources: ["any"],
|
|
28
|
+
* destinations: ["any"],
|
|
29
|
+
* service: "service-https",
|
|
30
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
31
|
+
* disabled: false,
|
|
32
|
+
* natType: "ipv4",
|
|
33
|
+
* folder: "All",
|
|
34
|
+
* tags: [exampleTag.name],
|
|
35
|
+
* sourceTranslation: {
|
|
36
|
+
* dynamicIpAndPort: {
|
|
37
|
+
* translatedAddresses: [
|
|
38
|
+
* "1.1.1.1",
|
|
39
|
+
* "1.1.1.5",
|
|
40
|
+
* ],
|
|
41
|
+
* },
|
|
42
|
+
* },
|
|
43
|
+
* destinationTranslation: {
|
|
44
|
+
* translatedAddress: "192.168.1.10",
|
|
45
|
+
* translatedPort: 8080,
|
|
46
|
+
* },
|
|
47
|
+
* activeActiveDeviceBinding: "1",
|
|
48
|
+
* });
|
|
49
|
+
* //Source Translation (SNAT) - Static IP - Bidirectional - no
|
|
50
|
+
* const exampleNatStaticRule = new scm.NatRule("example_nat_static_rule", {
|
|
51
|
+
* name: "snat-to-bid-1",
|
|
52
|
+
* froms: ["any"],
|
|
53
|
+
* tos: ["untrust"],
|
|
54
|
+
* sources: ["any"],
|
|
55
|
+
* destinations: ["any"],
|
|
56
|
+
* service: "service-https",
|
|
57
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
58
|
+
* disabled: false,
|
|
59
|
+
* natType: "ipv4",
|
|
60
|
+
* folder: "All",
|
|
61
|
+
* tags: [exampleTag.name],
|
|
62
|
+
* sourceTranslation: {
|
|
63
|
+
* staticIp: {
|
|
64
|
+
* translatedAddress: "1.1.1.5",
|
|
65
|
+
* biDirectional: "no",
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* destinationTranslation: {
|
|
69
|
+
* translatedAddress: "192.168.1.10",
|
|
70
|
+
* translatedPort: 8080,
|
|
71
|
+
* },
|
|
72
|
+
* activeActiveDeviceBinding: "1",
|
|
73
|
+
* });
|
|
74
|
+
* //Source Translation (SNAT) - Static IP - Bidirectional - yes
|
|
75
|
+
* const exampleNatStaticRule2 = new scm.NatRule("example_nat_static_rule_2", {
|
|
76
|
+
* name: "snat-to-bid-yes-1",
|
|
77
|
+
* froms: ["any"],
|
|
78
|
+
* tos: ["untrust"],
|
|
79
|
+
* sources: ["any"],
|
|
80
|
+
* destinations: ["any"],
|
|
81
|
+
* service: "service-https",
|
|
82
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
83
|
+
* disabled: false,
|
|
84
|
+
* natType: "ipv4",
|
|
85
|
+
* folder: "All",
|
|
86
|
+
* tags: [exampleTag.name],
|
|
87
|
+
* sourceTranslation: {
|
|
88
|
+
* staticIp: {
|
|
89
|
+
* translatedAddress: "1.1.1.5",
|
|
90
|
+
* biDirectional: "yes",
|
|
91
|
+
* },
|
|
92
|
+
* },
|
|
93
|
+
* activeActiveDeviceBinding: "1",
|
|
94
|
+
* });
|
|
95
|
+
* //Source Translation (SNAT) - Dynamic IP
|
|
96
|
+
* const exampleNatDynamicRule = new scm.NatRule("example_nat_dynamic_rule", {
|
|
97
|
+
* name: "snat-to-dyanamic-1",
|
|
98
|
+
* froms: ["any"],
|
|
99
|
+
* tos: ["untrust"],
|
|
100
|
+
* sources: ["any"],
|
|
101
|
+
* destinations: ["any"],
|
|
102
|
+
* service: "service-https",
|
|
103
|
+
* description: "Dynamic SNAT for internal traffic accessing the internet. Updating",
|
|
104
|
+
* disabled: false,
|
|
105
|
+
* natType: "ipv4",
|
|
106
|
+
* folder: "All",
|
|
107
|
+
* tags: [exampleTag.name],
|
|
108
|
+
* sourceTranslation: {
|
|
109
|
+
* dynamicIp: {
|
|
110
|
+
* translatedAddresses: ["1.1.1.0/24"],
|
|
111
|
+
* fallback: {
|
|
112
|
+
* translatedAddresses: ["1.1.1.0"],
|
|
113
|
+
* interfaceAddress: {
|
|
114
|
+
* "interface": "ethernet1/1",
|
|
115
|
+
* ip: "1.1.1.5",
|
|
116
|
+
* },
|
|
117
|
+
* },
|
|
118
|
+
* },
|
|
119
|
+
* },
|
|
120
|
+
* destinationTranslation: {
|
|
121
|
+
* translatedAddress: "192.168.1.10",
|
|
122
|
+
* translatedPort: 8080,
|
|
123
|
+
* },
|
|
124
|
+
* activeActiveDeviceBinding: "1",
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
10
127
|
*/
|
|
11
128
|
class NatRule extends pulumi.CustomResource {
|
|
12
129
|
/**
|
|
@@ -38,11 +155,11 @@ class NatRule extends pulumi.CustomResource {
|
|
|
38
155
|
const state = argsOrState;
|
|
39
156
|
resourceInputs["activeActiveDeviceBinding"] = state?.activeActiveDeviceBinding;
|
|
40
157
|
resourceInputs["description"] = state?.description;
|
|
158
|
+
resourceInputs["destinationTranslation"] = state?.destinationTranslation;
|
|
41
159
|
resourceInputs["destinations"] = state?.destinations;
|
|
42
160
|
resourceInputs["device"] = state?.device;
|
|
43
161
|
resourceInputs["disabled"] = state?.disabled;
|
|
44
|
-
resourceInputs["
|
|
45
|
-
resourceInputs["dnsRewrite"] = state?.dnsRewrite;
|
|
162
|
+
resourceInputs["dynamicDestinationTranslation"] = state?.dynamicDestinationTranslation;
|
|
46
163
|
resourceInputs["folder"] = state?.folder;
|
|
47
164
|
resourceInputs["froms"] = state?.froms;
|
|
48
165
|
resourceInputs["name"] = state?.name;
|
|
@@ -56,8 +173,6 @@ class NatRule extends pulumi.CustomResource {
|
|
|
56
173
|
resourceInputs["tfid"] = state?.tfid;
|
|
57
174
|
resourceInputs["toInterface"] = state?.toInterface;
|
|
58
175
|
resourceInputs["tos"] = state?.tos;
|
|
59
|
-
resourceInputs["translatedAddressSingle"] = state?.translatedAddressSingle;
|
|
60
|
-
resourceInputs["translatedPort"] = state?.translatedPort;
|
|
61
176
|
}
|
|
62
177
|
else {
|
|
63
178
|
const args = argsOrState;
|
|
@@ -78,11 +193,11 @@ class NatRule extends pulumi.CustomResource {
|
|
|
78
193
|
}
|
|
79
194
|
resourceInputs["activeActiveDeviceBinding"] = args?.activeActiveDeviceBinding;
|
|
80
195
|
resourceInputs["description"] = args?.description;
|
|
196
|
+
resourceInputs["destinationTranslation"] = args?.destinationTranslation;
|
|
81
197
|
resourceInputs["destinations"] = args?.destinations;
|
|
82
198
|
resourceInputs["device"] = args?.device;
|
|
83
199
|
resourceInputs["disabled"] = args?.disabled;
|
|
84
|
-
resourceInputs["
|
|
85
|
-
resourceInputs["dnsRewrite"] = args?.dnsRewrite;
|
|
200
|
+
resourceInputs["dynamicDestinationTranslation"] = args?.dynamicDestinationTranslation;
|
|
86
201
|
resourceInputs["folder"] = args?.folder;
|
|
87
202
|
resourceInputs["froms"] = args?.froms;
|
|
88
203
|
resourceInputs["name"] = args?.name;
|
|
@@ -95,8 +210,6 @@ class NatRule extends pulumi.CustomResource {
|
|
|
95
210
|
resourceInputs["tags"] = args?.tags;
|
|
96
211
|
resourceInputs["toInterface"] = args?.toInterface;
|
|
97
212
|
resourceInputs["tos"] = args?.tos;
|
|
98
|
-
resourceInputs["translatedAddressSingle"] = args?.translatedAddressSingle;
|
|
99
|
-
resourceInputs["translatedPort"] = args?.translatedPort;
|
|
100
213
|
resourceInputs["tfid"] = undefined /*out*/;
|
|
101
214
|
}
|
|
102
215
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/natRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"natRule.js","sourceRoot":"","sources":["../natRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"natRule.js","sourceRoot":"","sources":["../natRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,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,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAnLL,0BAoLC;AAtKG,gBAAgB;AACO,oBAAY,GAAG,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/scm",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.1762844275",
|
|
4
4
|
"description": "A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"pulumi": {
|
|
26
26
|
"resource": true,
|
|
27
27
|
"name": "scm",
|
|
28
|
-
"version": "1.0.0-alpha.
|
|
28
|
+
"version": "1.0.0-alpha.1762844275"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/pbfRule.d.ts
CHANGED
|
@@ -3,6 +3,95 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* PbfRule 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 exampleTag = new scm.Tag("example_tag", {
|
|
14
|
+
* folder: "All",
|
|
15
|
+
* name: "pbf-rule-tag-test-1",
|
|
16
|
+
* color: "Red",
|
|
17
|
+
* });
|
|
18
|
+
* // --- PBF Rule Resource with discard action---
|
|
19
|
+
* const examplePbfRule = new scm.PbfRule("example_pbf_rule", {
|
|
20
|
+
* name: "pbf-test-rule-discard",
|
|
21
|
+
* folder: "All",
|
|
22
|
+
* description: "PBF rule for forwarding specific traffic.",
|
|
23
|
+
* from: {
|
|
24
|
+
* zones: ["zone-untrust"],
|
|
25
|
+
* },
|
|
26
|
+
* sources: ["any"],
|
|
27
|
+
* destinations: ["any"],
|
|
28
|
+
* applications: ["any"],
|
|
29
|
+
* services: ["service-http"],
|
|
30
|
+
* sourceUsers: ["any"],
|
|
31
|
+
* action: {
|
|
32
|
+
* discard: {},
|
|
33
|
+
* },
|
|
34
|
+
* tags: [exampleTag.name],
|
|
35
|
+
* enforceSymmetricReturn: {
|
|
36
|
+
* enabled: false,
|
|
37
|
+
* },
|
|
38
|
+
* schedule: "non-work-hours",
|
|
39
|
+
* });
|
|
40
|
+
* // --- PBF Rule Resource with no-pbf action---
|
|
41
|
+
* const exampleNoPbfRule = new scm.PbfRule("example_no_pbf_rule", {
|
|
42
|
+
* name: "pbf-test-rule-no-pbf",
|
|
43
|
+
* folder: "All",
|
|
44
|
+
* description: "PBF rule for forwarding specific traffic",
|
|
45
|
+
* from: {
|
|
46
|
+
* zones: ["zone-untrust"],
|
|
47
|
+
* },
|
|
48
|
+
* sources: ["any"],
|
|
49
|
+
* destinations: ["any"],
|
|
50
|
+
* applications: ["any"],
|
|
51
|
+
* services: ["service-https"],
|
|
52
|
+
* sourceUsers: ["any"],
|
|
53
|
+
* action: {
|
|
54
|
+
* noPbf: {},
|
|
55
|
+
* },
|
|
56
|
+
* tags: [exampleTag.name],
|
|
57
|
+
* enforceSymmetricReturn: {
|
|
58
|
+
* enabled: false,
|
|
59
|
+
* },
|
|
60
|
+
* schedule: "non-work-hours",
|
|
61
|
+
* });
|
|
62
|
+
* // --- PBF Rule Resource with forward action---
|
|
63
|
+
* const exampleForwardPbfRule = new scm.PbfRule("example_forward_pbf_rule", {
|
|
64
|
+
* name: "pbf-test-rule-forward",
|
|
65
|
+
* folder: "All",
|
|
66
|
+
* description: "PBF rule for forwarding specific traffic",
|
|
67
|
+
* from: {
|
|
68
|
+
* zones: ["zone-untrust"],
|
|
69
|
+
* },
|
|
70
|
+
* sources: ["any"],
|
|
71
|
+
* destinations: ["any"],
|
|
72
|
+
* applications: ["any"],
|
|
73
|
+
* services: ["service-http"],
|
|
74
|
+
* sourceUsers: ["any"],
|
|
75
|
+
* action: {
|
|
76
|
+
* forward: {
|
|
77
|
+
* egressInterface: "ethernet1/1",
|
|
78
|
+
* nexthop: {
|
|
79
|
+
* ipAddress: "192.168.1.254",
|
|
80
|
+
* },
|
|
81
|
+
* monitor: {
|
|
82
|
+
* ipAddress: "8.8.8.10",
|
|
83
|
+
* profile: "test_tf_profile",
|
|
84
|
+
* disableIfUnreachable: true,
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* tags: [exampleTag.name],
|
|
89
|
+
* enforceSymmetricReturn: {
|
|
90
|
+
* enabled: true,
|
|
91
|
+
* },
|
|
92
|
+
* schedule: "non-work-hours",
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
6
95
|
*/
|
|
7
96
|
export declare class PbfRule extends pulumi.CustomResource {
|
|
8
97
|
/**
|
package/pbfRule.js
CHANGED
|
@@ -7,6 +7,95 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* PbfRule 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 exampleTag = new scm.Tag("example_tag", {
|
|
18
|
+
* folder: "All",
|
|
19
|
+
* name: "pbf-rule-tag-test-1",
|
|
20
|
+
* color: "Red",
|
|
21
|
+
* });
|
|
22
|
+
* // --- PBF Rule Resource with discard action---
|
|
23
|
+
* const examplePbfRule = new scm.PbfRule("example_pbf_rule", {
|
|
24
|
+
* name: "pbf-test-rule-discard",
|
|
25
|
+
* folder: "All",
|
|
26
|
+
* description: "PBF rule for forwarding specific traffic.",
|
|
27
|
+
* from: {
|
|
28
|
+
* zones: ["zone-untrust"],
|
|
29
|
+
* },
|
|
30
|
+
* sources: ["any"],
|
|
31
|
+
* destinations: ["any"],
|
|
32
|
+
* applications: ["any"],
|
|
33
|
+
* services: ["service-http"],
|
|
34
|
+
* sourceUsers: ["any"],
|
|
35
|
+
* action: {
|
|
36
|
+
* discard: {},
|
|
37
|
+
* },
|
|
38
|
+
* tags: [exampleTag.name],
|
|
39
|
+
* enforceSymmetricReturn: {
|
|
40
|
+
* enabled: false,
|
|
41
|
+
* },
|
|
42
|
+
* schedule: "non-work-hours",
|
|
43
|
+
* });
|
|
44
|
+
* // --- PBF Rule Resource with no-pbf action---
|
|
45
|
+
* const exampleNoPbfRule = new scm.PbfRule("example_no_pbf_rule", {
|
|
46
|
+
* name: "pbf-test-rule-no-pbf",
|
|
47
|
+
* folder: "All",
|
|
48
|
+
* description: "PBF rule for forwarding specific traffic",
|
|
49
|
+
* from: {
|
|
50
|
+
* zones: ["zone-untrust"],
|
|
51
|
+
* },
|
|
52
|
+
* sources: ["any"],
|
|
53
|
+
* destinations: ["any"],
|
|
54
|
+
* applications: ["any"],
|
|
55
|
+
* services: ["service-https"],
|
|
56
|
+
* sourceUsers: ["any"],
|
|
57
|
+
* action: {
|
|
58
|
+
* noPbf: {},
|
|
59
|
+
* },
|
|
60
|
+
* tags: [exampleTag.name],
|
|
61
|
+
* enforceSymmetricReturn: {
|
|
62
|
+
* enabled: false,
|
|
63
|
+
* },
|
|
64
|
+
* schedule: "non-work-hours",
|
|
65
|
+
* });
|
|
66
|
+
* // --- PBF Rule Resource with forward action---
|
|
67
|
+
* const exampleForwardPbfRule = new scm.PbfRule("example_forward_pbf_rule", {
|
|
68
|
+
* name: "pbf-test-rule-forward",
|
|
69
|
+
* folder: "All",
|
|
70
|
+
* description: "PBF rule for forwarding specific traffic",
|
|
71
|
+
* from: {
|
|
72
|
+
* zones: ["zone-untrust"],
|
|
73
|
+
* },
|
|
74
|
+
* sources: ["any"],
|
|
75
|
+
* destinations: ["any"],
|
|
76
|
+
* applications: ["any"],
|
|
77
|
+
* services: ["service-http"],
|
|
78
|
+
* sourceUsers: ["any"],
|
|
79
|
+
* action: {
|
|
80
|
+
* forward: {
|
|
81
|
+
* egressInterface: "ethernet1/1",
|
|
82
|
+
* nexthop: {
|
|
83
|
+
* ipAddress: "192.168.1.254",
|
|
84
|
+
* },
|
|
85
|
+
* monitor: {
|
|
86
|
+
* ipAddress: "8.8.8.10",
|
|
87
|
+
* profile: "test_tf_profile",
|
|
88
|
+
* disableIfUnreachable: true,
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* tags: [exampleTag.name],
|
|
93
|
+
* enforceSymmetricReturn: {
|
|
94
|
+
* enabled: true,
|
|
95
|
+
* },
|
|
96
|
+
* schedule: "non-work-hours",
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
10
99
|
*/
|
|
11
100
|
class PbfRule extends pulumi.CustomResource {
|
|
12
101
|
/**
|
package/pbfRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbfRule.js","sourceRoot":"","sources":["../pbfRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"pbfRule.js","sourceRoot":"","sources":["../p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