@pulumi/snowflake 0.2.1-alpha.1632763694
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/LICENSE +202 -0
- package/README.md +83 -0
- package/accountGrant.d.ts +97 -0
- package/accountGrant.js +80 -0
- package/accountGrant.js.map +1 -0
- package/apiIntegration.d.ts +181 -0
- package/apiIntegration.js +102 -0
- package/apiIntegration.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +17 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +19 -0
- package/config/vars.js +97 -0
- package/config/vars.js.map +1 -0
- package/database.d.ts +97 -0
- package/database.js +81 -0
- package/database.js.map +1 -0
- package/databaseGrant.d.ts +126 -0
- package/databaseGrant.js +92 -0
- package/databaseGrant.js.map +1 -0
- package/externalFunction.d.ts +260 -0
- package/externalFunction.js +134 -0
- package/externalFunction.js.map +1 -0
- package/externalTable.d.ts +233 -0
- package/externalTable.js +124 -0
- package/externalTable.js.map +1 -0
- package/externalTableGrant.d.ts +165 -0
- package/externalTableGrant.js +104 -0
- package/externalTableGrant.js.map +1 -0
- package/fileFormat.d.ts +490 -0
- package/fileFormat.js +152 -0
- package/fileFormat.js.map +1 -0
- package/fileFormatGrant.d.ts +149 -0
- package/fileFormatGrant.js +98 -0
- package/fileFormatGrant.js.map +1 -0
- package/function.d.ts +157 -0
- package/function.js +81 -0
- package/function.js.map +1 -0
- package/functionGrant.d.ts +201 -0
- package/functionGrant.js +119 -0
- package/functionGrant.js.map +1 -0
- package/getCurrentAccount.d.ts +38 -0
- package/getCurrentAccount.js +33 -0
- package/getCurrentAccount.js.map +1 -0
- package/getExternalFunctions.d.ts +50 -0
- package/getExternalFunctions.js +34 -0
- package/getExternalFunctions.js.map +1 -0
- package/getExternalTables.d.ts +50 -0
- package/getExternalTables.js +34 -0
- package/getExternalTables.js.map +1 -0
- package/getFileFormats.d.ts +50 -0
- package/getFileFormats.js +34 -0
- package/getFileFormats.js.map +1 -0
- package/getFunctions.d.ts +50 -0
- package/getFunctions.js +34 -0
- package/getFunctions.js.map +1 -0
- package/getMaskingPolicies.d.ts +50 -0
- package/getMaskingPolicies.js +34 -0
- package/getMaskingPolicies.js.map +1 -0
- package/getMaterializedViews.d.ts +50 -0
- package/getMaterializedViews.js +34 -0
- package/getMaterializedViews.js.map +1 -0
- package/getPipes.d.ts +50 -0
- package/getPipes.js +34 -0
- package/getPipes.js.map +1 -0
- package/getProcedures.d.ts +50 -0
- package/getProcedures.js +34 -0
- package/getProcedures.js.map +1 -0
- package/getResourceMonitors.d.ts +26 -0
- package/getResourceMonitors.js +28 -0
- package/getResourceMonitors.js.map +1 -0
- package/getRowAccessPolicies.d.ts +50 -0
- package/getRowAccessPolicies.js +34 -0
- package/getRowAccessPolicies.js.map +1 -0
- package/getSchemas.d.ts +41 -0
- package/getSchemas.js +32 -0
- package/getSchemas.js.map +1 -0
- package/getSequences.d.ts +50 -0
- package/getSequences.js +34 -0
- package/getSequences.js.map +1 -0
- package/getStages.d.ts +50 -0
- package/getStages.js +34 -0
- package/getStages.js.map +1 -0
- package/getStorageIntegrations.d.ts +26 -0
- package/getStorageIntegrations.js +28 -0
- package/getStorageIntegrations.js.map +1 -0
- package/getStreams.d.ts +50 -0
- package/getStreams.js +34 -0
- package/getStreams.js.map +1 -0
- package/getSystemGenerateScimAccessToken.d.ts +40 -0
- package/getSystemGenerateScimAccessToken.js +32 -0
- package/getSystemGenerateScimAccessToken.js.map +1 -0
- package/getSystemGetAwsSnsIamPolicy.d.ts +28 -0
- package/getSystemGetAwsSnsIamPolicy.js +20 -0
- package/getSystemGetAwsSnsIamPolicy.js.map +1 -0
- package/getSystemGetPrivateLinkConfig.d.ts +31 -0
- package/getSystemGetPrivateLinkConfig.js +18 -0
- package/getSystemGetPrivateLinkConfig.js.map +1 -0
- package/getSystemGetSnowflakePlatformInfo.d.ts +19 -0
- package/getSystemGetSnowflakePlatformInfo.js +18 -0
- package/getSystemGetSnowflakePlatformInfo.js.map +1 -0
- package/getTables.d.ts +50 -0
- package/getTables.js +34 -0
- package/getTables.js.map +1 -0
- package/getTasks.d.ts +50 -0
- package/getTasks.js +34 -0
- package/getTasks.js.map +1 -0
- package/getViews.d.ts +50 -0
- package/getViews.js +34 -0
- package/getViews.js.map +1 -0
- package/getWarehouses.d.ts +26 -0
- package/getWarehouses.js +28 -0
- package/getWarehouses.js.map +1 -0
- package/index.d.ts +79 -0
- package/index.js +324 -0
- package/index.js.map +1 -0
- package/integrationGrant.d.ts +110 -0
- package/integrationGrant.js +86 -0
- package/integrationGrant.js.map +1 -0
- package/managedAccount.d.ts +160 -0
- package/managedAccount.js +99 -0
- package/managedAccount.js.map +1 -0
- package/maskingPolicy.d.ts +144 -0
- package/maskingPolicy.js +102 -0
- package/maskingPolicy.js.map +1 -0
- package/maskingPolicyGrant.d.ts +108 -0
- package/maskingPolicyGrant.js +70 -0
- package/maskingPolicyGrant.js.map +1 -0
- package/materializedView.d.ts +158 -0
- package/materializedView.js +103 -0
- package/materializedView.js.map +1 -0
- package/materializedViewGrant.d.ts +165 -0
- package/materializedViewGrant.js +101 -0
- package/materializedViewGrant.js.map +1 -0
- package/networkPolicy.d.ts +104 -0
- package/networkPolicy.js +80 -0
- package/networkPolicy.js.map +1 -0
- package/networkPolicyAttachment.d.ts +110 -0
- package/networkPolicyAttachment.js +81 -0
- package/networkPolicyAttachment.js.map +1 -0
- package/notificationIntegration.d.ts +191 -0
- package/notificationIntegration.js +103 -0
- package/notificationIntegration.js.map +1 -0
- package/package.json +27 -0
- package/package.json.bak +26 -0
- package/package.json.dev +26 -0
- package/pipe.d.ts +187 -0
- package/pipe.js +107 -0
- package/pipe.js.map +1 -0
- package/pipeGrant.d.ts +149 -0
- package/pipeGrant.js +98 -0
- package/pipeGrant.js.map +1 -0
- package/procedure.d.ts +201 -0
- package/procedure.js +125 -0
- package/procedure.js.map +1 -0
- package/procedureGrant.d.ts +201 -0
- package/procedureGrant.js +119 -0
- package/procedureGrant.js.map +1 -0
- package/provider.d.ts +64 -0
- package/provider.js +70 -0
- package/provider.js.map +1 -0
- package/resourceMonitor.d.ts +156 -0
- package/resourceMonitor.js +89 -0
- package/resourceMonitor.js.map +1 -0
- package/resourceMonitorGrant.d.ts +105 -0
- package/resourceMonitorGrant.js +81 -0
- package/resourceMonitorGrant.js.map +1 -0
- package/role.d.ts +60 -0
- package/role.js +71 -0
- package/role.js.map +1 -0
- package/roleGrants.d.ts +105 -0
- package/roleGrants.js +91 -0
- package/roleGrants.js.map +1 -0
- package/rowAccessPolicy.d.ts +140 -0
- package/rowAccessPolicy.js +99 -0
- package/rowAccessPolicy.js.map +1 -0
- package/rowAccessPolicyGrant.d.ts +136 -0
- package/rowAccessPolicyGrant.js +98 -0
- package/rowAccessPolicyGrant.js.map +1 -0
- package/schema.d.ts +132 -0
- package/schema.js +88 -0
- package/schema.js.map +1 -0
- package/schemaGrant.d.ts +155 -0
- package/schemaGrant.js +98 -0
- package/schemaGrant.js.map +1 -0
- package/scimIntegration.d.ts +112 -0
- package/scimIntegration.js +85 -0
- package/scimIntegration.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/sequence.d.ts +127 -0
- package/sequence.js +84 -0
- package/sequence.js.map +1 -0
- package/sequenceGrant.d.ts +149 -0
- package/sequenceGrant.js +98 -0
- package/sequenceGrant.js.map +1 -0
- package/share.d.ts +90 -0
- package/share.js +73 -0
- package/share.js.map +1 -0
- package/stage.d.ts +192 -0
- package/stage.js +109 -0
- package/stage.js.map +1 -0
- package/stageGrant.d.ts +165 -0
- package/stageGrant.js +104 -0
- package/stageGrant.js.map +1 -0
- package/storageIntegration.d.ts +153 -0
- package/storageIntegration.js +109 -0
- package/storageIntegration.js.map +1 -0
- package/stream.d.ts +166 -0
- package/stream.js +99 -0
- package/stream.js.map +1 -0
- package/streamGrant.d.ts +149 -0
- package/streamGrant.js +98 -0
- package/streamGrant.js.map +1 -0
- package/table.d.ts +214 -0
- package/table.js +139 -0
- package/table.js.map +1 -0
- package/tableGrant.d.ts +159 -0
- package/tableGrant.js +95 -0
- package/tableGrant.js.map +1 -0
- package/task.d.ts +218 -0
- package/task.js +117 -0
- package/task.js.map +1 -0
- package/taskGrant.d.ts +149 -0
- package/taskGrant.js +98 -0
- package/taskGrant.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +113 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +331 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +236 -0
- package/user.js +111 -0
- package/user.js.map +1 -0
- package/userPublicKeys.d.ts +72 -0
- package/userPublicKeys.js +55 -0
- package/userPublicKeys.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +52 -0
- package/utilities.js.map +1 -0
- package/view.d.ts +145 -0
- package/view.js +97 -0
- package/view.js.map +1 -0
- package/viewGrant.d.ts +165 -0
- package/viewGrant.js +101 -0
- package/viewGrant.js.map +1 -0
- package/warehouse.d.ts +214 -0
- package/warehouse.js +96 -0
- package/warehouse.js.map +1 -0
- package/warehouseGrant.d.ts +107 -0
- package/warehouseGrant.js +83 -0
- package/warehouseGrant.js.map +1 -0
package/schema.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Schema = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const schema = new snowflake.Schema("schema", {
|
|
16
|
+
* comment: "A schema.",
|
|
17
|
+
* dataRetentionDays: 1,
|
|
18
|
+
* database: "db",
|
|
19
|
+
* isManaged: false,
|
|
20
|
+
* isTransient: false,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* # format is dbName | schemaName
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import snowflake:index/schema:Schema example 'dbName|schemaName'
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class Schema extends pulumi.CustomResource {
|
|
33
|
+
constructor(name, argsOrState, opts) {
|
|
34
|
+
let inputs = {};
|
|
35
|
+
opts = opts || {};
|
|
36
|
+
if (opts.id) {
|
|
37
|
+
const state = argsOrState;
|
|
38
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
39
|
+
inputs["dataRetentionDays"] = state ? state.dataRetentionDays : undefined;
|
|
40
|
+
inputs["database"] = state ? state.database : undefined;
|
|
41
|
+
inputs["isManaged"] = state ? state.isManaged : undefined;
|
|
42
|
+
inputs["isTransient"] = state ? state.isTransient : undefined;
|
|
43
|
+
inputs["name"] = state ? state.name : undefined;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const args = argsOrState;
|
|
47
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'database'");
|
|
49
|
+
}
|
|
50
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
51
|
+
inputs["dataRetentionDays"] = args ? args.dataRetentionDays : undefined;
|
|
52
|
+
inputs["database"] = args ? args.database : undefined;
|
|
53
|
+
inputs["isManaged"] = args ? args.isManaged : undefined;
|
|
54
|
+
inputs["isTransient"] = args ? args.isTransient : undefined;
|
|
55
|
+
inputs["name"] = args ? args.name : undefined;
|
|
56
|
+
}
|
|
57
|
+
if (!opts.version) {
|
|
58
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
59
|
+
}
|
|
60
|
+
super(Schema.__pulumiType, name, inputs, opts);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get an existing Schema resource's state with the given name, ID, and optional extra
|
|
64
|
+
* properties used to qualify the lookup.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resulting resource.
|
|
67
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
68
|
+
* @param state Any extra arguments used during the lookup.
|
|
69
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
70
|
+
*/
|
|
71
|
+
static get(name, id, state, opts) {
|
|
72
|
+
return new Schema(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the given object is an instance of Schema. This is designed to work even
|
|
76
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
+
*/
|
|
78
|
+
static isInstance(obj) {
|
|
79
|
+
if (obj === undefined || obj === null) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
return obj['__pulumiType'] === Schema.__pulumiType;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.Schema = Schema;
|
|
86
|
+
/** @internal */
|
|
87
|
+
Schema.__pulumiType = 'snowflake:index/schema:Schema';
|
|
88
|
+
//# sourceMappingURL=schema.js.map
|
package/schema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA6D7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QA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pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
8
|
+
*
|
|
9
|
+
* const grant = new snowflake.SchemaGrant("grant", {
|
|
10
|
+
* databaseName: "db",
|
|
11
|
+
* onFuture: false,
|
|
12
|
+
* privilege: "USAGE",
|
|
13
|
+
* roles: [
|
|
14
|
+
* "role1",
|
|
15
|
+
* "role2",
|
|
16
|
+
* ],
|
|
17
|
+
* schemaName: "schema",
|
|
18
|
+
* shares: [
|
|
19
|
+
* "share1",
|
|
20
|
+
* "share2",
|
|
21
|
+
* ],
|
|
22
|
+
* withGrantOption: false,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* # format is database name | schema name | | privilege | true/false for with_grant_option
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import snowflake:index/schemaGrant:SchemaGrant example 'databaseName|schemaName||MONITOR|false'
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class SchemaGrant extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing SchemaGrant resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SchemaGrantState, opts?: pulumi.CustomResourceOptions): SchemaGrant;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of SchemaGrant. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is SchemaGrant;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the database containing the schema on which to grant privileges.
|
|
52
|
+
*/
|
|
53
|
+
readonly databaseName: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future.
|
|
56
|
+
*/
|
|
57
|
+
readonly onFuture: pulumi.Output<boolean | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
60
|
+
* terraform is using is granted access.
|
|
61
|
+
*/
|
|
62
|
+
readonly privilege: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Grants privilege to these roles.
|
|
65
|
+
*/
|
|
66
|
+
readonly roles: pulumi.Output<string[] | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* The name of the schema on which to grant privileges.
|
|
69
|
+
*/
|
|
70
|
+
readonly schemaName: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Grants privilege to these shares (only valid if onFuture is unset).
|
|
73
|
+
*/
|
|
74
|
+
readonly shares: pulumi.Output<string[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
77
|
+
*/
|
|
78
|
+
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a SchemaGrant resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args: SchemaGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering SchemaGrant resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface SchemaGrantState {
|
|
92
|
+
/**
|
|
93
|
+
* The name of the database containing the schema on which to grant privileges.
|
|
94
|
+
*/
|
|
95
|
+
databaseName?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future.
|
|
98
|
+
*/
|
|
99
|
+
onFuture?: pulumi.Input<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
102
|
+
* terraform is using is granted access.
|
|
103
|
+
*/
|
|
104
|
+
privilege?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Grants privilege to these roles.
|
|
107
|
+
*/
|
|
108
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
109
|
+
/**
|
|
110
|
+
* The name of the schema on which to grant privileges.
|
|
111
|
+
*/
|
|
112
|
+
schemaName?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Grants privilege to these shares (only valid if onFuture is unset).
|
|
115
|
+
*/
|
|
116
|
+
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
117
|
+
/**
|
|
118
|
+
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
119
|
+
*/
|
|
120
|
+
withGrantOption?: pulumi.Input<boolean>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The set of arguments for constructing a SchemaGrant resource.
|
|
124
|
+
*/
|
|
125
|
+
export interface SchemaGrantArgs {
|
|
126
|
+
/**
|
|
127
|
+
* The name of the database containing the schema on which to grant privileges.
|
|
128
|
+
*/
|
|
129
|
+
databaseName: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future.
|
|
132
|
+
*/
|
|
133
|
+
onFuture?: pulumi.Input<boolean>;
|
|
134
|
+
/**
|
|
135
|
+
* The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
136
|
+
* terraform is using is granted access.
|
|
137
|
+
*/
|
|
138
|
+
privilege?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Grants privilege to these roles.
|
|
141
|
+
*/
|
|
142
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
143
|
+
/**
|
|
144
|
+
* The name of the schema on which to grant privileges.
|
|
145
|
+
*/
|
|
146
|
+
schemaName?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Grants privilege to these shares (only valid if onFuture is unset).
|
|
149
|
+
*/
|
|
150
|
+
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
151
|
+
/**
|
|
152
|
+
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
153
|
+
*/
|
|
154
|
+
withGrantOption?: pulumi.Input<boolean>;
|
|
155
|
+
}
|
package/schemaGrant.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SchemaGrant = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const grant = new snowflake.SchemaGrant("grant", {
|
|
16
|
+
* databaseName: "db",
|
|
17
|
+
* onFuture: false,
|
|
18
|
+
* privilege: "USAGE",
|
|
19
|
+
* roles: [
|
|
20
|
+
* "role1",
|
|
21
|
+
* "role2",
|
|
22
|
+
* ],
|
|
23
|
+
* schemaName: "schema",
|
|
24
|
+
* shares: [
|
|
25
|
+
* "share1",
|
|
26
|
+
* "share2",
|
|
27
|
+
* ],
|
|
28
|
+
* withGrantOption: false,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* # format is database name | schema name | | privilege | true/false for with_grant_option
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import snowflake:index/schemaGrant:SchemaGrant example 'databaseName|schemaName||MONITOR|false'
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
class SchemaGrant extends pulumi.CustomResource {
|
|
41
|
+
constructor(name, argsOrState, opts) {
|
|
42
|
+
let inputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
if (opts.id) {
|
|
45
|
+
const state = argsOrState;
|
|
46
|
+
inputs["databaseName"] = state ? state.databaseName : undefined;
|
|
47
|
+
inputs["onFuture"] = state ? state.onFuture : undefined;
|
|
48
|
+
inputs["privilege"] = state ? state.privilege : undefined;
|
|
49
|
+
inputs["roles"] = state ? state.roles : undefined;
|
|
50
|
+
inputs["schemaName"] = state ? state.schemaName : undefined;
|
|
51
|
+
inputs["shares"] = state ? state.shares : undefined;
|
|
52
|
+
inputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'databaseName'");
|
|
58
|
+
}
|
|
59
|
+
inputs["databaseName"] = args ? args.databaseName : undefined;
|
|
60
|
+
inputs["onFuture"] = args ? args.onFuture : undefined;
|
|
61
|
+
inputs["privilege"] = args ? args.privilege : undefined;
|
|
62
|
+
inputs["roles"] = args ? args.roles : undefined;
|
|
63
|
+
inputs["schemaName"] = args ? args.schemaName : undefined;
|
|
64
|
+
inputs["shares"] = args ? args.shares : undefined;
|
|
65
|
+
inputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
66
|
+
}
|
|
67
|
+
if (!opts.version) {
|
|
68
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
69
|
+
}
|
|
70
|
+
super(SchemaGrant.__pulumiType, name, inputs, opts);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get an existing SchemaGrant resource's state with the given name, ID, and optional extra
|
|
74
|
+
* properties used to qualify the lookup.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resulting resource.
|
|
77
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
78
|
+
* @param state Any extra arguments used during the lookup.
|
|
79
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
80
|
+
*/
|
|
81
|
+
static get(name, id, state, opts) {
|
|
82
|
+
return new SchemaGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns true if the given object is an instance of SchemaGrant. This is designed to work even
|
|
86
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
87
|
+
*/
|
|
88
|
+
static isInstance(obj) {
|
|
89
|
+
if (obj === undefined || obj === null) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return obj['__pulumiType'] === SchemaGrant.__pulumiType;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.SchemaGrant = SchemaGrant;
|
|
96
|
+
/** @internal */
|
|
97
|
+
SchemaGrant.__pulumiType = 'snowflake:index/schemaGrant:SchemaGrant';
|
|
98
|
+
//# sourceMappingURL=schemaGrant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaGrant.js","sourceRoot":"","sources":["../schemaGrant.ts"],"names":[],"mappings":";AAA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,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAgGC;AAlFG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
8
|
+
*
|
|
9
|
+
* const aad = new snowflake.ScimIntegration("aad", {
|
|
10
|
+
* networkPolicy: "AAD_NETWORK_POLICY",
|
|
11
|
+
* provisionerRole: "AAD_PROVISIONER",
|
|
12
|
+
* scimClient: "AZURE",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* ```sh
|
|
19
|
+
* $ pulumi import snowflake:index/scimIntegration:ScimIntegration example name
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class ScimIntegration extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing ScimIntegration resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScimIntegrationState, opts?: pulumi.CustomResourceOptions): ScimIntegration;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of ScimIntegration. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is ScimIntegration;
|
|
38
|
+
/**
|
|
39
|
+
* Date and time when the SCIM integration was created.
|
|
40
|
+
*/
|
|
41
|
+
readonly createdOn: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
44
|
+
*/
|
|
45
|
+
readonly name: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
|
|
48
|
+
*/
|
|
49
|
+
readonly networkPolicy: pulumi.Output<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
|
|
52
|
+
*/
|
|
53
|
+
readonly provisionerRole: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the client type for the scim integration
|
|
56
|
+
*/
|
|
57
|
+
readonly scimClient: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a ScimIntegration resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: ScimIntegrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Input properties used for looking up and filtering ScimIntegration resources.
|
|
69
|
+
*/
|
|
70
|
+
export interface ScimIntegrationState {
|
|
71
|
+
/**
|
|
72
|
+
* Date and time when the SCIM integration was created.
|
|
73
|
+
*/
|
|
74
|
+
createdOn?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
77
|
+
*/
|
|
78
|
+
name?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
|
|
81
|
+
*/
|
|
82
|
+
networkPolicy?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
|
|
85
|
+
*/
|
|
86
|
+
provisionerRole?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies the client type for the scim integration
|
|
89
|
+
*/
|
|
90
|
+
scimClient?: pulumi.Input<string>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a ScimIntegration resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface ScimIntegrationArgs {
|
|
96
|
+
/**
|
|
97
|
+
* Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
98
|
+
*/
|
|
99
|
+
name?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
|
|
102
|
+
*/
|
|
103
|
+
networkPolicy?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
|
|
106
|
+
*/
|
|
107
|
+
provisionerRole: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Specifies the client type for the scim integration
|
|
110
|
+
*/
|
|
111
|
+
scimClient: pulumi.Input<string>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ScimIntegration = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const aad = new snowflake.ScimIntegration("aad", {
|
|
16
|
+
* networkPolicy: "AAD_NETWORK_POLICY",
|
|
17
|
+
* provisionerRole: "AAD_PROVISIONER",
|
|
18
|
+
* scimClient: "AZURE",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import snowflake:index/scimIntegration:ScimIntegration example name
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
class ScimIntegration extends pulumi.CustomResource {
|
|
29
|
+
constructor(name, argsOrState, opts) {
|
|
30
|
+
let inputs = {};
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
if (opts.id) {
|
|
33
|
+
const state = argsOrState;
|
|
34
|
+
inputs["createdOn"] = state ? state.createdOn : undefined;
|
|
35
|
+
inputs["name"] = state ? state.name : undefined;
|
|
36
|
+
inputs["networkPolicy"] = state ? state.networkPolicy : undefined;
|
|
37
|
+
inputs["provisionerRole"] = state ? state.provisionerRole : undefined;
|
|
38
|
+
inputs["scimClient"] = state ? state.scimClient : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.provisionerRole === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'provisionerRole'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.scimClient === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'scimClient'");
|
|
47
|
+
}
|
|
48
|
+
inputs["name"] = args ? args.name : undefined;
|
|
49
|
+
inputs["networkPolicy"] = args ? args.networkPolicy : undefined;
|
|
50
|
+
inputs["provisionerRole"] = args ? args.provisionerRole : undefined;
|
|
51
|
+
inputs["scimClient"] = args ? args.scimClient : undefined;
|
|
52
|
+
inputs["createdOn"] = undefined /*out*/;
|
|
53
|
+
}
|
|
54
|
+
if (!opts.version) {
|
|
55
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
56
|
+
}
|
|
57
|
+
super(ScimIntegration.__pulumiType, name, inputs, opts);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get an existing ScimIntegration resource's state with the given name, ID, and optional extra
|
|
61
|
+
* properties used to qualify the lookup.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resulting resource.
|
|
64
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
65
|
+
* @param state Any extra arguments used during the lookup.
|
|
66
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
|
+
*/
|
|
68
|
+
static get(name, id, state, opts) {
|
|
69
|
+
return new ScimIntegration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of ScimIntegration. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj) {
|
|
76
|
+
if (obj === undefined || obj === null) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return obj['__pulumiType'] === ScimIntegration.__pulumiType;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ScimIntegration = ScimIntegration;
|
|
83
|
+
/** @internal */
|
|
84
|
+
ScimIntegration.__pulumiType = 'snowflake:index/scimIntegration:ScimIntegration';
|
|
85
|
+
//# sourceMappingURL=scimIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scimIntegration.js","sourceRoot":"","sources":["../scimIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAyDtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,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,CAAC,CAAC;IAC5D,CAAC;IApFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAsFC;AAxEG,gBAAgB;AACO,4BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var childProcess = require("child_process");
|
|
3
|
+
|
|
4
|
+
var args = process.argv.slice(2);
|
|
5
|
+
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
+
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
+
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
+
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
+
"You may try manually installing the plugin by running " +
|
|
14
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
+
} else if (res.error || res.status !== 0) {
|
|
16
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
+
"You may try to manually installing the plugin by running " +
|
|
18
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
process.exit(0);
|