@pulumi/snowflake 0.56.0-alpha.1721327760 → 0.56.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.
Files changed (160) hide show
  1. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +195 -0
  2. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +91 -0
  3. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -0
  4. package/apiAuthenticationIntegrationWithClientCredentials.d.ts +183 -0
  5. package/apiAuthenticationIntegrationWithClientCredentials.js +89 -0
  6. package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -0
  7. package/apiAuthenticationIntegrationWithJwtBearer.d.ts +186 -0
  8. package/apiAuthenticationIntegrationWithJwtBearer.js +94 -0
  9. package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -0
  10. package/cortexSearchService.d.ts +159 -0
  11. package/cortexSearchService.js +92 -0
  12. package/cortexSearchService.js.map +1 -0
  13. package/database.d.ts +240 -77
  14. package/database.js +94 -45
  15. package/database.js.map +1 -1
  16. package/databaseOld.d.ts +187 -0
  17. package/databaseOld.js +110 -0
  18. package/databaseOld.js.map +1 -0
  19. package/externalOauthIntegration.d.ts +118 -116
  20. package/externalOauthIntegration.js +43 -55
  21. package/externalOauthIntegration.js.map +1 -1
  22. package/failoverGroup.d.ts +1 -1
  23. package/failoverGroup.js +1 -1
  24. package/getCortexSearchServices.d.ts +136 -0
  25. package/getCortexSearchServices.js +83 -0
  26. package/getCortexSearchServices.js.map +1 -0
  27. package/getDatabases.d.ts +41 -38
  28. package/getDatabases.js +8 -17
  29. package/getDatabases.js.map +1 -1
  30. package/getSecurityIntegrations.d.ts +61 -0
  31. package/getSecurityIntegrations.js +31 -0
  32. package/getSecurityIntegrations.js.map +1 -0
  33. package/getWarehouses.d.ts +53 -17
  34. package/getWarehouses.js +13 -18
  35. package/getWarehouses.js.map +1 -1
  36. package/grantPrivilegesToDatabaseRole.d.ts +0 -2
  37. package/grantPrivilegesToDatabaseRole.js +0 -2
  38. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  39. package/index.d.ts +37 -82
  40. package/index.js +60 -139
  41. package/index.js.map +1 -1
  42. package/managedAccount.d.ts +3 -3
  43. package/oauthIntegration.d.ts +2 -0
  44. package/oauthIntegration.js +2 -0
  45. package/oauthIntegration.js.map +1 -1
  46. package/oauthIntegrationForCustomClients.d.ts +274 -0
  47. package/oauthIntegrationForCustomClients.js +148 -0
  48. package/oauthIntegrationForCustomClients.js.map +1 -0
  49. package/oauthIntegrationForPartnerApplications.d.ts +162 -0
  50. package/oauthIntegrationForPartnerApplications.js +84 -0
  51. package/oauthIntegrationForPartnerApplications.js.map +1 -0
  52. package/package.json +2 -2
  53. package/saml2Integration.d.ts +267 -0
  54. package/saml2Integration.js +106 -0
  55. package/saml2Integration.js.map +1 -0
  56. package/samlIntegration.d.ts +2 -0
  57. package/samlIntegration.js +2 -0
  58. package/samlIntegration.js.map +1 -1
  59. package/scimIntegration.d.ts +67 -33
  60. package/scimIntegration.js +19 -20
  61. package/scimIntegration.js.map +1 -1
  62. package/secondaryDatabase.d.ts +289 -0
  63. package/secondaryDatabase.js +103 -0
  64. package/secondaryDatabase.js.map +1 -0
  65. package/sequence.d.ts +3 -3
  66. package/sequence.js +3 -3
  67. package/sharedDatabase.d.ts +251 -0
  68. package/sharedDatabase.js +95 -0
  69. package/sharedDatabase.js.map +1 -0
  70. package/tagAssociation.d.ts +19 -19
  71. package/tagAssociation.js +19 -19
  72. package/types/input.d.ts +1015 -75
  73. package/types/output.d.ts +1835 -280
  74. package/userPasswordPolicyAttachment.d.ts +18 -0
  75. package/userPasswordPolicyAttachment.js +18 -0
  76. package/userPasswordPolicyAttachment.js.map +1 -1
  77. package/warehouse.d.ts +61 -48
  78. package/warehouse.js +8 -2
  79. package/warehouse.js.map +1 -1
  80. package/accountGrant.d.ts +0 -102
  81. package/accountGrant.js +0 -82
  82. package/accountGrant.js.map +0 -1
  83. package/databaseGrant.d.ts +0 -143
  84. package/databaseGrant.js +0 -96
  85. package/databaseGrant.js.map +0 -1
  86. package/externalTableGrant.d.ts +0 -194
  87. package/externalTableGrant.js +0 -110
  88. package/externalTableGrant.js.map +0 -1
  89. package/failoverGroupGrant.d.ts +0 -102
  90. package/failoverGroupGrant.js +0 -65
  91. package/failoverGroupGrant.js.map +0 -1
  92. package/fileFormatGrant.d.ts +0 -178
  93. package/fileFormatGrant.js +0 -104
  94. package/fileFormatGrant.js.map +0 -1
  95. package/functionGrant.d.ts +0 -210
  96. package/functionGrant.js +0 -116
  97. package/functionGrant.js.map +0 -1
  98. package/grantPrivilegesToRole.d.ts +0 -323
  99. package/grantPrivilegesToRole.js +0 -255
  100. package/grantPrivilegesToRole.js.map +0 -1
  101. package/integrationGrant.d.ts +0 -127
  102. package/integrationGrant.js +0 -90
  103. package/integrationGrant.js.map +0 -1
  104. package/maskingPolicyGrant.d.ts +0 -154
  105. package/maskingPolicyGrant.js +0 -103
  106. package/maskingPolicyGrant.js.map +0 -1
  107. package/materializedViewGrant.d.ts +0 -194
  108. package/materializedViewGrant.js +0 -107
  109. package/materializedViewGrant.js.map +0 -1
  110. package/pipeGrant.d.ts +0 -166
  111. package/pipeGrant.js +0 -99
  112. package/pipeGrant.js.map +0 -1
  113. package/procedureGrant.d.ts +0 -210
  114. package/procedureGrant.js +0 -116
  115. package/procedureGrant.js.map +0 -1
  116. package/resourceMonitorGrant.d.ts +0 -112
  117. package/resourceMonitorGrant.js +0 -85
  118. package/resourceMonitorGrant.js.map +0 -1
  119. package/roleGrants.d.ts +0 -115
  120. package/roleGrants.js +0 -98
  121. package/roleGrants.js.map +0 -1
  122. package/roleOwnershipGrant.d.ts +0 -108
  123. package/roleOwnershipGrant.js +0 -94
  124. package/roleOwnershipGrant.js.map +0 -1
  125. package/rowAccessPolicyGrant.d.ts +0 -153
  126. package/rowAccessPolicyGrant.js +0 -102
  127. package/rowAccessPolicyGrant.js.map +0 -1
  128. package/schemaGrant.d.ts +0 -172
  129. package/schemaGrant.js +0 -104
  130. package/schemaGrant.js.map +0 -1
  131. package/sequenceGrant.d.ts +0 -178
  132. package/sequenceGrant.js +0 -104
  133. package/sequenceGrant.js.map +0 -1
  134. package/stageGrant.d.ts +0 -178
  135. package/stageGrant.js +0 -104
  136. package/stageGrant.js.map +0 -1
  137. package/streamGrant.d.ts +0 -178
  138. package/streamGrant.js +0 -104
  139. package/streamGrant.js.map +0 -1
  140. package/tableGrant.d.ts +0 -188
  141. package/tableGrant.js +0 -101
  142. package/tableGrant.js.map +0 -1
  143. package/tagGrant.d.ts +0 -149
  144. package/tagGrant.js +0 -98
  145. package/tagGrant.js.map +0 -1
  146. package/taskGrant.d.ts +0 -178
  147. package/taskGrant.js +0 -104
  148. package/taskGrant.js.map +0 -1
  149. package/userGrant.d.ts +0 -115
  150. package/userGrant.js +0 -91
  151. package/userGrant.js.map +0 -1
  152. package/userOwnershipGrant.d.ts +0 -78
  153. package/userOwnershipGrant.js +0 -64
  154. package/userOwnershipGrant.js.map +0 -1
  155. package/viewGrant.d.ts +0 -205
  156. package/viewGrant.js +0 -118
  157. package/viewGrant.js.map +0 -1
  158. package/warehouseGrant.d.ts +0 -127
  159. package/warehouseGrant.js +0 -90
  160. package/warehouseGrant.js.map +0 -1
