@atensec/pulumi-thoth 0.1.1 → 0.1.3
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/config/vars.ts +22 -0
- package/package.json +1 -1
- package/provider.ts +19 -1
package/config/vars.ts
CHANGED
|
@@ -62,6 +62,28 @@ Object.defineProperty(exports, "insecureSkipTlsVerify", {
|
|
|
62
62
|
enumerable: true,
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Organization API key used for non-interactive CI/CD control-plane operations.
|
|
67
|
+
*/
|
|
68
|
+
export declare const orgApiKey: string | undefined;
|
|
69
|
+
Object.defineProperty(exports, "orgApiKey", {
|
|
70
|
+
get() {
|
|
71
|
+
return __config.get("orgApiKey");
|
|
72
|
+
},
|
|
73
|
+
enumerable: true,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Path to a file containing the organization API key.
|
|
78
|
+
*/
|
|
79
|
+
export declare const orgApiKeyFile: string | undefined;
|
|
80
|
+
Object.defineProperty(exports, "orgApiKeyFile", {
|
|
81
|
+
get() {
|
|
82
|
+
return __config.get("orgApiKeyFile");
|
|
83
|
+
},
|
|
84
|
+
enumerable: true,
|
|
85
|
+
});
|
|
86
|
+
|
|
65
87
|
/**
|
|
66
88
|
* Per-request timeout in seconds.
|
|
67
89
|
*/
|
package/package.json
CHANGED
package/provider.ts
CHANGED
|
@@ -41,6 +41,14 @@ export class Provider extends pulumi.ProviderResource {
|
|
|
41
41
|
* GovAPI base URL override. When omitted, provider derives https://grid.<tenant_id>.<apex_domain>.
|
|
42
42
|
*/
|
|
43
43
|
declare public readonly apiBaseUrl: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Organization API key used for non-interactive CI/CD control-plane operations.
|
|
46
|
+
*/
|
|
47
|
+
declare public readonly orgApiKey: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Path to a file containing the organization API key.
|
|
50
|
+
*/
|
|
51
|
+
declare public readonly orgApiKeyFile: pulumi.Output<string | undefined>;
|
|
44
52
|
/**
|
|
45
53
|
* Tenant slug used in GovAPI route scoping.
|
|
46
54
|
*/
|
|
@@ -65,6 +73,8 @@ export class Provider extends pulumi.ProviderResource {
|
|
|
65
73
|
resourceInputs["apexDomain"] = args?.apexDomain;
|
|
66
74
|
resourceInputs["apiBaseUrl"] = args?.apiBaseUrl;
|
|
67
75
|
resourceInputs["insecureSkipTlsVerify"] = pulumi.output(args?.insecureSkipTlsVerify).apply(JSON.stringify);
|
|
76
|
+
resourceInputs["orgApiKey"] = args?.orgApiKey ? pulumi.secret(args.orgApiKey) : undefined;
|
|
77
|
+
resourceInputs["orgApiKeyFile"] = args?.orgApiKeyFile;
|
|
68
78
|
resourceInputs["requestTimeoutSeconds"] = pulumi.output(args?.requestTimeoutSeconds).apply(JSON.stringify);
|
|
69
79
|
resourceInputs["retryBaseDelayMs"] = pulumi.output(args?.retryBaseDelayMs).apply(JSON.stringify);
|
|
70
80
|
resourceInputs["retryMaxAttempts"] = pulumi.output(args?.retryMaxAttempts).apply(JSON.stringify);
|
|
@@ -72,7 +82,7 @@ export class Provider extends pulumi.ProviderResource {
|
|
|
72
82
|
resourceInputs["tenantId"] = args?.tenantId;
|
|
73
83
|
}
|
|
74
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
-
const secretOpts = { additionalSecretOutputs: ["adminBearerToken"] };
|
|
85
|
+
const secretOpts = { additionalSecretOutputs: ["adminBearerToken", "orgApiKey"] };
|
|
76
86
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
77
87
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
78
88
|
}
|
|
@@ -111,6 +121,14 @@ export interface ProviderArgs {
|
|
|
111
121
|
* Skip TLS certificate verification (development/testing only).
|
|
112
122
|
*/
|
|
113
123
|
insecureSkipTlsVerify?: pulumi.Input<boolean | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Organization API key used for non-interactive CI/CD control-plane operations.
|
|
126
|
+
*/
|
|
127
|
+
orgApiKey?: pulumi.Input<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Path to a file containing the organization API key.
|
|
130
|
+
*/
|
|
131
|
+
orgApiKeyFile?: pulumi.Input<string | undefined>;
|
|
114
132
|
/**
|
|
115
133
|
* Per-request timeout in seconds.
|
|
116
134
|
*/
|