@pulumi/scm 1.0.0-alpha.1762572739 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address.d.ts +3 -3
- package/address.js +3 -3
- package/addressGroup.d.ts +2 -2
- package/addressGroup.js +2 -2
- package/{aggregateInterface.d.ts → aggregateEthernetInterface.d.ts} +24 -26
- package/{aggregateInterface.js → aggregateEthernetInterface.js} +11 -13
- package/aggregateEthernetInterface.js.map +1 -0
- package/antiSpywareSignature.d.ts +3 -3
- package/appOverrideRule.d.ts +3 -128
- package/appOverrideRule.js +0 -95
- package/appOverrideRule.js.map +1 -1
- package/applicationFilter.d.ts +0 -16
- package/applicationFilter.js +0 -16
- package/applicationFilter.js.map +1 -1
- package/authenticationRule.d.ts +0 -123
- package/authenticationRule.js +0 -103
- package/authenticationRule.js.map +1 -1
- package/bgpRouteMapRedistribution.d.ts +6 -6
- package/certificateProfile.d.ts +0 -29
- package/certificateProfile.js +0 -29
- package/certificateProfile.js.map +1 -1
- package/decryptionProfile.d.ts +0 -139
- package/decryptionProfile.js +0 -139
- package/decryptionProfile.js.map +1 -1
- package/decryptionRule.d.ts +0 -139
- package/decryptionRule.js +0 -119
- package/decryptionRule.js.map +1 -1
- package/dnsProxy.d.ts +6 -6
- package/dnsSecurityProfile.d.ts +0 -2
- package/dnsSecurityProfile.js +0 -2
- package/dnsSecurityProfile.js.map +1 -1
- package/dynamicUserGroup.d.ts +3 -3
- package/dynamicUserGroup.js +3 -3
- package/ethernetInterface.d.ts +11 -13
- package/ethernetInterface.js +0 -2
- package/ethernetInterface.js.map +1 -1
- package/externalDynamicList.d.ts +0 -80
- package/externalDynamicList.js +0 -80
- package/externalDynamicList.js.map +1 -1
- package/folder.d.ts +0 -60
- package/folder.js +0 -60
- 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/getAggregateEthernetInterface.d.ts +78 -0
- package/getAggregateEthernetInterface.js +30 -0
- package/getAggregateEthernetInterface.js.map +1 -0
- package/{getAggregateInterfaceList.d.ts → getAggregateEthernetInterfaceList.d.ts} +9 -35
- package/getAggregateEthernetInterfaceList.js +40 -0
- package/getAggregateEthernetInterfaceList.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 +1 -65
- package/getAppOverrideRule.js +0 -52
- package/getAppOverrideRule.js.map +1 -1
- package/getAppOverrideRuleList.d.ts +2 -48
- package/getAppOverrideRuleList.js +2 -36
- 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 +0 -74
- package/getAuthenticationRule.js +0 -62
- package/getAuthenticationRule.js.map +1 -1
- package/getAuthenticationRuleList.d.ts +2 -50
- package/getAuthenticationRuleList.js +2 -38
- 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 +0 -40
- package/getDecryptionProfile.js +0 -40
- package/getDecryptionProfile.js.map +1 -1
- package/getDecryptionProfileList.d.ts +0 -32
- package/getDecryptionProfileList.js +0 -32
- package/getDecryptionProfileList.js.map +1 -1
- package/getDecryptionRule.d.ts +0 -74
- package/getDecryptionRule.js +0 -62
- package/getDecryptionRule.js.map +1 -1
- package/getDecryptionRuleList.d.ts +2 -48
- package/getDecryptionRuleList.js +2 -36
- package/getDecryptionRuleList.js.map +1 -1
- package/getDnsProxy.d.ts +1 -1
- package/getDnsSecurityProfile.d.ts +0 -40
- package/getDnsSecurityProfile.js +0 -40
- package/getDnsSecurityProfile.js.map +1 -1
- package/getDnsSecurityProfileList.d.ts +0 -32
- package/getDnsSecurityProfileList.js +0 -32
- package/getDnsSecurityProfileList.js.map +1 -1
- package/getDynamicUserGroupList.d.ts +4 -4
- package/getDynamicUserGroupList.js +4 -4
- package/getEthernetInterface.d.ts +2 -40
- package/getEthernetInterface.js +0 -38
- package/getEthernetInterface.js.map +1 -1
- package/getEthernetInterfaceList.d.ts +0 -26
- package/getEthernetInterfaceList.js +0 -26
- package/getEthernetInterfaceList.js.map +1 -1
- package/getExternalDynamicListList.d.ts +4 -4
- package/getExternalDynamicListList.js +4 -4
- package/getFolder.d.ts +0 -36
- package/getFolder.js +0 -36
- 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 +8 -89
- package/getInterfaceManagementProfile.js +0 -80
- package/getInterfaceManagementProfile.js.map +1 -1
- package/getInterfaceManagementProfileList.d.ts +0 -42
- package/getInterfaceManagementProfileList.js +0 -42
- package/getInterfaceManagementProfileList.js.map +1 -1
- package/getLayer2Subinterface.d.ts +2 -42
- package/getLayer2Subinterface.js +0 -40
- package/getLayer2Subinterface.js.map +1 -1
- package/getLayer2SubinterfaceList.d.ts +0 -26
- package/getLayer2SubinterfaceList.js +0 -26
- package/getLayer2SubinterfaceList.js.map +1 -1
- package/getLayer3Subinterface.d.ts +3 -45
- package/getLayer3Subinterface.js +0 -42
- package/getLayer3Subinterface.js.map +1 -1
- package/getLayer3SubinterfaceList.d.ts +0 -26
- package/getLayer3SubinterfaceList.js +0 -26
- package/getLayer3SubinterfaceList.js.map +1 -1
- package/getLogicalRouter.d.ts +0 -38
- package/getLogicalRouter.js +0 -38
- package/getLogicalRouter.js.map +1 -1
- package/getLogicalRouterList.d.ts +0 -40
- package/getLogicalRouterList.js +0 -30
- package/getLogicalRouterList.js.map +1 -1
- package/getLoopbackInterface.d.ts +7 -49
- package/getLoopbackInterface.js +0 -38
- package/getLoopbackInterface.js.map +1 -1
- package/getLoopbackInterfaceList.d.ts +0 -26
- package/getLoopbackInterfaceList.js +0 -26
- package/getLoopbackInterfaceList.js.map +1 -1
- package/getNatRule.d.ts +14 -86
- package/getNatRule.js +0 -76
- package/getNatRule.js.map +1 -1
- package/getNatRuleList.d.ts +2 -52
- package/getNatRuleList.js +2 -40
- package/getNatRuleList.js.map +1 -1
- package/getPbfRule.d.ts +0 -88
- package/getPbfRule.js +0 -88
- package/getPbfRule.js.map +1 -1
- package/getPbfRuleList.d.ts +0 -34
- package/getPbfRuleList.js +0 -34
- package/getPbfRuleList.js.map +1 -1
- package/getQosPolicyRule.d.ts +0 -72
- package/getQosPolicyRule.js +0 -60
- package/getQosPolicyRule.js.map +1 -1
- package/getQosPolicyRuleList.d.ts +2 -48
- package/getQosPolicyRuleList.js +2 -36
- package/getQosPolicyRuleList.js.map +1 -1
- package/getRadiusServerProfile.d.ts +0 -54
- package/getRadiusServerProfile.js +0 -54
- package/getRadiusServerProfile.js.map +1 -1
- package/getSdwanTrafficDistributionProfile.d.ts +1 -1
- package/getSecurityRule.d.ts +0 -106
- package/getSecurityRule.js +0 -94
- package/getSecurityRule.js.map +1 -1
- package/getSecurityRuleList.d.ts +2 -46
- package/getSecurityRuleList.js +2 -34
- package/getSecurityRuleList.js.map +1 -1
- package/getServiceConnection.d.ts +1 -177
- package/getServiceConnection.js +0 -176
- package/getServiceConnection.js.map +1 -1
- package/getServiceConnectionGroup.d.ts +0 -208
- package/getServiceConnectionGroup.js +0 -208
- 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 +0 -48
- package/getSnippet.js +0 -48
- package/getSnippet.js.map +1 -1
- package/getSnippetList.d.ts +0 -24
- package/getSnippetList.js +0 -24
- package/getSnippetList.js.map +1 -1
- package/getTagList.d.ts +2 -2
- package/getTagList.js +2 -2
- package/getTunnelInterface.d.ts +4 -42
- package/getTunnelInterface.js +0 -38
- package/getTunnelInterface.js.map +1 -1
- package/getTunnelInterfaceList.d.ts +0 -26
- package/getTunnelInterfaceList.js +0 -26
- 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 +6 -46
- package/getVlanInterface.js +0 -40
- package/getVlanInterface.js.map +1 -1
- package/getVlanInterfaceList.d.ts +0 -26
- package/getVlanInterfaceList.js +0 -26
- package/getVlanInterfaceList.js.map +1 -1
- package/getVulnerabilityProtectionProfileList.d.ts +2 -2
- package/getVulnerabilityProtectionProfileList.js +2 -2
- package/getVulnerabilityProtectionSignature.d.ts +1 -41
- package/getVulnerabilityProtectionSignature.js +0 -40
- package/getVulnerabilityProtectionSignature.js.map +1 -1
- package/getVulnerabilityProtectionSignatureList.d.ts +0 -32
- package/getVulnerabilityProtectionSignatureList.js +0 -32
- package/getVulnerabilityProtectionSignatureList.js.map +1 -1
- package/getZone.d.ts +0 -44
- package/getZone.js +0 -44
- package/getZone.js.map +1 -1
- package/getZoneList.d.ts +0 -26
- package/getZoneList.js +0 -26
- package/getZoneList.js.map +1 -1
- package/ikeGateway.d.ts +0 -49
- package/ikeGateway.js +0 -49
- 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 +24 -56
- package/interfaceManagementProfile.js +0 -30
- package/interfaceManagementProfile.js.map +1 -1
- package/ipsecCryptoProfile.d.ts +0 -28
- package/ipsecCryptoProfile.js +0 -28
- package/ipsecCryptoProfile.js.map +1 -1
- package/ipsecTunnel.d.ts +0 -66
- package/ipsecTunnel.js +0 -66
- package/ipsecTunnel.js.map +1 -1
- package/layer2Subinterface.d.ts +7 -36
- package/layer2Subinterface.js +0 -32
- package/layer2Subinterface.js.map +1 -1
- package/layer3Subinterface.d.ts +11 -70
- package/layer3Subinterface.js +0 -59
- package/layer3Subinterface.js.map +1 -1
- package/logicalRouter.d.ts +0 -2
- package/logicalRouter.js +0 -2
- package/logicalRouter.js.map +1 -1
- package/loopbackInterface.d.ts +15 -58
- package/loopbackInterface.js +2 -35
- package/loopbackInterface.js.map +1 -1
- package/natRule.d.ts +42 -135
- package/natRule.js +8 -121
- package/natRule.js.map +1 -1
- package/package.json +2 -2
- package/pbfRule.d.ts +0 -89
- package/pbfRule.js +0 -89
- package/pbfRule.js.map +1 -1
- package/qosPolicyRule.d.ts +0 -95
- package/qosPolicyRule.js +0 -75
- package/qosPolicyRule.js.map +1 -1
- package/radiusServerProfile.d.ts +0 -38
- package/radiusServerProfile.js +0 -38
- package/radiusServerProfile.js.map +1 -1
- package/remoteNetwork.d.ts +0 -81
- package/remoteNetwork.js +0 -81
- package/remoteNetwork.js.map +1 -1
- package/sdwanTrafficDistributionProfile.d.ts +4 -4
- package/securityRule.d.ts +0 -181
- package/securityRule.js +0 -161
- package/securityRule.js.map +1 -1
- package/serviceConnection.d.ts +3 -82
- package/serviceConnection.js +2 -81
- package/serviceConnection.js.map +1 -1
- package/serviceConnectionGroup.d.ts +0 -100
- package/serviceConnectionGroup.js +0 -100
- package/serviceConnectionGroup.js.map +1 -1
- package/serviceGroup.d.ts +2 -2
- package/serviceGroup.js +2 -2
- package/snippet.d.ts +0 -23
- package/snippet.js +0 -23
- package/snippet.js.map +1 -1
- package/tag.d.ts +3 -3
- package/tag.js +3 -3
- package/tunnelInterface.d.ts +12 -42
- package/tunnelInterface.js +2 -32
- package/tunnelInterface.js.map +1 -1
- package/types/input.d.ts +335 -607
- package/types/output.d.ts +1069 -1945
- package/vlanInterface.d.ts +20 -40
- package/vlanInterface.js +0 -20
- package/vlanInterface.js.map +1 -1
- package/vulnerabilityProtectionSignature.d.ts +10 -12
- package/vulnerabilityProtectionSignature.js +0 -14
- package/vulnerabilityProtectionSignature.js.map +1 -1
- package/zone.d.ts +0 -71
- package/zone.js +0 -71
- package/zone.js.map +1 -1
- package/aggregateInterface.js.map +0 -1
- package/getAggregateInterface.d.ts +0 -116
- package/getAggregateInterface.js +0 -68
- package/getAggregateInterface.js.map +0 -1
- package/getAggregateInterfaceList.js +0 -66
- package/getAggregateInterfaceList.js.map +0 -1
|
@@ -3,110 +3,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* ServiceConnectionGroup data source
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as scm from "@pulumi/scm";
|
|
10
|
-
*
|
|
11
|
-
* const config = new pulumi.Config();
|
|
12
|
-
* // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name).
|
|
13
|
-
* const folderScope = config.get("folderScope") || "Service Connections";
|
|
14
|
-
* //# 1. IKE Crypto Profile (IKE Phase 1)
|
|
15
|
-
* const example = new scm.IkeCryptoProfile("example", {
|
|
16
|
-
* name: "example-ike-crypto_sc_grp",
|
|
17
|
-
* folder: folderScope,
|
|
18
|
-
* hashes: ["sha256"],
|
|
19
|
-
* dhGroups: ["group14"],
|
|
20
|
-
* encryptions: ["aes-256-cbc"],
|
|
21
|
-
* });
|
|
22
|
-
* //# 2. IPsec Crypto Profile (IKE Phase 2)
|
|
23
|
-
* const exampleIpsecCryptoProfile = new scm.IpsecCryptoProfile("example", {
|
|
24
|
-
* name: "panw-IPSec-Crypto_sc_grp",
|
|
25
|
-
* folder: folderScope,
|
|
26
|
-
* esp: {
|
|
27
|
-
* encryptions: ["aes-256-gcm"],
|
|
28
|
-
* authentications: ["sha256"],
|
|
29
|
-
* },
|
|
30
|
-
* dhGroup: "group14",
|
|
31
|
-
* lifetime: {
|
|
32
|
-
* hours: 8,
|
|
33
|
-
* },
|
|
34
|
-
* });
|
|
35
|
-
* //# 3. IKE Gateway
|
|
36
|
-
* const exampleIkeGateway = new scm.IkeGateway("example", {
|
|
37
|
-
* name: "example-gateway_sc_grp",
|
|
38
|
-
* folder: folderScope,
|
|
39
|
-
* peerAddress: {
|
|
40
|
-
* ip: "1.1.1.1",
|
|
41
|
-
* },
|
|
42
|
-
* authentication: {
|
|
43
|
-
* preSharedKey: {
|
|
44
|
-
* key: "secret",
|
|
45
|
-
* },
|
|
46
|
-
* },
|
|
47
|
-
* protocol: {
|
|
48
|
-
* ikev1: {
|
|
49
|
-
* ikeCryptoProfile: example.name,
|
|
50
|
-
* },
|
|
51
|
-
* },
|
|
52
|
-
* });
|
|
53
|
-
* //# 4. IPsec Tunnel
|
|
54
|
-
* const exampleIpsecTunnel = new scm.IpsecTunnel("example", {
|
|
55
|
-
* name: "example-tunnel_sc_grp",
|
|
56
|
-
* folder: folderScope,
|
|
57
|
-
* tunnelInterface: "tunnel",
|
|
58
|
-
* antiReplay: true,
|
|
59
|
-
* copyTos: false,
|
|
60
|
-
* enableGreEncapsulation: false,
|
|
61
|
-
* autoKey: {
|
|
62
|
-
* ikeGateways: [{
|
|
63
|
-
* name: exampleIkeGateway.name,
|
|
64
|
-
* }],
|
|
65
|
-
* ipsecCryptoProfile: exampleIpsecCryptoProfile.name,
|
|
66
|
-
* },
|
|
67
|
-
* }, {
|
|
68
|
-
* dependsOn: [exampleIkeGateway],
|
|
69
|
-
* });
|
|
70
|
-
* //# 5. Service Connection (The target for the group)
|
|
71
|
-
* const siteAVpnSc = new scm.ServiceConnection("site_a_vpn_sc", {
|
|
72
|
-
* name: "creating_a_service_connection_sc_grp",
|
|
73
|
-
* region: "us-west-1a",
|
|
74
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
75
|
-
* subnets: [
|
|
76
|
-
* "10.1.0.0/16",
|
|
77
|
-
* "172.16.0.0/24",
|
|
78
|
-
* ],
|
|
79
|
-
* sourceNat: false,
|
|
80
|
-
* });
|
|
81
|
-
* //# 5. Service Connection (The target for the group)
|
|
82
|
-
* const siteAVpnSc2 = new scm.ServiceConnection("site_a_vpn_sc_2", {
|
|
83
|
-
* name: "creating_a_service_connection_sc_grp_2",
|
|
84
|
-
* region: "us-west-1a",
|
|
85
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
86
|
-
* subnets: [
|
|
87
|
-
* "10.1.0.0/16",
|
|
88
|
-
* "172.16.0.0/24",
|
|
89
|
-
* ],
|
|
90
|
-
* sourceNat: false,
|
|
91
|
-
* });
|
|
92
|
-
* //# 6. Service Connection Group (Groups the Service Connection created above)
|
|
93
|
-
* const exampleGroup = new scm.ServiceConnectionGroup("example_group", {
|
|
94
|
-
* name: "service-connection-group-app_sc_grp",
|
|
95
|
-
* targets: [
|
|
96
|
-
* siteAVpnSc.name,
|
|
97
|
-
* siteAVpnSc2.name,
|
|
98
|
-
* ],
|
|
99
|
-
* disableSnat: false,
|
|
100
|
-
* pbfOnly: true,
|
|
101
|
-
* });
|
|
102
|
-
* // ------------------------------------------------------------------
|
|
103
|
-
* // Data Source: SCM Service Connection Group (Single Lookup)
|
|
104
|
-
* // ------------------------------------------------------------------
|
|
105
|
-
* const groupLookup = scm.getServiceConnectionGroupOutput({
|
|
106
|
-
* id: exampleGroup.id,
|
|
107
|
-
* });
|
|
108
|
-
* export const lookedUpServiceConnectionGroupDetails = groupLookup;
|
|
109
|
-
* ```
|
|
110
6
|
*/
|
|
111
7
|
export declare function getServiceConnectionGroup(args: GetServiceConnectionGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceConnectionGroupResult>;
|
|
112
8
|
/**
|
|
@@ -152,110 +48,6 @@ export interface GetServiceConnectionGroupResult {
|
|
|
152
48
|
* ServiceConnectionGroup data source
|
|
153
49
|
*
|
|
154
50
|
* ## Example Usage
|
|
155
|
-
*
|
|
156
|
-
* ```typescript
|
|
157
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
158
|
-
* import * as scm from "@pulumi/scm";
|
|
159
|
-
*
|
|
160
|
-
* const config = new pulumi.Config();
|
|
161
|
-
* // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name).
|
|
162
|
-
* const folderScope = config.get("folderScope") || "Service Connections";
|
|
163
|
-
* //# 1. IKE Crypto Profile (IKE Phase 1)
|
|
164
|
-
* const example = new scm.IkeCryptoProfile("example", {
|
|
165
|
-
* name: "example-ike-crypto_sc_grp",
|
|
166
|
-
* folder: folderScope,
|
|
167
|
-
* hashes: ["sha256"],
|
|
168
|
-
* dhGroups: ["group14"],
|
|
169
|
-
* encryptions: ["aes-256-cbc"],
|
|
170
|
-
* });
|
|
171
|
-
* //# 2. IPsec Crypto Profile (IKE Phase 2)
|
|
172
|
-
* const exampleIpsecCryptoProfile = new scm.IpsecCryptoProfile("example", {
|
|
173
|
-
* name: "panw-IPSec-Crypto_sc_grp",
|
|
174
|
-
* folder: folderScope,
|
|
175
|
-
* esp: {
|
|
176
|
-
* encryptions: ["aes-256-gcm"],
|
|
177
|
-
* authentications: ["sha256"],
|
|
178
|
-
* },
|
|
179
|
-
* dhGroup: "group14",
|
|
180
|
-
* lifetime: {
|
|
181
|
-
* hours: 8,
|
|
182
|
-
* },
|
|
183
|
-
* });
|
|
184
|
-
* //# 3. IKE Gateway
|
|
185
|
-
* const exampleIkeGateway = new scm.IkeGateway("example", {
|
|
186
|
-
* name: "example-gateway_sc_grp",
|
|
187
|
-
* folder: folderScope,
|
|
188
|
-
* peerAddress: {
|
|
189
|
-
* ip: "1.1.1.1",
|
|
190
|
-
* },
|
|
191
|
-
* authentication: {
|
|
192
|
-
* preSharedKey: {
|
|
193
|
-
* key: "secret",
|
|
194
|
-
* },
|
|
195
|
-
* },
|
|
196
|
-
* protocol: {
|
|
197
|
-
* ikev1: {
|
|
198
|
-
* ikeCryptoProfile: example.name,
|
|
199
|
-
* },
|
|
200
|
-
* },
|
|
201
|
-
* });
|
|
202
|
-
* //# 4. IPsec Tunnel
|
|
203
|
-
* const exampleIpsecTunnel = new scm.IpsecTunnel("example", {
|
|
204
|
-
* name: "example-tunnel_sc_grp",
|
|
205
|
-
* folder: folderScope,
|
|
206
|
-
* tunnelInterface: "tunnel",
|
|
207
|
-
* antiReplay: true,
|
|
208
|
-
* copyTos: false,
|
|
209
|
-
* enableGreEncapsulation: false,
|
|
210
|
-
* autoKey: {
|
|
211
|
-
* ikeGateways: [{
|
|
212
|
-
* name: exampleIkeGateway.name,
|
|
213
|
-
* }],
|
|
214
|
-
* ipsecCryptoProfile: exampleIpsecCryptoProfile.name,
|
|
215
|
-
* },
|
|
216
|
-
* }, {
|
|
217
|
-
* dependsOn: [exampleIkeGateway],
|
|
218
|
-
* });
|
|
219
|
-
* //# 5. Service Connection (The target for the group)
|
|
220
|
-
* const siteAVpnSc = new scm.ServiceConnection("site_a_vpn_sc", {
|
|
221
|
-
* name: "creating_a_service_connection_sc_grp",
|
|
222
|
-
* region: "us-west-1a",
|
|
223
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
224
|
-
* subnets: [
|
|
225
|
-
* "10.1.0.0/16",
|
|
226
|
-
* "172.16.0.0/24",
|
|
227
|
-
* ],
|
|
228
|
-
* sourceNat: false,
|
|
229
|
-
* });
|
|
230
|
-
* //# 5. Service Connection (The target for the group)
|
|
231
|
-
* const siteAVpnSc2 = new scm.ServiceConnection("site_a_vpn_sc_2", {
|
|
232
|
-
* name: "creating_a_service_connection_sc_grp_2",
|
|
233
|
-
* region: "us-west-1a",
|
|
234
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
235
|
-
* subnets: [
|
|
236
|
-
* "10.1.0.0/16",
|
|
237
|
-
* "172.16.0.0/24",
|
|
238
|
-
* ],
|
|
239
|
-
* sourceNat: false,
|
|
240
|
-
* });
|
|
241
|
-
* //# 6. Service Connection Group (Groups the Service Connection created above)
|
|
242
|
-
* const exampleGroup = new scm.ServiceConnectionGroup("example_group", {
|
|
243
|
-
* name: "service-connection-group-app_sc_grp",
|
|
244
|
-
* targets: [
|
|
245
|
-
* siteAVpnSc.name,
|
|
246
|
-
* siteAVpnSc2.name,
|
|
247
|
-
* ],
|
|
248
|
-
* disableSnat: false,
|
|
249
|
-
* pbfOnly: true,
|
|
250
|
-
* });
|
|
251
|
-
* // ------------------------------------------------------------------
|
|
252
|
-
* // Data Source: SCM Service Connection Group (Single Lookup)
|
|
253
|
-
* // ------------------------------------------------------------------
|
|
254
|
-
* const groupLookup = scm.getServiceConnectionGroupOutput({
|
|
255
|
-
* id: exampleGroup.id,
|
|
256
|
-
* });
|
|
257
|
-
* export const lookedUpServiceConnectionGroupDetails = groupLookup;
|
|
258
|
-
* ```
|
|
259
51
|
*/
|
|
260
52
|
export declare function getServiceConnectionGroupOutput(args: GetServiceConnectionGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceConnectionGroupResult>;
|
|
261
53
|
/**
|
|
@@ -9,110 +9,6 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* ServiceConnectionGroup data source
|
|
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
|
-
* const config = new pulumi.Config();
|
|
18
|
-
* // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name).
|
|
19
|
-
* const folderScope = config.get("folderScope") || "Service Connections";
|
|
20
|
-
* //# 1. IKE Crypto Profile (IKE Phase 1)
|
|
21
|
-
* const example = new scm.IkeCryptoProfile("example", {
|
|
22
|
-
* name: "example-ike-crypto_sc_grp",
|
|
23
|
-
* folder: folderScope,
|
|
24
|
-
* hashes: ["sha256"],
|
|
25
|
-
* dhGroups: ["group14"],
|
|
26
|
-
* encryptions: ["aes-256-cbc"],
|
|
27
|
-
* });
|
|
28
|
-
* //# 2. IPsec Crypto Profile (IKE Phase 2)
|
|
29
|
-
* const exampleIpsecCryptoProfile = new scm.IpsecCryptoProfile("example", {
|
|
30
|
-
* name: "panw-IPSec-Crypto_sc_grp",
|
|
31
|
-
* folder: folderScope,
|
|
32
|
-
* esp: {
|
|
33
|
-
* encryptions: ["aes-256-gcm"],
|
|
34
|
-
* authentications: ["sha256"],
|
|
35
|
-
* },
|
|
36
|
-
* dhGroup: "group14",
|
|
37
|
-
* lifetime: {
|
|
38
|
-
* hours: 8,
|
|
39
|
-
* },
|
|
40
|
-
* });
|
|
41
|
-
* //# 3. IKE Gateway
|
|
42
|
-
* const exampleIkeGateway = new scm.IkeGateway("example", {
|
|
43
|
-
* name: "example-gateway_sc_grp",
|
|
44
|
-
* folder: folderScope,
|
|
45
|
-
* peerAddress: {
|
|
46
|
-
* ip: "1.1.1.1",
|
|
47
|
-
* },
|
|
48
|
-
* authentication: {
|
|
49
|
-
* preSharedKey: {
|
|
50
|
-
* key: "secret",
|
|
51
|
-
* },
|
|
52
|
-
* },
|
|
53
|
-
* protocol: {
|
|
54
|
-
* ikev1: {
|
|
55
|
-
* ikeCryptoProfile: example.name,
|
|
56
|
-
* },
|
|
57
|
-
* },
|
|
58
|
-
* });
|
|
59
|
-
* //# 4. IPsec Tunnel
|
|
60
|
-
* const exampleIpsecTunnel = new scm.IpsecTunnel("example", {
|
|
61
|
-
* name: "example-tunnel_sc_grp",
|
|
62
|
-
* folder: folderScope,
|
|
63
|
-
* tunnelInterface: "tunnel",
|
|
64
|
-
* antiReplay: true,
|
|
65
|
-
* copyTos: false,
|
|
66
|
-
* enableGreEncapsulation: false,
|
|
67
|
-
* autoKey: {
|
|
68
|
-
* ikeGateways: [{
|
|
69
|
-
* name: exampleIkeGateway.name,
|
|
70
|
-
* }],
|
|
71
|
-
* ipsecCryptoProfile: exampleIpsecCryptoProfile.name,
|
|
72
|
-
* },
|
|
73
|
-
* }, {
|
|
74
|
-
* dependsOn: [exampleIkeGateway],
|
|
75
|
-
* });
|
|
76
|
-
* //# 5. Service Connection (The target for the group)
|
|
77
|
-
* const siteAVpnSc = new scm.ServiceConnection("site_a_vpn_sc", {
|
|
78
|
-
* name: "creating_a_service_connection_sc_grp",
|
|
79
|
-
* region: "us-west-1a",
|
|
80
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
81
|
-
* subnets: [
|
|
82
|
-
* "10.1.0.0/16",
|
|
83
|
-
* "172.16.0.0/24",
|
|
84
|
-
* ],
|
|
85
|
-
* sourceNat: false,
|
|
86
|
-
* });
|
|
87
|
-
* //# 5. Service Connection (The target for the group)
|
|
88
|
-
* const siteAVpnSc2 = new scm.ServiceConnection("site_a_vpn_sc_2", {
|
|
89
|
-
* name: "creating_a_service_connection_sc_grp_2",
|
|
90
|
-
* region: "us-west-1a",
|
|
91
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
92
|
-
* subnets: [
|
|
93
|
-
* "10.1.0.0/16",
|
|
94
|
-
* "172.16.0.0/24",
|
|
95
|
-
* ],
|
|
96
|
-
* sourceNat: false,
|
|
97
|
-
* });
|
|
98
|
-
* //# 6. Service Connection Group (Groups the Service Connection created above)
|
|
99
|
-
* const exampleGroup = new scm.ServiceConnectionGroup("example_group", {
|
|
100
|
-
* name: "service-connection-group-app_sc_grp",
|
|
101
|
-
* targets: [
|
|
102
|
-
* siteAVpnSc.name,
|
|
103
|
-
* siteAVpnSc2.name,
|
|
104
|
-
* ],
|
|
105
|
-
* disableSnat: false,
|
|
106
|
-
* pbfOnly: true,
|
|
107
|
-
* });
|
|
108
|
-
* // ------------------------------------------------------------------
|
|
109
|
-
* // Data Source: SCM Service Connection Group (Single Lookup)
|
|
110
|
-
* // ------------------------------------------------------------------
|
|
111
|
-
* const groupLookup = scm.getServiceConnectionGroupOutput({
|
|
112
|
-
* id: exampleGroup.id,
|
|
113
|
-
* });
|
|
114
|
-
* export const lookedUpServiceConnectionGroupDetails = groupLookup;
|
|
115
|
-
* ```
|
|
116
12
|
*/
|
|
117
13
|
function getServiceConnectionGroup(args, opts) {
|
|
118
14
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -126,110 +22,6 @@ exports.getServiceConnectionGroup = getServiceConnectionGroup;
|
|
|
126
22
|
* ServiceConnectionGroup data source
|
|
127
23
|
*
|
|
128
24
|
* ## Example Usage
|
|
129
|
-
*
|
|
130
|
-
* ```typescript
|
|
131
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
132
|
-
* import * as scm from "@pulumi/scm";
|
|
133
|
-
*
|
|
134
|
-
* const config = new pulumi.Config();
|
|
135
|
-
* // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name).
|
|
136
|
-
* const folderScope = config.get("folderScope") || "Service Connections";
|
|
137
|
-
* //# 1. IKE Crypto Profile (IKE Phase 1)
|
|
138
|
-
* const example = new scm.IkeCryptoProfile("example", {
|
|
139
|
-
* name: "example-ike-crypto_sc_grp",
|
|
140
|
-
* folder: folderScope,
|
|
141
|
-
* hashes: ["sha256"],
|
|
142
|
-
* dhGroups: ["group14"],
|
|
143
|
-
* encryptions: ["aes-256-cbc"],
|
|
144
|
-
* });
|
|
145
|
-
* //# 2. IPsec Crypto Profile (IKE Phase 2)
|
|
146
|
-
* const exampleIpsecCryptoProfile = new scm.IpsecCryptoProfile("example", {
|
|
147
|
-
* name: "panw-IPSec-Crypto_sc_grp",
|
|
148
|
-
* folder: folderScope,
|
|
149
|
-
* esp: {
|
|
150
|
-
* encryptions: ["aes-256-gcm"],
|
|
151
|
-
* authentications: ["sha256"],
|
|
152
|
-
* },
|
|
153
|
-
* dhGroup: "group14",
|
|
154
|
-
* lifetime: {
|
|
155
|
-
* hours: 8,
|
|
156
|
-
* },
|
|
157
|
-
* });
|
|
158
|
-
* //# 3. IKE Gateway
|
|
159
|
-
* const exampleIkeGateway = new scm.IkeGateway("example", {
|
|
160
|
-
* name: "example-gateway_sc_grp",
|
|
161
|
-
* folder: folderScope,
|
|
162
|
-
* peerAddress: {
|
|
163
|
-
* ip: "1.1.1.1",
|
|
164
|
-
* },
|
|
165
|
-
* authentication: {
|
|
166
|
-
* preSharedKey: {
|
|
167
|
-
* key: "secret",
|
|
168
|
-
* },
|
|
169
|
-
* },
|
|
170
|
-
* protocol: {
|
|
171
|
-
* ikev1: {
|
|
172
|
-
* ikeCryptoProfile: example.name,
|
|
173
|
-
* },
|
|
174
|
-
* },
|
|
175
|
-
* });
|
|
176
|
-
* //# 4. IPsec Tunnel
|
|
177
|
-
* const exampleIpsecTunnel = new scm.IpsecTunnel("example", {
|
|
178
|
-
* name: "example-tunnel_sc_grp",
|
|
179
|
-
* folder: folderScope,
|
|
180
|
-
* tunnelInterface: "tunnel",
|
|
181
|
-
* antiReplay: true,
|
|
182
|
-
* copyTos: false,
|
|
183
|
-
* enableGreEncapsulation: false,
|
|
184
|
-
* autoKey: {
|
|
185
|
-
* ikeGateways: [{
|
|
186
|
-
* name: exampleIkeGateway.name,
|
|
187
|
-
* }],
|
|
188
|
-
* ipsecCryptoProfile: exampleIpsecCryptoProfile.name,
|
|
189
|
-
* },
|
|
190
|
-
* }, {
|
|
191
|
-
* dependsOn: [exampleIkeGateway],
|
|
192
|
-
* });
|
|
193
|
-
* //# 5. Service Connection (The target for the group)
|
|
194
|
-
* const siteAVpnSc = new scm.ServiceConnection("site_a_vpn_sc", {
|
|
195
|
-
* name: "creating_a_service_connection_sc_grp",
|
|
196
|
-
* region: "us-west-1a",
|
|
197
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
198
|
-
* subnets: [
|
|
199
|
-
* "10.1.0.0/16",
|
|
200
|
-
* "172.16.0.0/24",
|
|
201
|
-
* ],
|
|
202
|
-
* sourceNat: false,
|
|
203
|
-
* });
|
|
204
|
-
* //# 5. Service Connection (The target for the group)
|
|
205
|
-
* const siteAVpnSc2 = new scm.ServiceConnection("site_a_vpn_sc_2", {
|
|
206
|
-
* name: "creating_a_service_connection_sc_grp_2",
|
|
207
|
-
* region: "us-west-1a",
|
|
208
|
-
* ipsecTunnel: exampleIpsecTunnel.name,
|
|
209
|
-
* subnets: [
|
|
210
|
-
* "10.1.0.0/16",
|
|
211
|
-
* "172.16.0.0/24",
|
|
212
|
-
* ],
|
|
213
|
-
* sourceNat: false,
|
|
214
|
-
* });
|
|
215
|
-
* //# 6. Service Connection Group (Groups the Service Connection created above)
|
|
216
|
-
* const exampleGroup = new scm.ServiceConnectionGroup("example_group", {
|
|
217
|
-
* name: "service-connection-group-app_sc_grp",
|
|
218
|
-
* targets: [
|
|
219
|
-
* siteAVpnSc.name,
|
|
220
|
-
* siteAVpnSc2.name,
|
|
221
|
-
* ],
|
|
222
|
-
* disableSnat: false,
|
|
223
|
-
* pbfOnly: true,
|
|
224
|
-
* });
|
|
225
|
-
* // ------------------------------------------------------------------
|
|
226
|
-
* // Data Source: SCM Service Connection Group (Single Lookup)
|
|
227
|
-
* // ------------------------------------------------------------------
|
|
228
|
-
* const groupLookup = scm.getServiceConnectionGroupOutput({
|
|
229
|
-
* id: exampleGroup.id,
|
|
230
|
-
* });
|
|
231
|
-
* export const lookedUpServiceConnectionGroupDetails = groupLookup;
|
|
232
|
-
* ```
|
|
233
25
|
*/
|
|
234
26
|
function getServiceConnectionGroupOutput(args, opts) {
|
|
235
27
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServiceConnectionGroup.js","sourceRoot":"","sources":["../getServiceConnectionGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getServiceConnectionGroup.js","sourceRoot":"","sources":["../getServiceConnectionGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+DAA+D,EAAE;QAC1F,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8DAMC;AA0CD;;;;GAIG;AACH,SAAgB,+BAA+B,CAAC,IAAyC,EAAE,IAAiC;IACxH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+DAA+D,EAAE;QAChG,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0EAMC"}
|
package/getServiceGroupList.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
* // Fetch a list of all service group objects.
|
|
13
13
|
* // This data source will call the "List" API endpoint.
|
|
14
14
|
* const allServiceGroups = scm.getServiceGroupList({
|
|
15
|
-
* folder: "
|
|
15
|
+
* folder: "Shared",
|
|
16
16
|
* });
|
|
17
17
|
* export const serviceGroupsListRaw = allServiceGroups.then(allServiceGroups => allServiceGroups.datas);
|
|
18
18
|
* ```
|
|
@@ -101,7 +101,7 @@ export interface GetServiceGroupListResult {
|
|
|
101
101
|
* // Fetch a list of all service group objects.
|
|
102
102
|
* // This data source will call the "List" API endpoint.
|
|
103
103
|
* const allServiceGroups = scm.getServiceGroupList({
|
|
104
|
-
* folder: "
|
|
104
|
+
* folder: "Shared",
|
|
105
105
|
* });
|
|
106
106
|
* export const serviceGroupsListRaw = allServiceGroups.then(allServiceGroups => allServiceGroups.datas);
|
|
107
107
|
* ```
|
package/getServiceGroupList.js
CHANGED
|
@@ -17,7 +17,7 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* // Fetch a list of all service group objects.
|
|
18
18
|
* // This data source will call the "List" API endpoint.
|
|
19
19
|
* const allServiceGroups = scm.getServiceGroupList({
|
|
20
|
-
* folder: "
|
|
20
|
+
* folder: "Shared",
|
|
21
21
|
* });
|
|
22
22
|
* export const serviceGroupsListRaw = allServiceGroups.then(allServiceGroups => allServiceGroups.datas);
|
|
23
23
|
* ```
|
|
@@ -47,7 +47,7 @@ exports.getServiceGroupList = getServiceGroupList;
|
|
|
47
47
|
* // Fetch a list of all service group objects.
|
|
48
48
|
* // This data source will call the "List" API endpoint.
|
|
49
49
|
* const allServiceGroups = scm.getServiceGroupList({
|
|
50
|
-
* folder: "
|
|
50
|
+
* folder: "Shared",
|
|
51
51
|
* });
|
|
52
52
|
* export const serviceGroupsListRaw = allServiceGroups.then(allServiceGroups => allServiceGroups.datas);
|
|
53
53
|
* ```
|
package/getServiceList.d.ts
CHANGED
|
@@ -11,12 +11,12 @@ import * as outputs from "./types/output";
|
|
|
11
11
|
*
|
|
12
12
|
* // Data source to fetch all services in the "Shared" folder.
|
|
13
13
|
* const allSharedServices = scm.getServiceList({
|
|
14
|
-
* folder: "
|
|
14
|
+
* folder: "Shared",
|
|
15
15
|
* });
|
|
16
16
|
* export const allSharedServicesMap = allSharedServices.then(allSharedServices => .reduce((__obj, svc) => ({ ...__obj, [svc.name]: svc })));
|
|
17
17
|
* // Example of using pagination to get the first 5 services.
|
|
18
18
|
* const paginatedServices = scm.getServiceList({
|
|
19
|
-
* folder: "
|
|
19
|
+
* folder: "Shared",
|
|
20
20
|
* limit: 5,
|
|
21
21
|
* offset: 0,
|
|
22
22
|
* });
|
|
@@ -111,12 +111,12 @@ export interface GetServiceListResult {
|
|
|
111
111
|
*
|
|
112
112
|
* // Data source to fetch all services in the "Shared" folder.
|
|
113
113
|
* const allSharedServices = scm.getServiceList({
|
|
114
|
-
* folder: "
|
|
114
|
+
* folder: "Shared",
|
|
115
115
|
* });
|
|
116
116
|
* export const allSharedServicesMap = allSharedServices.then(allSharedServices => .reduce((__obj, svc) => ({ ...__obj, [svc.name]: svc })));
|
|
117
117
|
* // Example of using pagination to get the first 5 services.
|
|
118
118
|
* const paginatedServices = scm.getServiceList({
|
|
119
|
-
* folder: "
|
|
119
|
+
* folder: "Shared",
|
|
120
120
|
* limit: 5,
|
|
121
121
|
* offset: 0,
|
|
122
122
|
* });
|
package/getServiceList.js
CHANGED
|
@@ -16,12 +16,12 @@ const utilities = require("./utilities");
|
|
|
16
16
|
*
|
|
17
17
|
* // Data source to fetch all services in the "Shared" folder.
|
|
18
18
|
* const allSharedServices = scm.getServiceList({
|
|
19
|
-
* folder: "
|
|
19
|
+
* folder: "Shared",
|
|
20
20
|
* });
|
|
21
21
|
* export const allSharedServicesMap = allSharedServices.then(allSharedServices => .reduce((__obj, svc) => ({ ...__obj, [svc.name]: svc })));
|
|
22
22
|
* // Example of using pagination to get the first 5 services.
|
|
23
23
|
* const paginatedServices = scm.getServiceList({
|
|
24
|
-
* folder: "
|
|
24
|
+
* folder: "Shared",
|
|
25
25
|
* limit: 5,
|
|
26
26
|
* offset: 0,
|
|
27
27
|
* });
|
|
@@ -57,12 +57,12 @@ exports.getServiceList = getServiceList;
|
|
|
57
57
|
*
|
|
58
58
|
* // Data source to fetch all services in the "Shared" folder.
|
|
59
59
|
* const allSharedServices = scm.getServiceList({
|
|
60
|
-
* folder: "
|
|
60
|
+
* folder: "Shared",
|
|
61
61
|
* });
|
|
62
62
|
* export const allSharedServicesMap = allSharedServices.then(allSharedServices => .reduce((__obj, svc) => ({ ...__obj, [svc.name]: svc })));
|
|
63
63
|
* // Example of using pagination to get the first 5 services.
|
|
64
64
|
* const paginatedServices = scm.getServiceList({
|
|
65
|
-
* folder: "
|
|
65
|
+
* folder: "Shared",
|
|
66
66
|
* limit: 5,
|
|
67
67
|
* offset: 0,
|
|
68
68
|
* });
|
package/getSnippet.d.ts
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* Snippet data source
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as scm from "@pulumi/scm";
|
|
10
|
-
*
|
|
11
|
-
* const scmLabel1 = new scm.Label("scm_label_1", {name: "scm_label"});
|
|
12
|
-
* const scmSnippet1 = new scm.Snippet("scm_snippet_1", {
|
|
13
|
-
* name: "scm_snippet",
|
|
14
|
-
* description: "Adding a Description from Terraform",
|
|
15
|
-
* labels: [scmLabel1.name],
|
|
16
|
-
* });
|
|
17
|
-
* // Look up the "scm_snippet" tag by its id
|
|
18
|
-
* const scmSnippetOutputsDs = scm.getSnippetOutput({
|
|
19
|
-
* id: scmSnippet1.id,
|
|
20
|
-
* });
|
|
21
|
-
* export const snippetOutputs = {
|
|
22
|
-
* productionId: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.id),
|
|
23
|
-
* productionName: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.name),
|
|
24
|
-
* productionDescription: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.description),
|
|
25
|
-
* productionLabels: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.labels),
|
|
26
|
-
* };
|
|
27
|
-
* ```
|
|
28
4
|
*/
|
|
29
5
|
export declare function getSnippet(args: GetSnippetArgs, opts?: pulumi.InvokeOptions): Promise<GetSnippetResult>;
|
|
30
6
|
/**
|
|
@@ -68,30 +44,6 @@ export interface GetSnippetResult {
|
|
|
68
44
|
}
|
|
69
45
|
/**
|
|
70
46
|
* Snippet data source
|
|
71
|
-
*
|
|
72
|
-
* ## Example Usage
|
|
73
|
-
*
|
|
74
|
-
* ```typescript
|
|
75
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
-
* import * as scm from "@pulumi/scm";
|
|
77
|
-
*
|
|
78
|
-
* const scmLabel1 = new scm.Label("scm_label_1", {name: "scm_label"});
|
|
79
|
-
* const scmSnippet1 = new scm.Snippet("scm_snippet_1", {
|
|
80
|
-
* name: "scm_snippet",
|
|
81
|
-
* description: "Adding a Description from Terraform",
|
|
82
|
-
* labels: [scmLabel1.name],
|
|
83
|
-
* });
|
|
84
|
-
* // Look up the "scm_snippet" tag by its id
|
|
85
|
-
* const scmSnippetOutputsDs = scm.getSnippetOutput({
|
|
86
|
-
* id: scmSnippet1.id,
|
|
87
|
-
* });
|
|
88
|
-
* export const snippetOutputs = {
|
|
89
|
-
* productionId: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.id),
|
|
90
|
-
* productionName: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.name),
|
|
91
|
-
* productionDescription: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.description),
|
|
92
|
-
* productionLabels: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.labels),
|
|
93
|
-
* };
|
|
94
|
-
* ```
|
|
95
47
|
*/
|
|
96
48
|
export declare function getSnippetOutput(args: GetSnippetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSnippetResult>;
|
|
97
49
|
/**
|
package/getSnippet.js
CHANGED
|
@@ -7,30 +7,6 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Snippet data source
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as scm from "@pulumi/scm";
|
|
16
|
-
*
|
|
17
|
-
* const scmLabel1 = new scm.Label("scm_label_1", {name: "scm_label"});
|
|
18
|
-
* const scmSnippet1 = new scm.Snippet("scm_snippet_1", {
|
|
19
|
-
* name: "scm_snippet",
|
|
20
|
-
* description: "Adding a Description from Terraform",
|
|
21
|
-
* labels: [scmLabel1.name],
|
|
22
|
-
* });
|
|
23
|
-
* // Look up the "scm_snippet" tag by its id
|
|
24
|
-
* const scmSnippetOutputsDs = scm.getSnippetOutput({
|
|
25
|
-
* id: scmSnippet1.id,
|
|
26
|
-
* });
|
|
27
|
-
* export const snippetOutputs = {
|
|
28
|
-
* productionId: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.id),
|
|
29
|
-
* productionName: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.name),
|
|
30
|
-
* productionDescription: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.description),
|
|
31
|
-
* productionLabels: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.labels),
|
|
32
|
-
* };
|
|
33
|
-
* ```
|
|
34
10
|
*/
|
|
35
11
|
function getSnippet(args, opts) {
|
|
36
12
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -42,30 +18,6 @@ function getSnippet(args, opts) {
|
|
|
42
18
|
exports.getSnippet = getSnippet;
|
|
43
19
|
/**
|
|
44
20
|
* Snippet data source
|
|
45
|
-
*
|
|
46
|
-
* ## Example Usage
|
|
47
|
-
*
|
|
48
|
-
* ```typescript
|
|
49
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
-
* import * as scm from "@pulumi/scm";
|
|
51
|
-
*
|
|
52
|
-
* const scmLabel1 = new scm.Label("scm_label_1", {name: "scm_label"});
|
|
53
|
-
* const scmSnippet1 = new scm.Snippet("scm_snippet_1", {
|
|
54
|
-
* name: "scm_snippet",
|
|
55
|
-
* description: "Adding a Description from Terraform",
|
|
56
|
-
* labels: [scmLabel1.name],
|
|
57
|
-
* });
|
|
58
|
-
* // Look up the "scm_snippet" tag by its id
|
|
59
|
-
* const scmSnippetOutputsDs = scm.getSnippetOutput({
|
|
60
|
-
* id: scmSnippet1.id,
|
|
61
|
-
* });
|
|
62
|
-
* export const snippetOutputs = {
|
|
63
|
-
* productionId: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.id),
|
|
64
|
-
* productionName: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.name),
|
|
65
|
-
* productionDescription: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.description),
|
|
66
|
-
* productionLabels: scmSnippetOutputsDs.apply(scmSnippetOutputsDs => scmSnippetOutputsDs.labels),
|
|
67
|
-
* };
|
|
68
|
-
* ```
|
|
69
21
|
*/
|
|
70
22
|
function getSnippetOutput(args, opts) {
|
|
71
23
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
package/getSnippet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSnippet.js","sourceRoot":"","sources":["../getSnippet.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getSnippet.js","sourceRoot":"","sources":["../getSnippet.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE;QAC5D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AA0CD;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iCAAiC,EAAE;QAClE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4CAMC"}
|