@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,72 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class UserPublicKeys extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing UserPublicKeys resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserPublicKeysState, opts?: pulumi.CustomResourceOptions): UserPublicKeys;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of UserPublicKeys. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is UserPublicKeys;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the user.
|
|
20
|
+
*/
|
|
21
|
+
readonly name: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
|
|
24
|
+
*/
|
|
25
|
+
readonly rsaPublicKey: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
|
|
28
|
+
*/
|
|
29
|
+
readonly rsaPublicKey2: pulumi.Output<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a UserPublicKeys resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args?: UserPublicKeysArgs, opts?: pulumi.CustomResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Input properties used for looking up and filtering UserPublicKeys resources.
|
|
41
|
+
*/
|
|
42
|
+
export interface UserPublicKeysState {
|
|
43
|
+
/**
|
|
44
|
+
* Name of the user.
|
|
45
|
+
*/
|
|
46
|
+
name?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
|
|
49
|
+
*/
|
|
50
|
+
rsaPublicKey?: pulumi.Input<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
|
|
53
|
+
*/
|
|
54
|
+
rsaPublicKey2?: pulumi.Input<string>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The set of arguments for constructing a UserPublicKeys resource.
|
|
58
|
+
*/
|
|
59
|
+
export interface UserPublicKeysArgs {
|
|
60
|
+
/**
|
|
61
|
+
* Name of the user.
|
|
62
|
+
*/
|
|
63
|
+
name?: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
|
|
66
|
+
*/
|
|
67
|
+
rsaPublicKey?: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
|
|
70
|
+
*/
|
|
71
|
+
rsaPublicKey2?: pulumi.Input<string>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.UserPublicKeys = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class UserPublicKeys extends pulumi.CustomResource {
|
|
9
|
+
constructor(name, argsOrState, opts) {
|
|
10
|
+
let inputs = {};
|
|
11
|
+
opts = opts || {};
|
|
12
|
+
if (opts.id) {
|
|
13
|
+
const state = argsOrState;
|
|
14
|
+
inputs["name"] = state ? state.name : undefined;
|
|
15
|
+
inputs["rsaPublicKey"] = state ? state.rsaPublicKey : undefined;
|
|
16
|
+
inputs["rsaPublicKey2"] = state ? state.rsaPublicKey2 : undefined;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const args = argsOrState;
|
|
20
|
+
inputs["name"] = args ? args.name : undefined;
|
|
21
|
+
inputs["rsaPublicKey"] = args ? args.rsaPublicKey : undefined;
|
|
22
|
+
inputs["rsaPublicKey2"] = args ? args.rsaPublicKey2 : undefined;
|
|
23
|
+
}
|
|
24
|
+
if (!opts.version) {
|
|
25
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
26
|
+
}
|
|
27
|
+
super(UserPublicKeys.__pulumiType, name, inputs, opts);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing UserPublicKeys resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name, id, state, opts) {
|
|
39
|
+
return new UserPublicKeys(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of UserPublicKeys. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj) {
|
|
46
|
+
if (obj === undefined || obj === null) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return obj['__pulumiType'] === UserPublicKeys.__pulumiType;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.UserPublicKeys = UserPublicKeys;
|
|
53
|
+
/** @internal */
|
|
54
|
+
UserPublicKeys.__pulumiType = 'snowflake:index/userPublicKeys:UserPublicKeys';
|
|
55
|
+
//# sourceMappingURL=userPublicKeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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xE;QACD,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAlED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAoEC;AAtDG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
|
+
function getEnv(...vars) {
|
|
7
|
+
for (const v of vars) {
|
|
8
|
+
const value = process.env[v];
|
|
9
|
+
if (value) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
exports.getEnv = getEnv;
|
|
16
|
+
function getEnvBoolean(...vars) {
|
|
17
|
+
const s = getEnv(...vars);
|
|
18
|
+
if (s !== undefined) {
|
|
19
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
20
|
+
// Terraform uses internally when parsing boolean values.
|
|
21
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
31
|
+
function getEnvNumber(...vars) {
|
|
32
|
+
const s = getEnv(...vars);
|
|
33
|
+
if (s !== undefined) {
|
|
34
|
+
const f = parseFloat(s);
|
|
35
|
+
if (!isNaN(f)) {
|
|
36
|
+
return f;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
exports.getEnvNumber = getEnvNumber;
|
|
42
|
+
function getVersion() {
|
|
43
|
+
let version = require('./package.json').version;
|
|
44
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
45
|
+
// If there is a v, strip it off.
|
|
46
|
+
if (version.indexOf('v') === 0) {
|
|
47
|
+
version = version.slice(1);
|
|
48
|
+
}
|
|
49
|
+
return version;
|
|
50
|
+
}
|
|
51
|
+
exports.getVersion = getVersion;
|
|
52
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,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C;IAChD,6EAA6E;IAC7E,iCAAiC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC9B;IACD,OAAO,OAAO,CAAC;AACnB,CAAC;AARD,gCAQC"}
|
package/view.d.ts
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
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 view = new snowflake.View("view", {
|
|
10
|
+
* database: "db",
|
|
11
|
+
* schema: "schema",
|
|
12
|
+
* comment: "comment",
|
|
13
|
+
* statement: "select * from foo;\n",
|
|
14
|
+
* orReplace: false,
|
|
15
|
+
* isSecure: false,
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* # format is database name | schema name | view name
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import snowflake:index/view:View example 'dbName|schemaName|viewName'
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class View extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing View resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ViewState, opts?: pulumi.CustomResourceOptions): View;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the given object is an instance of View. This is designed to work even
|
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
+
*/
|
|
42
|
+
static isInstance(obj: any): obj is View;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies a comment for the view.
|
|
45
|
+
*/
|
|
46
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The database in which to create the view. Don't use the | character.
|
|
49
|
+
*/
|
|
50
|
+
readonly database: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies that the view is secure.
|
|
53
|
+
*/
|
|
54
|
+
readonly isSecure: pulumi.Output<boolean | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
|
|
57
|
+
*/
|
|
58
|
+
readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Overwrites the View if it exists.
|
|
61
|
+
*/
|
|
62
|
+
readonly orReplace: pulumi.Output<boolean | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The schema in which to create the view. Don't use the | character.
|
|
65
|
+
*/
|
|
66
|
+
readonly schema: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies the query used to create the view.
|
|
69
|
+
*/
|
|
70
|
+
readonly statement: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a View resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
constructor(name: string, args: ViewArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input properties used for looking up and filtering View resources.
|
|
82
|
+
*/
|
|
83
|
+
export interface ViewState {
|
|
84
|
+
/**
|
|
85
|
+
* Specifies a comment for the view.
|
|
86
|
+
*/
|
|
87
|
+
comment?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The database in which to create the view. Don't use the | character.
|
|
90
|
+
*/
|
|
91
|
+
database?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Specifies that the view is secure.
|
|
94
|
+
*/
|
|
95
|
+
isSecure?: pulumi.Input<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
|
|
98
|
+
*/
|
|
99
|
+
name?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Overwrites the View if it exists.
|
|
102
|
+
*/
|
|
103
|
+
orReplace?: pulumi.Input<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* The schema in which to create the view. Don't use the | character.
|
|
106
|
+
*/
|
|
107
|
+
schema?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Specifies the query used to create the view.
|
|
110
|
+
*/
|
|
111
|
+
statement?: pulumi.Input<string>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a View resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface ViewArgs {
|
|
117
|
+
/**
|
|
118
|
+
* Specifies a comment for the view.
|
|
119
|
+
*/
|
|
120
|
+
comment?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The database in which to create the view. Don't use the | character.
|
|
123
|
+
*/
|
|
124
|
+
database: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Specifies that the view is secure.
|
|
127
|
+
*/
|
|
128
|
+
isSecure?: pulumi.Input<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
|
|
131
|
+
*/
|
|
132
|
+
name?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Overwrites the View if it exists.
|
|
135
|
+
*/
|
|
136
|
+
orReplace?: pulumi.Input<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* The schema in which to create the view. Don't use the | character.
|
|
139
|
+
*/
|
|
140
|
+
schema: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Specifies the query used to create the view.
|
|
143
|
+
*/
|
|
144
|
+
statement: pulumi.Input<string>;
|
|
145
|
+
}
|
package/view.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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.View = 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 view = new snowflake.View("view", {
|
|
16
|
+
* database: "db",
|
|
17
|
+
* schema: "schema",
|
|
18
|
+
* comment: "comment",
|
|
19
|
+
* statement: "select * from foo;\n",
|
|
20
|
+
* orReplace: false,
|
|
21
|
+
* isSecure: false,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* # format is database name | schema name | view name
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import snowflake:index/view:View example 'dbName|schemaName|viewName'
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
class View extends pulumi.CustomResource {
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let inputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
40
|
+
inputs["database"] = state ? state.database : undefined;
|
|
41
|
+
inputs["isSecure"] = state ? state.isSecure : undefined;
|
|
42
|
+
inputs["name"] = state ? state.name : undefined;
|
|
43
|
+
inputs["orReplace"] = state ? state.orReplace : undefined;
|
|
44
|
+
inputs["schema"] = state ? state.schema : undefined;
|
|
45
|
+
inputs["statement"] = state ? state.statement : undefined;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const args = argsOrState;
|
|
49
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'database'");
|
|
51
|
+
}
|
|
52
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'schema'");
|
|
54
|
+
}
|
|
55
|
+
if ((!args || args.statement === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'statement'");
|
|
57
|
+
}
|
|
58
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
59
|
+
inputs["database"] = args ? args.database : undefined;
|
|
60
|
+
inputs["isSecure"] = args ? args.isSecure : undefined;
|
|
61
|
+
inputs["name"] = args ? args.name : undefined;
|
|
62
|
+
inputs["orReplace"] = args ? args.orReplace : undefined;
|
|
63
|
+
inputs["schema"] = args ? args.schema : undefined;
|
|
64
|
+
inputs["statement"] = args ? args.statement : undefined;
|
|
65
|
+
}
|
|
66
|
+
if (!opts.version) {
|
|
67
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
68
|
+
}
|
|
69
|
+
super(View.__pulumiType, name, inputs, opts);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing View resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param state Any extra arguments used during the lookup.
|
|
78
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
|
+
*/
|
|
80
|
+
static get(name, id, state, opts) {
|
|
81
|
+
return new View(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns true if the given object is an instance of View. This is designed to work even
|
|
85
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
86
|
+
*/
|
|
87
|
+
static isInstance(obj) {
|
|
88
|
+
if (obj === undefined || obj === null) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return obj['__pulumiType'] === View.__pulumiType;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.View = View;
|
|
95
|
+
/** @internal */
|
|
96
|
+
View.__pulumiType = 'snowflake:index/view:View';
|
|
97
|
+
//# sourceMappingURL=view.js.map
|
package/view.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../view.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAiE3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,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AE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBAqGC;AAvFG,gBAAgB;AACO,iBAAY,GAAG,2BAA2B,CAAC"}
|
package/viewGrant.d.ts
ADDED
|
@@ -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.ViewGrant("grant", {
|
|
10
|
+
* databaseName: "db",
|
|
11
|
+
* onFuture: false,
|
|
12
|
+
* privilege: "select",
|
|
13
|
+
* roles: [
|
|
14
|
+
* "role1",
|
|
15
|
+
* "role2",
|
|
16
|
+
* ],
|
|
17
|
+
* schemaName: "schema",
|
|
18
|
+
* shares: [
|
|
19
|
+
* "share1",
|
|
20
|
+
* "share2",
|
|
21
|
+
* ],
|
|
22
|
+
* viewName: "view",
|
|
23
|
+
* withGrantOption: false,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* # format is database name | schema name | view name | privilege | true/false for with_grant_option
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import snowflake:index/viewGrant:ViewGrant example 'dbName|schemaName|viewName|USAGE|false'
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class ViewGrant extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing ViewGrant 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?: ViewGrantState, opts?: pulumi.CustomResourceOptions): ViewGrant;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of ViewGrant. 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 ViewGrant;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the database containing the current or future views on which to grant privileges.
|
|
53
|
+
*/
|
|
54
|
+
readonly databaseName: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future.
|
|
57
|
+
*/
|
|
58
|
+
readonly onFuture: pulumi.Output<boolean | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The privilege to grant on the current or future view.
|
|
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 containing the current or future views 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
|
+
* The name of the view on which to grant privileges immediately (only valid if onFuture is unset).
|
|
77
|
+
*/
|
|
78
|
+
readonly viewName: 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 ViewGrant 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: ViewGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering ViewGrant resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface ViewGrantState {
|
|
96
|
+
/**
|
|
97
|
+
* The name of the database containing the current or future views on which to grant privileges.
|
|
98
|
+
*/
|
|
99
|
+
databaseName?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future.
|
|
102
|
+
*/
|
|
103
|
+
onFuture?: pulumi.Input<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* The privilege to grant on the current or future view.
|
|
106
|
+
*/
|
|
107
|
+
privilege?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Grants privilege to these roles.
|
|
110
|
+
*/
|
|
111
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
112
|
+
/**
|
|
113
|
+
* The name of the schema containing the current or future views on which to grant privileges.
|
|
114
|
+
*/
|
|
115
|
+
schemaName?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Grants privilege to these shares (only valid if onFuture is unset).
|
|
118
|
+
*/
|
|
119
|
+
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
120
|
+
/**
|
|
121
|
+
* The name of the view on which to grant privileges immediately (only valid if onFuture is unset).
|
|
122
|
+
*/
|
|
123
|
+
viewName?: 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 ViewGrant resource.
|
|
131
|
+
*/
|
|
132
|
+
export interface ViewGrantArgs {
|
|
133
|
+
/**
|
|
134
|
+
* The name of the database containing the current or future views on which to grant privileges.
|
|
135
|
+
*/
|
|
136
|
+
databaseName: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future.
|
|
139
|
+
*/
|
|
140
|
+
onFuture?: pulumi.Input<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* The privilege to grant on the current or future view.
|
|
143
|
+
*/
|
|
144
|
+
privilege?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Grants privilege to these roles.
|
|
147
|
+
*/
|
|
148
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
149
|
+
/**
|
|
150
|
+
* The name of the schema containing the current or future views on which to grant privileges.
|
|
151
|
+
*/
|
|
152
|
+
schemaName?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Grants privilege to these shares (only valid if onFuture is unset).
|
|
155
|
+
*/
|
|
156
|
+
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
157
|
+
/**
|
|
158
|
+
* The name of the view on which to grant privileges immediately (only valid if onFuture is unset).
|
|
159
|
+
*/
|
|
160
|
+
viewName?: 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
|
+
}
|