@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,191 @@
|
|
|
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 integration = new snowflake.NotificationIntegration("integration", {
|
|
10
|
+
* awsSqsArn: "...",
|
|
11
|
+
* awsSqsRoleArn: "...",
|
|
12
|
+
* azureStorageQueuePrimaryUri: "...",
|
|
13
|
+
* azureTenantId: "...",
|
|
14
|
+
* comment: "A notification integration.",
|
|
15
|
+
* direction: "OUTBOUND",
|
|
16
|
+
* enabled: true,
|
|
17
|
+
* notificationProvider: "AWS_SQS",
|
|
18
|
+
* type: "QUEUE",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import snowflake:index/notificationIntegration:NotificationIntegration example name
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class NotificationIntegration extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing NotificationIntegration 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: string, id: pulumi.Input<pulumi.ID>, state?: NotificationIntegrationState, opts?: pulumi.CustomResourceOptions): NotificationIntegration;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of NotificationIntegration. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is NotificationIntegration;
|
|
44
|
+
/**
|
|
45
|
+
* AWS SQS queue ARN for notification integration to connect to
|
|
46
|
+
*/
|
|
47
|
+
readonly awsSqsArn: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The external ID that Snowflake will use when assuming the AWS role
|
|
50
|
+
*/
|
|
51
|
+
readonly awsSqsExternalId: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The Snowflake user that will attempt to assume the AWS role.
|
|
54
|
+
*/
|
|
55
|
+
readonly awsSqsIamUserArn: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* AWS IAM role ARN for notification integration to assume
|
|
58
|
+
*/
|
|
59
|
+
readonly awsSqsRoleArn: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The queue ID for the Azure Queue Storage queue created for Event Grid notifications
|
|
62
|
+
*/
|
|
63
|
+
readonly azureStorageQueuePrimaryUri: pulumi.Output<string | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* The ID of the Azure Active Directory tenant used for identity management
|
|
66
|
+
*/
|
|
67
|
+
readonly azureTenantId: pulumi.Output<string | undefined>;
|
|
68
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* Date and time when the notification integration was created.
|
|
71
|
+
*/
|
|
72
|
+
readonly createdOn: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
|
|
75
|
+
*/
|
|
76
|
+
readonly direction: pulumi.Output<string | undefined>;
|
|
77
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
|
|
80
|
+
*/
|
|
81
|
+
readonly gcpPubsubSubscriptionName: pulumi.Output<string | undefined>;
|
|
82
|
+
readonly name: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS_SQS)
|
|
85
|
+
*/
|
|
86
|
+
readonly notificationProvider: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* A type of integration
|
|
89
|
+
*/
|
|
90
|
+
readonly type: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a NotificationIntegration resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args?: NotificationIntegrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering NotificationIntegration resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface NotificationIntegrationState {
|
|
104
|
+
/**
|
|
105
|
+
* AWS SQS queue ARN for notification integration to connect to
|
|
106
|
+
*/
|
|
107
|
+
awsSqsArn?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The external ID that Snowflake will use when assuming the AWS role
|
|
110
|
+
*/
|
|
111
|
+
awsSqsExternalId?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The Snowflake user that will attempt to assume the AWS role.
|
|
114
|
+
*/
|
|
115
|
+
awsSqsIamUserArn?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* AWS IAM role ARN for notification integration to assume
|
|
118
|
+
*/
|
|
119
|
+
awsSqsRoleArn?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The queue ID for the Azure Queue Storage queue created for Event Grid notifications
|
|
122
|
+
*/
|
|
123
|
+
azureStorageQueuePrimaryUri?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The ID of the Azure Active Directory tenant used for identity management
|
|
126
|
+
*/
|
|
127
|
+
azureTenantId?: pulumi.Input<string>;
|
|
128
|
+
comment?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Date and time when the notification integration was created.
|
|
131
|
+
*/
|
|
132
|
+
createdOn?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
|
|
135
|
+
*/
|
|
136
|
+
direction?: pulumi.Input<string>;
|
|
137
|
+
enabled?: pulumi.Input<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
|
|
140
|
+
*/
|
|
141
|
+
gcpPubsubSubscriptionName?: pulumi.Input<string>;
|
|
142
|
+
name?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS_SQS)
|
|
145
|
+
*/
|
|
146
|
+
notificationProvider?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* A type of integration
|
|
149
|
+
*/
|
|
150
|
+
type?: pulumi.Input<string>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The set of arguments for constructing a NotificationIntegration resource.
|
|
154
|
+
*/
|
|
155
|
+
export interface NotificationIntegrationArgs {
|
|
156
|
+
/**
|
|
157
|
+
* AWS SQS queue ARN for notification integration to connect to
|
|
158
|
+
*/
|
|
159
|
+
awsSqsArn?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* AWS IAM role ARN for notification integration to assume
|
|
162
|
+
*/
|
|
163
|
+
awsSqsRoleArn?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The queue ID for the Azure Queue Storage queue created for Event Grid notifications
|
|
166
|
+
*/
|
|
167
|
+
azureStorageQueuePrimaryUri?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The ID of the Azure Active Directory tenant used for identity management
|
|
170
|
+
*/
|
|
171
|
+
azureTenantId?: pulumi.Input<string>;
|
|
172
|
+
comment?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
|
|
175
|
+
*/
|
|
176
|
+
direction?: pulumi.Input<string>;
|
|
177
|
+
enabled?: pulumi.Input<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
|
|
180
|
+
*/
|
|
181
|
+
gcpPubsubSubscriptionName?: pulumi.Input<string>;
|
|
182
|
+
name?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS_SQS)
|
|
185
|
+
*/
|
|
186
|
+
notificationProvider?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* A type of integration
|
|
189
|
+
*/
|
|
190
|
+
type?: pulumi.Input<string>;
|
|
191
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.NotificationIntegration = 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 integration = new snowflake.NotificationIntegration("integration", {
|
|
16
|
+
* awsSqsArn: "...",
|
|
17
|
+
* awsSqsRoleArn: "...",
|
|
18
|
+
* azureStorageQueuePrimaryUri: "...",
|
|
19
|
+
* azureTenantId: "...",
|
|
20
|
+
* comment: "A notification integration.",
|
|
21
|
+
* direction: "OUTBOUND",
|
|
22
|
+
* enabled: true,
|
|
23
|
+
* notificationProvider: "AWS_SQS",
|
|
24
|
+
* type: "QUEUE",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import snowflake:index/notificationIntegration:NotificationIntegration example name
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class NotificationIntegration extends pulumi.CustomResource {
|
|
35
|
+
constructor(name, argsOrState, opts) {
|
|
36
|
+
let inputs = {};
|
|
37
|
+
opts = opts || {};
|
|
38
|
+
if (opts.id) {
|
|
39
|
+
const state = argsOrState;
|
|
40
|
+
inputs["awsSqsArn"] = state ? state.awsSqsArn : undefined;
|
|
41
|
+
inputs["awsSqsExternalId"] = state ? state.awsSqsExternalId : undefined;
|
|
42
|
+
inputs["awsSqsIamUserArn"] = state ? state.awsSqsIamUserArn : undefined;
|
|
43
|
+
inputs["awsSqsRoleArn"] = state ? state.awsSqsRoleArn : undefined;
|
|
44
|
+
inputs["azureStorageQueuePrimaryUri"] = state ? state.azureStorageQueuePrimaryUri : undefined;
|
|
45
|
+
inputs["azureTenantId"] = state ? state.azureTenantId : undefined;
|
|
46
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
47
|
+
inputs["createdOn"] = state ? state.createdOn : undefined;
|
|
48
|
+
inputs["direction"] = state ? state.direction : undefined;
|
|
49
|
+
inputs["enabled"] = state ? state.enabled : undefined;
|
|
50
|
+
inputs["gcpPubsubSubscriptionName"] = state ? state.gcpPubsubSubscriptionName : undefined;
|
|
51
|
+
inputs["name"] = state ? state.name : undefined;
|
|
52
|
+
inputs["notificationProvider"] = state ? state.notificationProvider : undefined;
|
|
53
|
+
inputs["type"] = state ? state.type : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
inputs["awsSqsArn"] = args ? args.awsSqsArn : undefined;
|
|
58
|
+
inputs["awsSqsRoleArn"] = args ? args.awsSqsRoleArn : undefined;
|
|
59
|
+
inputs["azureStorageQueuePrimaryUri"] = args ? args.azureStorageQueuePrimaryUri : undefined;
|
|
60
|
+
inputs["azureTenantId"] = args ? args.azureTenantId : undefined;
|
|
61
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
62
|
+
inputs["direction"] = args ? args.direction : undefined;
|
|
63
|
+
inputs["enabled"] = args ? args.enabled : undefined;
|
|
64
|
+
inputs["gcpPubsubSubscriptionName"] = args ? args.gcpPubsubSubscriptionName : undefined;
|
|
65
|
+
inputs["name"] = args ? args.name : undefined;
|
|
66
|
+
inputs["notificationProvider"] = args ? args.notificationProvider : undefined;
|
|
67
|
+
inputs["type"] = args ? args.type : undefined;
|
|
68
|
+
inputs["awsSqsExternalId"] = undefined /*out*/;
|
|
69
|
+
inputs["awsSqsIamUserArn"] = undefined /*out*/;
|
|
70
|
+
inputs["createdOn"] = undefined /*out*/;
|
|
71
|
+
}
|
|
72
|
+
if (!opts.version) {
|
|
73
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
74
|
+
}
|
|
75
|
+
super(NotificationIntegration.__pulumiType, name, inputs, opts);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get an existing NotificationIntegration resource's state with the given name, ID, and optional extra
|
|
79
|
+
* properties used to qualify the lookup.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resulting resource.
|
|
82
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
83
|
+
* @param state Any extra arguments used during the lookup.
|
|
84
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
85
|
+
*/
|
|
86
|
+
static get(name, id, state, opts) {
|
|
87
|
+
return new NotificationIntegration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Returns true if the given object is an instance of NotificationIntegration. This is designed to work even
|
|
91
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
92
|
+
*/
|
|
93
|
+
static isInstance(obj) {
|
|
94
|
+
if (obj === undefined || obj === null) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
return obj['__pulumiType'] === NotificationIntegration.__pulumiType;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.NotificationIntegration = NotificationIntegration;
|
|
101
|
+
/** @internal */
|
|
102
|
+
NotificationIntegration.__pulumiType = 'snowflake:index/notificationIntegration:NotificationIntegration';
|
|
103
|
+
//# sourceMappingURL=notificationIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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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;;AA1BL,0DA6HC;AA/GG,gBAAgB;AACO,oCAAY,GAAG,iEAAiE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/snowflake",
|
|
3
|
+
"version": "v0.2.1-alpha.1632763694+5525e48c",
|
|
4
|
+
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"snowflake"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-snowflake",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.2.1-alpha.1632763694+5525e48c"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mime": "^2.0.0",
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true
|
|
26
|
+
}
|
|
27
|
+
}
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/snowflake",
|
|
3
|
+
"version": "${VERSION}",
|
|
4
|
+
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"snowflake"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-snowflake",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/mime": "^2.0.0",
|
|
20
|
+
"@types/node": "^10.0.0",
|
|
21
|
+
"typescript": "^4.3.5"
|
|
22
|
+
},
|
|
23
|
+
"pulumi": {
|
|
24
|
+
"resource": true
|
|
25
|
+
}
|
|
26
|
+
}
|
package/package.json.dev
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/snowflake",
|
|
3
|
+
"version": "v0.2.1-alpha.1632763694+5525e48c",
|
|
4
|
+
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"snowflake"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-snowflake",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/mime": "^2.0.0",
|
|
20
|
+
"@types/node": "^10.0.0",
|
|
21
|
+
"typescript": "^4.3.5"
|
|
22
|
+
},
|
|
23
|
+
"pulumi": {
|
|
24
|
+
"resource": true
|
|
25
|
+
}
|
|
26
|
+
}
|
package/pipe.d.ts
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
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 pipe = new snowflake.Pipe("pipe", {
|
|
10
|
+
* autoIngest: false,
|
|
11
|
+
* awsSnsTopicArn: "...",
|
|
12
|
+
* comment: "A pipe.",
|
|
13
|
+
* copyStatement: "copy into mytable from @mystage",
|
|
14
|
+
* database: "db",
|
|
15
|
+
* notificationChannel: "...",
|
|
16
|
+
* owner: "role1",
|
|
17
|
+
* schema: "schema",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* # format is database name | schema name | pipe name
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import snowflake:index/pipe:Pipe example 'dbName|schemaName|pipeName'
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class Pipe extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing Pipe resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PipeState, opts?: pulumi.CustomResourceOptions): Pipe;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of Pipe. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is Pipe;
|
|
45
|
+
/**
|
|
46
|
+
* Specifies a autoIngest param for the pipe.
|
|
47
|
+
*/
|
|
48
|
+
readonly autoIngest: pulumi.Output<boolean | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
|
|
51
|
+
*/
|
|
52
|
+
readonly awsSnsTopicArn: pulumi.Output<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Specifies a comment for the pipe.
|
|
55
|
+
*/
|
|
56
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the copy statement for the pipe.
|
|
59
|
+
*/
|
|
60
|
+
readonly copyStatement: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The database in which to create the pipe.
|
|
63
|
+
*/
|
|
64
|
+
readonly database: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the name of the notification integration used for error notifications.
|
|
67
|
+
*/
|
|
68
|
+
readonly errorIntegration: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* Specifies an integration for the pipe.
|
|
71
|
+
*/
|
|
72
|
+
readonly integration: pulumi.Output<string | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
|
|
75
|
+
*/
|
|
76
|
+
readonly name: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
|
|
79
|
+
*/
|
|
80
|
+
readonly notificationChannel: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Name of the role that owns the pipe.
|
|
83
|
+
*/
|
|
84
|
+
readonly owner: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The schema in which to create the pipe.
|
|
87
|
+
*/
|
|
88
|
+
readonly schema: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Create a Pipe resource with the given unique name, arguments, and options.
|
|
91
|
+
*
|
|
92
|
+
* @param name The _unique_ name of the resource.
|
|
93
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
94
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
95
|
+
*/
|
|
96
|
+
constructor(name: string, args: PipeArgs, opts?: pulumi.CustomResourceOptions);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Input properties used for looking up and filtering Pipe resources.
|
|
100
|
+
*/
|
|
101
|
+
export interface PipeState {
|
|
102
|
+
/**
|
|
103
|
+
* Specifies a autoIngest param for the pipe.
|
|
104
|
+
*/
|
|
105
|
+
autoIngest?: pulumi.Input<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
|
|
108
|
+
*/
|
|
109
|
+
awsSnsTopicArn?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies a comment for the pipe.
|
|
112
|
+
*/
|
|
113
|
+
comment?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies the copy statement for the pipe.
|
|
116
|
+
*/
|
|
117
|
+
copyStatement?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The database in which to create the pipe.
|
|
120
|
+
*/
|
|
121
|
+
database?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Specifies the name of the notification integration used for error notifications.
|
|
124
|
+
*/
|
|
125
|
+
errorIntegration?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies an integration for the pipe.
|
|
128
|
+
*/
|
|
129
|
+
integration?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
|
|
132
|
+
*/
|
|
133
|
+
name?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
|
|
136
|
+
*/
|
|
137
|
+
notificationChannel?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Name of the role that owns the pipe.
|
|
140
|
+
*/
|
|
141
|
+
owner?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The schema in which to create the pipe.
|
|
144
|
+
*/
|
|
145
|
+
schema?: pulumi.Input<string>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The set of arguments for constructing a Pipe resource.
|
|
149
|
+
*/
|
|
150
|
+
export interface PipeArgs {
|
|
151
|
+
/**
|
|
152
|
+
* Specifies a autoIngest param for the pipe.
|
|
153
|
+
*/
|
|
154
|
+
autoIngest?: pulumi.Input<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
|
|
157
|
+
*/
|
|
158
|
+
awsSnsTopicArn?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Specifies a comment for the pipe.
|
|
161
|
+
*/
|
|
162
|
+
comment?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Specifies the copy statement for the pipe.
|
|
165
|
+
*/
|
|
166
|
+
copyStatement: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* The database in which to create the pipe.
|
|
169
|
+
*/
|
|
170
|
+
database: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies the name of the notification integration used for error notifications.
|
|
173
|
+
*/
|
|
174
|
+
errorIntegration?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Specifies an integration for the pipe.
|
|
177
|
+
*/
|
|
178
|
+
integration?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
|
|
181
|
+
*/
|
|
182
|
+
name?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The schema in which to create the pipe.
|
|
185
|
+
*/
|
|
186
|
+
schema: pulumi.Input<string>;
|
|
187
|
+
}
|
package/pipe.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.Pipe = 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 pipe = new snowflake.Pipe("pipe", {
|
|
16
|
+
* autoIngest: false,
|
|
17
|
+
* awsSnsTopicArn: "...",
|
|
18
|
+
* comment: "A pipe.",
|
|
19
|
+
* copyStatement: "copy into mytable from @mystage",
|
|
20
|
+
* database: "db",
|
|
21
|
+
* notificationChannel: "...",
|
|
22
|
+
* owner: "role1",
|
|
23
|
+
* schema: "schema",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* # format is database name | schema name | pipe name
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import snowflake:index/pipe:Pipe example 'dbName|schemaName|pipeName'
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class Pipe extends pulumi.CustomResource {
|
|
36
|
+
constructor(name, argsOrState, opts) {
|
|
37
|
+
let inputs = {};
|
|
38
|
+
opts = opts || {};
|
|
39
|
+
if (opts.id) {
|
|
40
|
+
const state = argsOrState;
|
|
41
|
+
inputs["autoIngest"] = state ? state.autoIngest : undefined;
|
|
42
|
+
inputs["awsSnsTopicArn"] = state ? state.awsSnsTopicArn : undefined;
|
|
43
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
44
|
+
inputs["copyStatement"] = state ? state.copyStatement : undefined;
|
|
45
|
+
inputs["database"] = state ? state.database : undefined;
|
|
46
|
+
inputs["errorIntegration"] = state ? state.errorIntegration : undefined;
|
|
47
|
+
inputs["integration"] = state ? state.integration : undefined;
|
|
48
|
+
inputs["name"] = state ? state.name : undefined;
|
|
49
|
+
inputs["notificationChannel"] = state ? state.notificationChannel : undefined;
|
|
50
|
+
inputs["owner"] = state ? state.owner : undefined;
|
|
51
|
+
inputs["schema"] = state ? state.schema : undefined;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const args = argsOrState;
|
|
55
|
+
if ((!args || args.copyStatement === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'copyStatement'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'database'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'schema'");
|
|
63
|
+
}
|
|
64
|
+
inputs["autoIngest"] = args ? args.autoIngest : undefined;
|
|
65
|
+
inputs["awsSnsTopicArn"] = args ? args.awsSnsTopicArn : undefined;
|
|
66
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
67
|
+
inputs["copyStatement"] = args ? args.copyStatement : undefined;
|
|
68
|
+
inputs["database"] = args ? args.database : undefined;
|
|
69
|
+
inputs["errorIntegration"] = args ? args.errorIntegration : undefined;
|
|
70
|
+
inputs["integration"] = args ? args.integration : undefined;
|
|
71
|
+
inputs["name"] = args ? args.name : undefined;
|
|
72
|
+
inputs["schema"] = args ? args.schema : undefined;
|
|
73
|
+
inputs["notificationChannel"] = undefined /*out*/;
|
|
74
|
+
inputs["owner"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
if (!opts.version) {
|
|
77
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
78
|
+
}
|
|
79
|
+
super(Pipe.__pulumiType, name, inputs, opts);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing Pipe resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name, id, state, opts) {
|
|
91
|
+
return new Pipe(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns true if the given object is an instance of Pipe. This is designed to work even
|
|
95
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
96
|
+
*/
|
|
97
|
+
static isInstance(obj) {
|
|
98
|
+
if (obj === undefined || obj === null) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return obj['__pulumiType'] === Pipe.__pulumiType;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.Pipe = Pipe;
|
|
105
|
+
/** @internal */
|
|
106
|
+
Pipe.__pulumiType = 'snowflake:index/pipe:Pipe';
|
|
107
|
+
//# sourceMappingURL=pipe.js.map
|