@pulumi/dbtcloud 1.0.2 → 1.1.0-alpha.1749649896

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.
@@ -1,90 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.PostgresSemanticLayerCredential = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Postgres credential resource. This resource is composed of a Postgres credential and a Semantic Layer configuration. It is used to create a Postgres credential for the Semantic Layer.
10
- *
11
- * ## Import
12
- *
13
- * using import blocks (requires Terraform >= 1.5)
14
- *
15
- * import {
16
- *
17
- * to = dbtcloud_postgres_semantic_layer_credential.example
18
- *
19
- * id = "credential_id"
20
- *
21
- * }
22
- *
23
- * import {
24
- *
25
- * to = dbtcloud_postgres_semantic_layer_credential.example
26
- *
27
- * id = "12345"
28
- *
29
- * }
30
- *
31
- * using the older import command
32
- *
33
- * ```sh
34
- * $ pulumi import dbtcloud:index/postgresSemanticLayerCredential:PostgresSemanticLayerCredential example "credential_id"
35
- * ```
36
- *
37
- * ```sh
38
- * $ pulumi import dbtcloud:index/postgresSemanticLayerCredential:PostgresSemanticLayerCredential example 12345
39
- * ```
40
- */
41
- class PostgresSemanticLayerCredential extends pulumi.CustomResource {
42
- /**
43
- * Get an existing PostgresSemanticLayerCredential resource's state with the given name, ID, and optional extra
44
- * properties used to qualify the lookup.
45
- *
46
- * @param name The _unique_ name of the resulting resource.
47
- * @param id The _unique_ provider ID of the resource to lookup.
48
- * @param state Any extra arguments used during the lookup.
49
- * @param opts Optional settings to control the behavior of the CustomResource.
50
- */
51
- static get(name, id, state, opts) {
52
- return new PostgresSemanticLayerCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
53
- }
54
- /**
55
- * Returns true if the given object is an instance of PostgresSemanticLayerCredential. This is designed to work even
56
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
- */
58
- static isInstance(obj) {
59
- if (obj === undefined || obj === null) {
60
- return false;
61
- }
62
- return obj['__pulumiType'] === PostgresSemanticLayerCredential.__pulumiType;
63
- }
64
- constructor(name, argsOrState, opts) {
65
- let resourceInputs = {};
66
- opts = opts || {};
67
- if (opts.id) {
68
- const state = argsOrState;
69
- resourceInputs["configuration"] = state ? state.configuration : undefined;
70
- resourceInputs["credential"] = state ? state.credential : undefined;
71
- }
72
- else {
73
- const args = argsOrState;
74
- if ((!args || args.configuration === undefined) && !opts.urn) {
75
- throw new Error("Missing required property 'configuration'");
76
- }
77
- if ((!args || args.credential === undefined) && !opts.urn) {
78
- throw new Error("Missing required property 'credential'");
79
- }
80
- resourceInputs["configuration"] = args ? args.configuration : undefined;
81
- resourceInputs["credential"] = args ? args.credential : undefined;
82
- }
83
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
- super(PostgresSemanticLayerCredential.__pulumiType, name, resourceInputs, opts);
85
- }
86
- }
87
- exports.PostgresSemanticLayerCredential = PostgresSemanticLayerCredential;
88
- /** @internal */
89
- PostgresSemanticLayerCredential.__pulumiType = 'dbtcloud:index/postgresSemanticLayerCredential:PostgresSemanticLayerCredential';
90
- //# sourceMappingURL=postgresSemanticLayerCredential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postgresSemanticLayerCredential.js","sourceRoot":"","sources":["../postgresSemanticLayerCredential.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4C,EAAE,IAAmC;QAC1I,OAAO,IAAI,+BAA+B,CAAC,I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AAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;;AAjEL,0EAkEC;AApDG,gBAAgB;AACO,4CAAY,GAAG,gFAAgF,CAAC"}
@@ -1,116 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * ## Example Usage
4
- *
5
- * ```typescript
6
- * import * as pulumi from "@pulumi/pulumi";
7
- * import * as dbtcloud from "@pulumi/dbtcloud";
8
- *
9
- * const testMapping = new dbtcloud.SemanticLayerCredentialServiceTokenMapping("test_mapping", {
10
- * semanticLayerCredentialId: test.id,
11
- * serviceTokenId: testServiceToken.id,
12
- * projectId: testProject.id,
13
- * });
14
- * ```
15
- *
16
- * ## Import
17
- *
18
- * using import blocks (requires Terraform >= 1.5)
19
- *
20
- * import {
21
- *
22
- * to = dbtcloud_semantic_layer_credential_service_token_mapping.example
23
- *
24
- * id = "id"
25
- *
26
- * }
27
- *
28
- * import {
29
- *
30
- * to = dbtcloud_semantic_layer_credential_service_token_mapping.example
31
- *
32
- * id = "12345"
33
- *
34
- * }
35
- *
36
- * using the older import command
37
- *
38
- * ```sh
39
- * $ pulumi import dbtcloud:index/semanticLayerCredentialServiceTokenMapping:SemanticLayerCredentialServiceTokenMapping example "id"
40
- * ```
41
- *
42
- * ```sh
43
- * $ pulumi import dbtcloud:index/semanticLayerCredentialServiceTokenMapping:SemanticLayerCredentialServiceTokenMapping example 12345
44
- * ```
45
- */
46
- export declare class SemanticLayerCredentialServiceTokenMapping extends pulumi.CustomResource {
47
- /**
48
- * Get an existing SemanticLayerCredentialServiceTokenMapping resource's state with the given name, ID, and optional extra
49
- * properties used to qualify the lookup.
50
- *
51
- * @param name The _unique_ name of the resulting resource.
52
- * @param id The _unique_ provider ID of the resource to lookup.
53
- * @param state Any extra arguments used during the lookup.
54
- * @param opts Optional settings to control the behavior of the CustomResource.
55
- */
56
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SemanticLayerCredentialServiceTokenMappingState, opts?: pulumi.CustomResourceOptions): SemanticLayerCredentialServiceTokenMapping;
57
- /**
58
- * Returns true if the given object is an instance of SemanticLayerCredentialServiceTokenMapping. This is designed to work even
59
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
- */
61
- static isInstance(obj: any): obj is SemanticLayerCredentialServiceTokenMapping;
62
- /**
63
- * The ID of the project to which the semantic layer credential is associated.
64
- */
65
- readonly projectId: pulumi.Output<number>;
66
- /**
67
- * The ID of the semantic layer credential to map.
68
- */
69
- readonly semanticLayerCredentialId: pulumi.Output<number>;
70
- /**
71
- * The ID of the service token to map to the semantic layer credential.
72
- */
73
- readonly serviceTokenId: pulumi.Output<number>;
74
- /**
75
- * Create a SemanticLayerCredentialServiceTokenMapping resource with the given unique name, arguments, and options.
76
- *
77
- * @param name The _unique_ name of the resource.
78
- * @param args The arguments to use to populate this resource's properties.
79
- * @param opts A bag of options that control this resource's behavior.
80
- */
81
- constructor(name: string, args: SemanticLayerCredentialServiceTokenMappingArgs, opts?: pulumi.CustomResourceOptions);
82
- }
83
- /**
84
- * Input properties used for looking up and filtering SemanticLayerCredentialServiceTokenMapping resources.
85
- */
86
- export interface SemanticLayerCredentialServiceTokenMappingState {
87
- /**
88
- * The ID of the project to which the semantic layer credential is associated.
89
- */
90
- projectId?: pulumi.Input<number>;
91
- /**
92
- * The ID of the semantic layer credential to map.
93
- */
94
- semanticLayerCredentialId?: pulumi.Input<number>;
95
- /**
96
- * The ID of the service token to map to the semantic layer credential.
97
- */
98
- serviceTokenId?: pulumi.Input<number>;
99
- }
100
- /**
101
- * The set of arguments for constructing a SemanticLayerCredentialServiceTokenMapping resource.
102
- */
103
- export interface SemanticLayerCredentialServiceTokenMappingArgs {
104
- /**
105
- * The ID of the project to which the semantic layer credential is associated.
106
- */
107
- projectId: pulumi.Input<number>;
108
- /**
109
- * The ID of the semantic layer credential to map.
110
- */
111
- semanticLayerCredentialId: pulumi.Input<number>;
112
- /**
113
- * The ID of the service token to map to the semantic layer credential.
114
- */
115
- serviceTokenId: pulumi.Input<number>;
116
- }
@@ -1,106 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.SemanticLayerCredentialServiceTokenMapping = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * ## Example Usage
10
- *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as dbtcloud from "@pulumi/dbtcloud";
14
- *
15
- * const testMapping = new dbtcloud.SemanticLayerCredentialServiceTokenMapping("test_mapping", {
16
- * semanticLayerCredentialId: test.id,
17
- * serviceTokenId: testServiceToken.id,
18
- * projectId: testProject.id,
19
- * });
20
- * ```
21
- *
22
- * ## Import
23
- *
24
- * using import blocks (requires Terraform >= 1.5)
25
- *
26
- * import {
27
- *
28
- * to = dbtcloud_semantic_layer_credential_service_token_mapping.example
29
- *
30
- * id = "id"
31
- *
32
- * }
33
- *
34
- * import {
35
- *
36
- * to = dbtcloud_semantic_layer_credential_service_token_mapping.example
37
- *
38
- * id = "12345"
39
- *
40
- * }
41
- *
42
- * using the older import command
43
- *
44
- * ```sh
45
- * $ pulumi import dbtcloud:index/semanticLayerCredentialServiceTokenMapping:SemanticLayerCredentialServiceTokenMapping example "id"
46
- * ```
47
- *
48
- * ```sh
49
- * $ pulumi import dbtcloud:index/semanticLayerCredentialServiceTokenMapping:SemanticLayerCredentialServiceTokenMapping example 12345
50
- * ```
51
- */
52
- class SemanticLayerCredentialServiceTokenMapping extends pulumi.CustomResource {
53
- /**
54
- * Get an existing SemanticLayerCredentialServiceTokenMapping resource's state with the given name, ID, and optional extra
55
- * properties used to qualify the lookup.
56
- *
57
- * @param name The _unique_ name of the resulting resource.
58
- * @param id The _unique_ provider ID of the resource to lookup.
59
- * @param state Any extra arguments used during the lookup.
60
- * @param opts Optional settings to control the behavior of the CustomResource.
61
- */
62
- static get(name, id, state, opts) {
63
- return new SemanticLayerCredentialServiceTokenMapping(name, state, Object.assign(Object.assign({}, opts), { id: id }));
64
- }
65
- /**
66
- * Returns true if the given object is an instance of SemanticLayerCredentialServiceTokenMapping. This is designed to work even
67
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
68
- */
69
- static isInstance(obj) {
70
- if (obj === undefined || obj === null) {
71
- return false;
72
- }
73
- return obj['__pulumiType'] === SemanticLayerCredentialServiceTokenMapping.__pulumiType;
74
- }
75
- constructor(name, argsOrState, opts) {
76
- let resourceInputs = {};
77
- opts = opts || {};
78
- if (opts.id) {
79
- const state = argsOrState;
80
- resourceInputs["projectId"] = state ? state.projectId : undefined;
81
- resourceInputs["semanticLayerCredentialId"] = state ? state.semanticLayerCredentialId : undefined;
82
- resourceInputs["serviceTokenId"] = state ? state.serviceTokenId : undefined;
83
- }
84
- else {
85
- const args = argsOrState;
86
- if ((!args || args.projectId === undefined) && !opts.urn) {
87
- throw new Error("Missing required property 'projectId'");
88
- }
89
- if ((!args || args.semanticLayerCredentialId === undefined) && !opts.urn) {
90
- throw new Error("Missing required property 'semanticLayerCredentialId'");
91
- }
92
- if ((!args || args.serviceTokenId === undefined) && !opts.urn) {
93
- throw new Error("Missing required property 'serviceTokenId'");
94
- }
95
- resourceInputs["projectId"] = args ? args.projectId : undefined;
96
- resourceInputs["semanticLayerCredentialId"] = args ? args.semanticLayerCredentialId : undefined;
97
- resourceInputs["serviceTokenId"] = args ? args.serviceTokenId : undefined;
98
- }
99
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
100
- super(SemanticLayerCredentialServiceTokenMapping.__pulumiType, name, resourceInputs, opts);
101
- }
102
- }
103
- exports.SemanticLayerCredentialServiceTokenMapping = SemanticLayerCredentialServiceTokenMapping;
104
- /** @internal */
105
- SemanticLayerCredentialServiceTokenMapping.__pulumiType = 'dbtcloud:index/semanticLayerCredentialServiceTokenMapping:SemanticLayerCredentialServiceTokenMapping';
106
- //# sourceMappingURL=semanticLayerCredentialServiceTokenMapping.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semanticLayerCredentialServiceTokenMapping.js","sourceRoot":"","sources":["../semanticLayerCredentialServiceTokenMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,0CAA2C,SAAQ,MAAM,CAAC,cAAc;IACjF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuD,EAAE,IAAmC;QACrJ,OAAO,IAAI,0CAA0C,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjG,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,0CAA0C,CAAC,YAAY,CAAC;IAC3F,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA8G,EAAE,IAAmC;QACzK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0E,CAAC;YACzF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CA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