@ryan-pip/pulumi-fivetran 1.5.1 → 1.9.4
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/config/index.d.ts +1 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +1 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +28 -7
- package/config/vars.js.map +1 -1
- package/connector.d.ts +104 -40
- package/connector.d.ts.map +1 -0
- package/connector.js +150 -41
- package/connector.js.map +1 -1
- package/connectorCertificates.d.ts +51 -0
- package/connectorCertificates.d.ts.map +1 -0
- package/connectorCertificates.js +84 -11
- package/connectorCertificates.js.map +1 -1
- package/connectorFingerprints.d.ts +13 -9
- package/connectorFingerprints.d.ts.map +1 -0
- package/connectorFingerprints.js +46 -20
- package/connectorFingerprints.js.map +1 -1
- package/connectorSchedule.d.ts +24 -33
- package/connectorSchedule.d.ts.map +1 -0
- package/connectorSchedule.js +65 -52
- package/connectorSchedule.js.map +1 -1
- package/connectorSchemaConfig.d.ts +200 -9
- package/connectorSchemaConfig.d.ts.map +1 -0
- package/connectorSchemaConfig.js +231 -21
- package/connectorSchemaConfig.js.map +1 -1
- package/destination.d.ts +63 -37
- package/destination.d.ts.map +1 -0
- package/destination.js +113 -50
- package/destination.js.map +1 -1
- package/destinationCertificates.d.ts +54 -0
- package/destinationCertificates.d.ts.map +1 -0
- package/destinationCertificates.js +87 -11
- package/destinationCertificates.js.map +1 -1
- package/destinationFingerprints.d.ts +13 -9
- package/destinationFingerprints.d.ts.map +1 -0
- package/destinationFingerprints.js +46 -20
- package/destinationFingerprints.js.map +1 -1
- package/externalLogging.d.ts +42 -12
- package/externalLogging.d.ts.map +1 -0
- package/externalLogging.js +82 -30
- package/externalLogging.js.map +1 -1
- package/getConnection.d.ts +143 -0
- package/getConnection.d.ts.map +1 -0
- package/getConnection.js +77 -0
- package/getConnection.js.map +1 -0
- package/getConnectionCertificates.d.ts +64 -0
- package/getConnectionCertificates.d.ts.map +1 -0
- package/getConnectionCertificates.js +75 -0
- package/getConnectionCertificates.js.map +1 -0
- package/getConnectionFingerprints.d.ts +64 -0
- package/getConnectionFingerprints.d.ts.map +1 -0
- package/getConnectionFingerprints.js +75 -0
- package/getConnectionFingerprints.js.map +1 -0
- package/getConnections.d.ts +38 -0
- package/getConnections.d.ts.map +1 -0
- package/getConnections.js +57 -0
- package/getConnections.js.map +1 -0
- package/getConnector.d.ts +3 -2
- package/getConnector.d.ts.map +1 -0
- package/getConnector.js +28 -5
- package/getConnector.js.map +1 -1
- package/getConnectorCertificates.d.ts +29 -0
- package/getConnectorCertificates.d.ts.map +1 -0
- package/getConnectorCertificates.js +54 -3
- package/getConnectorCertificates.js.map +1 -1
- package/getConnectorFingerprints.d.ts +3 -2
- package/getConnectorFingerprints.d.ts.map +1 -0
- package/getConnectorFingerprints.js +28 -5
- package/getConnectorFingerprints.js.map +1 -1
- package/getConnectors.d.ts +5 -0
- package/getConnectors.d.ts.map +1 -0
- package/getConnectors.js +30 -3
- package/getConnectors.js.map +1 -1
- package/getConnectorsMetadata.d.ts +3 -2
- package/getConnectorsMetadata.d.ts.map +1 -0
- package/getConnectorsMetadata.js +28 -5
- package/getConnectorsMetadata.js.map +1 -1
- package/getDestination.d.ts +3 -2
- package/getDestination.d.ts.map +1 -0
- package/getDestination.js +28 -5
- package/getDestination.js.map +1 -1
- package/getDestinationCertificates.d.ts +1 -0
- package/getDestinationCertificates.d.ts.map +1 -0
- package/getDestinationCertificates.js +26 -3
- package/getDestinationCertificates.js.map +1 -1
- package/getDestinationFingerprints.d.ts +3 -2
- package/getDestinationFingerprints.d.ts.map +1 -0
- package/getDestinationFingerprints.js +28 -5
- package/getDestinationFingerprints.js.map +1 -1
- package/getDestinations.d.ts +5 -0
- package/getDestinations.d.ts.map +1 -0
- package/getDestinations.js +30 -3
- package/getDestinations.js.map +1 -1
- package/getExternalLogging.d.ts +3 -2
- package/getExternalLogging.d.ts.map +1 -0
- package/getExternalLogging.js +28 -5
- package/getExternalLogging.js.map +1 -1
- package/getExternalLogs.d.ts +5 -0
- package/getExternalLogs.d.ts.map +1 -0
- package/getExternalLogs.js +30 -3
- package/getExternalLogs.js.map +1 -1
- package/getGroup.d.ts +3 -2
- package/getGroup.d.ts.map +1 -0
- package/getGroup.js +28 -5
- package/getGroup.js.map +1 -1
- package/getGroupConnections.d.ts +78 -0
- package/getGroupConnections.d.ts.map +1 -0
- package/getGroupConnections.js +79 -0
- package/getGroupConnections.js.map +1 -0
- package/getGroupConnectors.d.ts +3 -2
- package/getGroupConnectors.d.ts.map +1 -0
- package/getGroupConnectors.js +28 -5
- package/getGroupConnectors.js.map +1 -1
- package/getGroupServiceAccount.d.ts +3 -2
- package/getGroupServiceAccount.d.ts.map +1 -0
- package/getGroupServiceAccount.js +28 -5
- package/getGroupServiceAccount.js.map +1 -1
- package/getGroupSshKey.d.ts +3 -2
- package/getGroupSshKey.d.ts.map +1 -0
- package/getGroupSshKey.js +28 -5
- package/getGroupSshKey.js.map +1 -1
- package/getGroupUsers.d.ts +3 -2
- package/getGroupUsers.d.ts.map +1 -0
- package/getGroupUsers.js +28 -5
- package/getGroupUsers.js.map +1 -1
- package/getGroups.d.ts +3 -2
- package/getGroups.d.ts.map +1 -0
- package/getGroups.js +28 -5
- package/getGroups.js.map +1 -1
- package/getHybridDeploymentAgent.d.ts +5 -0
- package/getHybridDeploymentAgent.d.ts.map +1 -0
- package/getHybridDeploymentAgent.js +30 -3
- package/getHybridDeploymentAgent.js.map +1 -1
- package/getHybridDeploymentAgents.d.ts +3 -2
- package/getHybridDeploymentAgents.d.ts.map +1 -0
- package/getHybridDeploymentAgents.js +28 -5
- package/getHybridDeploymentAgents.js.map +1 -1
- package/getPrivateLink.d.ts +7 -2
- package/getPrivateLink.d.ts.map +1 -0
- package/getPrivateLink.js +28 -5
- package/getPrivateLink.js.map +1 -1
- package/getPrivateLinks.d.ts +1 -0
- package/getPrivateLinks.d.ts.map +1 -0
- package/getPrivateLinks.js +26 -3
- package/getPrivateLinks.js.map +1 -1
- package/getProxyAgent.d.ts +3 -10
- package/getProxyAgent.d.ts.map +1 -0
- package/getProxyAgent.js +28 -5
- package/getProxyAgent.js.map +1 -1
- package/getProxyAgents.d.ts +3 -2
- package/getProxyAgents.d.ts.map +1 -0
- package/getProxyAgents.js +28 -5
- package/getProxyAgents.js.map +1 -1
- package/getQuickstartPackage.d.ts +3 -2
- package/getQuickstartPackage.d.ts.map +1 -0
- package/getQuickstartPackage.js +28 -5
- package/getQuickstartPackage.js.map +1 -1
- package/getQuickstartPackages.d.ts +3 -2
- package/getQuickstartPackages.d.ts.map +1 -0
- package/getQuickstartPackages.js +28 -5
- package/getQuickstartPackages.js.map +1 -1
- package/getRoles.d.ts +3 -2
- package/getRoles.d.ts.map +1 -0
- package/getRoles.js +28 -5
- package/getRoles.js.map +1 -1
- package/getTeam.d.ts +3 -2
- package/getTeam.d.ts.map +1 -0
- package/getTeam.js +28 -5
- package/getTeam.js.map +1 -1
- package/getTeamConnectionMemberships.d.ts +42 -0
- package/getTeamConnectionMemberships.d.ts.map +1 -0
- package/getTeamConnectionMemberships.js +53 -0
- package/getTeamConnectionMemberships.js.map +1 -0
- package/getTeamConnectorMemberships.d.ts +1 -0
- package/getTeamConnectorMemberships.d.ts.map +1 -0
- package/getTeamConnectorMemberships.js +26 -3
- package/getTeamConnectorMemberships.js.map +1 -1
- package/getTeamGroupMemberships.d.ts +3 -2
- package/getTeamGroupMemberships.d.ts.map +1 -0
- package/getTeamGroupMemberships.js +28 -5
- package/getTeamGroupMemberships.js.map +1 -1
- package/getTeamUserMemberships.d.ts +3 -2
- package/getTeamUserMemberships.d.ts.map +1 -0
- package/getTeamUserMemberships.js +28 -5
- package/getTeamUserMemberships.js.map +1 -1
- package/getTeams.d.ts +3 -2
- package/getTeams.d.ts.map +1 -0
- package/getTeams.js +28 -5
- package/getTeams.js.map +1 -1
- package/getTransformation.d.ts +3 -2
- package/getTransformation.d.ts.map +1 -0
- package/getTransformation.js +28 -5
- package/getTransformation.js.map +1 -1
- package/getTransformationProject.d.ts +3 -2
- package/getTransformationProject.d.ts.map +1 -0
- package/getTransformationProject.js +28 -5
- package/getTransformationProject.js.map +1 -1
- package/getTransformationProjects.d.ts +3 -2
- package/getTransformationProjects.d.ts.map +1 -0
- package/getTransformationProjects.js +28 -5
- package/getTransformationProjects.js.map +1 -1
- package/getTransformations.d.ts +3 -2
- package/getTransformations.d.ts.map +1 -0
- package/getTransformations.js +28 -5
- package/getTransformations.js.map +1 -1
- package/getUser.d.ts +3 -2
- package/getUser.d.ts.map +1 -0
- package/getUser.js +28 -5
- package/getUser.js.map +1 -1
- package/getUserConnectionMemberships.d.ts +64 -0
- package/getUserConnectionMemberships.d.ts.map +1 -0
- package/getUserConnectionMemberships.js +75 -0
- package/getUserConnectionMemberships.js.map +1 -0
- package/getUserConnectorMemberships.d.ts +3 -2
- package/getUserConnectorMemberships.d.ts.map +1 -0
- package/getUserConnectorMemberships.js +28 -5
- package/getUserConnectorMemberships.js.map +1 -1
- package/getUserGroupMemberships.d.ts +3 -2
- package/getUserGroupMemberships.d.ts.map +1 -0
- package/getUserGroupMemberships.js +28 -5
- package/getUserGroupMemberships.js.map +1 -1
- package/getUsers.d.ts +3 -2
- package/getUsers.d.ts.map +1 -0
- package/getUsers.js +28 -5
- package/getUsers.js.map +1 -1
- package/getWebhook.d.ts +3 -2
- package/getWebhook.d.ts.map +1 -0
- package/getWebhook.js +28 -5
- package/getWebhook.js.map +1 -1
- package/getWebhooks.d.ts +3 -2
- package/getWebhooks.d.ts.map +1 -0
- package/getWebhooks.js +28 -5
- package/getWebhooks.js.map +1 -1
- package/group.d.ts +12 -10
- package/group.d.ts.map +1 -0
- package/group.js +44 -20
- package/group.js.map +1 -1
- package/groupUsers.d.ts +3 -2
- package/groupUsers.d.ts.map +1 -0
- package/groupUsers.js +37 -14
- package/groupUsers.js.map +1 -1
- package/hybridDeploymentAgent.d.ts +14 -3
- package/hybridDeploymentAgent.d.ts.map +1 -0
- package/hybridDeploymentAgent.js +51 -25
- package/hybridDeploymentAgent.js.map +1 -1
- package/index.d.ts +23 -24
- package/index.d.ts.map +1 -0
- package/index.js +58 -38
- package/index.js.map +1 -1
- package/package.json +4 -3
- package/privateLink.d.ts +28 -6
- package/privateLink.d.ts.map +1 -0
- package/privateLink.js +63 -22
- package/privateLink.js.map +1 -1
- package/provider.d.ts +15 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +39 -9
- package/provider.js.map +1 -1
- package/proxyAgent.d.ts +28 -15
- package/proxyAgent.d.ts.map +1 -0
- package/proxyAgent.js +47 -22
- package/proxyAgent.js.map +1 -1
- package/team.d.ts +12 -11
- package/team.d.ts.map +1 -0
- package/team.js +47 -24
- package/team.js.map +1 -1
- package/teamConnectorMembership.d.ts +11 -11
- package/teamConnectorMembership.d.ts.map +1 -0
- package/teamConnectorMembership.js +44 -22
- package/teamConnectorMembership.js.map +1 -1
- package/teamGroupMembership.d.ts +33 -8
- package/teamGroupMembership.d.ts.map +1 -0
- package/teamGroupMembership.js +66 -19
- package/teamGroupMembership.js.map +1 -1
- package/teamUserMembership.d.ts +11 -11
- package/teamUserMembership.d.ts.map +1 -0
- package/teamUserMembership.js +44 -22
- package/teamUserMembership.js.map +1 -1
- package/transformation.d.ts +57 -16
- package/transformation.d.ts.map +1 -0
- package/transformation.js +97 -34
- package/transformation.js.map +1 -1
- package/transformationProject.d.ts +97 -8
- package/transformationProject.d.ts.map +1 -0
- package/transformationProject.js +139 -28
- package/transformationProject.js.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +26 -3
- package/types/index.js.map +1 -1
- package/types/input.d.ts +2750 -299
- package/types/input.d.ts.map +1 -0
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +1705 -221
- package/types/output.d.ts.map +1 -0
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/user.d.ts +11 -9
- package/user.d.ts.map +1 -0
- package/user.js +60 -36
- package/user.js.map +1 -1
- package/userConnectorMembership.d.ts +11 -11
- package/userConnectorMembership.d.ts.map +1 -0
- package/userConnectorMembership.js +44 -22
- package/userConnectorMembership.js.map +1 -1
- package/userGroupMembership.d.ts +33 -8
- package/userGroupMembership.d.ts.map +1 -0
- package/userGroupMembership.js +66 -19
- package/userGroupMembership.js.map +1 -1
- package/utilities.d.ts +1 -4
- package/utilities.d.ts.map +1 -0
- package/utilities.js +43 -30
- package/utilities.js.map +1 -1
- package/webhook.d.ts +10 -8
- package/webhook.d.ts.map +1 -0
- package/webhook.js +59 -35
- package/webhook.js.map +1 -1
- package/dbtGitProjectConfig.d.ts +0 -141
- package/dbtGitProjectConfig.js +0 -105
- package/dbtGitProjectConfig.js.map +0 -1
- package/dbtProject.d.ts +0 -237
- package/dbtProject.js +0 -134
- package/dbtProject.js.map +0 -1
- package/dbtTransformation.d.ts +0 -162
- package/dbtTransformation.js +0 -105
- package/dbtTransformation.js.map +0 -1
- package/getDbtModels.d.ts +0 -67
- package/getDbtModels.js +0 -52
- package/getDbtModels.js.map +0 -1
- package/getDbtProject.d.ts +0 -112
- package/getDbtProject.js +0 -52
- package/getDbtProject.js.map +0 -1
- package/getDbtProjects.d.ts +0 -38
- package/getDbtProjects.js +0 -42
- package/getDbtProjects.js.map +0 -1
- package/getDbtTransformation.d.ts +0 -99
- package/getDbtTransformation.js +0 -52
- package/getDbtTransformation.js.map +0 -1
- package/package.json.bak +0 -29
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.UserConnectorMembership = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
9
32
|
* This resource allows you to create, update, and delete connector membership for user
|
|
10
33
|
*
|
|
@@ -14,7 +37,7 @@ const utilities = require("./utilities");
|
|
|
14
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
38
|
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
16
39
|
*
|
|
17
|
-
* const testUserConnectorMembership = new fivetran.UserConnectorMembership("
|
|
40
|
+
* const testUserConnectorMembership = new fivetran.UserConnectorMembership("test_user_connector_membership", {
|
|
18
41
|
* userId: "test_user",
|
|
19
42
|
* connectors: [
|
|
20
43
|
* {
|
|
@@ -28,24 +51,22 @@ const utilities = require("./utilities");
|
|
|
28
51
|
* createdAt: "2020-05-25T15:26:47.306509Z",
|
|
29
52
|
* },
|
|
30
53
|
* ],
|
|
31
|
-
* }, {
|
|
32
|
-
* provider: fivetran_provider,
|
|
33
54
|
* });
|
|
34
55
|
* ```
|
|
35
56
|
*
|
|
36
57
|
* ## Import
|
|
37
58
|
*
|
|
38
|
-
* 1. To import an existing `
|
|
39
|
-
*
|
|
40
|
-
* You can retrieve all users using the [fivetran_users data source](/docs/data-sources/users).
|
|
59
|
+
* 1. To import an existing `fivetran.UserConnectorMembership` resource into your Terraform state, you need to get `userId` and `connectorId`
|
|
60
|
+
* You can retrieve all users using the [fivetran.getUsers data source](https://www.terraform.io/docs/data-sources/users).
|
|
41
61
|
*
|
|
42
62
|
* 2. Define an empty resource in your `.tf` configuration:
|
|
43
63
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
47
67
|
*
|
|
48
|
-
* }
|
|
68
|
+
* const myImportedFivetranUserConnectorMembership = new fivetran.UserConnectorMembership("my_imported_fivetran_user_connector_membership", {});
|
|
69
|
+
* ```
|
|
49
70
|
*
|
|
50
71
|
* 3. Run the `pulumi import` command:
|
|
51
72
|
*
|
|
@@ -55,8 +76,9 @@ const utilities = require("./utilities");
|
|
|
55
76
|
*
|
|
56
77
|
* 4. Use the `terraform state show` command to get the values from the state:
|
|
57
78
|
*
|
|
79
|
+
* ```sh
|
|
58
80
|
* terraform state show 'fivetran_user_connector_membership.my_imported_fivetran_user_connector_membership'
|
|
59
|
-
*
|
|
81
|
+
* ```
|
|
60
82
|
* 5. Copy the values and paste them to your `.tf` configuration.
|
|
61
83
|
*/
|
|
62
84
|
class UserConnectorMembership extends pulumi.CustomResource {
|
|
@@ -70,8 +92,10 @@ class UserConnectorMembership extends pulumi.CustomResource {
|
|
|
70
92
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
93
|
*/
|
|
72
94
|
static get(name, id, state, opts) {
|
|
73
|
-
return new UserConnectorMembership(name, state,
|
|
95
|
+
return new UserConnectorMembership(name, state, { ...opts, id: id });
|
|
74
96
|
}
|
|
97
|
+
/** @internal */
|
|
98
|
+
static __pulumiType = 'fivetran:index/userConnectorMembership:UserConnectorMembership';
|
|
75
99
|
/**
|
|
76
100
|
* Returns true if the given object is an instance of UserConnectorMembership. This is designed to work even
|
|
77
101
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -87,22 +111,20 @@ class UserConnectorMembership extends pulumi.CustomResource {
|
|
|
87
111
|
opts = opts || {};
|
|
88
112
|
if (opts.id) {
|
|
89
113
|
const state = argsOrState;
|
|
90
|
-
resourceInputs["connectors"] = state
|
|
91
|
-
resourceInputs["userId"] = state
|
|
114
|
+
resourceInputs["connectors"] = state?.connectors;
|
|
115
|
+
resourceInputs["userId"] = state?.userId;
|
|
92
116
|
}
|
|
93
117
|
else {
|
|
94
118
|
const args = argsOrState;
|
|
95
|
-
if (
|
|
119
|
+
if (args?.userId === undefined && !opts.urn) {
|
|
96
120
|
throw new Error("Missing required property 'userId'");
|
|
97
121
|
}
|
|
98
|
-
resourceInputs["connectors"] = args
|
|
99
|
-
resourceInputs["userId"] = args
|
|
122
|
+
resourceInputs["connectors"] = args?.connectors;
|
|
123
|
+
resourceInputs["userId"] = args?.userId;
|
|
100
124
|
}
|
|
101
125
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
102
126
|
super(UserConnectorMembership.__pulumiType, name, resourceInputs, opts);
|
|
103
127
|
}
|
|
104
128
|
}
|
|
105
129
|
exports.UserConnectorMembership = UserConnectorMembership;
|
|
106
|
-
/** @internal */
|
|
107
|
-
UserConnectorMembership.__pulumiType = 'fivetran:index/userConnectorMembership:UserConnectorMembership';
|
|
108
130
|
//# sourceMappingURL=userConnectorMembership.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userConnectorMembership.js","sourceRoot":"","sources":["../userConnectorMembership.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"userConnectorMembership.js","sourceRoot":"","sources":["../userConnectorMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gEAAgE,CAAC;IAEvG;;;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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAgBD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA3DL,0DA4DC"}
|
package/userGroupMembership.d.ts
CHANGED
|
@@ -4,19 +4,42 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* This resource allows you to create, update, and delete group membership for user
|
|
6
6
|
*
|
|
7
|
-
* ##
|
|
7
|
+
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
10
12
|
*
|
|
11
|
-
*
|
|
13
|
+
* const testUserGroupMembership = new fivetran.UserGroupMembership("test_user_group_membership", {
|
|
14
|
+
* userId: "test_user",
|
|
15
|
+
* groups: [
|
|
16
|
+
* {
|
|
17
|
+
* connectorId: "test_connector",
|
|
18
|
+
* groupId: "test_group",
|
|
19
|
+
* role: "Destination Administrator",
|
|
20
|
+
* },
|
|
21
|
+
* {
|
|
22
|
+
* connectorId: "test_connector",
|
|
23
|
+
* groupId: "test_group",
|
|
24
|
+
* role: "Destination Administrator",
|
|
25
|
+
* },
|
|
26
|
+
* ],
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
12
29
|
*
|
|
13
|
-
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* 1. To import an existing `fivetran.UserGroupMembership` resource into your Terraform state, you need to get `userId` and `groupId`
|
|
33
|
+
* You can retrieve all users using the [fivetran.getUsers data source](https://www.terraform.io/docs/data-sources/users).
|
|
14
34
|
*
|
|
15
|
-
*
|
|
35
|
+
* 2. Define an empty resource in your `.tf` configuration:
|
|
16
36
|
*
|
|
17
|
-
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
18
40
|
*
|
|
19
|
-
* }
|
|
41
|
+
* const myImportedFivetranUserGroupMembership = new fivetran.UserGroupMembership("my_imported_fivetran_user_group_membership", {});
|
|
42
|
+
* ```
|
|
20
43
|
*
|
|
21
44
|
* 3. Run the `pulumi import` command:
|
|
22
45
|
*
|
|
@@ -26,8 +49,9 @@ import * as outputs from "./types/output";
|
|
|
26
49
|
*
|
|
27
50
|
* 4. Use the `terraform state show` command to get the values from the state:
|
|
28
51
|
*
|
|
52
|
+
* ```sh
|
|
29
53
|
* terraform state show 'fivetran_user_group_membership.my_imported_fivetran_user_group_membership'
|
|
30
|
-
*
|
|
54
|
+
* ```
|
|
31
55
|
* 5. Copy the values and paste them to your `.tf` configuration.
|
|
32
56
|
*/
|
|
33
57
|
export declare class UserGroupMembership extends pulumi.CustomResource {
|
|
@@ -80,3 +104,4 @@ export interface UserGroupMembershipArgs {
|
|
|
80
104
|
*/
|
|
81
105
|
userId: pulumi.Input<string>;
|
|
82
106
|
}
|
|
107
|
+
//# sourceMappingURL=userGroupMembership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userGroupMembership.d.ts","sourceRoot":"","sources":["../userGroupMembership.ts"],"names":[],"mappings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CAAC,CAAC;IACvE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
package/userGroupMembership.js
CHANGED
|
@@ -1,26 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.UserGroupMembership = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
9
32
|
* This resource allows you to create, update, and delete group membership for user
|
|
10
33
|
*
|
|
11
|
-
* ##
|
|
34
|
+
* ## Example Usage
|
|
12
35
|
*
|
|
13
|
-
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
14
39
|
*
|
|
15
|
-
*
|
|
40
|
+
* const testUserGroupMembership = new fivetran.UserGroupMembership("test_user_group_membership", {
|
|
41
|
+
* userId: "test_user",
|
|
42
|
+
* groups: [
|
|
43
|
+
* {
|
|
44
|
+
* connectorId: "test_connector",
|
|
45
|
+
* groupId: "test_group",
|
|
46
|
+
* role: "Destination Administrator",
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* connectorId: "test_connector",
|
|
50
|
+
* groupId: "test_group",
|
|
51
|
+
* role: "Destination Administrator",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
16
56
|
*
|
|
17
|
-
*
|
|
57
|
+
* ## Import
|
|
18
58
|
*
|
|
19
|
-
*
|
|
59
|
+
* 1. To import an existing `fivetran.UserGroupMembership` resource into your Terraform state, you need to get `userId` and `groupId`
|
|
60
|
+
* You can retrieve all users using the [fivetran.getUsers data source](https://www.terraform.io/docs/data-sources/users).
|
|
20
61
|
*
|
|
21
|
-
* resource
|
|
62
|
+
* 2. Define an empty resource in your `.tf` configuration:
|
|
22
63
|
*
|
|
23
|
-
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
67
|
+
*
|
|
68
|
+
* const myImportedFivetranUserGroupMembership = new fivetran.UserGroupMembership("my_imported_fivetran_user_group_membership", {});
|
|
69
|
+
* ```
|
|
24
70
|
*
|
|
25
71
|
* 3. Run the `pulumi import` command:
|
|
26
72
|
*
|
|
@@ -30,8 +76,9 @@ const utilities = require("./utilities");
|
|
|
30
76
|
*
|
|
31
77
|
* 4. Use the `terraform state show` command to get the values from the state:
|
|
32
78
|
*
|
|
79
|
+
* ```sh
|
|
33
80
|
* terraform state show 'fivetran_user_group_membership.my_imported_fivetran_user_group_membership'
|
|
34
|
-
*
|
|
81
|
+
* ```
|
|
35
82
|
* 5. Copy the values and paste them to your `.tf` configuration.
|
|
36
83
|
*/
|
|
37
84
|
class UserGroupMembership extends pulumi.CustomResource {
|
|
@@ -45,8 +92,10 @@ class UserGroupMembership extends pulumi.CustomResource {
|
|
|
45
92
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
93
|
*/
|
|
47
94
|
static get(name, id, state, opts) {
|
|
48
|
-
return new UserGroupMembership(name, state,
|
|
95
|
+
return new UserGroupMembership(name, state, { ...opts, id: id });
|
|
49
96
|
}
|
|
97
|
+
/** @internal */
|
|
98
|
+
static __pulumiType = 'fivetran:index/userGroupMembership:UserGroupMembership';
|
|
50
99
|
/**
|
|
51
100
|
* Returns true if the given object is an instance of UserGroupMembership. This is designed to work even
|
|
52
101
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -62,22 +111,20 @@ class UserGroupMembership extends pulumi.CustomResource {
|
|
|
62
111
|
opts = opts || {};
|
|
63
112
|
if (opts.id) {
|
|
64
113
|
const state = argsOrState;
|
|
65
|
-
resourceInputs["groups"] = state
|
|
66
|
-
resourceInputs["userId"] = state
|
|
114
|
+
resourceInputs["groups"] = state?.groups;
|
|
115
|
+
resourceInputs["userId"] = state?.userId;
|
|
67
116
|
}
|
|
68
117
|
else {
|
|
69
118
|
const args = argsOrState;
|
|
70
|
-
if (
|
|
119
|
+
if (args?.userId === undefined && !opts.urn) {
|
|
71
120
|
throw new Error("Missing required property 'userId'");
|
|
72
121
|
}
|
|
73
|
-
resourceInputs["groups"] = args
|
|
74
|
-
resourceInputs["userId"] = args
|
|
122
|
+
resourceInputs["groups"] = args?.groups;
|
|
123
|
+
resourceInputs["userId"] = args?.userId;
|
|
75
124
|
}
|
|
76
125
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
126
|
super(UserGroupMembership.__pulumiType, name, resourceInputs, opts);
|
|
78
127
|
}
|
|
79
128
|
}
|
|
80
129
|
exports.UserGroupMembership = UserGroupMembership;
|
|
81
|
-
/** @internal */
|
|
82
|
-
UserGroupMembership.__pulumiType = 'fivetran:index/userGroupMembership:UserGroupMembership';
|
|
83
130
|
//# sourceMappingURL=userGroupMembership.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userGroupMembership.js","sourceRoot":"","sources":["../userGroupMembership.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"userGroupMembership.js","sourceRoot":"","sources":["../userGroupMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wDAAwD,CAAC;IAE/F;;;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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAgBD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;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;;AA3DL,kDA4DC"}
|
package/utilities.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
1
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
2
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
3
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
4
|
export declare function getVersion(): string;
|
|
6
|
-
|
|
7
|
-
property?: string;
|
|
8
|
-
}): Promise<T>;
|
|
5
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ5D;AAED,wBAAgB,aAAa,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAapE;AAED,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,wBAAgB,UAAU,IAAI,MAAM,CAQnC"}
|
package/utilities.js
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
12
26
|
};
|
|
13
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
28
|
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
-
const runtime = require("@pulumi/pulumi/runtime");
|
|
29
|
+
const runtime = __importStar(require("@pulumi/pulumi/runtime"));
|
|
16
30
|
function getEnv(...vars) {
|
|
17
31
|
for (const v of vars) {
|
|
18
32
|
const value = process.env[v];
|
|
@@ -76,26 +90,25 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
92
|
exports.lazyLoad = lazyLoad;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
});
|
|
93
|
+
/** @internal */
|
|
94
|
+
async function callAsync(tok, props, res, opts) {
|
|
95
|
+
const o = runtime.call(tok, props, res);
|
|
96
|
+
const value = await o.promise(true /*withUnknowns*/);
|
|
97
|
+
const isKnown = await o.isKnown;
|
|
98
|
+
const isSecret = await o.isSecret;
|
|
99
|
+
const problem = !isKnown ? "an unknown value"
|
|
100
|
+
: isSecret ? "a secret value"
|
|
101
|
+
: undefined;
|
|
102
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
103
|
+
if (problem) {
|
|
104
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
105
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
106
|
+
}
|
|
107
|
+
// Extract a single property if requested.
|
|
108
|
+
if (opts && opts.property) {
|
|
109
|
+
return value[opts.property];
|
|
110
|
+
}
|
|
111
|
+
return value;
|
|
99
112
|
}
|
|
100
113
|
exports.callAsync = callAsync;
|
|
101
114
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjF,gEAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO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ChB,GAAG,EAAE;gBACD,OAAO,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC;SACJ,CAAC,CAAC;KACN;AACL,CAAC;AATD,4BASC;AAED,gBAAgB;AACT,KAAK,UAAU,SAAS,CAC3B,GAAW,EACX,KAAoB,EACpB,GAAqB,EACrB,IAA0B;IAE1B,MAAM,CAAC,GAAQ,OAAO,CAAC,IAAI,CAAI,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC;IAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC;IAClC,MAAM,OAAO,GACT,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB;QAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;YAC7B,CAAC,CAAC,SAAS,CAAC;IAChB,sGAAsG;IACtG,IAAI,OAAO,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;YAC9E,iFAAiF,CAAC,CAAC;KAC1F;IACD,0CAA0C;IAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC/B;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAxBD,8BAwBC"}
|
package/webhook.d.ts
CHANGED
|
@@ -4,17 +4,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Import
|
|
6
6
|
*
|
|
7
|
-
* 1. To import an existing `
|
|
8
|
-
*
|
|
9
|
-
* You can retrieve all webhooks using the [fivetran_webhooks data source](/docs/data-sources/webhooks).
|
|
7
|
+
* 1. To import an existing `fivetran.Webhook` resource into your Terraform state, you need to get `webhookId`.
|
|
8
|
+
* You can retrieve all webhooks using the [fivetran.getWebhooks data source](https://www.terraform.io/docs/data-sources/webhooks).
|
|
10
9
|
*
|
|
11
10
|
* 2. Define an empty resource in your `.tf` configuration:
|
|
12
11
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as fivetran from "@ryan-pip/pulumi-fivetran";
|
|
16
15
|
*
|
|
17
|
-
* }
|
|
16
|
+
* const myImportedFivetranWebhook = new fivetran.Webhook("my_imported_fivetran_webhook", {});
|
|
17
|
+
* ```
|
|
18
18
|
*
|
|
19
19
|
* 3. Run the `pulumi import` command:
|
|
20
20
|
*
|
|
@@ -24,8 +24,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
*
|
|
25
25
|
* 4. Use the `terraform state show` command to get the values from the state:
|
|
26
26
|
*
|
|
27
|
+
* ```sh
|
|
27
28
|
* terraform state show 'fivetran_webhook.my_imported_fivetran_webhook'
|
|
28
|
-
*
|
|
29
|
+
* ```
|
|
29
30
|
* 5. Copy the values and paste them to your `.tf` configuration.
|
|
30
31
|
*/
|
|
31
32
|
export declare class Webhook extends pulumi.CustomResource {
|
|
@@ -163,3 +164,4 @@ export interface WebhookArgs {
|
|
|
163
164
|
*/
|
|
164
165
|
url: pulumi.Input<string>;
|
|
165
166
|
}
|
|
167
|
+
//# sourceMappingURL=webhook.d.ts.map
|
package/webhook.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../webhook.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;WACW,GAAG,CAAC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