@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,153 @@
|
|
|
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.StorageIntegration("integration", {
|
|
10
|
+
* comment: "A storage integration.",
|
|
11
|
+
* enabled: true,
|
|
12
|
+
* storageAwsExternalId: "...",
|
|
13
|
+
* storageAwsIamUserArn: "...",
|
|
14
|
+
* storageAwsRoleArn: "...",
|
|
15
|
+
* storageProvider: "S3",
|
|
16
|
+
* type: "EXTERNAL_STAGE",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import snowflake:index/storageIntegration:StorageIntegration example name
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class StorageIntegration extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing StorageIntegration resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StorageIntegrationState, opts?: pulumi.CustomResourceOptions): StorageIntegration;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of StorageIntegration. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is StorageIntegration;
|
|
42
|
+
/**
|
|
43
|
+
* The consent URL that is used to create an Azure Snowflake service principle inside your tenant.
|
|
44
|
+
*/
|
|
45
|
+
readonly azureConsentUrl: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* This is the name of the Snowflake client application created for your account.
|
|
48
|
+
*/
|
|
49
|
+
readonly azureMultiTenantAppName: pulumi.Output<string>;
|
|
50
|
+
readonly azureTenantId: pulumi.Output<string | undefined>;
|
|
51
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Date and time when the storage integration was created.
|
|
54
|
+
*/
|
|
55
|
+
readonly createdOn: pulumi.Output<string>;
|
|
56
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
57
|
+
readonly name: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Explicitly limits external stages that use the integration to reference one or more storage locations.
|
|
60
|
+
*/
|
|
61
|
+
readonly storageAllowedLocations: pulumi.Output<string[]>;
|
|
62
|
+
/**
|
|
63
|
+
* The external ID that Snowflake will use when assuming the AWS role.
|
|
64
|
+
*/
|
|
65
|
+
readonly storageAwsExternalId: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The Snowflake user that will attempt to assume the AWS role.
|
|
68
|
+
*/
|
|
69
|
+
readonly storageAwsIamUserArn: pulumi.Output<string>;
|
|
70
|
+
readonly storageAwsRoleArn: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
|
|
73
|
+
*/
|
|
74
|
+
readonly storageBlockedLocations: pulumi.Output<string[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* This is the name of the Snowflake Google Service Account created for your account.
|
|
77
|
+
*/
|
|
78
|
+
readonly storageGcpServiceAccount: pulumi.Output<string>;
|
|
79
|
+
readonly storageProvider: pulumi.Output<string>;
|
|
80
|
+
readonly type: pulumi.Output<string | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* Create a StorageIntegration resource with the given unique name, arguments, and options.
|
|
83
|
+
*
|
|
84
|
+
* @param name The _unique_ name of the resource.
|
|
85
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
86
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
87
|
+
*/
|
|
88
|
+
constructor(name: string, args: StorageIntegrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Input properties used for looking up and filtering StorageIntegration resources.
|
|
92
|
+
*/
|
|
93
|
+
export interface StorageIntegrationState {
|
|
94
|
+
/**
|
|
95
|
+
* The consent URL that is used to create an Azure Snowflake service principle inside your tenant.
|
|
96
|
+
*/
|
|
97
|
+
azureConsentUrl?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* This is the name of the Snowflake client application created for your account.
|
|
100
|
+
*/
|
|
101
|
+
azureMultiTenantAppName?: pulumi.Input<string>;
|
|
102
|
+
azureTenantId?: pulumi.Input<string>;
|
|
103
|
+
comment?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Date and time when the storage integration was created.
|
|
106
|
+
*/
|
|
107
|
+
createdOn?: pulumi.Input<string>;
|
|
108
|
+
enabled?: pulumi.Input<boolean>;
|
|
109
|
+
name?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Explicitly limits external stages that use the integration to reference one or more storage locations.
|
|
112
|
+
*/
|
|
113
|
+
storageAllowedLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
|
+
/**
|
|
115
|
+
* The external ID that Snowflake will use when assuming the AWS role.
|
|
116
|
+
*/
|
|
117
|
+
storageAwsExternalId?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The Snowflake user that will attempt to assume the AWS role.
|
|
120
|
+
*/
|
|
121
|
+
storageAwsIamUserArn?: pulumi.Input<string>;
|
|
122
|
+
storageAwsRoleArn?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
|
|
125
|
+
*/
|
|
126
|
+
storageBlockedLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
127
|
+
/**
|
|
128
|
+
* This is the name of the Snowflake Google Service Account created for your account.
|
|
129
|
+
*/
|
|
130
|
+
storageGcpServiceAccount?: pulumi.Input<string>;
|
|
131
|
+
storageProvider?: pulumi.Input<string>;
|
|
132
|
+
type?: pulumi.Input<string>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a StorageIntegration resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface StorageIntegrationArgs {
|
|
138
|
+
azureTenantId?: pulumi.Input<string>;
|
|
139
|
+
comment?: pulumi.Input<string>;
|
|
140
|
+
enabled?: pulumi.Input<boolean>;
|
|
141
|
+
name?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Explicitly limits external stages that use the integration to reference one or more storage locations.
|
|
144
|
+
*/
|
|
145
|
+
storageAllowedLocations: pulumi.Input<pulumi.Input<string>[]>;
|
|
146
|
+
storageAwsRoleArn?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
|
|
149
|
+
*/
|
|
150
|
+
storageBlockedLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
151
|
+
storageProvider: pulumi.Input<string>;
|
|
152
|
+
type?: pulumi.Input<string>;
|
|
153
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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.StorageIntegration = 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.StorageIntegration("integration", {
|
|
16
|
+
* comment: "A storage integration.",
|
|
17
|
+
* enabled: true,
|
|
18
|
+
* storageAwsExternalId: "...",
|
|
19
|
+
* storageAwsIamUserArn: "...",
|
|
20
|
+
* storageAwsRoleArn: "...",
|
|
21
|
+
* storageProvider: "S3",
|
|
22
|
+
* type: "EXTERNAL_STAGE",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import snowflake:index/storageIntegration:StorageIntegration example name
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class StorageIntegration extends pulumi.CustomResource {
|
|
33
|
+
constructor(name, argsOrState, opts) {
|
|
34
|
+
let inputs = {};
|
|
35
|
+
opts = opts || {};
|
|
36
|
+
if (opts.id) {
|
|
37
|
+
const state = argsOrState;
|
|
38
|
+
inputs["azureConsentUrl"] = state ? state.azureConsentUrl : undefined;
|
|
39
|
+
inputs["azureMultiTenantAppName"] = state ? state.azureMultiTenantAppName : undefined;
|
|
40
|
+
inputs["azureTenantId"] = state ? state.azureTenantId : undefined;
|
|
41
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
42
|
+
inputs["createdOn"] = state ? state.createdOn : undefined;
|
|
43
|
+
inputs["enabled"] = state ? state.enabled : undefined;
|
|
44
|
+
inputs["name"] = state ? state.name : undefined;
|
|
45
|
+
inputs["storageAllowedLocations"] = state ? state.storageAllowedLocations : undefined;
|
|
46
|
+
inputs["storageAwsExternalId"] = state ? state.storageAwsExternalId : undefined;
|
|
47
|
+
inputs["storageAwsIamUserArn"] = state ? state.storageAwsIamUserArn : undefined;
|
|
48
|
+
inputs["storageAwsRoleArn"] = state ? state.storageAwsRoleArn : undefined;
|
|
49
|
+
inputs["storageBlockedLocations"] = state ? state.storageBlockedLocations : undefined;
|
|
50
|
+
inputs["storageGcpServiceAccount"] = state ? state.storageGcpServiceAccount : undefined;
|
|
51
|
+
inputs["storageProvider"] = state ? state.storageProvider : undefined;
|
|
52
|
+
inputs["type"] = state ? state.type : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.storageAllowedLocations === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'storageAllowedLocations'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.storageProvider === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'storageProvider'");
|
|
61
|
+
}
|
|
62
|
+
inputs["azureTenantId"] = args ? args.azureTenantId : undefined;
|
|
63
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
64
|
+
inputs["enabled"] = args ? args.enabled : undefined;
|
|
65
|
+
inputs["name"] = args ? args.name : undefined;
|
|
66
|
+
inputs["storageAllowedLocations"] = args ? args.storageAllowedLocations : undefined;
|
|
67
|
+
inputs["storageAwsRoleArn"] = args ? args.storageAwsRoleArn : undefined;
|
|
68
|
+
inputs["storageBlockedLocations"] = args ? args.storageBlockedLocations : undefined;
|
|
69
|
+
inputs["storageProvider"] = args ? args.storageProvider : undefined;
|
|
70
|
+
inputs["type"] = args ? args.type : undefined;
|
|
71
|
+
inputs["azureConsentUrl"] = undefined /*out*/;
|
|
72
|
+
inputs["azureMultiTenantAppName"] = undefined /*out*/;
|
|
73
|
+
inputs["createdOn"] = undefined /*out*/;
|
|
74
|
+
inputs["storageAwsExternalId"] = undefined /*out*/;
|
|
75
|
+
inputs["storageAwsIamUserArn"] = undefined /*out*/;
|
|
76
|
+
inputs["storageGcpServiceAccount"] = undefined /*out*/;
|
|
77
|
+
}
|
|
78
|
+
if (!opts.version) {
|
|
79
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
80
|
+
}
|
|
81
|
+
super(StorageIntegration.__pulumiType, name, inputs, opts);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get an existing StorageIntegration resource's state with the given name, ID, and optional extra
|
|
85
|
+
* properties used to qualify the lookup.
|
|
86
|
+
*
|
|
87
|
+
* @param name The _unique_ name of the resulting resource.
|
|
88
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
89
|
+
* @param state Any extra arguments used during the lookup.
|
|
90
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
91
|
+
*/
|
|
92
|
+
static get(name, id, state, opts) {
|
|
93
|
+
return new StorageIntegration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Returns true if the given object is an instance of StorageIntegration. This is designed to work even
|
|
97
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
98
|
+
*/
|
|
99
|
+
static isInstance(obj) {
|
|
100
|
+
if (obj === undefined || obj === null) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
return obj['__pulumiType'] === StorageIntegration.__pulumiType;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.StorageIntegration = StorageIntegration;
|
|
107
|
+
/** @internal */
|
|
108
|
+
StorageIntegration.__pulumiType = 'snowflake:index/storageIntegration:StorageIntegration';
|
|
109
|
+
//# sourceMappingURL=storageIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageIntegration.js","sourceRoot":"","sources":["../storageIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA4EzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,MAAM,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CA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nC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDA6HC;AA/GG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
package/stream.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
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 stream = new snowflake.Stream("stream", {
|
|
10
|
+
* appendOnly: false,
|
|
11
|
+
* comment: "A stream.",
|
|
12
|
+
* database: "db",
|
|
13
|
+
* insertOnly: false,
|
|
14
|
+
* onTable: "table",
|
|
15
|
+
* owner: "role1",
|
|
16
|
+
* schema: "schema",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* # format is database name | schema name | on table name
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|tableName'
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class Stream extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing Stream 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?: StreamState, opts?: pulumi.CustomResourceOptions): Stream;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of Stream. 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 Stream;
|
|
44
|
+
/**
|
|
45
|
+
* Type of the stream that will be created.
|
|
46
|
+
*/
|
|
47
|
+
readonly appendOnly: pulumi.Output<boolean | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies a comment for the stream.
|
|
50
|
+
*/
|
|
51
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* The database in which to create the stream.
|
|
54
|
+
*/
|
|
55
|
+
readonly database: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Create an insert only stream type.
|
|
58
|
+
*/
|
|
59
|
+
readonly insertOnly: pulumi.Output<boolean | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
|
|
62
|
+
*/
|
|
63
|
+
readonly name: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Name of the table the stream will monitor.
|
|
66
|
+
*/
|
|
67
|
+
readonly onTable: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Name of the role that owns the stream.
|
|
70
|
+
*/
|
|
71
|
+
readonly owner: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The schema in which to create the stream.
|
|
74
|
+
*/
|
|
75
|
+
readonly schema: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
|
|
78
|
+
*/
|
|
79
|
+
readonly showInitialRows: pulumi.Output<boolean | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Create a Stream resource with the given unique name, arguments, and options.
|
|
82
|
+
*
|
|
83
|
+
* @param name The _unique_ name of the resource.
|
|
84
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
85
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
86
|
+
*/
|
|
87
|
+
constructor(name: string, args: StreamArgs, opts?: pulumi.CustomResourceOptions);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Input properties used for looking up and filtering Stream resources.
|
|
91
|
+
*/
|
|
92
|
+
export interface StreamState {
|
|
93
|
+
/**
|
|
94
|
+
* Type of the stream that will be created.
|
|
95
|
+
*/
|
|
96
|
+
appendOnly?: pulumi.Input<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* Specifies a comment for the stream.
|
|
99
|
+
*/
|
|
100
|
+
comment?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The database in which to create the stream.
|
|
103
|
+
*/
|
|
104
|
+
database?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Create an insert only stream type.
|
|
107
|
+
*/
|
|
108
|
+
insertOnly?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
|
|
111
|
+
*/
|
|
112
|
+
name?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Name of the table the stream will monitor.
|
|
115
|
+
*/
|
|
116
|
+
onTable?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Name of the role that owns the stream.
|
|
119
|
+
*/
|
|
120
|
+
owner?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The schema in which to create the stream.
|
|
123
|
+
*/
|
|
124
|
+
schema?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
|
|
127
|
+
*/
|
|
128
|
+
showInitialRows?: pulumi.Input<boolean>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The set of arguments for constructing a Stream resource.
|
|
132
|
+
*/
|
|
133
|
+
export interface StreamArgs {
|
|
134
|
+
/**
|
|
135
|
+
* Type of the stream that will be created.
|
|
136
|
+
*/
|
|
137
|
+
appendOnly?: pulumi.Input<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* Specifies a comment for the stream.
|
|
140
|
+
*/
|
|
141
|
+
comment?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The database in which to create the stream.
|
|
144
|
+
*/
|
|
145
|
+
database: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Create an insert only stream type.
|
|
148
|
+
*/
|
|
149
|
+
insertOnly?: pulumi.Input<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
|
|
152
|
+
*/
|
|
153
|
+
name?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Name of the table the stream will monitor.
|
|
156
|
+
*/
|
|
157
|
+
onTable?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The schema in which to create the stream.
|
|
160
|
+
*/
|
|
161
|
+
schema: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
|
|
164
|
+
*/
|
|
165
|
+
showInitialRows?: pulumi.Input<boolean>;
|
|
166
|
+
}
|
package/stream.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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.Stream = 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 stream = new snowflake.Stream("stream", {
|
|
16
|
+
* appendOnly: false,
|
|
17
|
+
* comment: "A stream.",
|
|
18
|
+
* database: "db",
|
|
19
|
+
* insertOnly: false,
|
|
20
|
+
* onTable: "table",
|
|
21
|
+
* owner: "role1",
|
|
22
|
+
* schema: "schema",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* # format is database name | schema name | on table name
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|tableName'
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class Stream extends pulumi.CustomResource {
|
|
35
|
+
constructor(name, argsOrState, opts) {
|
|
36
|
+
let inputs = {};
|
|
37
|
+
opts = opts || {};
|
|
38
|
+
if (opts.id) {
|
|
39
|
+
const state = argsOrState;
|
|
40
|
+
inputs["appendOnly"] = state ? state.appendOnly : undefined;
|
|
41
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
42
|
+
inputs["database"] = state ? state.database : undefined;
|
|
43
|
+
inputs["insertOnly"] = state ? state.insertOnly : undefined;
|
|
44
|
+
inputs["name"] = state ? state.name : undefined;
|
|
45
|
+
inputs["onTable"] = state ? state.onTable : undefined;
|
|
46
|
+
inputs["owner"] = state ? state.owner : undefined;
|
|
47
|
+
inputs["schema"] = state ? state.schema : undefined;
|
|
48
|
+
inputs["showInitialRows"] = state ? state.showInitialRows : undefined;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'database'");
|
|
54
|
+
}
|
|
55
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'schema'");
|
|
57
|
+
}
|
|
58
|
+
inputs["appendOnly"] = args ? args.appendOnly : undefined;
|
|
59
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
60
|
+
inputs["database"] = args ? args.database : undefined;
|
|
61
|
+
inputs["insertOnly"] = args ? args.insertOnly : undefined;
|
|
62
|
+
inputs["name"] = args ? args.name : undefined;
|
|
63
|
+
inputs["onTable"] = args ? args.onTable : undefined;
|
|
64
|
+
inputs["schema"] = args ? args.schema : undefined;
|
|
65
|
+
inputs["showInitialRows"] = args ? args.showInitialRows : undefined;
|
|
66
|
+
inputs["owner"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
if (!opts.version) {
|
|
69
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
70
|
+
}
|
|
71
|
+
super(Stream.__pulumiType, name, inputs, opts);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get an existing Stream resource's state with the given name, ID, and optional extra
|
|
75
|
+
* properties used to qualify the lookup.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resulting resource.
|
|
78
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
79
|
+
* @param state Any extra arguments used during the lookup.
|
|
80
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
81
|
+
*/
|
|
82
|
+
static get(name, id, state, opts) {
|
|
83
|
+
return new Stream(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of Stream. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj) {
|
|
90
|
+
if (obj === undefined || obj === null) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return obj['__pulumiType'] === Stream.__pulumiType;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Stream = Stream;
|
|
97
|
+
/** @internal */
|
|
98
|
+
Stream.__pulumiType = 'snowflake:index/stream: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