@byteplus/pulumi-bytepluscc 0.0.12 → 0.0.13
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/README.md +2 -0
- package/config/vars.d.ts +8 -0
- package/config/vars.js +14 -0
- package/config/vars.js.map +1 -1
- package/package.json +1 -1
- package/provider.d.ts +16 -0
- package/provider.js +6 -4
- package/provider.js.map +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,8 @@ provider configuration:
|
|
|
47
47
|
|
|
48
48
|
- `accessKey` (String) The Access Key for Byteplus Provider. It must be provided, but it can also be sourced from the `BYTEPLUS_ACCESS_KEY` environment variable
|
|
49
49
|
- `secretKey` (String) he Secret Key for Byteplus Provider. It must be provided, but it can also be sourced from the `BYTEPLUS_SECRET_KEY` environment variable
|
|
50
|
+
- `profile` (String) The Profile for Byteplus Provider. It can be used as an alternative authentication method to AK/SK, and can also be sourced from the `BYTEPLUS_PROFILE` environment variable
|
|
51
|
+
- `file_path` (String) The File Path for Byteplus Provider. It specifies the path to the profile configuration file. If not specified, the default path `~/.byteplus` will be used, and can also be sourced from the `BYTEPLUS_FILE_PATH` environment variable
|
|
50
52
|
- `assumeRole` (Attributes) An `assume_role` block (documented below). Only one `assume_role` block may be in the configuration. (see [below for nested schema](#nestedatt--assume_role))
|
|
51
53
|
- `customerHeaders` (String) CUSTOMER HEADERS for Byteplus Provider. The customer_headers field uses commas (,) to separate multiple headers, and colons (:) to separate each header key from its corresponding value.
|
|
52
54
|
- `disableSsl` (Boolean) Disable SSL for Byteplus Provider
|
package/config/vars.d.ts
CHANGED
|
@@ -21,6 +21,14 @@ export declare const disableSsl: boolean | undefined;
|
|
|
21
21
|
* An `endpoints` block (documented below). Only one `endpoints` block may be in the configuration.
|
|
22
22
|
*/
|
|
23
23
|
export declare const endpoints: outputs.config.Endpoints | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The file path for Byteplus Provider configuration. It can be sourced from the `BYTEPLUS_FILE_PATH` environment variable
|
|
26
|
+
*/
|
|
27
|
+
export declare const filePath: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The profile for Byteplus Provider. It can be sourced from the `BYTEPLUS_PROFILE` environment variable
|
|
30
|
+
*/
|
|
31
|
+
export declare const profile: string | undefined;
|
|
24
32
|
/**
|
|
25
33
|
* PROXY URL for Byteplus Provider
|
|
26
34
|
*/
|
package/config/vars.js
CHANGED
|
@@ -38,6 +38,20 @@ Object.defineProperty(exports, "endpoints", {
|
|
|
38
38
|
},
|
|
39
39
|
enumerable: true,
|
|
40
40
|
});
|
|
41
|
+
Object.defineProperty(exports, "filePath", {
|
|
42
|
+
get() {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = __config.get("filePath")) !== null && _a !== void 0 ? _a : utilities.getEnv("BYTEPLUS_FILE_PATH");
|
|
45
|
+
},
|
|
46
|
+
enumerable: true,
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "profile", {
|
|
49
|
+
get() {
|
|
50
|
+
var _a;
|
|
51
|
+
return (_a = __config.get("profile")) !== null && _a !== void 0 ? _a : utilities.getEnv("BYTEPLUS_PROFILE");
|
|
52
|
+
},
|
|
53
|
+
enumerable: true,
|
|
54
|
+
});
|
|
41
55
|
Object.defineProperty(exports, "proxyUrl", {
|
|
42
56
|
get() {
|
|
43
57
|
var _a;
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAOjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,SAAS,CAAC,MAA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AU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAChF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/provider.d.ts
CHANGED
|
@@ -22,6 +22,14 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
22
22
|
* colons (:) to separate each header key from its corresponding value.
|
|
23
23
|
*/
|
|
24
24
|
readonly customerHeaders: pulumi.Output<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* The file path for Byteplus Provider configuration. It can be sourced from the `BYTEPLUS_FILE_PATH` environment variable
|
|
27
|
+
*/
|
|
28
|
+
readonly filePath: pulumi.Output<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* The profile for Byteplus Provider. It can be sourced from the `BYTEPLUS_PROFILE` environment variable
|
|
31
|
+
*/
|
|
32
|
+
readonly profile: pulumi.Output<string | undefined>;
|
|
25
33
|
/**
|
|
26
34
|
* PROXY URL for Byteplus Provider
|
|
27
35
|
*/
|
|
@@ -75,6 +83,14 @@ export interface ProviderArgs {
|
|
|
75
83
|
* An `endpoints` block (documented below). Only one `endpoints` block may be in the configuration.
|
|
76
84
|
*/
|
|
77
85
|
endpoints?: pulumi.Input<inputs.ProviderEndpoints>;
|
|
86
|
+
/**
|
|
87
|
+
* The file path for Byteplus Provider configuration. It can be sourced from the `BYTEPLUS_FILE_PATH` environment variable
|
|
88
|
+
*/
|
|
89
|
+
filePath?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The profile for Byteplus Provider. It can be sourced from the `BYTEPLUS_PROFILE` environment variable
|
|
92
|
+
*/
|
|
93
|
+
profile?: pulumi.Input<string>;
|
|
78
94
|
/**
|
|
79
95
|
* PROXY URL for Byteplus Provider
|
|
80
96
|
*/
|
package/provider.js
CHANGED
|
@@ -30,7 +30,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
30
30
|
* @param opts A bag of options that control this resource's behavior.
|
|
31
31
|
*/
|
|
32
32
|
constructor(name, args, opts) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f;
|
|
33
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
34
34
|
let resourceInputs = {};
|
|
35
35
|
opts = opts || {};
|
|
36
36
|
{
|
|
@@ -39,9 +39,11 @@ class Provider extends pulumi.ProviderResource {
|
|
|
39
39
|
resourceInputs["customerHeaders"] = (_b = (args ? args.customerHeaders : undefined)) !== null && _b !== void 0 ? _b : utilities.getEnv("BYTEPLUS_CUSTOMER_HEADERS");
|
|
40
40
|
resourceInputs["disableSsl"] = pulumi.output((_c = (args ? args.disableSsl : undefined)) !== null && _c !== void 0 ? _c : utilities.getEnvBoolean("BYTEPLUS_DISABLE_SSL")).apply(JSON.stringify);
|
|
41
41
|
resourceInputs["endpoints"] = pulumi.output(args ? args.endpoints : undefined).apply(JSON.stringify);
|
|
42
|
-
resourceInputs["
|
|
43
|
-
resourceInputs["
|
|
44
|
-
resourceInputs["
|
|
42
|
+
resourceInputs["filePath"] = (_d = (args ? args.filePath : undefined)) !== null && _d !== void 0 ? _d : utilities.getEnv("BYTEPLUS_FILE_PATH");
|
|
43
|
+
resourceInputs["profile"] = (_e = (args ? args.profile : undefined)) !== null && _e !== void 0 ? _e : utilities.getEnv("BYTEPLUS_PROFILE");
|
|
44
|
+
resourceInputs["proxyUrl"] = (_f = (args ? args.proxyUrl : undefined)) !== null && _f !== void 0 ? _f : utilities.getEnv("BYTEPLUS_PROXY_URL");
|
|
45
|
+
resourceInputs["region"] = (_g = (args ? args.region : undefined)) !== null && _g !== void 0 ? _g : utilities.getEnv("BYTEPLUS_REGION");
|
|
46
|
+
resourceInputs["secretKey"] = (_h = (args ? args.secretKey : undefined)) !== null && _h !== void 0 ? _h : utilities.getEnv("BYTEPLUS_SECRET_KEY");
|
|
45
47
|
}
|
|
46
48
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
47
49
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAmCD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,WAAW,CAAC,G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