@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,69 @@
|
|
|
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.SecondaryConnection = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/secondaryConnection:SecondaryConnection example 'secondary_connection_name'
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
class SecondaryConnection extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing SecondaryConnection 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 SecondaryConnection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of SecondaryConnection. 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'] === SecondaryConnection.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
constructor(name, argsOrState, opts) {
|
|
39
|
+
let resourceInputs = {};
|
|
40
|
+
opts = opts || {};
|
|
41
|
+
if (opts.id) {
|
|
42
|
+
const state = argsOrState;
|
|
43
|
+
resourceInputs["asReplicaOf"] = state ? state.asReplicaOf : undefined;
|
|
44
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
45
|
+
resourceInputs["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
|
|
46
|
+
resourceInputs["isPrimary"] = state ? state.isPrimary : undefined;
|
|
47
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
48
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if ((!args || args.asReplicaOf === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'asReplicaOf'");
|
|
54
|
+
}
|
|
55
|
+
resourceInputs["asReplicaOf"] = args ? args.asReplicaOf : undefined;
|
|
56
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
57
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
58
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["isPrimary"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
61
|
+
}
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
|
+
super(SecondaryConnection.__pulumiType, name, resourceInputs, opts);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.SecondaryConnection = SecondaryConnection;
|
|
67
|
+
/** @internal */
|
|
68
|
+
SecondaryConnection.__pulumiType = 'snowflake:index/secondaryConnection:SecondaryConnection';
|
|
69
|
+
//# sourceMappingURL=secondaryConnection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secondaryConnection.js","sourceRoot":"","sources":["../secondaryConnection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAA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AW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,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,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAtFL,kDAuFC;AAzEG,gBAAgB;AACO,gCAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
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/secretWithAuthorizationCodeGrant:SecretWithAuthorizationCodeGrant example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class SecretWithAuthorizationCodeGrant extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing SecretWithAuthorizationCodeGrant 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?: SecretWithAuthorizationCodeGrantState, opts?: pulumi.CustomResourceOptions): SecretWithAuthorizationCodeGrant;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of SecretWithAuthorizationCodeGrant. 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 SecretWithAuthorizationCodeGrant;
|
|
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.SecretWithAuthorizationCodeGrantDescribeOutput[]>;
|
|
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
|
+
readonly oauthRefreshToken: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the timestamp as a string when the OAuth refresh token expires. Accepted string formats: YYYY-MM-DD, YYYY-MM-DD HH:MI, YYYY-MM-DD HH:MI:SS, YYYY-MM-DD HH:MI \n\n
|
|
54
|
+
*/
|
|
55
|
+
readonly oauthRefreshTokenExpiryTime: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
58
|
+
*/
|
|
59
|
+
readonly schema: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
62
|
+
*/
|
|
63
|
+
readonly secretType: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
66
|
+
*/
|
|
67
|
+
readonly showOutputs: pulumi.Output<outputs.SecretWithAuthorizationCodeGrantShowOutput[]>;
|
|
68
|
+
/**
|
|
69
|
+
* Create a SecretWithAuthorizationCodeGrant 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: SecretWithAuthorizationCodeGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Input properties used for looking up and filtering SecretWithAuthorizationCodeGrant resources.
|
|
79
|
+
*/
|
|
80
|
+
export interface SecretWithAuthorizationCodeGrantState {
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the name value of the Snowflake security integration that connects Snowflake to an external service.
|
|
83
|
+
*/
|
|
84
|
+
apiAuthentication?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies a comment for the secret.
|
|
87
|
+
*/
|
|
88
|
+
comment?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The database in which to create the secret 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 SECRET` for the given secret.
|
|
95
|
+
*/
|
|
96
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithAuthorizationCodeGrantDescribeOutput>[]>;
|
|
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
|
+
* 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: `|`, `.`, `(`, `)`, `"`
|
|
103
|
+
*/
|
|
104
|
+
name?: pulumi.Input<string>;
|
|
105
|
+
oauthRefreshToken?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the timestamp as a string when the OAuth refresh token expires. Accepted string formats: YYYY-MM-DD, YYYY-MM-DD HH:MI, YYYY-MM-DD HH:MI:SS, YYYY-MM-DD HH:MI \n\n
|
|
108
|
+
*/
|
|
109
|
+
oauthRefreshTokenExpiryTime?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
112
|
+
*/
|
|
113
|
+
schema?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
116
|
+
*/
|
|
117
|
+
secretType?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
120
|
+
*/
|
|
121
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithAuthorizationCodeGrantShowOutput>[]>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The set of arguments for constructing a SecretWithAuthorizationCodeGrant resource.
|
|
125
|
+
*/
|
|
126
|
+
export interface SecretWithAuthorizationCodeGrantArgs {
|
|
127
|
+
/**
|
|
128
|
+
* Specifies the name value of the Snowflake security integration that connects Snowflake to an external service.
|
|
129
|
+
*/
|
|
130
|
+
apiAuthentication: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies a comment for the secret.
|
|
133
|
+
*/
|
|
134
|
+
comment?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
137
|
+
*/
|
|
138
|
+
database: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* 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: `|`, `.`, `(`, `)`, `"`
|
|
141
|
+
*/
|
|
142
|
+
name?: pulumi.Input<string>;
|
|
143
|
+
oauthRefreshToken: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies the timestamp as a string when the OAuth refresh token expires. Accepted string formats: YYYY-MM-DD, YYYY-MM-DD HH:MI, YYYY-MM-DD HH:MI:SS, YYYY-MM-DD HH:MI \n\n
|
|
146
|
+
*/
|
|
147
|
+
oauthRefreshTokenExpiryTime: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
150
|
+
*/
|
|
151
|
+
schema: pulumi.Input<string>;
|
|
152
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.SecretWithAuthorizationCodeGrant = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/secretWithAuthorizationCodeGrant:SecretWithAuthorizationCodeGrant example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
class SecretWithAuthorizationCodeGrant extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing SecretWithAuthorizationCodeGrant 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 SecretWithAuthorizationCodeGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of SecretWithAuthorizationCodeGrant. 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'] === SecretWithAuthorizationCodeGrant.__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["oauthRefreshToken"] = state ? state.oauthRefreshToken : undefined;
|
|
50
|
+
resourceInputs["oauthRefreshTokenExpiryTime"] = state ? state.oauthRefreshTokenExpiryTime : undefined;
|
|
51
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
52
|
+
resourceInputs["secretType"] = state ? state.secretType : undefined;
|
|
53
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.apiAuthentication === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'apiAuthentication'");
|
|
59
|
+
}
|
|
60
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'database'");
|
|
62
|
+
}
|
|
63
|
+
if ((!args || args.oauthRefreshToken === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'oauthRefreshToken'");
|
|
65
|
+
}
|
|
66
|
+
if ((!args || args.oauthRefreshTokenExpiryTime === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'oauthRefreshTokenExpiryTime'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'schema'");
|
|
71
|
+
}
|
|
72
|
+
resourceInputs["apiAuthentication"] = args ? args.apiAuthentication : undefined;
|
|
73
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
74
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
75
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
76
|
+
resourceInputs["oauthRefreshToken"] = (args === null || args === void 0 ? void 0 : args.oauthRefreshToken) ? pulumi.secret(args.oauthRefreshToken) : undefined;
|
|
77
|
+
resourceInputs["oauthRefreshTokenExpiryTime"] = args ? args.oauthRefreshTokenExpiryTime : undefined;
|
|
78
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
79
|
+
resourceInputs["describeOutputs"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["secretType"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
83
|
+
}
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
+
const secretOpts = { additionalSecretOutputs: ["oauthRefreshToken"] };
|
|
86
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
87
|
+
super(SecretWithAuthorizationCodeGrant.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.SecretWithAuthorizationCodeGrant = SecretWithAuthorizationCodeGrant;
|
|
91
|
+
/** @internal */
|
|
92
|
+
SecretWithAuthorizationCodeGrant.__pulumiType = 'snowflake:index/secretWithAuthorizationCodeGrant:SecretWithAuthorizationCodeGrant';
|
|
93
|
+
//# sourceMappingURL=secretWithAuthorizationCodeGrant.js.map
|
|
@@ -0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C,CAAC,CAAC,SAAS,CAAC;YACpG,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AA/HL,4EAgIC;AAlHG,gBAAgB;AACO,6CAAY,GAAG,mFAAmF,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
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/secretWithBasicAuthentication:SecretWithBasicAuthentication example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class SecretWithBasicAuthentication extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing SecretWithBasicAuthentication 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?: SecretWithBasicAuthenticationState, opts?: pulumi.CustomResourceOptions): SecretWithBasicAuthentication;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of SecretWithBasicAuthentication. 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 SecretWithBasicAuthentication;
|
|
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.SecretWithBasicAuthenticationDescribeOutput[]>;
|
|
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
|
+
readonly password: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
50
|
+
*/
|
|
51
|
+
readonly schema: 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.SecretWithBasicAuthenticationShowOutput[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the username value to store in the secret.
|
|
62
|
+
*/
|
|
63
|
+
readonly username: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Create a SecretWithBasicAuthentication resource with the given unique name, arguments, and options.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resource.
|
|
68
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: SecretWithBasicAuthenticationArgs, opts?: pulumi.CustomResourceOptions);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Input properties used for looking up and filtering SecretWithBasicAuthentication resources.
|
|
75
|
+
*/
|
|
76
|
+
export interface SecretWithBasicAuthenticationState {
|
|
77
|
+
/**
|
|
78
|
+
* Specifies a comment for the secret.
|
|
79
|
+
*/
|
|
80
|
+
comment?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
83
|
+
*/
|
|
84
|
+
database?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
87
|
+
*/
|
|
88
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithBasicAuthenticationDescribeOutput>[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
91
|
+
*/
|
|
92
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* 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: `|`, `.`, `(`, `)`, `"`
|
|
95
|
+
*/
|
|
96
|
+
name?: pulumi.Input<string>;
|
|
97
|
+
password?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
100
|
+
*/
|
|
101
|
+
schema?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
104
|
+
*/
|
|
105
|
+
secretType?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Outputs the result of `SHOW SECRETS` for the given secret.
|
|
108
|
+
*/
|
|
109
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.SecretWithBasicAuthenticationShowOutput>[]>;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the username value to store in the secret.
|
|
112
|
+
*/
|
|
113
|
+
username?: pulumi.Input<string>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The set of arguments for constructing a SecretWithBasicAuthentication resource.
|
|
117
|
+
*/
|
|
118
|
+
export interface SecretWithBasicAuthenticationArgs {
|
|
119
|
+
/**
|
|
120
|
+
* Specifies a comment for the secret.
|
|
121
|
+
*/
|
|
122
|
+
comment?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
125
|
+
*/
|
|
126
|
+
database: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* 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: `|`, `.`, `(`, `)`, `"`
|
|
129
|
+
*/
|
|
130
|
+
name?: pulumi.Input<string>;
|
|
131
|
+
password: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
134
|
+
*/
|
|
135
|
+
schema: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies the username value to store in the secret.
|
|
138
|
+
*/
|
|
139
|
+
username: pulumi.Input<string>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.SecretWithBasicAuthentication = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/secretWithBasicAuthentication:SecretWithBasicAuthentication example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
class SecretWithBasicAuthentication extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing SecretWithBasicAuthentication 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 SecretWithBasicAuthentication(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of SecretWithBasicAuthentication. 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'] === SecretWithBasicAuthentication.__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["password"] = state ? state.password : undefined;
|
|
49
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
50
|
+
resourceInputs["secretType"] = state ? state.secretType : undefined;
|
|
51
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
52
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'database'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.password === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'password'");
|
|
61
|
+
}
|
|
62
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'schema'");
|
|
64
|
+
}
|
|
65
|
+
if ((!args || args.username === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'username'");
|
|
67
|
+
}
|
|
68
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
69
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
70
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
71
|
+
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
|
|
72
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
73
|
+
resourceInputs["username"] = (args === null || args === void 0 ? void 0 : args.username) ? pulumi.secret(args.username) : 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
|
+
const secretOpts = { additionalSecretOutputs: ["password", "username"] };
|
|
81
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
82
|
+
super(SecretWithBasicAuthentication.__pulumiType, name, resourceInputs, opts);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.SecretWithBasicAuthentication = SecretWithBasicAuthentication;
|
|
86
|
+
/** @internal */
|
|
87
|
+
SecretWithBasicAuthentication.__pulumiType = 'snowflake:index/secretWithBasicAuthentication:SecretWithBasicAuthentication';
|
|
88
|
+
//# sourceMappingURL=secretWithBasicAuthentication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secretWithBasicAuthentication.js","sourceRoot":"","sources":["../secretWithBasicAuthentication.ts"],"names":[],"mappings":";AAA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