@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
|
@@ -0,0 +1,165 @@
|
|
|
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 grant = new snowflake.MaterializedViewGrant("grant", {
|
|
10
|
+
* databaseName: "db",
|
|
11
|
+
* materializedViewName: "materialized_view",
|
|
12
|
+
* onFuture: false,
|
|
13
|
+
* privilege: "select",
|
|
14
|
+
* roles: [
|
|
15
|
+
* "role1",
|
|
16
|
+
* "role2",
|
|
17
|
+
* ],
|
|
18
|
+
* schemaName: "schema",
|
|
19
|
+
* shares: [
|
|
20
|
+
* "share1",
|
|
21
|
+
* "share2",
|
|
22
|
+
* ],
|
|
23
|
+
* withGrantOption: false,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* # format is database name | schema name | materialized view name | privilege | true/false for with_grant_option
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import snowflake:index/materializedViewGrant:MaterializedViewGrant example 'dbName|schemaName|materializedViewName|SELECT|false'
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class MaterializedViewGrant extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing MaterializedViewGrant resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MaterializedViewGrantState, opts?: pulumi.CustomResourceOptions): MaterializedViewGrant;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of MaterializedViewGrant. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj: any): obj is MaterializedViewGrant;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the database containing the current or future materialized views on which to grant privileges.
|
|
53
|
+
*/
|
|
54
|
+
readonly databaseName: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the materialized view on which to grant privileges immediately (only valid if onFuture is false).
|
|
57
|
+
*/
|
|
58
|
+
readonly materializedViewName: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on_future.
|
|
61
|
+
*/
|
|
62
|
+
readonly onFuture: pulumi.Output<boolean | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The privilege to grant on the current or future materialized view view.
|
|
65
|
+
*/
|
|
66
|
+
readonly privilege: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Grants privilege to these roles.
|
|
69
|
+
*/
|
|
70
|
+
readonly roles: pulumi.Output<string[] | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the schema containing the current or future materialized views on which to grant privileges.
|
|
73
|
+
*/
|
|
74
|
+
readonly schemaName: pulumi.Output<string | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Grants privilege to these shares (only valid if onFuture is false).
|
|
77
|
+
*/
|
|
78
|
+
readonly shares: pulumi.Output<string[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
81
|
+
*/
|
|
82
|
+
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a MaterializedViewGrant resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args: MaterializedViewGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering MaterializedViewGrant resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface MaterializedViewGrantState {
|
|
96
|
+
/**
|
|
97
|
+
* The name of the database containing the current or future materialized views on which to grant privileges.
|
|
98
|
+
*/
|
|
99
|
+
databaseName?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the materialized view on which to grant privileges immediately (only valid if onFuture is false).
|
|
102
|
+
*/
|
|
103
|
+
materializedViewName?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on_future.
|
|
106
|
+
*/
|
|
107
|
+
onFuture?: pulumi.Input<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* The privilege to grant on the current or future materialized view view.
|
|
110
|
+
*/
|
|
111
|
+
privilege?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Grants privilege to these roles.
|
|
114
|
+
*/
|
|
115
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
116
|
+
/**
|
|
117
|
+
* The name of the schema containing the current or future materialized views on which to grant privileges.
|
|
118
|
+
*/
|
|
119
|
+
schemaName?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Grants privilege to these shares (only valid if onFuture is false).
|
|
122
|
+
*/
|
|
123
|
+
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
126
|
+
*/
|
|
127
|
+
withGrantOption?: pulumi.Input<boolean>;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The set of arguments for constructing a MaterializedViewGrant resource.
|
|
131
|
+
*/
|
|
132
|
+
export interface MaterializedViewGrantArgs {
|
|
133
|
+
/**
|
|
134
|
+
* The name of the database containing the current or future materialized views on which to grant privileges.
|
|
135
|
+
*/
|
|
136
|
+
databaseName: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The name of the materialized view on which to grant privileges immediately (only valid if onFuture is false).
|
|
139
|
+
*/
|
|
140
|
+
materializedViewName?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on_future.
|
|
143
|
+
*/
|
|
144
|
+
onFuture?: pulumi.Input<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* The privilege to grant on the current or future materialized view view.
|
|
147
|
+
*/
|
|
148
|
+
privilege?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Grants privilege to these roles.
|
|
151
|
+
*/
|
|
152
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* The name of the schema containing the current or future materialized views on which to grant privileges.
|
|
155
|
+
*/
|
|
156
|
+
schemaName?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Grants privilege to these shares (only valid if onFuture is false).
|
|
159
|
+
*/
|
|
160
|
+
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
161
|
+
/**
|
|
162
|
+
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
163
|
+
*/
|
|
164
|
+
withGrantOption?: pulumi.Input<boolean>;
|
|
165
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.MaterializedViewGrant = 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.MaterializedViewGrant("grant", {
|
|
16
|
+
* databaseName: "db",
|
|
17
|
+
* materializedViewName: "materialized_view",
|
|
18
|
+
* onFuture: false,
|
|
19
|
+
* privilege: "select",
|
|
20
|
+
* roles: [
|
|
21
|
+
* "role1",
|
|
22
|
+
* "role2",
|
|
23
|
+
* ],
|
|
24
|
+
* schemaName: "schema",
|
|
25
|
+
* shares: [
|
|
26
|
+
* "share1",
|
|
27
|
+
* "share2",
|
|
28
|
+
* ],
|
|
29
|
+
* withGrantOption: false,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* # format is database name | schema name | materialized view name | privilege | true/false for with_grant_option
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import snowflake:index/materializedViewGrant:MaterializedViewGrant example 'dbName|schemaName|materializedViewName|SELECT|false'
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class MaterializedViewGrant extends pulumi.CustomResource {
|
|
42
|
+
constructor(name, argsOrState, opts) {
|
|
43
|
+
let inputs = {};
|
|
44
|
+
opts = opts || {};
|
|
45
|
+
if (opts.id) {
|
|
46
|
+
const state = argsOrState;
|
|
47
|
+
inputs["databaseName"] = state ? state.databaseName : undefined;
|
|
48
|
+
inputs["materializedViewName"] = state ? state.materializedViewName : undefined;
|
|
49
|
+
inputs["onFuture"] = state ? state.onFuture : undefined;
|
|
50
|
+
inputs["privilege"] = state ? state.privilege : undefined;
|
|
51
|
+
inputs["roles"] = state ? state.roles : undefined;
|
|
52
|
+
inputs["schemaName"] = state ? state.schemaName : undefined;
|
|
53
|
+
inputs["shares"] = state ? state.shares : undefined;
|
|
54
|
+
inputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'databaseName'");
|
|
60
|
+
}
|
|
61
|
+
inputs["databaseName"] = args ? args.databaseName : undefined;
|
|
62
|
+
inputs["materializedViewName"] = args ? args.materializedViewName : undefined;
|
|
63
|
+
inputs["onFuture"] = args ? args.onFuture : undefined;
|
|
64
|
+
inputs["privilege"] = args ? args.privilege : undefined;
|
|
65
|
+
inputs["roles"] = args ? args.roles : undefined;
|
|
66
|
+
inputs["schemaName"] = args ? args.schemaName : undefined;
|
|
67
|
+
inputs["shares"] = args ? args.shares : undefined;
|
|
68
|
+
inputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
69
|
+
}
|
|
70
|
+
if (!opts.version) {
|
|
71
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
72
|
+
}
|
|
73
|
+
super(MaterializedViewGrant.__pulumiType, name, inputs, opts);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing MaterializedViewGrant resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name, id, state, opts) {
|
|
85
|
+
return new MaterializedViewGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns true if the given object is an instance of MaterializedViewGrant. This is designed to work even
|
|
89
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
+
*/
|
|
91
|
+
static isInstance(obj) {
|
|
92
|
+
if (obj === undefined || obj === null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return obj['__pulumiType'] === MaterializedViewGrant.__pulumiType;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.MaterializedViewGrant = MaterializedViewGrant;
|
|
99
|
+
/** @internal */
|
|
100
|
+
MaterializedViewGrant.__pulumiType = 'snowflake:index/materializedViewGrant:MaterializedViewGrant';
|
|
101
|
+
//# sourceMappingURL=materializedViewGrant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"materializedViewGrant.js","sourceRoot":"","sources":["../materializedViewGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAqE5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,MAAM,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC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AC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAnGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDAqGC;AAvFG,gBAAgB;AACO,kCAAY,GAAG,6DAA6D,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 policy = new snowflake.NetworkPolicy("policy", {
|
|
10
|
+
* allowedIpLists: ["192.168.0.100/24"],
|
|
11
|
+
* blockedIpLists: ["192.168.0.101"],
|
|
12
|
+
* comment: "A policy.",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* ```sh
|
|
19
|
+
* $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class NetworkPolicy extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing NetworkPolicy 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?: NetworkPolicyState, opts?: pulumi.CustomResourceOptions): NetworkPolicy;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of NetworkPolicy. 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 NetworkPolicy;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
|
|
40
|
+
*/
|
|
41
|
+
readonly allowedIpLists: pulumi.Output<string[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
|
|
44
|
+
*/
|
|
45
|
+
readonly blockedIpLists: pulumi.Output<string[] | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies a comment for the network policy.
|
|
48
|
+
*/
|
|
49
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
52
|
+
*/
|
|
53
|
+
readonly name: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a NetworkPolicy resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: NetworkPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Input properties used for looking up and filtering NetworkPolicy resources.
|
|
65
|
+
*/
|
|
66
|
+
export interface NetworkPolicyState {
|
|
67
|
+
/**
|
|
68
|
+
* Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
|
|
69
|
+
*/
|
|
70
|
+
allowedIpLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
|
|
73
|
+
*/
|
|
74
|
+
blockedIpLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies a comment for the network policy.
|
|
77
|
+
*/
|
|
78
|
+
comment?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
81
|
+
*/
|
|
82
|
+
name?: pulumi.Input<string>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The set of arguments for constructing a NetworkPolicy resource.
|
|
86
|
+
*/
|
|
87
|
+
export interface NetworkPolicyArgs {
|
|
88
|
+
/**
|
|
89
|
+
* Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
|
|
90
|
+
*/
|
|
91
|
+
allowedIpLists: pulumi.Input<pulumi.Input<string>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
|
|
94
|
+
*/
|
|
95
|
+
blockedIpLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Specifies a comment for the network policy.
|
|
98
|
+
*/
|
|
99
|
+
comment?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
102
|
+
*/
|
|
103
|
+
name?: pulumi.Input<string>;
|
|
104
|
+
}
|
package/networkPolicy.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
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.NetworkPolicy = 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 policy = new snowflake.NetworkPolicy("policy", {
|
|
16
|
+
* allowedIpLists: ["192.168.0.100/24"],
|
|
17
|
+
* blockedIpLists: ["192.168.0.101"],
|
|
18
|
+
* comment: "A policy.",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
class NetworkPolicy extends pulumi.CustomResource {
|
|
29
|
+
constructor(name, argsOrState, opts) {
|
|
30
|
+
let inputs = {};
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
if (opts.id) {
|
|
33
|
+
const state = argsOrState;
|
|
34
|
+
inputs["allowedIpLists"] = state ? state.allowedIpLists : undefined;
|
|
35
|
+
inputs["blockedIpLists"] = state ? state.blockedIpLists : undefined;
|
|
36
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
37
|
+
inputs["name"] = state ? state.name : undefined;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
const args = argsOrState;
|
|
41
|
+
if ((!args || args.allowedIpLists === undefined) && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'allowedIpLists'");
|
|
43
|
+
}
|
|
44
|
+
inputs["allowedIpLists"] = args ? args.allowedIpLists : undefined;
|
|
45
|
+
inputs["blockedIpLists"] = args ? args.blockedIpLists : undefined;
|
|
46
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
47
|
+
inputs["name"] = args ? args.name : undefined;
|
|
48
|
+
}
|
|
49
|
+
if (!opts.version) {
|
|
50
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
51
|
+
}
|
|
52
|
+
super(NetworkPolicy.__pulumiType, name, inputs, opts);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get an existing NetworkPolicy resource's state with the given name, ID, and optional extra
|
|
56
|
+
* properties used to qualify the lookup.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resulting resource.
|
|
59
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
+
* @param state Any extra arguments used during the lookup.
|
|
61
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
+
*/
|
|
63
|
+
static get(name, id, state, opts) {
|
|
64
|
+
return new NetworkPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of NetworkPolicy. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj) {
|
|
71
|
+
if (obj === undefined || obj === null) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return obj['__pulumiType'] === NetworkPolicy.__pulumiType;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.NetworkPolicy = NetworkPolicy;
|
|
78
|
+
/** @internal */
|
|
79
|
+
NetworkPolicy.__pulumiType = 'snowflake:index/networkPolicy:NetworkPolicy';
|
|
80
|
+
//# sourceMappingURL=networkPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkPolicy.js","sourceRoot":"","sources":["../networkPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAqDpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,MAAM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CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AA1BL,sCA6EC;AA/DG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 attach = new snowflake.NetworkPolicyAttachment("attach", {
|
|
10
|
+
* networkPolicyName: "policy",
|
|
11
|
+
* setForAccount: false,
|
|
12
|
+
* users: [
|
|
13
|
+
* "user1",
|
|
14
|
+
* "user2",
|
|
15
|
+
* ],
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class NetworkPolicyAttachment extends pulumi.CustomResource {
|
|
26
|
+
/**
|
|
27
|
+
* Get an existing NetworkPolicyAttachment resource's state with the given name, ID, and optional extra
|
|
28
|
+
* properties used to qualify the lookup.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resulting resource.
|
|
31
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
+
* @param state Any extra arguments used during the lookup.
|
|
33
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
+
*/
|
|
35
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NetworkPolicyAttachmentState, opts?: pulumi.CustomResourceOptions): NetworkPolicyAttachment;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of NetworkPolicyAttachment. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj: any): obj is NetworkPolicyAttachment;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
43
|
+
*/
|
|
44
|
+
readonly networkPolicyName: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Specifies whether the network policy should be applied globally to your Snowflake account<br><br>**Note:** The Snowflake
|
|
47
|
+
* user running `terraform apply` must be on an IP address allowed by the network policy to set that policy globally on the
|
|
48
|
+
* Snowflake account.<br><br>Additionally, a Snowflake account can only have one network policy set globally at any given
|
|
49
|
+
* time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If
|
|
50
|
+
* multiple network policy resources have `set_for_account: true`, the final policy set on the account will be
|
|
51
|
+
* non-deterministic.
|
|
52
|
+
*/
|
|
53
|
+
readonly setForAccount: pulumi.Output<boolean | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies which users the network policy should be attached to
|
|
56
|
+
*/
|
|
57
|
+
readonly users: pulumi.Output<string[] | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a NetworkPolicyAttachment 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: NetworkPolicyAttachmentArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Input properties used for looking up and filtering NetworkPolicyAttachment resources.
|
|
69
|
+
*/
|
|
70
|
+
export interface NetworkPolicyAttachmentState {
|
|
71
|
+
/**
|
|
72
|
+
* Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
73
|
+
*/
|
|
74
|
+
networkPolicyName?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies whether the network policy should be applied globally to your Snowflake account<br><br>**Note:** The Snowflake
|
|
77
|
+
* user running `terraform apply` must be on an IP address allowed by the network policy to set that policy globally on the
|
|
78
|
+
* Snowflake account.<br><br>Additionally, a Snowflake account can only have one network policy set globally at any given
|
|
79
|
+
* time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If
|
|
80
|
+
* multiple network policy resources have `set_for_account: true`, the final policy set on the account will be
|
|
81
|
+
* non-deterministic.
|
|
82
|
+
*/
|
|
83
|
+
setForAccount?: pulumi.Input<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* Specifies which users the network policy should be attached to
|
|
86
|
+
*/
|
|
87
|
+
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The set of arguments for constructing a NetworkPolicyAttachment resource.
|
|
91
|
+
*/
|
|
92
|
+
export interface NetworkPolicyAttachmentArgs {
|
|
93
|
+
/**
|
|
94
|
+
* Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
95
|
+
*/
|
|
96
|
+
networkPolicyName: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Specifies whether the network policy should be applied globally to your Snowflake account<br><br>**Note:** The Snowflake
|
|
99
|
+
* user running `terraform apply` must be on an IP address allowed by the network policy to set that policy globally on the
|
|
100
|
+
* Snowflake account.<br><br>Additionally, a Snowflake account can only have one network policy set globally at any given
|
|
101
|
+
* time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If
|
|
102
|
+
* multiple network policy resources have `set_for_account: true`, the final policy set on the account will be
|
|
103
|
+
* non-deterministic.
|
|
104
|
+
*/
|
|
105
|
+
setForAccount?: pulumi.Input<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies which users the network policy should be attached to
|
|
108
|
+
*/
|
|
109
|
+
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.NetworkPolicyAttachment = 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 attach = new snowflake.NetworkPolicyAttachment("attach", {
|
|
16
|
+
* networkPolicyName: "policy",
|
|
17
|
+
* setForAccount: false,
|
|
18
|
+
* users: [
|
|
19
|
+
* "user1",
|
|
20
|
+
* "user2",
|
|
21
|
+
* ],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class NetworkPolicyAttachment extends pulumi.CustomResource {
|
|
32
|
+
constructor(name, argsOrState, opts) {
|
|
33
|
+
let inputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
if (opts.id) {
|
|
36
|
+
const state = argsOrState;
|
|
37
|
+
inputs["networkPolicyName"] = state ? state.networkPolicyName : undefined;
|
|
38
|
+
inputs["setForAccount"] = state ? state.setForAccount : undefined;
|
|
39
|
+
inputs["users"] = state ? state.users : undefined;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const args = argsOrState;
|
|
43
|
+
if ((!args || args.networkPolicyName === undefined) && !opts.urn) {
|
|
44
|
+
throw new Error("Missing required property 'networkPolicyName'");
|
|
45
|
+
}
|
|
46
|
+
inputs["networkPolicyName"] = args ? args.networkPolicyName : undefined;
|
|
47
|
+
inputs["setForAccount"] = args ? args.setForAccount : undefined;
|
|
48
|
+
inputs["users"] = args ? args.users : undefined;
|
|
49
|
+
}
|
|
50
|
+
if (!opts.version) {
|
|
51
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
52
|
+
}
|
|
53
|
+
super(NetworkPolicyAttachment.__pulumiType, name, inputs, opts);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing NetworkPolicyAttachment resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new NetworkPolicyAttachment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of NetworkPolicyAttachment. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj) {
|
|
72
|
+
if (obj === undefined || obj === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return obj['__pulumiType'] === NetworkPolicyAttachment.__pulumiType;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.NetworkPolicyAttachment = NetworkPolicyAttachment;
|
|
79
|
+
/** @internal */
|
|
80
|
+
NetworkPolicyAttachment.__pulumiType = 'snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment';
|
|
81
|
+
//# sourceMappingURL=networkPolicyAttachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkPolicyAttachment.js","sourceRoot":"","sources":["../networkPolicyAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAsD9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,MAAM,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,iBAAiB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9D,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,MAAM,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,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