@volcengine/pulumi-volcenginecc 0.0.38 → 0.0.40

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 (64) hide show
  1. package/README.md +8 -1
  2. package/cloudmonitor/contactGroup.d.ts +106 -0
  3. package/cloudmonitor/contactGroup.js +73 -0
  4. package/cloudmonitor/contactGroup.js.map +1 -0
  5. package/cloudmonitor/getContactGroup.d.ts +65 -0
  6. package/cloudmonitor/getContactGroup.js +28 -0
  7. package/cloudmonitor/getContactGroup.js.map +1 -0
  8. package/cloudmonitor/getContactGroups.d.ts +22 -0
  9. package/cloudmonitor/getContactGroups.js +24 -0
  10. package/cloudmonitor/getContactGroups.js.map +1 -0
  11. package/cloudmonitor/index.d.ts +9 -0
  12. package/cloudmonitor/index.js +12 -1
  13. package/cloudmonitor/index.js.map +1 -1
  14. package/config/vars.d.ts +5 -0
  15. package/config/vars.js +7 -0
  16. package/config/vars.js.map +1 -1
  17. package/iam/getRole.d.ts +10 -0
  18. package/iam/getRole.js.map +1 -1
  19. package/iam/role.d.ts +18 -34
  20. package/iam/role.js +3 -36
  21. package/iam/role.js.map +1 -1
  22. package/id/getService.d.ts +109 -0
  23. package/id/getService.js +28 -0
  24. package/id/getService.js.map +1 -0
  25. package/id/getServices.d.ts +22 -0
  26. package/id/getServices.js +24 -0
  27. package/id/getServices.js.map +1 -0
  28. package/id/index.d.ts +9 -0
  29. package/id/index.js +28 -0
  30. package/id/index.js.map +1 -0
  31. package/id/service.d.ts +209 -0
  32. package/id/service.js +101 -0
  33. package/id/service.js.map +1 -0
  34. package/index.d.ts +2 -1
  35. package/index.js +4 -1
  36. package/index.js.map +1 -1
  37. package/kms/getKey.d.ts +24 -0
  38. package/kms/getKey.js.map +1 -1
  39. package/kms/key.d.ts +72 -0
  40. package/kms/key.js +12 -0
  41. package/kms/key.js.map +1 -1
  42. package/package.json +1 -1
  43. package/provider.d.ts +10 -0
  44. package/provider.js +2 -1
  45. package/provider.js.map +1 -1
  46. package/rdspostgresql/getParameterTemplate.d.ts +89 -0
  47. package/rdspostgresql/getParameterTemplate.js +28 -0
  48. package/rdspostgresql/getParameterTemplate.js.map +1 -0
  49. package/rdspostgresql/getParameterTemplates.d.ts +22 -0
  50. package/rdspostgresql/getParameterTemplates.js +24 -0
  51. package/rdspostgresql/getParameterTemplates.js.map +1 -0
  52. package/rdspostgresql/index.d.ts +9 -0
  53. package/rdspostgresql/index.js +12 -1
  54. package/rdspostgresql/index.js.map +1 -1
  55. package/rdspostgresql/parameterTemplate.d.ts +186 -0
  56. package/rdspostgresql/parameterTemplate.js +118 -0
  57. package/rdspostgresql/parameterTemplate.js.map +1 -0
  58. package/redis/getInstance.d.ts +9 -5
  59. package/redis/getInstance.js.map +1 -1
  60. package/redis/instance.d.ts +25 -13
  61. package/redis/instance.js +2 -0
  62. package/redis/instance.js.map +1 -1
  63. package/types/input.d.ts +268 -0
  64. package/types/output.d.ts +616 -0
package/README.md CHANGED
@@ -47,6 +47,7 @@ provider configuration:
47
47
 
48
48
  - `accessKey` (String) The Access Key for Volcengine Provider. It must be provided, but it can also be sourced from the `VOLCENGINE_ACCESS_KEY` environment variable
49
49
  - `secretKey` (String) he Secret Key for Volcengine Provider. It must be provided, but it can also be sourced from the `VOLCENGINE_SECRET_KEY` environment variable
