@pulumi/snowflake 0.61.0-alpha.1731393894 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accountAuthenticationPolicyAttachment.d.ts +48 -0
- package/accountAuthenticationPolicyAttachment.js +52 -0
- package/accountAuthenticationPolicyAttachment.js.map +1 -0
- package/authenticationPolicy.d.ts +177 -0
- package/authenticationPolicy.js +84 -0
- package/authenticationPolicy.js.map +1 -0
- package/config/vars.d.ts +79 -36
- package/config/vars.js +46 -4
- package/config/vars.js.map +1 -1
- package/externalVolume.d.ts +113 -0
- package/externalVolume.js +67 -0
- package/externalVolume.js.map +1 -0
- package/getConnections.d.ts +91 -0
- package/getConnections.js +76 -0
- package/getConnections.js.map +1 -0
- package/getGrants.d.ts +4 -0
- package/getGrants.js +4 -0
- package/getGrants.js.map +1 -1
- package/getSecrets.d.ts +140 -0
- package/getSecrets.js +104 -0
- package/getSecrets.js.map +1 -0
- package/getStreams.d.ts +58 -37
- package/getStreams.js +16 -24
- package/getStreams.js.map +1 -1
- package/grantAccountRole.d.ts +1 -1
- package/grantAccountRole.js +1 -1
- package/grantApplicationRole.d.ts +1 -1
- package/grantApplicationRole.js +1 -1
- package/grantDatabaseRole.d.ts +1 -1
- package/grantDatabaseRole.js +1 -1
- package/grantOwnership.d.ts +7 -7
- package/grantOwnership.js +7 -7
- package/grantPrivilegesToAccountRole.d.ts +4 -4
- package/grantPrivilegesToAccountRole.js +4 -4
- package/grantPrivilegesToDatabaseRole.d.ts +4 -4
- package/grantPrivilegesToDatabaseRole.js +4 -4
- package/grantPrivilegesToShare.d.ts +1 -1
- package/grantPrivilegesToShare.js +1 -1
- package/index.d.ts +42 -0
- package/index.js +70 -4
- package/index.js.map +1 -1
- package/legacyServiceUser.d.ts +2 -0
- package/legacyServiceUser.js +2 -0
- package/legacyServiceUser.js.map +1 -1
- package/package.json +2 -2
- package/primaryConnection.d.ts +99 -0
- package/primaryConnection.js +66 -0
- package/primaryConnection.js.map +1 -0
- package/provider.d.ts +158 -54
- package/provider.js +11 -4
- package/provider.js.map +1 -1
- package/secondaryConnection.d.ts +105 -0
- package/secondaryConnection.js +69 -0
- package/secondaryConnection.js.map +1 -0
- package/secretWithAuthorizationCodeGrant.d.ts +152 -0
- package/secretWithAuthorizationCodeGrant.js +93 -0
- package/secretWithAuthorizationCodeGrant.js.map +1 -0
- package/secretWithBasicAuthentication.d.ts +140 -0
- package/secretWithBasicAuthentication.js +88 -0
- package/secretWithBasicAuthentication.js.map +1 -0
- package/secretWithClientCredentials.d.ts +149 -0
- package/secretWithClientCredentials.js +86 -0
- package/secretWithClientCredentials.js.map +1 -0
- package/secretWithGenericString.d.ts +128 -0
- package/secretWithGenericString.js +83 -0
- package/secretWithGenericString.js.map +1 -0
- package/streamOnDirectoryTable.d.ts +151 -0
- package/streamOnDirectoryTable.js +85 -0
- package/streamOnDirectoryTable.js.map +1 -0
- package/streamOnExternalTable.d.ts +10 -0
- package/streamOnExternalTable.js +4 -0
- package/streamOnExternalTable.js.map +1 -1
- package/streamOnTable.d.ts +10 -0
- package/streamOnTable.js +4 -0
- package/streamOnTable.js.map +1 -1
- package/streamOnView.d.ts +172 -0
- package/streamOnView.js +93 -0
- package/streamOnView.js.map +1 -0
- package/tagAssociation.d.ts +3 -3
- package/types/input.d.ts +407 -4
- package/types/output.d.ts +448 -7
- package/user.d.ts +2 -0
- package/user.js +2 -0
- package/user.js.map +1 -1
- package/userAuthenticationPolicyAttachment.d.ts +60 -0
- package/userAuthenticationPolicyAttachment.js +57 -0
- package/userAuthenticationPolicyAttachment.js.map +1 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import snowflake:index/secretWithClientCredentials:SecretWithClientCredentials example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class SecretWithClientCredentials extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing SecretWithClientCredentials resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecretWithClientCredentialsState, opts?: pulumi.CustomResourceOptions): SecretWithClientCredentials;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of SecretWithClientCredentials. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is SecretWithClientCredentials;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the name value of the Snowflake security integration that connects Snowflake to an external service.
|
|
29
|
+
*/
|
|
30
|
+
readonly apiAuthentication: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies a comment for the secret.
|
|
33
|
+
*/
|
|
34
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
37
|
+
*/
|
|
38
|
+
readonly database: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
41
|
+
*/
|
|
42
|
+
readonly describeOutputs: pulumi.Output<outputs.SecretWithClientCredentialsDescribeOutput[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
45
|
+
*/
|
|
46
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
49
|
+
*/
|
|
50
|
+
readonly name: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies a list of scopes to use when making a request from the OAuth server by a role with USAGE on the integration during the OAuth client credentials flow.
|
|
53
|
+
*/
|
|
54
|
+
readonly oauthScopes: pulumi.Output<string[]>;
|
|
55
|
+
/**
|
|
56
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
57
|
+
*/
|
|
58
|
+
readonly schema: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
61
|
+
*/
|
|
62
|
+
readonly secretType: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
65
|
+
*/
|
|
66
|
+
readonly showOutputs: pulumi.Output<outputs.SecretWithClientCredentialsShowOutput[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a SecretWithClientCredentials resource with the given unique name, arguments, and options.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resource.
|
|
71
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
72
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
73
|
+
*/
|
|
74
|
+
constructor(name: string, args: SecretWithClientCredentialsArgs, opts?: pulumi.CustomResourceOptions);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Input properties used for looking up and filtering SecretWithClientCredentials resources.
|
|
78
|
+
*/
|
|
79
|
+
export interface SecretWithClientCredentialsState {
|
|
80
|
+
/**
|
|
81
|
+
* Specifies the name value of the Snowflake security integration that connects Snowflake to an external service.
|
|
82
|
+
*/
|
|
83
|
+
apiAuthentication?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Specifies a comment for the secret.
|
|
86
|
+
*/
|
|
87
|
+
comment?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
90
|
+
*/
|
|
91
|
+
database?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
94
|
+
*/
|
|
95
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithClientCredentialsDescribeOutput>[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
98
|
+
*/
|
|
99
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
102
|
+
*/
|
|
103
|
+
name?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Specifies a list of scopes to use when making a request from the OAuth server by a role with USAGE on the integration during the OAuth client credentials flow.
|
|
106
|
+
*/
|
|
107
|
+
oauthScopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
108
|
+
/**
|
|
109
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
110
|
+
*/
|
|
111
|
+
schema?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
114
|
+
*/
|
|
115
|
+
secretType?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
118
|
+
*/
|
|
119
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithClientCredentialsShowOutput>[]>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The set of arguments for constructing a SecretWithClientCredentials resource.
|
|
123
|
+
*/
|
|
124
|
+
export interface SecretWithClientCredentialsArgs {
|
|
125
|
+
/**
|
|
126
|
+
* Specifies the name value of the Snowflake security integration that connects Snowflake to an external service.
|
|
127
|
+
*/
|
|
128
|
+
apiAuthentication: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Specifies a comment for the secret.
|
|
131
|
+
*/
|
|
132
|
+
comment?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
135
|
+
*/
|
|
136
|
+
database: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
139
|
+
*/
|
|
140
|
+
name?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Specifies a list of scopes to use when making a request from the OAuth server by a role with USAGE on the integration during the OAuth client credentials flow.
|
|
143
|
+
*/
|
|
144
|
+
oauthScopes: pulumi.Input<pulumi.Input<string>[]>;
|
|
145
|
+
/**
|
|
146
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
147
|
+
*/
|
|
148
|
+
schema: pulumi.Input<string>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.SecretWithClientCredentials = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/secretWithClientCredentials:SecretWithClientCredentials example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
class SecretWithClientCredentials extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing SecretWithClientCredentials resource's state with the given name, ID, and optional extra
|
|
18
|
+
* properties used to qualify the lookup.
|
|
19
|
+
*
|
|
20
|
+
* @param name The _unique_ name of the resulting resource.
|
|
21
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
22
|
+
* @param state Any extra arguments used during the lookup.
|
|
23
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
24
|
+
*/
|
|
25
|
+
static get(name, id, state, opts) {
|
|
26
|
+
return new SecretWithClientCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of SecretWithClientCredentials. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
static isInstance(obj) {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === SecretWithClientCredentials.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
constructor(name, argsOrState, opts) {
|
|
39
|
+
let resourceInputs = {};
|
|
40
|
+
opts = opts || {};
|
|
41
|
+
if (opts.id) {
|
|
42
|
+
const state = argsOrState;
|
|
43
|
+
resourceInputs["apiAuthentication"] = state ? state.apiAuthentication : undefined;
|
|
44
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
45
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
46
|
+
resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
|
|
47
|
+
resourceInputs["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
|
|
48
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
49
|
+
resourceInputs["oauthScopes"] = state ? state.oauthScopes : undefined;
|
|
50
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
51
|
+
resourceInputs["secretType"] = state ? state.secretType : undefined;
|
|
52
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.apiAuthentication === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'apiAuthentication'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'database'");
|
|
61
|
+
}
|
|
62
|
+
if ((!args || args.oauthScopes === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'oauthScopes'");
|
|
64
|
+
}
|
|
65
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'schema'");
|
|
67
|
+
}
|
|
68
|
+
resourceInputs["apiAuthentication"] = args ? args.apiAuthentication : undefined;
|
|
69
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
70
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
71
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
72
|
+
resourceInputs["oauthScopes"] = args ? args.oauthScopes : undefined;
|
|
73
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
74
|
+
resourceInputs["describeOutputs"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["secretType"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
78
|
+
}
|
|
79
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
super(SecretWithClientCredentials.__pulumiType, name, resourceInputs, opts);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.SecretWithClientCredentials = SecretWithClientCredentials;
|
|
84
|
+
/** @internal */
|
|
85
|
+
SecretWithClientCredentials.__pulumiType = 'snowflake:index/secretWithClientCredentials:SecretWithClientCredentials';
|
|
86
|
+
//# sourceMappingURL=secretWithClientCredentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secretWithClientCredentials.js","sourceRoot":"","sources":["../secretWithClientCredentials.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,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,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;IAmDD,YAAY,IAAY,EAAE,WAAgF,EAAE,IAAmC;QAC3I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2D,CAAC;YA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AS,CAAC;YAC1D,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AAvHL,kEAwHC;AA1GG,gBAAgB;AACO,wCAAY,GAAG,yEAAyE,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import snowflake:index/secretWithGenericString:SecretWithGenericString example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class SecretWithGenericString extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing SecretWithGenericString resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecretWithGenericStringState, opts?: pulumi.CustomResourceOptions): SecretWithGenericString;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of SecretWithGenericString. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is SecretWithGenericString;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies a comment for the secret.
|
|
29
|
+
*/
|
|
30
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
33
|
+
*/
|
|
34
|
+
readonly database: pulumi.Output<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
37
|
+
*/
|
|
38
|
+
readonly describeOutputs: pulumi.Output<outputs.SecretWithGenericStringDescribeOutput[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
41
|
+
*/
|
|
42
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
45
|
+
*/
|
|
46
|
+
readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
49
|
+
*/
|
|
50
|
+
readonly schema: pulumi.Output<string>;
|
|
51
|
+
readonly secretString: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
54
|
+
*/
|
|
55
|
+
readonly secretType: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
58
|
+
*/
|
|
59
|
+
readonly showOutputs: pulumi.Output<outputs.SecretWithGenericStringShowOutput[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Create a SecretWithGenericString resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args: SecretWithGenericStringArgs, opts?: pulumi.CustomResourceOptions);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Input properties used for looking up and filtering SecretWithGenericString resources.
|
|
71
|
+
*/
|
|
72
|
+
export interface SecretWithGenericStringState {
|
|
73
|
+
/**
|
|
74
|
+
* Specifies a comment for the secret.
|
|
75
|
+
*/
|
|
76
|
+
comment?: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
79
|
+
*/
|
|
80
|
+
database?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
83
|
+
*/
|
|
84
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithGenericStringDescribeOutput>[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
87
|
+
*/
|
|
88
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
91
|
+
*/
|
|
92
|
+
name?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
95
|
+
*/
|
|
96
|
+
schema?: pulumi.Input<string>;
|
|
97
|
+
secretString?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
100
|
+
*/
|
|
101
|
+
secretType?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
104
|
+
*/
|
|
105
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithGenericStringShowOutput>[]>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a SecretWithGenericString resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface SecretWithGenericStringArgs {
|
|
111
|
+
/**
|
|
112
|
+
* Specifies a comment for the secret.
|
|
113
|
+
*/
|
|
114
|
+
comment?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
117
|
+
*/
|
|
118
|
+
database: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
121
|
+
*/
|
|
122
|
+
name?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
125
|
+
*/
|
|
126
|
+
schema: pulumi.Input<string>;
|
|
127
|
+
secretString: pulumi.Input<string>;
|
|
128
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.SecretWithGenericString = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/secretWithGenericString:SecretWithGenericString example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
class SecretWithGenericString extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing SecretWithGenericString resource's state with the given name, ID, and optional extra
|
|
18
|
+
* properties used to qualify the lookup.
|
|
19
|
+
*
|
|
20
|
+
* @param name The _unique_ name of the resulting resource.
|
|
21
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
22
|
+
* @param state Any extra arguments used during the lookup.
|
|
23
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
24
|
+
*/
|
|
25
|
+
static get(name, id, state, opts) {
|
|
26
|
+
return new SecretWithGenericString(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of SecretWithGenericString. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
static isInstance(obj) {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === SecretWithGenericString.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
constructor(name, argsOrState, opts) {
|
|
39
|
+
let resourceInputs = {};
|
|
40
|
+
opts = opts || {};
|
|
41
|
+
if (opts.id) {
|
|
42
|
+
const state = argsOrState;
|
|
43
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
44
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
45
|
+
resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
|
|
46
|
+
resourceInputs["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
|
|
47
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
48
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
49
|
+
resourceInputs["secretString"] = state ? state.secretString : undefined;
|
|
50
|
+
resourceInputs["secretType"] = state ? state.secretType : undefined;
|
|
51
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const args = argsOrState;
|
|
55
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'database'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'schema'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.secretString === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'secretString'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
65
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
66
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
67
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
68
|
+
resourceInputs["secretString"] = (args === null || args === void 0 ? void 0 : args.secretString) ? pulumi.secret(args.secretString) : undefined;
|
|
69
|
+
resourceInputs["describeOutputs"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["secretType"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
73
|
+
}
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
+
const secretOpts = { additionalSecretOutputs: ["secretString"] };
|
|
76
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
77
|
+
super(SecretWithGenericString.__pulumiType, name, resourceInputs, opts);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.SecretWithGenericString = SecretWithGenericString;
|
|
81
|
+
/** @internal */
|
|
82
|
+
SecretWithGenericString.__pulumiType = 'snowflake:index/secretWithGenericString:SecretWithGenericString';
|
|
83
|
+
//# sourceMappingURL=secretWithGenericString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secretWithGenericString.js","sourceRoot":"","sources":["../secretWithGenericString.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IA4CD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CA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AAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA7GL,0DA8GC;AAhGG,gBAAgB;AACO,oCAAY,GAAG,iEAAiE,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import snowflake:index/streamOnDirectoryTable:StreamOnDirectoryTable example '"<database_name>"."<schema_name>"."<stream_name>"'
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class StreamOnDirectoryTable extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing StreamOnDirectoryTable resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StreamOnDirectoryTableState, opts?: pulumi.CustomResourceOptions): StreamOnDirectoryTable;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of StreamOnDirectoryTable. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is StreamOnDirectoryTable;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies a comment for the stream.
|
|
29
|
+
*/
|
|
30
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
|
|
33
|
+
*/
|
|
34
|
+
readonly copyGrants: pulumi.Output<boolean | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
37
|
+
*/
|
|
38
|
+
readonly database: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Outputs the result of `DESCRIBE STREAM` for the given stream.
|
|
41
|
+
*/
|
|
42
|
+
readonly describeOutputs: pulumi.Output<outputs.StreamOnDirectoryTableDescribeOutput[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
45
|
+
*/
|
|
46
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
49
|
+
*/
|
|
50
|
+
readonly name: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
53
|
+
*/
|
|
54
|
+
readonly schema: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Outputs the result of `SHOW STREAMS` for the given stream.
|
|
57
|
+
*/
|
|
58
|
+
readonly showOutputs: pulumi.Output<outputs.StreamOnDirectoryTableShowOutput[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Specifies an identifier for the stage the stream will monitor. Due to Snowflake limitations, the provider can not read the stage's database and schema. For stages, Snowflake returns only partially qualified name instead of fully qualified name. Please use stages located in the same schema as the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
61
|
+
*/
|
|
62
|
+
readonly stage: pulumi.Output<string>;
|
|
63
|
+
readonly stale: pulumi.Output<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* Specifies a type for the stream. This field is used for checking external changes and recreating the resources if needed.
|
|
66
|
+
*/
|
|
67
|
+
readonly streamType: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Create a StreamOnDirectoryTable resource with the given unique name, arguments, and options.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resource.
|
|
72
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
73
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
74
|
+
*/
|
|
75
|
+
constructor(name: string, args: StreamOnDirectoryTableArgs, opts?: pulumi.CustomResourceOptions);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Input properties used for looking up and filtering StreamOnDirectoryTable resources.
|
|
79
|
+
*/
|
|
80
|
+
export interface StreamOnDirectoryTableState {
|
|
81
|
+
/**
|
|
82
|
+
* Specifies a comment for the stream.
|
|
83
|
+
*/
|
|
84
|
+
comment?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
|
|
87
|
+
*/
|
|
88
|
+
copyGrants?: pulumi.Input<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
91
|
+
*/
|
|
92
|
+
database?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Outputs the result of `DESCRIBE STREAM` for the given stream.
|
|
95
|
+
*/
|
|
96
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.StreamOnDirectoryTableDescribeOutput>[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
99
|
+
*/
|
|
100
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
103
|
+
*/
|
|
104
|
+
name?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
107
|
+
*/
|
|
108
|
+
schema?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Outputs the result of `SHOW STREAMS` for the given stream.
|
|
111
|
+
*/
|
|
112
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.StreamOnDirectoryTableShowOutput>[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies an identifier for the stage the stream will monitor. Due to Snowflake limitations, the provider can not read the stage's database and schema. For stages, Snowflake returns only partially qualified name instead of fully qualified name. Please use stages located in the same schema as the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
115
|
+
*/
|
|
116
|
+
stage?: pulumi.Input<string>;
|
|
117
|
+
stale?: pulumi.Input<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies a type for the stream. This field is used for checking external changes and recreating the resources if needed.
|
|
120
|
+
*/
|
|
121
|
+
streamType?: pulumi.Input<string>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The set of arguments for constructing a StreamOnDirectoryTable resource.
|
|
125
|
+
*/
|
|
126
|
+
export interface StreamOnDirectoryTableArgs {
|
|
127
|
+
/**
|
|
128
|
+
* Specifies a comment for the stream.
|
|
129
|
+
*/
|
|
130
|
+
comment?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
|
|
133
|
+
*/
|
|
134
|
+
copyGrants?: pulumi.Input<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
137
|
+
*/
|
|
138
|
+
database: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
141
|
+
*/
|
|
142
|
+
name?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
145
|
+
*/
|
|
146
|
+
schema: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Specifies an identifier for the stage the stream will monitor. Due to Snowflake limitations, the provider can not read the stage's database and schema. For stages, Snowflake returns only partially qualified name instead of fully qualified name. Please use stages located in the same schema as the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
149
|
+
*/
|
|
150
|
+
stage: pulumi.Input<string>;
|
|
151
|
+
}
|