@pulumi/snowflake 0.60.0-alpha.1728636583 → 0.60.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.
@@ -0,0 +1,162 @@
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/streamOnTable:StreamOnTable example '"<database_name>"."<schema_name>"."<stream_name>"'
9
+ * ```
10
+ */
11
+ export declare class StreamOnTable extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing StreamOnTable 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?: StreamOnTableState, opts?: pulumi.CustomResourceOptions): StreamOnTable;
22
+ /**
23
+ * Returns true if the given object is an instance of StreamOnTable. 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 StreamOnTable;
27
+ /**
28
+ * Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
29
+ */
30
+ readonly appendOnly: pulumi.Output<string | undefined>;
31
+ readonly at: pulumi.Output<outputs.StreamOnTableAt | undefined>;
32
+ readonly before: pulumi.Output<outputs.StreamOnTableBefore | undefined>;
33
+ /**
34
+ * Specifies a comment for the stream.
35
+ */
36
+ readonly comment: pulumi.Output<string | undefined>;
37
+ /**
38
+ * 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.
39
+ */
40
+ readonly copyGrants: pulumi.Output<boolean | undefined>;
41
+ /**
42
+ * The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
43
+ */
44
+ readonly database: pulumi.Output<string>;
45
+ /**
46
+ * Outputs the result of `DESCRIBE STREAM` for the given stream.
47
+ */
48
+ readonly describeOutputs: pulumi.Output<outputs.StreamOnTableDescribeOutput[]>;
49
+ /**
50
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
51
+ */
52
+ readonly fullyQualifiedName: pulumi.Output<string>;
53
+ /**
54
+ * 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: `|`, `.`, `(`, `)`, `"`
55
+ */
56
+ readonly name: pulumi.Output<string>;
57
+ /**
58
+ * The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
59
+ */
60
+ readonly schema: pulumi.Output<string>;
61
+ readonly showInitialRows: pulumi.Output<string | undefined>;
62
+ /**
63
+ * Outputs the result of `SHOW STREAMS` for the given stream.
64
+ */
65
+ readonly showOutputs: pulumi.Output<outputs.StreamOnTableShowOutput[]>;
66
+ /**
67
+ * Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
68
+ */
69
+ readonly table: pulumi.Output<string>;
70
+ /**
71
+ * Create a StreamOnTable resource with the given unique name, arguments, and options.
72
+ *
73
+ * @param name The _unique_ name of the resource.
74
+ * @param args The arguments to use to populate this resource's properties.
75
+ * @param opts A bag of options that control this resource's behavior.
76
+ */
77
+ constructor(name: string, args: StreamOnTableArgs, opts?: pulumi.CustomResourceOptions);
78
+ }
79
+ /**
80
+ * Input properties used for looking up and filtering StreamOnTable resources.
81
+ */
82
+ export interface StreamOnTableState {
83
+ /**
84
+ * Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
85
+ */
86
+ appendOnly?: pulumi.Input<string>;
87
+ at?: pulumi.Input<inputs.StreamOnTableAt>;
88
+ before?: pulumi.Input<inputs.StreamOnTableBefore>;
89
+ /**
90
+ * Specifies a comment for the stream.
91
+ */
92
+ comment?: pulumi.Input<string>;
93
+ /**
94
+ * 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.
95
+ */
96
+ copyGrants?: pulumi.Input<boolean>;
97
+ /**
98
+ * The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
99
+ */
100
+ database?: pulumi.Input<string>;
101
+ /**
102
+ * Outputs the result of `DESCRIBE STREAM` for the given stream.
103
+ */
104
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.StreamOnTableDescribeOutput>[]>;
105
+ /**
106
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
107
+ */
108
+ fullyQualifiedName?: pulumi.Input<string>;
109
+ /**
110
+ * 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: `|`, `.`, `(`, `)`, `"`
111
+ */
112
+ name?: pulumi.Input<string>;
113
+ /**
114
+ * The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
115
+ */
116
+ schema?: pulumi.Input<string>;
117
+ showInitialRows?: pulumi.Input<string>;
118
+ /**
119
+ * Outputs the result of `SHOW STREAMS` for the given stream.
120
+ */
121
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.StreamOnTableShowOutput>[]>;
122
+ /**
123
+ * Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
124
+ */
125
+ table?: pulumi.Input<string>;
126
+ }
127
+ /**
128
+ * The set of arguments for constructing a StreamOnTable resource.
129
+ */
130
+ export interface StreamOnTableArgs {
131
+ /**
132
+ * Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
133
+ */
134
+ appendOnly?: pulumi.Input<string>;
135
+ at?: pulumi.Input<inputs.StreamOnTableAt>;
136
+ before?: pulumi.Input<inputs.StreamOnTableBefore>;
137
+ /**
138
+ * Specifies a comment for the stream.
139
+ */
140
+ comment?: pulumi.Input<string>;
141
+ /**
142
+ * 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.
143
+ */
144
+ copyGrants?: pulumi.Input<boolean>;
145
+ /**
146
+ * The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
147
+ */
148
+ database: pulumi.Input<string>;
149
+ /**
150
+ * 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: `|`, `.`, `(`, `)`, `"`
151
+ */
152
+ name?: pulumi.Input<string>;
153
+ /**
154
+ * The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
155
+ */
156
+ schema: pulumi.Input<string>;
157
+ showInitialRows?: pulumi.Input<string>;
158
+ /**
159
+ * Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
160
+ */
161
+ table: pulumi.Input<string>;
162
+ }
@@ -0,0 +1,89 @@
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.StreamOnTable = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Import
10
+ *
11
+ * ```sh
12
+ * $ pulumi import snowflake:index/streamOnTable:StreamOnTable example '"<database_name>"."<schema_name>"."<stream_name>"'
13
+ * ```
14
+ */
15
+ class StreamOnTable extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing StreamOnTable 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 StreamOnTable(name, state, Object.assign(Object.assign({}, opts), { id: id }));
27
+ }
28
+ /**
29
+ * Returns true if the given object is an instance of StreamOnTable. 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'] === StreamOnTable.__pulumiType;
37
+ }
38
+ constructor(name, argsOrState, opts) {
39
+ let resourceInputs = {};
40
+ opts = opts || {};
41
+ if (opts.id) {
42
+ const state = argsOrState;
43
+ resourceInputs["appendOnly"] = state ? state.appendOnly : undefined;
44
+ resourceInputs["at"] = state ? state.at : undefined;
45
+ resourceInputs["before"] = state ? state.before : undefined;
46
+ resourceInputs["comment"] = state ? state.comment : undefined;
47
+ resourceInputs["copyGrants"] = state ? state.copyGrants : undefined;
48
+ resourceInputs["database"] = state ? state.database : undefined;
49
+ resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
50
+ resourceInputs["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
51
+ resourceInputs["name"] = state ? state.name : undefined;
52
+ resourceInputs["schema"] = state ? state.schema : undefined;
53
+ resourceInputs["showInitialRows"] = state ? state.showInitialRows : undefined;
54
+ resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
55
+ resourceInputs["table"] = state ? state.table : undefined;
56
+ }
57
+ else {
58
+ const args = argsOrState;
59
+ if ((!args || args.database === undefined) && !opts.urn) {
60
+ throw new Error("Missing required property 'database'");
61
+ }
62
+ if ((!args || args.schema === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'schema'");
64
+ }
65
+ if ((!args || args.table === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'table'");
67
+ }
68
+ resourceInputs["appendOnly"] = args ? args.appendOnly : undefined;
69
+ resourceInputs["at"] = args ? args.at : undefined;
70
+ resourceInputs["before"] = args ? args.before : undefined;
71
+ resourceInputs["comment"] = args ? args.comment : undefined;
72
+ resourceInputs["copyGrants"] = args ? args.copyGrants : undefined;
73
+ resourceInputs["database"] = args ? args.database : undefined;
74
+ resourceInputs["name"] = args ? args.name : undefined;
75
+ resourceInputs["schema"] = args ? args.schema : undefined;
76
+ resourceInputs["showInitialRows"] = args ? args.showInitialRows : undefined;
77
+ resourceInputs["table"] = args ? args.table : undefined;
78
+ resourceInputs["describeOutputs"] = undefined /*out*/;
79
+ resourceInputs["fullyQualifiedName"] = undefined /*out*/;
80
+ resourceInputs["showOutputs"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(StreamOnTable.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+ exports.StreamOnTable = StreamOnTable;
87
+ /** @internal */
88
+ StreamOnTable.__pulumiType = 'snowflake:index/streamOnTable:StreamOnTable';
89
+ //# sourceMappingURL=streamOnTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamOnTable.js","sourceRoot":"","sources":["../streamOnTable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KA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