50
+ - `sessionToken` (String) The Session Token for Volcengine Provider, used together with AccessKey and SecretKey when authenticating with temporary STS credentials. It can also be sourced from the `VOLCENGINE_SESSION_TOKEN` environment variable
50
51
  - `profile` (String) The Profile for Volcengine Provider. It can be used as an alternative authentication method to AK/SK, and can also be sourced from the `VOLCENGINE_PROFILE` environment variable
51
52
  - `file_path` (String) The File Path for Volcengine Provider. It specifies the path to the profile configuration file. If not specified, the default path `~/.volcengine` will be used, and can also be sourced from the `VOLCENGINE_FILE_PATH` environment variable
52
53
  - `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))
@@ -76,4 +77,10 @@ Required:
76
77
  Optional:
77
78
 
78
79
  - `cloudcontrolapi` (String) Use this to override the default Cloud Control API service endpoint URL
79
- - `sts` (String) Use this to override the default STS service endpoint URL
80
+ - `sts` (String) Use this to override the default STS service endpoint URL
81
+
82
+
83
+ ## Security and privacy
84
+
85
+ This project takes security seriously.
86
+ For vulnerability reporting and supported versions, see [SECURITY.md](SECURITY.md)
@@ -0,0 +1,106 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * 符合条件的联系组的详细信息。
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import volcenginecc:cloudmonitor/contactGroup:ContactGroup example "contact_group_id"
11
+ * ```
12
+ */
13
+ export declare class ContactGroup extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing ContactGroup 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?: ContactGroupState, opts?: pulumi.CustomResourceOptions): ContactGroup;
24
+ /**
25
+ * Returns true if the given object is an instance of ContactGroup. 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 ContactGroup;
29
+ /**
30
+ * 创建本联系组的账号ID。
31
+ */
32
+ readonly accountId: pulumi.Output<string>;
33
+ /**
34
+ * 联系组的ID。
35
+ */
36
+ readonly contactGroupId: pulumi.Output<string>;
37
+ readonly contacts: pulumi.Output<outputs.cloudmonitor.ContactGroupContact[]>;
38
+ /**
39
+ * 联系组的创建时间。
40
+ */
41
+ readonly createdAt: pulumi.Output<string>;
42
+ /**
43
+ * 联系组的描述。若不填,默认为空字符串。长度限制在 1~255 字符之间。允许包含中文、英文、下划线等特殊字符。
44
+ */
45
+ readonly description: pulumi.Output<string>;
46
+ /**
47
+ * 联系组名称。不能以数字、中划线开头。只能包含中文、字母、数字、下划线_和中划线-。长度限制在 1~128 字符之间。
48
+ */
49
+ readonly name: pulumi.Output<string>;
50
+ /**
51
+ * 联系组的更新时间。
52
+ */
53
+ readonly updatedAt: pulumi.Output<string>;
54
+ /**
55
+ * Create a ContactGroup resource with the given unique name, arguments, and options.
56
+ *
57
+ * @param name The _unique_ name of the resource.
58
+ * @param args The arguments to use to populate this resource's properties.
59
+ * @param opts A bag of options that control this resource's behavior.
60
+ */
61
+ constructor(name: string, args: ContactGroupArgs, opts?: pulumi.CustomResourceOptions);
62
+ }
63
+ /**
64
+ * Input properties used for looking up and filtering ContactGroup resources.
65
+ */
66
+ export interface ContactGroupState {
67
+ /**
68
+ * 创建本联系组的账号ID。
69
+ */
70
+ accountId?: pulumi.Input<string>;
71
+ /**
72
+ * 联系组的ID。
73
+ */
74
+ contactGroupId?: pulumi.Input<string>;
75
+ contacts?: pulumi.Input<pulumi.Input<inputs.cloudmonitor.ContactGroupContact>[]>;
76
+ /**
77
+ * 联系组的创建时间。
78
+ */
79
+ createdAt?: pulumi.Input<string>;
80
+ /**
81
+ * 联系组的描述。若不填,默认为空字符串。长度限制在 1~255 字符之间。允许包含中文、英文、下划线等特殊字符。
82
+ */
83
+ description?: pulumi.Input<string>;
84
+ /**
85
+ * 联系组名称。不能以数字、中划线开头。只能包含中文、字母、数字、下划线_和中划线-。长度限制在 1~128 字符之间。
86
+ */
87
+ name?: pulumi.Input<string>;
88
+ /**
89
+ * 联系组的更新时间。
90
+ */
91
+ updatedAt?: pulumi.Input<string>;
92
+ }
93
+ /**
94
+ * The set of arguments for constructing a ContactGroup resource.
95
+ */
96
+ export interface ContactGroupArgs {
97
+ contacts?: pulumi.Input<pulumi.Input<inputs.cloudmonitor.ContactGroupContact>[]>;
98
+ /**
99
+ * 联系组的描述。若不填,默认为空字符串。长度限制在 1~255 字符之间。允许包含中文、英文、下划线等特殊字符。
100
+ */
101
+ description?: pulumi.Input<string>;
102
+ /**
103
+ * 联系组名称。不能以数字、中划线开头。只能包含中文、字母、数字、下划线_和中划线-。长度限制在 1~128 字符之间。
104
+ */
105
+ name: pulumi.Input<string>;
106
+ }
@@ -0,0 +1,73 @@
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.ContactGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * 符合条件的联系组的详细信息。
10
+ *
11
+ * ## Import
12
+ *
13
+ * ```sh
14
+ * $ pulumi import volcenginecc:cloudmonitor/contactGroup:ContactGroup example "contact_group_id"
15
+ * ```
16
+ */
17
+ class ContactGroup extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing ContactGroup 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 ContactGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
29
+ }
30
+ /**
31
+ * Returns true if the given object is an instance of ContactGroup. 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'] === ContactGroup.__pulumiType;
39
+ }
40
+ constructor(name, argsOrState, opts) {
41
+ let resourceInputs = {};
42
+ opts = opts || {};
43
+ if (opts.id) {
44
+ const state = argsOrState;
45
+ resourceInputs["accountId"] = state ? state.accountId : undefined;
46
+ resourceInputs["contactGroupId"] = state ? state.contactGroupId : undefined;
47
+ resourceInputs["contacts"] = state ? state.contacts : undefined;
48
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
49
+ resourceInputs["description"] = state ? state.description : undefined;
50
+ resourceInputs["name"] = state ? state.name : undefined;
51
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
52
+ }
53
+ else {
54
+ const args = argsOrState;
55
+ if ((!args || args.name === undefined) && !opts.urn) {
56
+ throw new Error("Missing required property 'name'");
57
+ }
58
+ resourceInputs["contacts"] = args ? args.contacts : undefined;
59
+ resourceInputs["description"] = args ? args.description : undefined;
60
+ resourceInputs["name"] = args ? args.name : undefined;
61
+ resourceInputs["accountId"] = undefined /*out*/;
62
+ resourceInputs["contactGroupId"] = undefined /*out*/;
63
+ resourceInputs["createdAt"] = undefined /*out*/;
64
+ resourceInputs["updatedAt"] = undefined /*out*/;
65
+ }
66
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
67
+ super(ContactGroup.__pulumiType, name, resourceInputs, opts);
68
+ }
69
+ }
70
+ exports.ContactGroup = ContactGroup;
71
+ /** @internal */
72
+ ContactGroup.__pulumiType = 'volcenginecc:cloudmonitor/contactGroup:ContactGroup';
73
+ //# sourceMappingURL=contactGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contactGroup.js","sourceRoot":"","sources":["../../cloudmonitor/contactGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;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AAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAzFL,oCA0FC;AA5EG,gBAAgB;AACO,yBAAY,GAAG,qDAAqD,CAAC"}
@@ -0,0 +1,65 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Data Source schema for Volcengine::CloudMonitor::ContactGroup
5
+ */
6
+ export declare function getContactGroup(args: GetContactGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetContactGroupResult>;
7
+ /**
8
+ * A collection of arguments for invoking getContactGroup.
9
+ */
10
+ export interface GetContactGroupArgs {
11
+ /**
12
+ * Uniquely identifies the resource.
13
+ */
14
+ id: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getContactGroup.
18
+ */
19
+ export interface GetContactGroupResult {
20
+ /**
21
+ * 创建本联系组的账号ID。
22
+ */
23
+ readonly accountId: string;
24
+ /**
25
+ * 联系组的ID。
26
+ */
27
+ readonly contactGroupId: string;
28
+ /**
29
+ * 联系组中的联系信息。
30
+ */
31
+ readonly contacts: outputs.cloudmonitor.GetContactGroupContact[];
32
+ /**
33
+ * 联系组的创建时间。
34
+ */
35
+ readonly createdAt: string;
36
+ /**
37
+ * 联系组的描述。若不填,默认为空字符串。长度限制在 1~255 字符之间。允许包含中文、英文、下划线等特殊字符。
38
+ */
39
+ readonly description: string;
40
+ /**
41
+ * Uniquely identifies the resource.
42
+ */
43
+ readonly id: string;
44
+ /**
45
+ * 联系组名称。不能以数字、中划线开头。只能包含中文、字母、数字、下划线_和中划线-。长度限制在 1~128 字符之间。
46
+ */
47
+ readonly name: string;
48
+ /**
49
+ * 联系组的更新时间。
50
+ */
51
+ readonly updatedAt: string;
52
+ }
53
+ /**
54
+ * Data Source schema for Volcengine::CloudMonitor::ContactGroup
55
+ */
56
+ export declare function getContactGroupOutput(args: GetContactGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetContactGroupResult>;
57
+ /**
58
+ * A collection of arguments for invoking getContactGroup.
59
+ */
60
+ export interface GetContactGroupOutputArgs {
61
+ /**
62
+ * Uniquely identifies the resource.
63
+ */
64
+ id: pulumi.Input<string>;
65
+ }
@@ -0,0 +1,28 @@
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.getContactGroupOutput = exports.getContactGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Data Source schema for Volcengine::CloudMonitor::ContactGroup
10
+ */
11
+ function getContactGroup(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:cloudmonitor/getContactGroup:getContactGroup", {
14
+ "id": args.id,
15
+ }, opts);
16
+ }
17
+ exports.getContactGroup = getContactGroup;
18
+ /**
19
+ * Data Source schema for Volcengine::CloudMonitor::ContactGroup
20
+ */
21
+ function getContactGroupOutput(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("volcenginecc:cloudmonitor/getContactGroup:getContactGroup", {
24
+ "id": args.id,
25
+ }, opts);
26
+ }
27
+ exports.getContactGroupOutput = getContactGroupOutput;
28
+ //# sourceMappingURL=getContactGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContactGroup.js","sourceRoot":"","sources":["../../cloudmonitor/getContactGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC;AAiDD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2DAA2D,EAAE;QAC5F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sDAKC"}
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Plural Data Source schema for Volcengine::CloudMonitor::ContactGroup
4
+ */
5
+ export declare function getContactGroups(opts?: pulumi.InvokeOptions): Promise<GetContactGroupsResult>;
6
+ /**
7
+ * A collection of values returned by getContactGroups.
8
+ */
9
+ export interface GetContactGroupsResult {
10
+ /**
11
+ * Uniquely identifies the data source.
12
+ */
13
+ readonly id: string;
14
+ /**
15
+ * Set of Resource Identifiers.
16
+ */
17
+ readonly ids: string[];
18
+ }
19
+ /**
20
+ * Plural Data Source schema for Volcengine::CloudMonitor::ContactGroup
21
+ */
22
+ export declare function getContactGroupsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetContactGroupsResult>;
@@ -0,0 +1,24 @@
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.getContactGroupsOutput = exports.getContactGroups = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Plural Data Source schema for Volcengine::CloudMonitor::ContactGroup
10
+ */
11
+ function getContactGroups(opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:cloudmonitor/getContactGroups:getContactGroups", {}, opts);
14
+ }
15
+ exports.getContactGroups = getContactGroups;
16
+ /**
17
+ * Plural Data Source schema for Volcengine::CloudMonitor::ContactGroup
18
+ */
19
+ function getContactGroupsOutput(opts) {
20
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
21
+ return pulumi.runtime.invokeOutput("volcenginecc:cloudmonitor/getContactGroups:getContactGroups", {}, opts);
22
+ }
23
+ exports.getContactGroupsOutput = getContactGroupsOutput;
24
+ //# sourceMappingURL=getContactGroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContactGroups.js","sourceRoot":"","sources":["../../cloudmonitor/getContactGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA2B;IACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE,EAC3F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,4CAIC;AAeD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,IAAiC;IACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6DAA6D,EAAE,EACjG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wDAIC"}
@@ -1,3 +1,12 @@
1
+ export { ContactGroupArgs, ContactGroupState } from "./contactGroup";
2
+ export type ContactGroup = import("./contactGroup").ContactGroup;
3
+ export declare const ContactGroup: typeof import("./contactGroup").ContactGroup;
4
+ export { GetContactGroupArgs, GetContactGroupResult, GetContactGroupOutputArgs } from "./getContactGroup";
5
+ export declare const getContactGroup: typeof import("./getContactGroup").getContactGroup;
6
+ export declare const getContactGroupOutput: typeof import("./getContactGroup").getContactGroupOutput;
7
+ export { GetContactGroupsResult } from "./getContactGroups";
8
+ export declare const getContactGroups: typeof import("./getContactGroups").getContactGroups;
9
+ export declare const getContactGroupsOutput: typeof import("./getContactGroups").getContactGroupsOutput;
1
10
  export { GetRuleArgs, GetRuleResult, GetRuleOutputArgs } from "./getRule";
2
11
  export declare const getRule: typeof import("./getRule").getRule;
3
12
  export declare const getRuleOutput: typeof import("./getRule").getRuleOutput;
@@ -2,9 +2,17 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Rule = exports.getRulesOutput = exports.getRules = exports.getRuleOutput = exports.getRule = void 0;
5
+ exports.Rule = exports.getRulesOutput = exports.getRules = exports.getRuleOutput = exports.getRule = exports.getContactGroupsOutput = exports.getContactGroups = exports.getContactGroupOutput = exports.getContactGroup = exports.ContactGroup = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ exports.ContactGroup = null;
9
+ utilities.lazyLoad(exports, ["ContactGroup"], () => require("./contactGroup"));
10
+ exports.getContactGroup = null;
11
+ exports.getContactGroupOutput = null;
12
+ utilities.lazyLoad(exports, ["getContactGroup", "getContactGroupOutput"], () => require("./getContactGroup"));
13
+ exports.getContactGroups = null;
14
+ exports.getContactGroupsOutput = null;
15
+ utilities.lazyLoad(exports, ["getContactGroups", "getContactGroupsOutput"], () => require("./getContactGroups"));
8
16
  exports.getRule = null;
9
17
  exports.getRuleOutput = null;
10
18
  utilities.lazyLoad(exports, ["getRule", "getRuleOutput"], () => require("./getRule"));
@@ -17,6 +25,8 @@ const _module = {
17
25
  version: utilities.getVersion(),
18
26
  construct: (name, type, urn) => {
19
27
  switch (type) {
28
+ case "volcenginecc:cloudmonitor/contactGroup:ContactGroup":
29
+ return new exports.ContactGroup(name, undefined, { urn });
20
30
  case "volcenginecc:cloudmonitor/rule:Rule":
21
31
  return new exports.Rule(name, undefined, { urn });
22
32
  default:
@@ -24,5 +34,6 @@ const _module = {
24
34
  }
25
35
  },
26
36
  };
37
+ pulumi.runtime.registerResourceModule("volcenginecc", "cloudmonitor/contactGroup", _module);
27
38
  pulumi.runtime.registerResourceModule("volcenginecc", "cloudmonitor/rule", _module);
28
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloudmonitor/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AAC1D,QAAA,aAAa,GAA6C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAGxE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,EAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI3E,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAG/D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,qCAAqC;gBACtC,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,c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,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAG/D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,qDAAqD;gBACtD,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D,KAAK,qCAAqC;gBACtC,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AAC3F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
package/config/vars.d.ts CHANGED
@@ -44,3 +44,8 @@ export declare const region: string | undefined;
44
44
  * environment variable
45
45
  */
46
46
  export declare const secretKey: string | undefined;
47
+ /**
48
+ * The Session Token for Volcengine Provider. It can also be sourced from the `VOLCENGINE_SESSION_TOKEN` environment
49
+ * variable
50
+ */
51
+ export declare const sessionToken: string | undefined;
package/config/vars.js CHANGED
@@ -73,4 +73,11 @@ Object.defineProperty(exports, "secretKey", {
73
73
  },
74
74
  enumerable: true,
75
75
  });
76
+ Object.defineProperty(exports, "sessionToken", {
77
+ get() {
78
+ var _a;
79
+ return (_a = __config.get("sessionToken")) !== null && _a !== void 0 ? _a : utilities.getEnv("VOLCENGINE_SESSION_TOKEN");
80
+ },
81
+ enumerable: true,
82
+ });
76
83
  //# sourceMappingURL=vars.js.map
@@ -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,cAAc,CAAC,CAAC;AAOnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAClF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAA4B,YAAY,CAAC,CAAC;IACvE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE;IAC9C,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC;IAC9F,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,SAAS,CAAU,YAAY,CAAC,mCAAI,SAAS,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAC1G,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAA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,cAAc,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;IACxF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/iam/getRole.d.ts CHANGED
@@ -41,6 +41,9 @@ export interface GetRoleResult {
41
41
  * Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
42
42
  */
43
43
  readonly maxSessionDuration: number;
44
+ /**
45
+ * Role Strategy
46
+ */
44
47
  readonly policies: outputs.iam.GetRolePolicy[];
45
48
  /**
46
49
  * Role ID
@@ -50,6 +53,13 @@ export interface GetRoleResult {
50
53
  * Role name, length 1–64, supports English letters, numbers, and .-_ characters
51
54
  */
52
55
  readonly roleName: string;
56
+ /**
57
+ * Service associated with the service-linked role to be created.
58
+ */
59
+ readonly serviceName: string;
60
+ /**
61
+ * Tag
62
+ */
53
63
  readonly tags: outputs.iam.GetRoleTag[];
54
64
  /**
55
65
  * Role TRN
@@ -1 +1 @@
1
- {"version":3,"file":"getRole.js","sourceRoot":"","sources":["../../iam/getRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AA+DD;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAAiC;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kCAAkC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
1
+ {"version":3,"file":"getRole.js","sourceRoot":"","sources":["../../iam/getRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAyED;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAAiC;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kCAAkC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
package/iam/role.d.ts CHANGED
@@ -4,38 +4,6 @@ import * as outputs from "../types/output";
4
4
  /**
5
5
  * A role is a virtual identity in the IAM system that grants certain access permissions within an account to various identity entities. Trusted identity entities can assume this role to access cloud resources within the account.
6
6
  *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
12
- *
13
- * const roleDemo = new volcenginecc.iam.Role("RoleDemo", {
14
- * roleName: "RoleDemo",
15
- * description: "role attach policies",
16
- * maxSessionDuration: 3600,
17
- * trustPolicyDocument: `{
18
- * "Statement": [
19
- * {
20
- * "Effect": "Allow",
21
- * "Action": [
22
- * "sts:AssumeRole"
23
- * ],
24
- * "Principal": {
25
- * "IAM": [
26
- * "trn:iam::20000000xx:root"
27
- * ]
28
- * }
29
- * }
30
- * ]
31
- * }`,
32
- * tags: [{
33
- * key: "env",
34
- * value: "test",
35
- * }],
36
- * });
37
- * ```
38
- *
39
7
  * ## Import
40
8
  *
41
9
  * ```sh
@@ -87,6 +55,10 @@ export declare class Role extends pulumi.CustomResource {
87
55
  * Role name, length 1–64, supports English letters, numbers, and .-_ characters
88
56
  */
89
57
  readonly roleName: pulumi.Output<string>;
58
+ /**
59
+ * Service associated with the service-linked role to be created.
60
+ */
61
+ readonly serviceName: pulumi.Output<string>;
90
62
  readonly tags: pulumi.Output<outputs.iam.RoleTag[]>;
91
63
  /**
92
64
  * Role TRN
@@ -107,7 +79,7 @@ export declare class Role extends pulumi.CustomResource {
107
79
  * @param args The arguments to use to populate this resource's properties.
108
80
  * @param opts A bag of options that control this resource's behavior.
109
81
  */
110
- constructor(name: string, args: RoleArgs, opts?: pulumi.CustomResourceOptions);
82
+ constructor(name: string, args?: RoleArgs, opts?: pulumi.CustomResourceOptions);
111
83
  }
112
84
  /**
113
85
  * Input properties used for looking up and filtering Role resources.
@@ -142,6 +114,10 @@ export interface RoleState {
142
114
  * Role name, length 1–64, supports English letters, numbers, and .-_ characters
143
115
  */
144
116
  roleName?: pulumi.Input<string>;
117
+ /**
118
+ * Service associated with the service-linked role to be created.
119
+ */
120
+ serviceName?: pulumi.Input<string>;
145
121
  tags?: pulumi.Input<pulumi.Input<inputs.iam.RoleTag>[]>;
146
122
  /**
147
123
  * Role TRN
@@ -168,6 +144,10 @@ export interface RoleArgs {
168
144
  * Role display name, maximum length 64
169
145
  */
170
146
  displayName?: pulumi.Input<string>;
147
+ /**
148
+ * Service-linked role or not: 0 for No, 1 for Yes
149
+ */
150
+ isServiceLinkedRole?: pulumi.Input<number>;
171
151
  /**
172
152
  * Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
173
153
  */
@@ -176,7 +156,11 @@ export interface RoleArgs {
176
156
  /**
177
157
  * Role name, length 1–64, supports English letters, numbers, and .-_ characters
178
158
  */
179
- roleName: pulumi.Input<string>;
159
+ roleName?: pulumi.Input<string>;
160
+ /**
161
+ * Service associated with the service-linked role to be created.
162
+ */
163
+ serviceName?: pulumi.Input<string>;
180
164
  tags?: pulumi.Input<pulumi.Input<inputs.iam.RoleTag>[]>;
181
165
  /**
182
166
  * Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
package/iam/role.js CHANGED
@@ -8,38 +8,6 @@ const utilities = require("../utilities");
8
8
  /**
9
9
  * A role is a virtual identity in the IAM system that grants certain access permissions within an account to various identity entities. Trusted identity entities can assume this role to access cloud resources within the account.
10
10
  *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
16
- *
17
- * const roleDemo = new volcenginecc.iam.Role("RoleDemo", {
18
- * roleName: "RoleDemo",
19
- * description: "role attach policies",
20
- * maxSessionDuration: 3600,
21
- * trustPolicyDocument: `{
22
- * "Statement": [
23
- * {
24
- * "Effect": "Allow",
25
- * "Action": [
26
- * "sts:AssumeRole"
27
- * ],
28
- * "Principal": {
29
- * "IAM": [
30
- * "trn:iam::20000000xx:root"
31
- * ]
32
- * }
33
- * }
34
- * ]
35
- * }`,
36
- * tags: [{
37
- * key: "env",
38
- * value: "test",
39
- * }],
40
- * });
41
- * ```
42
- *
43
11
  * ## Import
44
12
  *
45
13
  * ```sh
@@ -82,6 +50,7 @@ class Role extends pulumi.CustomResource {
82
50
  resourceInputs["policies"] = state ? state.policies : undefined;
83
51
  resourceInputs["roleId"] = state ? state.roleId : undefined;
84
52
  resourceInputs["roleName"] = state ? state.roleName : undefined;
53
+ resourceInputs["serviceName"] = state ? state.serviceName : undefined;
85
54
  resourceInputs["tags"] = state ? state.tags : undefined;
86
55
  resourceInputs["trn"] = state ? state.trn : undefined;
87
56
  resourceInputs["trustPolicyDocument"] = state ? state.trustPolicyDocument : undefined;
@@ -89,18 +58,16 @@ class Role extends pulumi.CustomResource {
89
58
  }
90
59
  else {
91
60
  const args = argsOrState;
92
- if ((!args || args.roleName === undefined) && !opts.urn) {
93
- throw new Error("Missing required property 'roleName'");
94
- }
95
61
  resourceInputs["description"] = args ? args.description : undefined;
96
62
  resourceInputs["displayName"] = args ? args.displayName : undefined;
63
+ resourceInputs["isServiceLinkedRole"] = args ? args.isServiceLinkedRole : undefined;
97
64
  resourceInputs["maxSessionDuration"] = args ? args.maxSessionDuration : undefined;
98
65
  resourceInputs["policies"] = args ? args.policies : undefined;
99
66
  resourceInputs["roleName"] = args ? args.roleName : undefined;
67
+ resourceInputs["serviceName"] = args ? args.serviceName : undefined;
100
68
  resourceInputs["tags"] = args ? args.tags : undefined;
101
69
  resourceInputs["trustPolicyDocument"] = args ? args.trustPolicyDocument : undefined;
102
70
  resourceInputs["createDate"] = undefined /*out*/;
103
- resourceInputs["isServiceLinkedRole"] = undefined /*out*/;
104
71
  resourceInputs["roleId"] = undefined /*out*/;
105
72
  resourceInputs["trn"] = undefined /*out*/;
106
73
  resourceInputs["updateDate"] = undefined /*out*/;