@@ -0,0 +1,195 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import snowflake:index/apiAuthenticationIntegrationWithAuthorizationCodeGrant:ApiAuthenticationIntegrationWithAuthorizationCodeGrant example "name"
11
+ * ```
12
+ */
13
+ export declare class ApiAuthenticationIntegrationWithAuthorizationCodeGrant extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing ApiAuthenticationIntegrationWithAuthorizationCodeGrant resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param state Any extra arguments used during the lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiAuthenticationIntegrationWithAuthorizationCodeGrantState, opts?: pulumi.CustomResourceOptions): ApiAuthenticationIntegrationWithAuthorizationCodeGrant;
24
+ /**
25
+ * Returns true if the given object is an instance of ApiAuthenticationIntegrationWithAuthorizationCodeGrant. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj: any): obj is ApiAuthenticationIntegrationWithAuthorizationCodeGrant;
29
+ /**
30
+ * Specifies a comment for the integration.
31
+ */
32
+ readonly comment: pulumi.Output<string | undefined>;
33
+ /**
34
+ * Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
35
+ */
36
+ readonly describeOutputs: pulumi.Output<outputs.ApiAuthenticationIntegrationWithAuthorizationCodeGrantDescribeOutput[]>;
37
+ /**
38
+ * Specifies whether this security integration is enabled or disabled.
39
+ */
40
+ readonly enabled: pulumi.Output<boolean>;
41
+ /**
42
+ * Specifies the identifier (i.e. name) for the integration. This value must be unique in your account.
43
+ */
44
+ readonly name: pulumi.Output<string>;
45
+ /**
46
+ * Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
47
+ */
48
+ readonly oauthAccessTokenValidity: pulumi.Output<number | undefined>;
49
+ /**
50
+ * Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration during the OAuth client credentials flow.
51
+ */
52
+ readonly oauthAllowedScopes: pulumi.Output<string[] | undefined>;
53
+ /**
54
+ * Specifies the URL for authenticating to the external service. If removed from the config, the resource is recreated.
55
+ */
56
+ readonly oauthAuthorizationEndpoint: pulumi.Output<string | undefined>;
57
+ /**
58
+ * Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
59
+ */
60
+ readonly oauthClientAuthMethod: pulumi.Output<string | undefined>;
61
+ /**
62
+ * Specifies the client ID for the OAuth application in the external service.
63
+ */
64
+ readonly oauthClientId: pulumi.Output<string>;
65
+ /**
66
+ * Specifies the client secret for the OAuth application in the ServiceNow instance from the previous step. The connector uses this to request an access token from the ServiceNow instance.
67
+ */
68
+ readonly oauthClientSecret: pulumi.Output<string>;
69
+ /**
70
+ * Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
71
+ */
72
+ readonly oauthRefreshTokenValidity: pulumi.Output<number | undefined>;
73
+ /**
74
+ * Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
75
+ */
76
+ readonly oauthTokenEndpoint: pulumi.Output<string | undefined>;
77
+ /**
78
+ * Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
79
+ */
80
+ readonly showOutputs: pulumi.Output<outputs.ApiAuthenticationIntegrationWithAuthorizationCodeGrantShowOutput[]>;
81
+ /**
82
+ * Create a ApiAuthenticationIntegrationWithAuthorizationCodeGrant 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: ApiAuthenticationIntegrationWithAuthorizationCodeGrantArgs, opts?: pulumi.CustomResourceOptions);
89
+ }
90
+ /**
91
+ * Input properties used for looking up and filtering ApiAuthenticationIntegrationWithAuthorizationCodeGrant resources.
92
+ */
93
+ export interface ApiAuthenticationIntegrationWithAuthorizationCodeGrantState {
94
+ /**
95
+ * Specifies a comment for the integration.
96
+ */
97
+ comment?: pulumi.Input<string>;
98
+ /**
99
+ * Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
100
+ */
101
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.ApiAuthenticationIntegrationWithAuthorizationCodeGrantDescribeOutput>[]>;
102
+ /**
103
+ * Specifies whether this security integration is enabled or disabled.
104
+ */
105
+ enabled?: pulumi.Input<boolean>;
106
+ /**
107
+ * Specifies the identifier (i.e. name) for the integration. This value must be unique in your account.
108
+ */
109
+ name?: pulumi.Input<string>;
110
+ /**
111
+ * Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
112
+ */
113
+ oauthAccessTokenValidity?: pulumi.Input<number>;
114
+ /**
115
+ * Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration during the OAuth client credentials flow.
116
+ */
117
+ oauthAllowedScopes?: pulumi.Input<pulumi.Input<string>[]>;
118
+ /**
119
+ * Specifies the URL for authenticating to the external service. If removed from the config, the resource is recreated.
120
+ */
121
+ oauthAuthorizationEndpoint?: pulumi.Input<string>;
122
+ /**
123
+ * Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
124
+ */
125
+ oauthClientAuthMethod?: pulumi.Input<string>;
126
+ /**
127
+ * Specifies the client ID for the OAuth application in the external service.
128
+ */
129
+ oauthClientId?: pulumi.Input<string>;
130
+ /**
131
+ * Specifies the client secret for the OAuth application in the ServiceNow instance from the previous step. The connector uses this to request an access token from the ServiceNow instance.
132
+ */
133
+ oauthClientSecret?: pulumi.Input<string>;
134
+ /**
135
+ * Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
136
+ */
137
+ oauthRefreshTokenValidity?: pulumi.Input<number>;
138
+ /**
139
+ * Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
140
+ */
141
+ oauthTokenEndpoint?: pulumi.Input<string>;
142
+ /**
143
+ * Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
144
+ */
145
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.ApiAuthenticationIntegrationWithAuthorizationCodeGrantShowOutput>[]>;
146
+ }
147
+ /**
148
+ * The set of arguments for constructing a ApiAuthenticationIntegrationWithAuthorizationCodeGrant resource.
149
+ */
150
+ export interface ApiAuthenticationIntegrationWithAuthorizationCodeGrantArgs {
151
+ /**
152
+ * Specifies a comment for the integration.
153
+ */
154
+ comment?: pulumi.Input<string>;
155
+ /**
156
+ * Specifies whether this security integration is enabled or disabled.
157
+ */
158
+ enabled: pulumi.Input<boolean>;
159
+ /**
160
+ * Specifies the identifier (i.e. name) for the integration. This value must be unique in your account.
161
+ */
162
+ name?: pulumi.Input<string>;
163
+ /**
164
+ * Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
165
+ */
166
+ oauthAccessTokenValidity?: pulumi.Input<number>;
167
+ /**
168
+ * Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration during the OAuth client credentials flow.
169
+ */
170
+ oauthAllowedScopes?: pulumi.Input<pulumi.Input<string>[]>;
171
+ /**
172
+ * Specifies the URL for authenticating to the external service. If removed from the config, the resource is recreated.
173
+ */
174
+ oauthAuthorizationEndpoint?: pulumi.Input<string>;
175
+ /**
176
+ * Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
177
+ */
178
+ oauthClientAuthMethod?: pulumi.Input<string>;
179
+ /**
180
+ * Specifies the client ID for the OAuth application in the external service.
181
+ */
182
+ oauthClientId: pulumi.Input<string>;
183
+ /**
184
+ * Specifies the client secret for the OAuth application in the ServiceNow instance from the previous step. The connector uses this to request an access token from the ServiceNow instance.
185
+ */
186
+ oauthClientSecret: pulumi.Input<string>;
187
+ /**
188
+ * Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
189
+ */
190
+ oauthRefreshTokenValidity?: pulumi.Input<number>;
191
+ /**
192
+ * Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
193
+ */
194
+ oauthTokenEndpoint?: pulumi.Input<string>;
195
+ }
@@ -0,0 +1,91 @@
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.ApiAuthenticationIntegrationWithAuthorizationCodeGrant = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
10
+ *
11
+ * ## Import
12
+ *
13
+ * ```sh
14
+ * $ pulumi import snowflake:index/apiAuthenticationIntegrationWithAuthorizationCodeGrant:ApiAuthenticationIntegrationWithAuthorizationCodeGrant example "name"
15
+ * ```
16
+ */
17
+ class ApiAuthenticationIntegrationWithAuthorizationCodeGrant extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing ApiAuthenticationIntegrationWithAuthorizationCodeGrant resource's state with the given name, ID, and optional extra
20
+ * properties used to qualify the lookup.
21
+ *
22
+ * @param name The _unique_ name of the resulting resource.
23
+ * @param id The _unique_ provider ID of the resource to lookup.
24
+ * @param state Any extra arguments used during the lookup.
25
+ * @param opts Optional settings to control the behavior of the CustomResource.
26
+ */
27
+ static get(name, id, state, opts) {
28
+ return new ApiAuthenticationIntegrationWithAuthorizationCodeGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
29
+ }
30
+ /**
31
+ * Returns true if the given object is an instance of ApiAuthenticationIntegrationWithAuthorizationCodeGrant. This is designed to work even
32
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
33
+ */
34
+ static isInstance(obj) {
35
+ if (obj === undefined || obj === null) {
36
+ return false;
37
+ }
38
+ return obj['__pulumiType'] === ApiAuthenticationIntegrationWithAuthorizationCodeGrant.__pulumiType;
39
+ }
40
+ constructor(name, argsOrState, opts) {
41
+ let resourceInputs = {};
42
+ opts = opts || {};
43
+ if (opts.id) {
44
+ const state = argsOrState;
45
+ resourceInputs["comment"] = state ? state.comment : undefined;
46
+ resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
47
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
48
+ resourceInputs["name"] = state ? state.name : undefined;
49
+ resourceInputs["oauthAccessTokenValidity"] = state ? state.oauthAccessTokenValidity : undefined;
50
+ resourceInputs["oauthAllowedScopes"] = state ? state.oauthAllowedScopes : undefined;
51
+ resourceInputs["oauthAuthorizationEndpoint"] = state ? state.oauthAuthorizationEndpoint : undefined;
52
+ resourceInputs["oauthClientAuthMethod"] = state ? state.oauthClientAuthMethod : undefined;
53
+ resourceInputs["oauthClientId"] = state ? state.oauthClientId : undefined;
54
+ resourceInputs["oauthClientSecret"] = state ? state.oauthClientSecret : undefined;
55
+ resourceInputs["oauthRefreshTokenValidity"] = state ? state.oauthRefreshTokenValidity : undefined;
56
+ resourceInputs["oauthTokenEndpoint"] = state ? state.oauthTokenEndpoint : undefined;
57
+ resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
58
+ }
59
+ else {
60
+ const args = argsOrState;
61
+ if ((!args || args.enabled === undefined) && !opts.urn) {
62
+ throw new Error("Missing required property 'enabled'");
63
+ }
64
+ if ((!args || args.oauthClientId === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'oauthClientId'");
66
+ }
67
+ if ((!args || args.oauthClientSecret === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'oauthClientSecret'");
69
+ }
70
+ resourceInputs["comment"] = args ? args.comment : undefined;
71
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
72
+ resourceInputs["name"] = args ? args.name : undefined;
73
+ resourceInputs["oauthAccessTokenValidity"] = args ? args.oauthAccessTokenValidity : undefined;
74
+ resourceInputs["oauthAllowedScopes"] = args ? args.oauthAllowedScopes : undefined;
75
+ resourceInputs["oauthAuthorizationEndpoint"] = args ? args.oauthAuthorizationEndpoint : undefined;
76
+ resourceInputs["oauthClientAuthMethod"] = args ? args.oauthClientAuthMethod : undefined;
77
+ resourceInputs["oauthClientId"] = args ? args.oauthClientId : undefined;
78
+ resourceInputs["oauthClientSecret"] = args ? args.oauthClientSecret : undefined;
79
+ resourceInputs["oauthRefreshTokenValidity"] = args ? args.oauthRefreshTokenValidity : undefined;
80
+ resourceInputs["oauthTokenEndpoint"] = args ? args.oauthTokenEndpoint : undefined;
81
+ resourceInputs["describeOutputs"] = undefined /*out*/;
82
+ resourceInputs["showOutputs"] = undefined /*out*/;
83
+ }
84
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
85
+ super(ApiAuthenticationIntegrationWithAuthorizationCodeGrant.__pulumiType, name, resourceInputs, opts);
86
+ }
87
+ }
88
+ exports.ApiAuthenticationIntegrationWithAuthorizationCodeGrant = ApiAuthenticationIntegrationWithAuthorizationCodeGrant;
89
+ /** @internal */
90
+ ApiAuthenticationIntegrationWithAuthorizationCodeGrant.__pulumiType = 'snowflake:index/apiAuthenticationIntegrationWithAuthorizationCodeGrant:ApiAuthenticationIntegrationWithAuthorizationCodeGrant';
91
+ //# sourceMappingURL=apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiAuthenticationIntegrationWithAuthorizationCodeGrant.js","sourceRoot":"","sources":["../apiAuthenticationIntegrationWithAuthorizationCodeGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,sDAAuD,SAAQ,MAAM,CAAC,cAAc;IA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AAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,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,sDAAsD,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3G,CAAC;;AAtIL,wHAuIC;AAzHG,gBAAgB;AACO,mEAAY,GAAG,+HAA+H,CAAC"}
@@ -0,0 +1,183 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import snowflake:index/apiAuthenticationIntegrationWithClientCredentials:ApiAuthenticationIntegrationWithClientCredentials example "name"
11
+ * ```
12
+ */
13
+ export declare class ApiAuthenticationIntegrationWithClientCredentials extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing ApiAuthenticationIntegrationWithClientCredentials resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param state Any extra arguments used during the lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiAuthenticationIntegrationWithClientCredentialsState, opts?: pulumi.CustomResourceOptions): ApiAuthenticationIntegrationWithClientCredentials;
24
+ /**
25
+ * Returns true if the given object is an instance of ApiAuthenticationIntegrationWithClientCredentials. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj: any): obj is ApiAuthenticationIntegrationWithClientCredentials;
29
+ /**
30
+ * Specifies a comment for the integration.
31
+ */
32
+ readonly comment: pulumi.Output<string | undefined>;
33
+ /**
34
+ * Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
35
+ */
36
+ readonly describeOutputs: pulumi.Output<outputs.ApiAuthenticationIntegrationWithClientCredentialsDescribeOutput[]>;
37
+ /**
38
+ * Specifies whether this security integration is enabled or disabled.
39
+ */
40
+ readonly enabled: pulumi.Output<boolean>;
41
+ /**
42
+ * Specifies the identifier (i.e. name) for the integration. This value must be unique in your account.
43
+ */
44
+ readonly name: pulumi.Output<string>;
45
+ /**
46
+ * Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
47
+ */
48
+ readonly oauthAccessTokenValidity: pulumi.Output<number | undefined>;
49
+ /**
50
+ * Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration during the OAuth client credentials flow.
51
+ */
52
+ readonly oauthAllowedScopes: pulumi.Output<string[] | undefined>;
53
+ /**
54
+ * Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
55
+ */
56
+ readonly oauthClientAuthMethod: pulumi.Output<string | undefined>;
57
+ /**
58
+ * Specifies the client ID for the OAuth application in the external service.
59
+ */
60
+ readonly oauthClientId: pulumi.Output<string>;
61
+ /**
62
+ * Specifies the client secret for the OAuth application in the ServiceNow instance from the previous step. The connector uses this to request an access token from the ServiceNow instance.
63
+ */
64
+ readonly oauthClientSecret: pulumi.Output<string>;
65
+ /**
66
+ * Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
67
+ */
68
+ readonly oauthRefreshTokenValidity: pulumi.Output<number | undefined>;
69
+ /**
70
+ * Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
71
+ */
72
+ readonly oauthTokenEndpoint: pulumi.Output<string | undefined>;
73
+ /**
74
+ * Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
75
+ */
76
+ readonly showOutputs: pulumi.Output<outputs.ApiAuthenticationIntegrationWithClientCredentialsShowOutput[]>;
77
+ /**
78
+ * Create a ApiAuthenticationIntegrationWithClientCredentials resource with the given unique name, arguments, and options.
79
+ *
80
+ * @param name The _unique_ name of the resource.
81
+ * @param args The arguments to use to populate this resource's properties.
82
+ * @param opts A bag of options that control this resource's behavior.
83
+ */
84
+ constructor(name: string, args: ApiAuthenticationIntegrationWithClientCredentialsArgs, opts?: pulumi.CustomResourceOptions);
85
+ }
86
+ /**
87
+ * Input properties used for looking up and filtering ApiAuthenticationIntegrationWithClientCredentials resources.
88
+ */
89
+ export interface ApiAuthenticationIntegrationWithClientCredentialsState {
90
+ /**
91
+ * Specifies a comment for the integration.
92
+ */
93
+ comment?: pulumi.Input<string>;
94
+ /**
95
+ * Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
96
+ */
97
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.ApiAuthenticationIntegrationWithClientCredentialsDescribeOutput>[]>;
98
+ /**
99
+ * Specifies whether this security integration is enabled or disabled.
100
+ */
101
+ enabled?: pulumi.Input<boolean>;
102
+ /**
103
+ * Specifies the identifier (i.e. name) for the integration. This value must be unique in your account.
104
+ */
105
+ name?: pulumi.Input<string>;
106
+ /**
107
+ * Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
108
+ */
109
+ oauthAccessTokenValidity?: pulumi.Input<number>;
110
+ /**
111
+ * Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration during the OAuth client credentials flow.
112
+ */
113
+ oauthAllowedScopes?: pulumi.Input<pulumi.Input<string>[]>;
114
+ /**
115
+ * Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
116
+ */
117
+ oauthClientAuthMethod?: pulumi.Input<string>;
118
+ /**
119
+ * Specifies the client ID for the OAuth application in the external service.
120
+ */
121
+ oauthClientId?: pulumi.Input<string>;
122
+ /**
123
+ * Specifies the client secret for the OAuth application in the ServiceNow instance from the previous step. The connector uses this to request an access token from the ServiceNow instance.
124
+ */
125
+ oauthClientSecret?: pulumi.Input<string>;
126
+ /**
127
+ * Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
128
+ */
129
+ oauthRefreshTokenValidity?: pulumi.Input<number>;
130
+ /**
131
+ * Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
132
+ */
133
+ oauthTokenEndpoint?: pulumi.Input<string>;
134
+ /**
135
+ * Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
136
+ */
137
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.ApiAuthenticationIntegrationWithClientCredentialsShowOutput>[]>;
138
+ }
139
+ /**
140
+ * The set of arguments for constructing a ApiAuthenticationIntegrationWithClientCredentials resource.
141
+ */
142
+ export interface ApiAuthenticationIntegrationWithClientCredentialsArgs {
143
+ /**
144
+ * Specifies a comment for the integration.
145
+ */
146
+ comment?: pulumi.Input<string>;
147
+ /**
148
+ * Specifies whether this security integration is enabled or disabled.
149
+ */
150
+ enabled: pulumi.Input<boolean>;
151
+ /**
152
+ * Specifies the identifier (i.e. name) for the integration. This value must be unique in your account.
153
+ */
154
+ name?: pulumi.Input<string>;
155
+ /**
156
+ * Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
157
+ */
158
+ oauthAccessTokenValidity?: pulumi.Input<number>;
159
+ /**
160
+ * Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration during the OAuth client credentials flow.
161
+ */
162
+ oauthAllowedScopes?: pulumi.Input<pulumi.Input<string>[]>;
163
+ /**
164
+ * Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
165
+ */
166
+ oauthClientAuthMethod?: pulumi.Input<string>;
167
+ /**
168
+ * Specifies the client ID for the OAuth application in the external service.
169
+ */
170
+ oauthClientId: pulumi.Input<string>;
171
+ /**
172
+ * Specifies the client secret for the OAuth application in the ServiceNow instance from the previous step. The connector uses this to request an access token from the ServiceNow instance.
173
+ */
174
+ oauthClientSecret: pulumi.Input<string>;
175
+ /**
176
+ * Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
177
+ */
178
+ oauthRefreshTokenValidity?: pulumi.Input<number>;
179
+ /**
180
+ * Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
181
+ */
182
+ oauthTokenEndpoint?: pulumi.Input<string>;
183
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ApiAuthenticationIntegrationWithClientCredentials = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
10
+ *
11
+ * ## Import
12
+ *
13
+ * ```sh
14
+ * $ pulumi import snowflake:index/apiAuthenticationIntegrationWithClientCredentials:ApiAuthenticationIntegrationWithClientCredentials example "name"
15
+ * ```
16
+ */
17
+ class ApiAuthenticationIntegrationWithClientCredentials extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing ApiAuthenticationIntegrationWithClientCredentials resource's state with the given name, ID, and optional extra
20
+ * properties used to qualify the lookup.
21
+ *
22
+ * @param name The _unique_ name of the resulting resource.
23
+ * @param id The _unique_ provider ID of the resource to lookup.
24
+ * @param state Any extra arguments used during the lookup.
25
+ * @param opts Optional settings to control the behavior of the CustomResource.
26
+ */
27
+ static get(name, id, state, opts) {
28
+ return new ApiAuthenticationIntegrationWithClientCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id }));
29
+ }
30
+ /**
31
+ * Returns true if the given object is an instance of ApiAuthenticationIntegrationWithClientCredentials. This is designed to work even
32
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
33
+ */
34
+ static isInstance(obj) {
35
+ if (obj === undefined || obj === null) {
36
+ return false;
37
+ }
38
+ return obj['__pulumiType'] === ApiAuthenticationIntegrationWithClientCredentials.__pulumiType;
39
+ }
40
+ constructor(name, argsOrState, opts) {
41
+ let resourceInputs = {};
42
+ opts = opts || {};
43
+ if (opts.id) {
44
+ const state = argsOrState;
45
+ resourceInputs["comment"] = state ? state.comment : undefined;
46
+ resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
47
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
48
+ resourceInputs["name"] = state ? state.name : undefined;
49
+ resourceInputs["oauthAccessTokenValidity"] = state ? state.oauthAccessTokenValidity : undefined;
50
+ resourceInputs["oauthAllowedScopes"] = state ? state.oauthAllowedScopes : undefined;
51
+ resourceInputs["oauthClientAuthMethod"] = state ? state.oauthClientAuthMethod : undefined;
52
+ resourceInputs["oauthClientId"] = state ? state.oauthClientId : undefined;
53
+ resourceInputs["oauthClientSecret"] = state ? state.oauthClientSecret : undefined;
54
+ resourceInputs["oauthRefreshTokenValidity"] = state ? state.oauthRefreshTokenValidity : undefined;
55
+ resourceInputs["oauthTokenEndpoint"] = state ? state.oauthTokenEndpoint : undefined;
56
+ resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
57
+ }
58
+ else {
59
+ const args = argsOrState;
60
+ if ((!args || args.enabled === undefined) && !opts.urn) {
61
+ throw new Error("Missing required property 'enabled'");
62
+ }
63
+ if ((!args || args.oauthClientId === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'oauthClientId'");
65
+ }
66
+ if ((!args || args.oauthClientSecret === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'oauthClientSecret'");
68
+ }
69
+ resourceInputs["comment"] = args ? args.comment : undefined;
70
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
71
+ resourceInputs["name"] = args ? args.name : undefined;
72
+ resourceInputs["oauthAccessTokenValidity"] = args ? args.oauthAccessTokenValidity : undefined;
73
+ resourceInputs["oauthAllowedScopes"] = args ? args.oauthAllowedScopes : undefined;
74
+ resourceInputs["oauthClientAuthMethod"] = args ? args.oauthClientAuthMethod : undefined;
75
+ resourceInputs["oauthClientId"] = args ? args.oauthClientId : undefined;
76
+ resourceInputs["oauthClientSecret"] = args ? args.oauthClientSecret : undefined;
77
+ resourceInputs["oauthRefreshTokenValidity"] = args ? args.oauthRefreshTokenValidity : undefined;
78
+ resourceInputs["oauthTokenEndpoint"] = args ? args.oauthTokenEndpoint : undefined;
79
+ resourceInputs["describeOutputs"] = undefined /*out*/;
80
+ resourceInputs["showOutputs"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(ApiAuthenticationIntegrationWithClientCredentials.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+ exports.ApiAuthenticationIntegrationWithClientCredentials = ApiAuthenticationIntegrationWithClientCredentials;
87
+ /** @internal */
88
+ ApiAuthenticationIntegrationWithClientCredentials.__pulumiType = 'snowflake:index/apiAuthenticationIntegrationWithClientCredentials:ApiAuthenticationIntegrationWithClientCredentials';
89
+ //# sourceMappingURL=apiAuthenticationIntegrationWithClientCredentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiAuthenticationIntegrationWithClientCredentials.js","sourceRoot":"","sources":["../apiAuthenticationIntegrationWithClientCredentials.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,iDAAkD,SAAQ,MAAM,CAAC,cAAc;IACxF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8D,EAAE,IAAmC;QAC5J,OAAO,IAAI,iDAAiD,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxG,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,iDAAiD,CAAC,YAAY,CAAC;IAClG,CAAC;IA2DD,YAAY,IAAY,EAAE,WAA4H,EAAE,IAAmC;QACvL,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiF,CAAC;YAChG,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAA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