@pulumi/snowflake 2.18.0-alpha.1783237205 → 2.18.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/accountParameter.d.ts +3 -3
- package/accountSessionPolicyAttachment.d.ts +0 -2
- package/accountSessionPolicyAttachment.d.ts.map +1 -1
- package/accountSessionPolicyAttachment.js +0 -2
- package/accountSessionPolicyAttachment.js.map +1 -1
- package/apiIntegration.d.ts +2 -0
- package/apiIntegration.d.ts.map +1 -1
- package/apiIntegration.js +2 -0
- package/apiIntegration.js.map +1 -1
- package/apiIntegrationAmazonApiGateway.d.ts +202 -0
- package/apiIntegrationAmazonApiGateway.d.ts.map +1 -0
- package/apiIntegrationAmazonApiGateway.js +149 -0
- package/apiIntegrationAmazonApiGateway.js.map +1 -0
- package/apiIntegrationAzureApiManagement.d.ts +202 -0
- package/apiIntegrationAzureApiManagement.d.ts.map +1 -0
- package/apiIntegrationAzureApiManagement.js +149 -0
- package/apiIntegrationAzureApiManagement.js.map +1 -0
- package/apiIntegrationExternalMcpDynamicClient.d.ts +175 -0
- package/apiIntegrationExternalMcpDynamicClient.d.ts.map +1 -0
- package/apiIntegrationExternalMcpDynamicClient.js +137 -0
- package/apiIntegrationExternalMcpDynamicClient.js.map +1 -0
- package/apiIntegrationExternalMcpOauth2.d.ts +243 -0
- package/apiIntegrationExternalMcpOauth2.d.ts.map +1 -0
- package/apiIntegrationExternalMcpOauth2.js +166 -0
- package/apiIntegrationExternalMcpOauth2.js.map +1 -0
- package/apiIntegrationGitRepositoryGithubApp.d.ts +161 -0
- package/apiIntegrationGitRepositoryGithubApp.d.ts.map +1 -0
- package/apiIntegrationGitRepositoryGithubApp.js +130 -0
- package/apiIntegrationGitRepositoryGithubApp.js.map +1 -0
- package/apiIntegrationGitRepositoryOauth2.d.ts +269 -0
- package/apiIntegrationGitRepositoryOauth2.d.ts.map +1 -0
- package/apiIntegrationGitRepositoryOauth2.js +172 -0
- package/apiIntegrationGitRepositoryOauth2.js.map +1 -0
- package/apiIntegrationGitRepositoryPrivateLink.d.ts +234 -0
- package/apiIntegrationGitRepositoryPrivateLink.d.ts.map +1 -0
- package/apiIntegrationGitRepositoryPrivateLink.js +156 -0
- package/apiIntegrationGitRepositoryPrivateLink.js.map +1 -0
- package/apiIntegrationGitRepositoryToken.d.ts +206 -0
- package/apiIntegrationGitRepositoryToken.d.ts.map +1 -0
- package/apiIntegrationGitRepositoryToken.js +145 -0
- package/apiIntegrationGitRepositoryToken.js.map +1 -0
- package/apiIntegrationGoogleCloudApiGateway.d.ts +175 -0
- package/apiIntegrationGoogleCloudApiGateway.d.ts.map +1 -0
- package/apiIntegrationGoogleCloudApiGateway.js +137 -0
- package/apiIntegrationGoogleCloudApiGateway.js.map +1 -0
- package/authenticationPolicy.d.ts +0 -2
- package/authenticationPolicy.d.ts.map +1 -1
- package/authenticationPolicy.js +0 -2
- package/authenticationPolicy.js.map +1 -1
- package/catalogIntegrationAwsGlue.d.ts +0 -2
- package/catalogIntegrationAwsGlue.d.ts.map +1 -1
- package/catalogIntegrationAwsGlue.js +0 -2
- package/catalogIntegrationAwsGlue.js.map +1 -1
- package/catalogIntegrationIcebergRest.d.ts +0 -2
- package/catalogIntegrationIcebergRest.d.ts.map +1 -1
- package/catalogIntegrationIcebergRest.js +0 -2
- package/catalogIntegrationIcebergRest.js.map +1 -1
- package/catalogIntegrationObjectStorage.d.ts +0 -2
- package/catalogIntegrationObjectStorage.d.ts.map +1 -1
- package/catalogIntegrationObjectStorage.js +0 -2
- package/catalogIntegrationObjectStorage.js.map +1 -1
- package/catalogIntegrationOpenCatalog.d.ts +0 -2
- package/catalogIntegrationOpenCatalog.d.ts.map +1 -1
- package/catalogIntegrationOpenCatalog.js +0 -2
- package/catalogIntegrationOpenCatalog.js.map +1 -1
- package/computePool.d.ts +3 -3
- package/config/vars.d.ts +2 -2
- package/cortexAgent.d.ts +3 -3
- package/currentAccount.d.ts +60 -2
- package/currentAccount.d.ts.map +1 -1
- package/currentAccount.js +10 -2
- package/currentAccount.js.map +1 -1
- package/currentOrganizationAccount.d.ts +60 -2
- package/currentOrganizationAccount.d.ts.map +1 -1
- package/currentOrganizationAccount.js +10 -2
- package/currentOrganizationAccount.js.map +1 -1
- package/database.d.ts +12 -0
- package/database.d.ts.map +1 -1
- package/database.js +2 -0
- package/database.js.map +1 -1
- package/externalVolume.d.ts +0 -2
- package/externalVolume.d.ts.map +1 -1
- package/externalVolume.js +0 -2
- package/externalVolume.js.map +1 -1
- package/functionJava.d.ts +12 -0
- package/functionJava.d.ts.map +1 -1
- package/functionJava.js +2 -0
- package/functionJava.js.map +1 -1
- package/functionJavascript.d.ts +12 -0
- package/functionJavascript.d.ts.map +1 -1
- package/functionJavascript.js +2 -0
- package/functionJavascript.js.map +1 -1
- package/functionPython.d.ts +12 -0
- package/functionPython.d.ts.map +1 -1
- package/functionPython.js +2 -0
- package/functionPython.js.map +1 -1
- package/functionScala.d.ts +12 -0
- package/functionScala.d.ts.map +1 -1
- package/functionScala.js +2 -0
- package/functionScala.js.map +1 -1
- package/functionSql.d.ts +12 -0
- package/functionSql.d.ts.map +1 -1
- package/functionSql.js +2 -0
- package/functionSql.js.map +1 -1
- package/getApiIntegrations.d.ts +118 -0
- package/getApiIntegrations.d.ts.map +1 -0
- package/getApiIntegrations.js +115 -0
- package/getApiIntegrations.js.map +1 -0
- package/getAuthenticationPolicies.d.ts +0 -4
- package/getAuthenticationPolicies.d.ts.map +1 -1
- package/getAuthenticationPolicies.js +0 -4
- package/getAuthenticationPolicies.js.map +1 -1
- package/getCatalogIntegrations.d.ts +0 -4
- package/getCatalogIntegrations.d.ts.map +1 -1
- package/getCatalogIntegrations.js +0 -4
- package/getCatalogIntegrations.js.map +1 -1
- package/getExternalVolumes.d.ts +0 -4
- package/getExternalVolumes.d.ts.map +1 -1
- package/getExternalVolumes.js +0 -4
- package/getExternalVolumes.js.map +1 -1
- package/getNotebooks.d.ts +2 -2
- package/getNotebooks.js +2 -2
- package/getPasswordPolicies.d.ts +0 -4
- package/getPasswordPolicies.d.ts.map +1 -1
- package/getPasswordPolicies.js +0 -4
- package/getPasswordPolicies.js.map +1 -1
- package/getSessionPolicies.d.ts +0 -4
- package/getSessionPolicies.d.ts.map +1 -1
- package/getSessionPolicies.js +0 -4
- package/getSessionPolicies.js.map +1 -1
- package/getStorageIntegrations.d.ts +0 -4
- package/getStorageIntegrations.d.ts.map +1 -1
- package/getStorageIntegrations.js +0 -4
- package/getStorageIntegrations.js.map +1 -1
- package/getStorageLifecyclePolicies.d.ts +75 -0
- package/getStorageLifecyclePolicies.d.ts.map +1 -0
- package/getStorageLifecyclePolicies.js +61 -0
- package/getStorageLifecyclePolicies.js.map +1 -0
- package/grantOwnership.d.ts +0 -2
- package/grantOwnership.d.ts.map +1 -1
- package/grantOwnership.js +0 -2
- package/grantOwnership.js.map +1 -1
- package/icebergTableFromDeltaFiles.d.ts +222 -0
- package/icebergTableFromDeltaFiles.d.ts.map +1 -0
- package/icebergTableFromDeltaFiles.js +148 -0
- package/icebergTableFromDeltaFiles.js.map +1 -0
- package/icebergTableFromFiles.d.ts +212 -0
- package/icebergTableFromFiles.d.ts.map +1 -0
- package/icebergTableFromFiles.js +148 -0
- package/icebergTableFromFiles.js.map +1 -0
- package/index.d.ts +48 -0
- package/index.d.ts.map +1 -1
- package/index.js +82 -5
- package/index.js.map +1 -1
- package/legacyServiceUser.d.ts +12 -0
- package/legacyServiceUser.d.ts.map +1 -1
- package/legacyServiceUser.js +2 -0
- package/legacyServiceUser.js.map +1 -1
- package/listing.d.ts +3 -3
- package/notebook.d.ts +1 -1
- package/notebook.js +1 -1
- package/package.json +2 -2
- package/passwordPolicy.d.ts +0 -2
- package/passwordPolicy.d.ts.map +1 -1
- package/passwordPolicy.js +0 -2
- package/passwordPolicy.js.map +1 -1
- package/postgresInstance.d.ts +250 -0
- package/postgresInstance.d.ts.map +1 -0
- package/postgresInstance.js +165 -0
- package/postgresInstance.js.map +1 -0
- package/procedureJava.d.ts +12 -0
- package/procedureJava.d.ts.map +1 -1
- package/procedureJava.js +2 -0
- package/procedureJava.js.map +1 -1
- package/procedureJavascript.d.ts +12 -0
- package/procedureJavascript.d.ts.map +1 -1
- package/procedureJavascript.js +2 -0
- package/procedureJavascript.js.map +1 -1
- package/procedurePython.d.ts +12 -0
- package/procedurePython.d.ts.map +1 -1
- package/procedurePython.js +2 -0
- package/procedurePython.js.map +1 -1
- package/procedureScala.d.ts +12 -0
- package/procedureScala.d.ts.map +1 -1
- package/procedureScala.js +2 -0
- package/procedureScala.js.map +1 -1
- package/procedureSql.d.ts +12 -0
- package/procedureSql.d.ts.map +1 -1
- package/procedureSql.js +2 -0
- package/procedureSql.js.map +1 -1
- package/provider.d.ts +2 -2
- package/schema.d.ts +12 -0
- package/schema.d.ts.map +1 -1
- package/schema.js +2 -0
- package/schema.js.map +1 -1
- package/secondaryDatabase.d.ts +12 -0
- package/secondaryDatabase.d.ts.map +1 -1
- package/secondaryDatabase.js +2 -0
- package/secondaryDatabase.js.map +1 -1
- package/serviceUser.d.ts +12 -0
- package/serviceUser.d.ts.map +1 -1
- package/serviceUser.js +2 -0
- package/serviceUser.js.map +1 -1
- package/sessionPolicy.d.ts +0 -2
- package/sessionPolicy.d.ts.map +1 -1
- package/sessionPolicy.js +0 -2
- package/sessionPolicy.js.map +1 -1
- package/sharedDatabase.d.ts +12 -0
- package/sharedDatabase.d.ts.map +1 -1
- package/sharedDatabase.js +2 -0
- package/sharedDatabase.js.map +1 -1
- package/stageExternalAzure.d.ts +0 -2
- package/stageExternalAzure.d.ts.map +1 -1
- package/stageExternalAzure.js +0 -2
- package/stageExternalAzure.js.map +1 -1
- package/stageExternalGcs.d.ts +0 -2
- package/stageExternalGcs.d.ts.map +1 -1
- package/stageExternalGcs.js +0 -2
- package/stageExternalGcs.js.map +1 -1
- package/stageExternalS3.d.ts +0 -2
- package/stageExternalS3.d.ts.map +1 -1
- package/stageExternalS3.js +0 -2
- package/stageExternalS3.js.map +1 -1
- package/stageExternalS3Compatible.d.ts +0 -2
- package/stageExternalS3Compatible.d.ts.map +1 -1
- package/stageExternalS3Compatible.js +0 -2
- package/stageExternalS3Compatible.js.map +1 -1
- package/stageInternal.d.ts +0 -2
- package/stageInternal.d.ts.map +1 -1
- package/stageInternal.js +0 -2
- package/stageInternal.js.map +1 -1
- package/storageIntegrationAws.d.ts +0 -2
- package/storageIntegrationAws.d.ts.map +1 -1
- package/storageIntegrationAws.js +0 -2
- package/storageIntegrationAws.js.map +1 -1
- package/storageIntegrationAzure.d.ts +0 -2
- package/storageIntegrationAzure.d.ts.map +1 -1
- package/storageIntegrationAzure.js +0 -2
- package/storageIntegrationAzure.js.map +1 -1
- package/storageIntegrationGcs.d.ts +0 -2
- package/storageIntegrationGcs.d.ts.map +1 -1
- package/storageIntegrationGcs.js +0 -2
- package/storageIntegrationGcs.js.map +1 -1
- package/storageLifecyclePolicy.d.ts +214 -0
- package/storageLifecyclePolicy.d.ts.map +1 -0
- package/storageLifecyclePolicy.js +159 -0
- package/storageLifecyclePolicy.js.map +1 -0
- package/tableStorageLifecyclePolicyAttachment.d.ts +154 -0
- package/tableStorageLifecyclePolicyAttachment.d.ts.map +1 -0
- package/tableStorageLifecyclePolicyAttachment.js +159 -0
- package/tableStorageLifecyclePolicyAttachment.js.map +1 -0
- package/tagAssociation.d.ts +5 -3
- package/tagAssociation.d.ts.map +1 -1
- package/tagAssociation.js +2 -0
- package/tagAssociation.js.map +1 -1
- package/task.d.ts +15 -3
- package/task.d.ts.map +1 -1
- package/task.js +2 -0
- package/task.js.map +1 -1
- package/types/input.d.ts +546 -6
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +647 -6
- package/types/output.d.ts.map +1 -1
- package/user.d.ts +12 -0
- package/user.d.ts.map +1 -1
- package/user.js +2 -0
- package/user.js.map +1 -1
- package/userSessionPolicyAttachment.d.ts +0 -2
- package/userSessionPolicyAttachment.d.ts.map +1 -1
- package/userSessionPolicyAttachment.js +0 -2
- package/userSessionPolicyAttachment.js.map +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ApiIntegrationGitRepositoryOauth2 = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
33
|
+
*
|
|
34
|
+
* Resource used to manage API integration Git Repository OAuth2 objects. For more information, check [api integration documentation](https://docs.snowflake.com/en/sql-reference/sql/create-api-integration).
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
|
|
39
|
+
* <!-- TODO(SNOW-1634854): include an example showing both methods-->
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
44
|
+
*
|
|
45
|
+
* // basic resource
|
|
46
|
+
* const basic = new snowflake.ApiIntegrationGitRepositoryOauth2("basic", {
|
|
47
|
+
* name: "git_repository_oauth2_integration",
|
|
48
|
+
* oauthAuthorizationEndpoint: "https://gitlab.com/oauth/authorize",
|
|
49
|
+
* oauthTokenEndpoint: "https://gitlab.com/oauth/token",
|
|
50
|
+
* oauthClientId: "my-client-id",
|
|
51
|
+
* oauthClientSecret: "my-client-secret",
|
|
52
|
+
* apiAllowedPrefixes: ["https://gitlab.com/my-org/"],
|
|
53
|
+
* enabled: true,
|
|
54
|
+
* });
|
|
55
|
+
* // complete resource
|
|
56
|
+
* const complete = new snowflake.ApiIntegrationGitRepositoryOauth2("complete", {
|
|
57
|
+
* name: "git_repository_oauth2_integration_complete",
|
|
58
|
+
* oauthAuthorizationEndpoint: "https://gitlab.com/oauth/authorize",
|
|
59
|
+
* oauthTokenEndpoint: "https://gitlab.com/oauth/token",
|
|
60
|
+
* oauthClientId: "my-client-id",
|
|
61
|
+
* oauthClientSecret: "my-client-secret",
|
|
62
|
+
* oauthAccessTokenValidity: 3600,
|
|
63
|
+
* oauthRefreshTokenValidity: 86400,
|
|
64
|
+
* oauthAllowedScopes: ["read_repository"],
|
|
65
|
+
* oauthUsername: "my-git-user",
|
|
66
|
+
* apiAllowedPrefixes: ["https://gitlab.com/my-org/"],
|
|
67
|
+
* apiBlockedPrefixes: ["https://gitlab.com/my-org/private-repo/"],
|
|
68
|
+
* enabled: true,
|
|
69
|
+
* comment: "Example Git Repository OAuth2 integration",
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* > **Note** If a field has a default value, it is shown next to the type in the schema.
|
|
74
|
+
*
|
|
75
|
+
* ## Import
|
|
76
|
+
*
|
|
77
|
+
* ```sh
|
|
78
|
+
* $ pulumi import snowflake:index/apiIntegrationGitRepositoryOauth2:ApiIntegrationGitRepositoryOauth2 example '"<name>"'
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
class ApiIntegrationGitRepositoryOauth2 extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing ApiIntegrationGitRepositoryOauth2 resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name, id, state, opts) {
|
|
92
|
+
return new ApiIntegrationGitRepositoryOauth2(name, state, { ...opts, id: id });
|
|
93
|
+
}
|
|
94
|
+
/** @internal */
|
|
95
|
+
static __pulumiType = 'snowflake:index/apiIntegrationGitRepositoryOauth2:ApiIntegrationGitRepositoryOauth2';
|
|
96
|
+
/**
|
|
97
|
+
* Returns true if the given object is an instance of ApiIntegrationGitRepositoryOauth2. This is designed to work even
|
|
98
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
99
|
+
*/
|
|
100
|
+
static isInstance(obj) {
|
|
101
|
+
if (obj === undefined || obj === null) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
return obj['__pulumiType'] === ApiIntegrationGitRepositoryOauth2.__pulumiType;
|
|
105
|
+
}
|
|
106
|
+
constructor(name, argsOrState, opts) {
|
|
107
|
+
let resourceInputs = {};
|
|
108
|
+
opts = opts || {};
|
|
109
|
+
if (opts.id) {
|
|
110
|
+
const state = argsOrState;
|
|
111
|
+
resourceInputs["apiAllowedPrefixes"] = state?.apiAllowedPrefixes;
|
|
112
|
+
resourceInputs["apiBlockedPrefixes"] = state?.apiBlockedPrefixes;
|
|
113
|
+
resourceInputs["comment"] = state?.comment;
|
|
114
|
+
resourceInputs["describeOutputs"] = state?.describeOutputs;
|
|
115
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
116
|
+
resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
|
|
117
|
+
resourceInputs["name"] = state?.name;
|
|
118
|
+
resourceInputs["oauthAccessTokenValidity"] = state?.oauthAccessTokenValidity;
|
|
119
|
+
resourceInputs["oauthAllowedScopes"] = state?.oauthAllowedScopes;
|
|
120
|
+
resourceInputs["oauthAuthorizationEndpoint"] = state?.oauthAuthorizationEndpoint;
|
|
121
|
+
resourceInputs["oauthClientId"] = state?.oauthClientId;
|
|
122
|
+
resourceInputs["oauthClientSecret"] = state?.oauthClientSecret;
|
|
123
|
+
resourceInputs["oauthRefreshTokenValidity"] = state?.oauthRefreshTokenValidity;
|
|
124
|
+
resourceInputs["oauthTokenEndpoint"] = state?.oauthTokenEndpoint;
|
|
125
|
+
resourceInputs["oauthUsername"] = state?.oauthUsername;
|
|
126
|
+
resourceInputs["showOutputs"] = state?.showOutputs;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
const args = argsOrState;
|
|
130
|
+
if (args?.apiAllowedPrefixes === undefined && !opts.urn) {
|
|
131
|
+
throw new Error("Missing required property 'apiAllowedPrefixes'");
|
|
132
|
+
}
|
|
133
|
+
if (args?.enabled === undefined && !opts.urn) {
|
|
134
|
+
throw new Error("Missing required property 'enabled'");
|
|
135
|
+
}
|
|
136
|
+
if (args?.oauthAuthorizationEndpoint === undefined && !opts.urn) {
|
|
137
|
+
throw new Error("Missing required property 'oauthAuthorizationEndpoint'");
|
|
138
|
+
}
|
|
139
|
+
if (args?.oauthClientId === undefined && !opts.urn) {
|
|
140
|
+
throw new Error("Missing required property 'oauthClientId'");
|
|
141
|
+
}
|
|
142
|
+
if (args?.oauthClientSecret === undefined && !opts.urn) {
|
|
143
|
+
throw new Error("Missing required property 'oauthClientSecret'");
|
|
144
|
+
}
|
|
145
|
+
if (args?.oauthTokenEndpoint === undefined && !opts.urn) {
|
|
146
|
+
throw new Error("Missing required property 'oauthTokenEndpoint'");
|
|
147
|
+
}
|
|
148
|
+
resourceInputs["apiAllowedPrefixes"] = args?.apiAllowedPrefixes;
|
|
149
|
+
resourceInputs["apiBlockedPrefixes"] = args?.apiBlockedPrefixes;
|
|
150
|
+
resourceInputs["comment"] = args?.comment;
|
|
151
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
152
|
+
resourceInputs["name"] = args?.name;
|
|
153
|
+
resourceInputs["oauthAccessTokenValidity"] = args?.oauthAccessTokenValidity;
|
|
154
|
+
resourceInputs["oauthAllowedScopes"] = args?.oauthAllowedScopes;
|
|
155
|
+
resourceInputs["oauthAuthorizationEndpoint"] = args?.oauthAuthorizationEndpoint;
|
|
156
|
+
resourceInputs["oauthClientId"] = args?.oauthClientId;
|
|
157
|
+
resourceInputs["oauthClientSecret"] = args?.oauthClientSecret ? pulumi.secret(args.oauthClientSecret) : undefined;
|
|
158
|
+
resourceInputs["oauthRefreshTokenValidity"] = args?.oauthRefreshTokenValidity;
|
|
159
|
+
resourceInputs["oauthTokenEndpoint"] = args?.oauthTokenEndpoint;
|
|
160
|
+
resourceInputs["oauthUsername"] = args?.oauthUsername;
|
|
161
|
+
resourceInputs["describeOutputs"] = undefined /*out*/;
|
|
162
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
163
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
164
|
+
}
|
|
165
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
166
|
+
const secretOpts = { additionalSecretOutputs: ["oauthClientSecret"] };
|
|
167
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
168
|
+
super(ApiIntegrationGitRepositoryOauth2.__pulumiType, name, resourceInputs, opts);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
exports.ApiIntegrationGitRepositoryOauth2 = ApiIntegrationGitRepositoryOauth2;
|
|
172
|
+
//# sourceMappingURL=apiIntegrationGitRepositoryOauth2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiIntegrationGitRepositoryOauth2.js","sourceRoot":"","sources":["../apiIntegrationGitRepositoryOauth2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,iCAAkC,SAAQ,MAAM,CAAC,cAAc;IACxE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8C,EAAE,IAAmC;QAC5I,OAAO,IAAI,iCAAiC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,qFAAqF,CAAC;IAE5H;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO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|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
6
|
+
*
|
|
7
|
+
* Resource used to manage API integration for git HTTPS API via a private link endpoint. For more information, check [api integration documentation](https://docs.snowflake.com/en/sql-reference/sql/create-api-integration).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
|
|
12
|
+
* <!-- TODO(SNOW-1634854): include an example showing both methods-->
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
17
|
+
*
|
|
18
|
+
* // basic resource - no authentication secrets (none allowed)
|
|
19
|
+
* const basic = new snowflake.ApiIntegrationGitRepositoryPrivateLink("basic", {
|
|
20
|
+
* name: "git_repository_private_link_integration",
|
|
21
|
+
* usePrivatelinkEndpoint: true,
|
|
22
|
+
* noAllowedAuthenticationSecrets: true,
|
|
23
|
+
* apiAllowedPrefixes: ["https://github.example.internal/my-org/"],
|
|
24
|
+
* enabled: true,
|
|
25
|
+
* });
|
|
26
|
+
* // with specific allowed secrets
|
|
27
|
+
* const withSecrets = new snowflake.ApiIntegrationGitRepositoryPrivateLink("with_secrets", {
|
|
28
|
+
* name: "git_repository_private_link_integration_secrets",
|
|
29
|
+
* usePrivatelinkEndpoint: true,
|
|
30
|
+
* allowedAuthenticationSecrets: ["my_db.my_schema.my_secret"],
|
|
31
|
+
* apiAllowedPrefixes: ["https://github.example.internal/my-org/"],
|
|
32
|
+
* enabled: true,
|
|
33
|
+
* });
|
|
34
|
+
* // complete resource - all secrets allowed, with TLS certificates
|
|
35
|
+
* const complete = new snowflake.ApiIntegrationGitRepositoryPrivateLink("complete", {
|
|
36
|
+
* name: "git_repository_private_link_integration_complete",
|
|
37
|
+
* usePrivatelinkEndpoint: true,
|
|
38
|
+
* allAllowedAuthenticationSecrets: true,
|
|
39
|
+
* tlsTrustedCertificates: ["my_db.my_schema.my_cert_secret"],
|
|
40
|
+
* apiAllowedPrefixes: ["https://github.example.internal/my-org/"],
|
|
41
|
+
* apiBlockedPrefixes: ["https://github.example.internal/my-org/private-repo/"],
|
|
42
|
+
* enabled: true,
|
|
43
|
+
* comment: "Example Git Repository Private Link integration",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* > **Note** If a field has a default value, it is shown next to the type in the schema.
|
|
48
|
+
*
|
|
49
|
+
* ## Import
|
|
50
|
+
*
|
|
51
|
+
* ```sh
|
|
52
|
+
* $ pulumi import snowflake:index/apiIntegrationGitRepositoryPrivateLink:ApiIntegrationGitRepositoryPrivateLink example '"<name>"'
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare class ApiIntegrationGitRepositoryPrivateLink extends pulumi.CustomResource {
|
|
56
|
+
/**
|
|
57
|
+
* Get an existing ApiIntegrationGitRepositoryPrivateLink resource's state with the given name, ID, and optional extra
|
|
58
|
+
* properties used to qualify the lookup.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resulting resource.
|
|
61
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
62
|
+
* @param state Any extra arguments used during the lookup.
|
|
63
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
|
+
*/
|
|
65
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiIntegrationGitRepositoryPrivateLinkState, opts?: pulumi.CustomResourceOptions): ApiIntegrationGitRepositoryPrivateLink;
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of ApiIntegrationGitRepositoryPrivateLink. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj: any): obj is ApiIntegrationGitRepositoryPrivateLink;
|
|
71
|
+
/**
|
|
72
|
+
* When set to true, all authentication secrets are allowed to be used when authenticating to the git repository. Conflicts with `noAllowedAuthenticationSecrets` and `allowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
73
|
+
*/
|
|
74
|
+
readonly allAllowedAuthenticationSecrets: pulumi.Output<boolean | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* A list of fully-qualified secret identifiers (database.schema.secret) allowed to be used when authenticating to the git repository. Conflicts with `allAllowedAuthenticationSecrets` and `noAllowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
77
|
+
*/
|
|
78
|
+
readonly allowedAuthenticationSecrets: pulumi.Output<string[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
|
|
81
|
+
*/
|
|
82
|
+
readonly apiAllowedPrefixes: pulumi.Output<string[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
|
|
85
|
+
*/
|
|
86
|
+
readonly apiBlockedPrefixes: pulumi.Output<string[] | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies a comment for the integration.
|
|
89
|
+
*/
|
|
90
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Outputs the result of `DESCRIBE API INTEGRATION` for the given integration.
|
|
93
|
+
*/
|
|
94
|
+
readonly describeOutputs: pulumi.Output<outputs.ApiIntegrationGitRepositoryPrivateLinkDescribeOutput[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies whether this API integration is enabled or disabled.
|
|
97
|
+
*/
|
|
98
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
101
|
+
*/
|
|
102
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
105
|
+
*/
|
|
106
|
+
readonly name: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* When set to true, no authentication secrets are allowed to be used when authenticating to the git repository. Conflicts with `allAllowedAuthenticationSecrets` and `allowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
109
|
+
*/
|
|
110
|
+
readonly noAllowedAuthenticationSecrets: pulumi.Output<boolean | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Outputs the result of `SHOW API INTEGRATIONS` for the given integration.
|
|
113
|
+
*/
|
|
114
|
+
readonly showOutputs: pulumi.Output<outputs.ApiIntegrationGitRepositoryPrivateLinkShowOutput[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Specifies secrets containing self-signed certificates to be used when authenticating with a Git repository server over private link. Only needed when the certificate is self-signed rather than signed by a certificate authority. Each entry must be a fully-qualified name of a Snowflake secret of type generic string whose value is Base64-encoded certificate data.
|
|
117
|
+
*/
|
|
118
|
+
readonly tlsTrustedCertificates: pulumi.Output<string[] | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies whether to use the private link endpoint for the git repository. When set to true, Snowflake uses the VNet-injected endpoint for the git repository.
|
|
121
|
+
*/
|
|
122
|
+
readonly usePrivatelinkEndpoint: pulumi.Output<boolean>;
|
|
123
|
+
/**
|
|
124
|
+
* Create a ApiIntegrationGitRepositoryPrivateLink resource with the given unique name, arguments, and options.
|
|
125
|
+
*
|
|
126
|
+
* @param name The _unique_ name of the resource.
|
|
127
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
128
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
129
|
+
*/
|
|
130
|
+
constructor(name: string, args: ApiIntegrationGitRepositoryPrivateLinkArgs, opts?: pulumi.CustomResourceOptions);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Input properties used for looking up and filtering ApiIntegrationGitRepositoryPrivateLink resources.
|
|
134
|
+
*/
|
|
135
|
+
export interface ApiIntegrationGitRepositoryPrivateLinkState {
|
|
136
|
+
/**
|
|
137
|
+
* When set to true, all authentication secrets are allowed to be used when authenticating to the git repository. Conflicts with `noAllowedAuthenticationSecrets` and `allowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
138
|
+
*/
|
|
139
|
+
allAllowedAuthenticationSecrets?: pulumi.Input<boolean | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* A list of fully-qualified secret identifiers (database.schema.secret) allowed to be used when authenticating to the git repository. Conflicts with `allAllowedAuthenticationSecrets` and `noAllowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
142
|
+
*/
|
|
143
|
+
allowedAuthenticationSecrets?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
|
|
146
|
+
*/
|
|
147
|
+
apiAllowedPrefixes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
|
|
150
|
+
*/
|
|
151
|
+
apiBlockedPrefixes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* Specifies a comment for the integration.
|
|
154
|
+
*/
|
|
155
|
+
comment?: pulumi.Input<string | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* Outputs the result of `DESCRIBE API INTEGRATION` for the given integration.
|
|
158
|
+
*/
|
|
159
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.ApiIntegrationGitRepositoryPrivateLinkDescribeOutput>[] | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* Specifies whether this API integration is enabled or disabled.
|
|
162
|
+
*/
|
|
163
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
164
|
+
/**
|
|
165
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
166
|
+
*/
|
|
167
|
+
fullyQualifiedName?: pulumi.Input<string | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
170
|
+
*/
|
|
171
|
+
name?: pulumi.Input<string | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* When set to true, no authentication secrets are allowed to be used when authenticating to the git repository. Conflicts with `allAllowedAuthenticationSecrets` and `allowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
174
|
+
*/
|
|
175
|
+
noAllowedAuthenticationSecrets?: pulumi.Input<boolean | undefined>;
|
|
176
|
+
/**
|
|
177
|
+
* Outputs the result of `SHOW API INTEGRATIONS` for the given integration.
|
|
178
|
+
*/
|
|
179
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.ApiIntegrationGitRepositoryPrivateLinkShowOutput>[] | undefined>;
|
|
180
|
+
/**
|
|
181
|
+
* Specifies secrets containing self-signed certificates to be used when authenticating with a Git repository server over private link. Only needed when the certificate is self-signed rather than signed by a certificate authority. Each entry must be a fully-qualified name of a Snowflake secret of type generic string whose value is Base64-encoded certificate data.
|
|
182
|
+
*/
|
|
183
|
+
tlsTrustedCertificates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* Specifies whether to use the private link endpoint for the git repository. When set to true, Snowflake uses the VNet-injected endpoint for the git repository.
|
|
186
|
+
*/
|
|
187
|
+
usePrivatelinkEndpoint?: pulumi.Input<boolean | undefined>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The set of arguments for constructing a ApiIntegrationGitRepositoryPrivateLink resource.
|
|
191
|
+
*/
|
|
192
|
+
export interface ApiIntegrationGitRepositoryPrivateLinkArgs {
|
|
193
|
+
/**
|
|
194
|
+
* When set to true, all authentication secrets are allowed to be used when authenticating to the git repository. Conflicts with `noAllowedAuthenticationSecrets` and `allowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
195
|
+
*/
|
|
196
|
+
allAllowedAuthenticationSecrets?: pulumi.Input<boolean | undefined>;
|
|
197
|
+
/**
|
|
198
|
+
* A list of fully-qualified secret identifiers (database.schema.secret) allowed to be used when authenticating to the git repository. Conflicts with `allAllowedAuthenticationSecrets` and `noAllowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
199
|
+
*/
|
|
200
|
+
allowedAuthenticationSecrets?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
201
|
+
/**
|
|
202
|
+
* Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
|
|
203
|
+
*/
|
|
204
|
+
apiAllowedPrefixes: pulumi.Input<pulumi.Input<string>[]>;
|
|
205
|
+
/**
|
|
206
|
+
* Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
|
|
207
|
+
*/
|
|
208
|
+
apiBlockedPrefixes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
209
|
+
/**
|
|
210
|
+
* Specifies a comment for the integration.
|
|
211
|
+
*/
|
|
212
|
+
comment?: pulumi.Input<string | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* Specifies whether this API integration is enabled or disabled.
|
|
215
|
+
*/
|
|
216
|
+
enabled: pulumi.Input<boolean>;
|
|
217
|
+
/**
|
|
218
|
+
* Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
219
|
+
*/
|
|
220
|
+
name?: pulumi.Input<string | undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* When set to true, no authentication secrets are allowed to be used when authenticating to the git repository. Conflicts with `allAllowedAuthenticationSecrets` and `allowedAuthenticationSecrets`. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
|
|
223
|
+
*/
|
|
224
|
+
noAllowedAuthenticationSecrets?: pulumi.Input<boolean | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Specifies secrets containing self-signed certificates to be used when authenticating with a Git repository server over private link. Only needed when the certificate is self-signed rather than signed by a certificate authority. Each entry must be a fully-qualified name of a Snowflake secret of type generic string whose value is Base64-encoded certificate data.
|
|
227
|
+
*/
|
|
228
|
+
tlsTrustedCertificates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* Specifies whether to use the private link endpoint for the git repository. When set to true, Snowflake uses the VNet-injected endpoint for the git repository.
|
|
231
|
+
*/
|
|
232
|
+
usePrivatelinkEndpoint: pulumi.Input<boolean>;
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=apiIntegrationGitRepositoryPrivateLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiIntegrationGitRepositoryPrivateLink.d.ts","sourceRoot":"","sources":["../apiIntegrationGitRepositoryPrivateLink.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CA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G,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ApiIntegrationGitRepositoryPrivateLink = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
33
|
+
*
|
|
34
|
+
* Resource used to manage API integration for git HTTPS API via a private link endpoint. For more information, check [api integration documentation](https://docs.snowflake.com/en/sql-reference/sql/create-api-integration).
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
|
|
39
|
+
* <!-- TODO(SNOW-1634854): include an example showing both methods-->
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
44
|
+
*
|
|
45
|
+
* // basic resource - no authentication secrets (none allowed)
|
|
46
|
+
* const basic = new snowflake.ApiIntegrationGitRepositoryPrivateLink("basic", {
|
|
47
|
+
* name: "git_repository_private_link_integration",
|
|
48
|
+
* usePrivatelinkEndpoint: true,
|
|
49
|
+
* noAllowedAuthenticationSecrets: true,
|
|
50
|
+
* apiAllowedPrefixes: ["https://github.example.internal/my-org/"],
|
|
51
|
+
* enabled: true,
|
|
52
|
+
* });
|
|
53
|
+
* // with specific allowed secrets
|
|
54
|
+
* const withSecrets = new snowflake.ApiIntegrationGitRepositoryPrivateLink("with_secrets", {
|
|
55
|
+
* name: "git_repository_private_link_integration_secrets",
|
|
56
|
+
* usePrivatelinkEndpoint: true,
|
|
57
|
+
* allowedAuthenticationSecrets: ["my_db.my_schema.my_secret"],
|
|
58
|
+
* apiAllowedPrefixes: ["https://github.example.internal/my-org/"],
|
|
59
|
+
* enabled: true,
|
|
60
|
+
* });
|
|
61
|
+
* // complete resource - all secrets allowed, with TLS certificates
|
|
62
|
+
* const complete = new snowflake.ApiIntegrationGitRepositoryPrivateLink("complete", {
|
|
63
|
+
* name: "git_repository_private_link_integration_complete",
|
|
64
|
+
* usePrivatelinkEndpoint: true,
|
|
65
|
+
* allAllowedAuthenticationSecrets: true,
|
|
66
|
+
* tlsTrustedCertificates: ["my_db.my_schema.my_cert_secret"],
|
|
67
|
+
* apiAllowedPrefixes: ["https://github.example.internal/my-org/"],
|
|
68
|
+
* apiBlockedPrefixes: ["https://github.example.internal/my-org/private-repo/"],
|
|
69
|
+
* enabled: true,
|
|
70
|
+
* comment: "Example Git Repository Private Link integration",
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* > **Note** If a field has a default value, it is shown next to the type in the schema.
|
|
75
|
+
*
|
|
76
|
+
* ## Import
|
|
77
|
+
*
|
|
78
|
+
* ```sh
|
|
79
|
+
* $ pulumi import snowflake:index/apiIntegrationGitRepositoryPrivateLink:ApiIntegrationGitRepositoryPrivateLink example '"<name>"'
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
class ApiIntegrationGitRepositoryPrivateLink extends pulumi.CustomResource {
|
|
83
|
+
/**
|
|
84
|
+
* Get an existing ApiIntegrationGitRepositoryPrivateLink 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 ApiIntegrationGitRepositoryPrivateLink(name, state, { ...opts, id: id });
|
|
94
|
+
}
|
|
95
|
+
/** @internal */
|
|
96
|
+
static __pulumiType = 'snowflake:index/apiIntegrationGitRepositoryPrivateLink:ApiIntegrationGitRepositoryPrivateLink';
|
|
97
|
+
/**
|
|
98
|
+
* Returns true if the given object is an instance of ApiIntegrationGitRepositoryPrivateLink. This is designed to work even
|
|
99
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
100
|
+
*/
|
|
101
|
+
static isInstance(obj) {
|
|
102
|
+
if (obj === undefined || obj === null) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return obj['__pulumiType'] === ApiIntegrationGitRepositoryPrivateLink.__pulumiType;
|
|
106
|
+
}
|
|
107
|
+
constructor(name, argsOrState, opts) {
|
|
108
|
+
let resourceInputs = {};
|
|
109
|
+
opts = opts || {};
|
|
110
|
+
if (opts.id) {
|
|
111
|
+
const state = argsOrState;
|
|
112
|
+
resourceInputs["allAllowedAuthenticationSecrets"] = state?.allAllowedAuthenticationSecrets;
|
|
113
|
+
resourceInputs["allowedAuthenticationSecrets"] = state?.allowedAuthenticationSecrets;
|
|
114
|
+
resourceInputs["apiAllowedPrefixes"] = state?.apiAllowedPrefixes;
|
|
115
|
+
resourceInputs["apiBlockedPrefixes"] = state?.apiBlockedPrefixes;
|
|
116
|
+
resourceInputs["comment"] = state?.comment;
|
|
117
|
+
resourceInputs["describeOutputs"] = state?.describeOutputs;
|
|
118
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
119
|
+
resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
|
|
120
|
+
resourceInputs["name"] = state?.name;
|
|
121
|
+
resourceInputs["noAllowedAuthenticationSecrets"] = state?.noAllowedAuthenticationSecrets;
|
|
122
|
+
resourceInputs["showOutputs"] = state?.showOutputs;
|
|
123
|
+
resourceInputs["tlsTrustedCertificates"] = state?.tlsTrustedCertificates;
|
|
124
|
+
resourceInputs["usePrivatelinkEndpoint"] = state?.usePrivatelinkEndpoint;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const args = argsOrState;
|
|
128
|
+
if (args?.apiAllowedPrefixes === undefined && !opts.urn) {
|
|
129
|
+
throw new Error("Missing required property 'apiAllowedPrefixes'");
|
|
130
|
+
}
|
|
131
|
+
if (args?.enabled === undefined && !opts.urn) {
|
|
132
|
+
throw new Error("Missing required property 'enabled'");
|
|
133
|
+
}
|
|
134
|
+
if (args?.usePrivatelinkEndpoint === undefined && !opts.urn) {
|
|
135
|
+
throw new Error("Missing required property 'usePrivatelinkEndpoint'");
|
|
136
|
+
}
|
|
137
|
+
resourceInputs["allAllowedAuthenticationSecrets"] = args?.allAllowedAuthenticationSecrets;
|
|
138
|
+
resourceInputs["allowedAuthenticationSecrets"] = args?.allowedAuthenticationSecrets;
|
|
139
|
+
resourceInputs["apiAllowedPrefixes"] = args?.apiAllowedPrefixes;
|
|
140
|
+
resourceInputs["apiBlockedPrefixes"] = args?.apiBlockedPrefixes;
|
|
141
|
+
resourceInputs["comment"] = args?.comment;
|
|
142
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
143
|
+
resourceInputs["name"] = args?.name;
|
|
144
|
+
resourceInputs["noAllowedAuthenticationSecrets"] = args?.noAllowedAuthenticationSecrets;
|
|
145
|
+
resourceInputs["tlsTrustedCertificates"] = args?.tlsTrustedCertificates;
|
|
146
|
+
resourceInputs["usePrivatelinkEndpoint"] = args?.usePrivatelinkEndpoint;
|
|
147
|
+
resourceInputs["describeOutputs"] = undefined /*out*/;
|
|
148
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
149
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
150
|
+
}
|
|
151
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
152
|
+
super(ApiIntegrationGitRepositoryPrivateLink.__pulumiType, name, resourceInputs, opts);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.ApiIntegrationGitRepositoryPrivateLink = ApiIntegrationGitRepositoryPrivateLink;
|
|
156
|
+
//# sourceMappingURL=apiIntegrationGitRepositoryPrivateLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiIntegrationGitRepositoryPrivateLink.js","sourceRoot":"","sources":["../apiIntegrationGitRepositoryPrivateLink.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,sCAAuC,SAAQ,MAAM,CAAC,cAAc;IAC7E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmD,EAAE,IAAmC;QACjJ,OAAO,IAAI,sCAAsC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,+FAA+F,CAAC;IAEtI;;;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,C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