@volcengine/pulumi-volcenginecc 0.0.42 → 0.0.43

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 (125) hide show
  1. package/dns/backup.d.ts +90 -0
  2. package/dns/backup.js +76 -0
  3. package/dns/backup.js.map +1 -0
  4. package/dns/getBackup.d.ts +52 -0
  5. package/dns/getBackup.js +28 -0
  6. package/dns/getBackup.js.map +1 -0
  7. package/dns/getBackups.d.ts +22 -0
  8. package/dns/getBackups.js +24 -0
  9. package/dns/getBackups.js.map +1 -0
  10. package/dns/index.d.ts +9 -0
  11. package/dns/index.js +12 -1
  12. package/dns/index.js.map +1 -1
  13. package/iam/allowedIpAddress.d.ts +107 -0
  14. package/iam/allowedIpAddress.js +95 -0
  15. package/iam/allowedIpAddress.js.map +1 -0
  16. package/iam/getAllowedIpAddress.d.ts +53 -0
  17. package/iam/getAllowedIpAddress.js +28 -0
  18. package/iam/getAllowedIpAddress.js.map +1 -0
  19. package/iam/getAllowedIpAddresses.d.ts +22 -0
  20. package/iam/getAllowedIpAddresses.js +24 -0
  21. package/iam/getAllowedIpAddresses.js.map +1 -0
  22. package/iam/index.d.ts +9 -0
  23. package/iam/index.js +12 -1
  24. package/iam/index.js.map +1 -1
  25. package/mongodb/endpoint.d.ts +175 -0
  26. package/mongodb/endpoint.js +97 -0
  27. package/mongodb/endpoint.js.map +1 -0
  28. package/mongodb/getEndpoint.d.ts +39 -0
  29. package/mongodb/getEndpoint.js +28 -0
  30. package/mongodb/getEndpoint.js.map +1 -0
  31. package/mongodb/getEndpoints.d.ts +22 -0
  32. package/mongodb/getEndpoints.js +24 -0
  33. package/mongodb/getEndpoints.js.map +1 -0
  34. package/mongodb/index.d.ts +9 -0
  35. package/mongodb/index.js +12 -1
  36. package/mongodb/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/privatelink/gatewayEndpoint.d.ts +182 -0
  39. package/privatelink/gatewayEndpoint.js +106 -0
  40. package/privatelink/gatewayEndpoint.js.map +1 -0
  41. package/privatelink/getGatewayEndpoint.d.ts +85 -0
  42. package/privatelink/getGatewayEndpoint.js +28 -0
  43. package/privatelink/getGatewayEndpoint.js.map +1 -0
  44. package/privatelink/getGatewayEndpoints.d.ts +22 -0
  45. package/privatelink/getGatewayEndpoints.js +24 -0
  46. package/privatelink/getGatewayEndpoints.js.map +1 -0
  47. package/privatelink/index.d.ts +9 -0
  48. package/privatelink/index.js +12 -1
  49. package/privatelink/index.js.map +1 -1
  50. package/rdsmssql/backup.d.ts +148 -0
  51. package/rdsmssql/backup.js +85 -0
  52. package/rdsmssql/backup.js.map +1 -0
  53. package/rdsmssql/getBackup.d.ts +89 -0
  54. package/rdsmssql/getBackup.js +28 -0
  55. package/rdsmssql/getBackup.js.map +1 -0
  56. package/rdsmssql/getBackups.d.ts +22 -0
  57. package/rdsmssql/getBackups.js +24 -0
  58. package/rdsmssql/getBackups.js.map +1 -0
  59. package/rdsmssql/index.d.ts +9 -0
  60. package/rdsmssql/index.js +12 -1
  61. package/rdsmssql/index.js.map +1 -1
  62. package/rdspostgresql/allowList.d.ts +24 -0
  63. package/rdspostgresql/allowList.js +4 -0
  64. package/rdspostgresql/allowList.js.map +1 -1
  65. package/rdspostgresql/getAllowList.d.ts +8 -0
  66. package/rdspostgresql/getAllowList.js.map +1 -1
  67. package/rdspostgresql/getInstanceSsl.d.ts +68 -0
  68. package/rdspostgresql/getInstanceSsl.js +28 -0
  69. package/rdspostgresql/getInstanceSsl.js.map +1 -0
  70. package/rdspostgresql/getInstanceSsls.d.ts +22 -0
  71. package/rdspostgresql/getInstanceSsls.js +24 -0
  72. package/rdspostgresql/getInstanceSsls.js.map +1 -0
  73. package/rdspostgresql/index.d.ts +9 -0
  74. package/rdspostgresql/index.js +12 -1
  75. package/rdspostgresql/index.js.map +1 -1
  76. package/rdspostgresql/instanceSsl.d.ts +134 -0
  77. package/rdspostgresql/instanceSsl.js +88 -0
  78. package/rdspostgresql/instanceSsl.js.map +1 -0
  79. package/redis/allowList.d.ts +2 -2
  80. package/redis/allowList.js +3 -0
  81. package/redis/allowList.js.map +1 -1
  82. package/storageebs/getSnapshotPolicies.d.ts +22 -0
  83. package/storageebs/getSnapshotPolicies.js +24 -0
  84. package/storageebs/getSnapshotPolicies.js.map +1 -0
  85. package/storageebs/getSnapshotPolicy.d.ts +93 -0
  86. package/storageebs/getSnapshotPolicy.js +28 -0
  87. package/storageebs/getSnapshotPolicy.js.map +1 -0
  88. package/storageebs/index.d.ts +9 -0
  89. package/storageebs/index.js +12 -1
  90. package/storageebs/index.js.map +1 -1
  91. package/storageebs/snapshotPolicy.d.ts +215 -0
  92. package/storageebs/snapshotPolicy.js +122 -0
  93. package/storageebs/snapshotPolicy.js.map +1 -0
  94. package/transitrouter/directConnectGatewayAttachment.d.ts +180 -0
  95. package/transitrouter/directConnectGatewayAttachment.js +106 -0
  96. package/transitrouter/directConnectGatewayAttachment.js.map +1 -0
  97. package/transitrouter/getDirectConnectGatewayAttachment.d.ts +89 -0
  98. package/transitrouter/getDirectConnectGatewayAttachment.js +28 -0
  99. package/transitrouter/getDirectConnectGatewayAttachment.js.map +1 -0
  100. package/transitrouter/getDirectConnectGatewayAttachments.d.ts +22 -0
  101. package/transitrouter/getDirectConnectGatewayAttachments.js +24 -0
  102. package/transitrouter/getDirectConnectGatewayAttachments.js.map +1 -0
  103. package/transitrouter/getTransitRouterBandwidthPackage.d.ts +141 -0
  104. package/transitrouter/getTransitRouterBandwidthPackage.js +28 -0
  105. package/transitrouter/getTransitRouterBandwidthPackage.js.map +1 -0
  106. package/transitrouter/getTransitRouterBandwidthPackages.d.ts +22 -0
  107. package/transitrouter/getTransitRouterBandwidthPackages.js +24 -0
  108. package/transitrouter/getTransitRouterBandwidthPackages.js.map +1 -0
  109. package/transitrouter/getTransitRouterRouteTableAssociation.d.ts +48 -0
  110. package/transitrouter/getTransitRouterRouteTableAssociation.js +28 -0
  111. package/transitrouter/getTransitRouterRouteTableAssociation.js.map +1 -0
  112. package/transitrouter/getTransitRouterRouteTableAssociations.d.ts +22 -0
  113. package/transitrouter/getTransitRouterRouteTableAssociations.js +24 -0
  114. package/transitrouter/getTransitRouterRouteTableAssociations.js.map +1 -0
  115. package/transitrouter/index.d.ts +27 -0
  116. package/transitrouter/index.js +34 -1
  117. package/transitrouter/index.js.map +1 -1
  118. package/transitrouter/transitRouterBandwidthPackage.d.ts +320 -0
  119. package/transitrouter/transitRouterBandwidthPackage.js +138 -0
  120. package/transitrouter/transitRouterBandwidthPackage.js.map +1 -0
  121. package/transitrouter/transitRouterRouteTableAssociation.d.ts +89 -0
  122. package/transitrouter/transitRouterRouteTableAssociation.js +80 -0
  123. package/transitrouter/transitRouterRouteTableAssociation.js.map +1 -0
  124. package/types/input.d.ts +167 -0
  125. package/types/output.d.ts +338 -0
@@ -0,0 +1,93 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Data Source schema for Volcengine::StorageEBS::SnapshotPolicy
5
+ */
6
+ export declare function getSnapshotPolicy(args: GetSnapshotPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetSnapshotPolicyResult>;
7
+ /**
8
+ * A collection of arguments for invoking getSnapshotPolicy.
9
+ */
10
+ export interface GetSnapshotPolicyArgs {
11
+ /**
12
+ * Uniquely identifies the resource.
13
+ */
14
+ id: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getSnapshotPolicy.
18
+ */
19
+ export interface GetSnapshotPolicyResult {
20
+ /**
21
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
22
+ */
23
+ readonly addVolumeIds: string[];
24
+ /**
25
+ * Automatic snapshot policy ID.
26
+ */
27
+ readonly autoSnapshotPolicyId: string;
28
+ /**
29
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
30
+ */
31
+ readonly autoSnapshotPolicyName: string;
32
+ /**
33
+ * Creation time of the automatic snapshot policy.
34
+ */
35
+ readonly createdAt: string;
36
+ /**
37
+ * Uniquely identifies the resource.
38
+ */
39
+ readonly id: string;
40
+ /**
41
+ * Project associated with the automatic snapshot policy.
42
+ */
43
+ readonly projectName: string;
44
+ /**
45
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
46
+ */
47
+ readonly removeVolumeIds: string[];
48
+ /**
49
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
50
+ */
51
+ readonly repeatDays: number;
52
+ /**
53
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
54
+ */
55
+ readonly repeatWeekdays: string[];
56
+ /**
57
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
58
+ */
59
+ readonly retentionDays: number;
60
+ /**
61
+ * Reserved parameter.
62
+ */
63
+ readonly status: string;
64
+ /**
65
+ * Tag.
66
+ */
67
+ readonly tags: outputs.storageebs.GetSnapshotPolicyTag[];
68
+ /**
69
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
70
+ */
71
+ readonly timePoints: string[];
72
+ /**
73
+ * Update time of the automatic snapshot policy.
74
+ */
75
+ readonly updatedAt: string;
76
+ /**
77
+ * Total number of cloud disks.
78
+ */
79
+ readonly volumeNums: number;
80
+ }
81
+ /**
82
+ * Data Source schema for Volcengine::StorageEBS::SnapshotPolicy
83
+ */
84
+ export declare function getSnapshotPolicyOutput(args: GetSnapshotPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSnapshotPolicyResult>;
85
+ /**
86
+ * A collection of arguments for invoking getSnapshotPolicy.
87
+ */
88
+ export interface GetSnapshotPolicyOutputArgs {
89
+ /**
90
+ * Uniquely identifies the resource.
91
+ */
92
+ id: pulumi.Input<string>;
93
+ }
@@ -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.getSnapshotPolicyOutput = exports.getSnapshotPolicy = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Data Source schema for Volcengine::StorageEBS::SnapshotPolicy
10
+ */
11
+ function getSnapshotPolicy(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:storageebs/getSnapshotPolicy:getSnapshotPolicy", {
14
+ "id": args.id,
15
+ }, opts);
16
+ }
17
+ exports.getSnapshotPolicy = getSnapshotPolicy;
18
+ /**
19
+ * Data Source schema for Volcengine::StorageEBS::SnapshotPolicy
20
+ */
21
+ function getSnapshotPolicyOutput(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("volcenginecc:storageebs/getSnapshotPolicy:getSnapshotPolicy", {
24
+ "id": args.id,
25
+ }, opts);
26
+ }
27
+ exports.getSnapshotPolicyOutput = getSnapshotPolicyOutput;
28
+ //# sourceMappingURL=getSnapshotPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSnapshotPolicy.js","sourceRoot":"","sources":["../../storageebs/getSnapshotPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,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;QACxF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC;AA6ED;;GAEG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAAiC;IACxG,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;QAC9F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0DAKC"}
@@ -7,6 +7,12 @@ export declare const getSnapshotGroupOutput: typeof import("./getSnapshotGroup")
7
7
  export { GetSnapshotGroupsResult } from "./getSnapshotGroups";
8
8
  export declare const getSnapshotGroups: typeof import("./getSnapshotGroups").getSnapshotGroups;
9
9
  export declare const getSnapshotGroupsOutput: typeof import("./getSnapshotGroups").getSnapshotGroupsOutput;
10
+ export { GetSnapshotPoliciesResult } from "./getSnapshotPolicies";
11
+ export declare const getSnapshotPolicies: typeof import("./getSnapshotPolicies").getSnapshotPolicies;
12
+ export declare const getSnapshotPoliciesOutput: typeof import("./getSnapshotPolicies").getSnapshotPoliciesOutput;
13
+ export { GetSnapshotPolicyArgs, GetSnapshotPolicyResult, GetSnapshotPolicyOutputArgs } from "./getSnapshotPolicy";
14
+ export declare const getSnapshotPolicy: typeof import("./getSnapshotPolicy").getSnapshotPolicy;
15
+ export declare const getSnapshotPolicyOutput: typeof import("./getSnapshotPolicy").getSnapshotPolicyOutput;
10
16
  export { GetSnapshotsResult } from "./getSnapshots";
11
17
  export declare const getSnapshots: typeof import("./getSnapshots").getSnapshots;
12
18
  export declare const getSnapshotsOutput: typeof import("./getSnapshots").getSnapshotsOutput;
@@ -22,6 +28,9 @@ export declare const Snapshot: typeof import("./snapshot").Snapshot;
22
28
  export { SnapshotGroupArgs, SnapshotGroupState } from "./snapshotGroup";
23
29
  export type SnapshotGroup = import("./snapshotGroup").SnapshotGroup;
24
30
  export declare const SnapshotGroup: typeof import("./snapshotGroup").SnapshotGroup;
31
+ export { SnapshotPolicyArgs, SnapshotPolicyState } from "./snapshotPolicy";
32
+ export type SnapshotPolicy = import("./snapshotPolicy").SnapshotPolicy;
33
+ export declare const SnapshotPolicy: typeof import("./snapshotPolicy").SnapshotPolicy;
25
34
  export { VolumeArgs, VolumeState } from "./volume";
26
35
  export type Volume = import("./volume").Volume;
27
36
  export declare const Volume: typeof import("./volume").Volume;
@@ -2,7 +2,7 @@
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.Volume = exports.SnapshotGroup = exports.Snapshot = exports.getVolumesOutput = exports.getVolumes = exports.getVolumeOutput = exports.getVolume = exports.getSnapshotsOutput = exports.getSnapshots = exports.getSnapshotGroupsOutput = exports.getSnapshotGroups = exports.getSnapshotGroupOutput = exports.getSnapshotGroup = exports.getSnapshotOutput = exports.getSnapshot = void 0;
5
+ exports.Volume = exports.SnapshotPolicy = exports.SnapshotGroup = exports.Snapshot = exports.getVolumesOutput = exports.getVolumes = exports.getVolumeOutput = exports.getVolume = exports.getSnapshotsOutput = exports.getSnapshots = exports.getSnapshotPolicyOutput = exports.getSnapshotPolicy = exports.getSnapshotPoliciesOutput = exports.getSnapshotPolicies = exports.getSnapshotGroupsOutput = exports.getSnapshotGroups = exports.getSnapshotGroupOutput = exports.getSnapshotGroup = exports.getSnapshotOutput = exports.getSnapshot = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.getSnapshot = null;
@@ -14,6 +14,12 @@ utilities.lazyLoad(exports, ["getSnapshotGroup", "getSnapshotGroupOutput"], () =
14
14
  exports.getSnapshotGroups = null;
15
15
  exports.getSnapshotGroupsOutput = null;
16
16
  utilities.lazyLoad(exports, ["getSnapshotGroups", "getSnapshotGroupsOutput"], () => require("./getSnapshotGroups"));
17
+ exports.getSnapshotPolicies = null;
18
+ exports.getSnapshotPoliciesOutput = null;
19
+ utilities.lazyLoad(exports, ["getSnapshotPolicies", "getSnapshotPoliciesOutput"], () => require("./getSnapshotPolicies"));
20
+ exports.getSnapshotPolicy = null;
21
+ exports.getSnapshotPolicyOutput = null;
22
+ utilities.lazyLoad(exports, ["getSnapshotPolicy", "getSnapshotPolicyOutput"], () => require("./getSnapshotPolicy"));
17
23
  exports.getSnapshots = null;
18
24
  exports.getSnapshotsOutput = null;
19
25
  utilities.lazyLoad(exports, ["getSnapshots", "getSnapshotsOutput"], () => require("./getSnapshots"));
@@ -27,6 +33,8 @@ exports.Snapshot = null;
27
33
  utilities.lazyLoad(exports, ["Snapshot"], () => require("./snapshot"));
28
34
  exports.SnapshotGroup = null;
29
35
  utilities.lazyLoad(exports, ["SnapshotGroup"], () => require("./snapshotGroup"));
36
+ exports.SnapshotPolicy = null;
37
+ utilities.lazyLoad(exports, ["SnapshotPolicy"], () => require("./snapshotPolicy"));
30
38
  exports.Volume = null;
31
39
  utilities.lazyLoad(exports, ["Volume"], () => require("./volume"));
32
40
  const _module = {
@@ -37,6 +45,8 @@ const _module = {
37
45
  return new exports.Snapshot(name, undefined, { urn });
38
46
  case "volcenginecc:storageebs/snapshotGroup:SnapshotGroup":
39
47
  return new exports.SnapshotGroup(name, undefined, { urn });
48
+ case "volcenginecc:storageebs/snapshotPolicy:SnapshotPolicy":
49
+ return new exports.SnapshotPolicy(name, undefined, { urn });
40
50
  case "volcenginecc:storageebs/volume:Volume":
41
51
  return new exports.Volume(name, undefined, { urn });
42
52
  default:
@@ -46,5 +56,6 @@ const _module = {
46
56
  };
47
57
  pulumi.runtime.registerResourceModule("volcenginecc", "storageebs/snapshot", _module);
48
58
  pulumi.runtime.registerResourceModule("volcenginecc", "storageebs/snapshotGroup", _module);
59
+ pulumi.runtime.registerResourceModule("volcenginecc", "storageebs/snapshotPolicy", _module);
49
60
  pulumi.runtime.registerResourceModule("volcenginecc", "storageebs/volume", _module);
50
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../storageebs/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACtE,QAAA,iBAAiB,GAAqD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,EAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAGpF,QAAA,gBAAgB,GAAyD,IAAW,CAAC;AACrF,QAAA,sBAAsB,GAA+D,IAAW,CAAC;AAC9G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,kBAAkB,EAAC,wBAAwB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAGnG,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACxF,QAAA,uBAAuB,GAAiE,IAAW,CAAC;AACjH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,EAAC,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAGtG,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAGvF,QAAA,SAA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AAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AAC1F,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"}
@@ -0,0 +1,215 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Automatic snapshot policy
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 storageEBSSnapshotPolicyDemo = new volcenginecc.storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo", {
14
+ * autoSnapshotPolicyName: "ccapi-test",
15
+ * timePoints: [
16
+ * "0",
17
+ * "1",
18
+ * ],
19
+ * repeatWeekdays: [
20
+ * "2",
21
+ * "5",
22
+ * ],
23
+ * retentionDays: 7,
24
+ * projectName: "default",
25
+ * addVolumeIds: [
26
+ * "vol-3x594jtg0g4cxxxxx",
27
+ * "vol-3x594j4dvp4i4txxxxx",
28
+ * ],
29
+ * tags: [{
30
+ * key: "env",
31
+ * value: "test",
32
+ * }],
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * ```sh
39
+ * $ pulumi import volcenginecc:storageebs/snapshotPolicy:SnapshotPolicy example "auto_snapshot_policy_id"
40
+ * ```
41
+ */
42
+ export declare class SnapshotPolicy extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing SnapshotPolicy resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnapshotPolicyState, opts?: pulumi.CustomResourceOptions): SnapshotPolicy;
53
+ /**
54
+ * Returns true if the given object is an instance of SnapshotPolicy. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj: any): obj is SnapshotPolicy;
58
+ /**
59
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
60
+ */
61
+ readonly addVolumeIds: pulumi.Output<string[]>;
62
+ /**
63
+ * Automatic snapshot policy ID.
64
+ */
65
+ readonly autoSnapshotPolicyId: pulumi.Output<string>;
66
+ /**
67
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
68
+ */
69
+ readonly autoSnapshotPolicyName: pulumi.Output<string>;
70
+ /**
71
+ * Creation time of the automatic snapshot policy.
72
+ */
73
+ readonly createdAt: pulumi.Output<string>;
74
+ /**
75
+ * Project associated with the automatic snapshot policy.
76
+ */
77
+ readonly projectName: pulumi.Output<string>;
78
+ /**
79
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
80
+ */
81
+ readonly removeVolumeIds: pulumi.Output<string[]>;
82
+ /**
83
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
84
+ */
85
+ readonly repeatDays: pulumi.Output<number>;
86
+ /**
87
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
88
+ */
89
+ readonly repeatWeekdays: pulumi.Output<string[]>;
90
+ /**
91
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
92
+ */
93
+ readonly retentionDays: pulumi.Output<number>;
94
+ /**
95
+ * Reserved parameter.
96
+ */
97
+ readonly status: pulumi.Output<string>;
98
+ readonly tags: pulumi.Output<outputs.storageebs.SnapshotPolicyTag[]>;
99
+ /**
100
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
101
+ */
102
+ readonly timePoints: pulumi.Output<string[]>;
103
+ /**
104
+ * Update time of the automatic snapshot policy.
105
+ */
106
+ readonly updatedAt: pulumi.Output<string>;
107
+ /**
108
+ * Total number of cloud disks.
109
+ */
110
+ readonly volumeNums: pulumi.Output<number>;
111
+ /**
112
+ * Create a SnapshotPolicy resource with the given unique name, arguments, and options.
113
+ *
114
+ * @param name The _unique_ name of the resource.
115
+ * @param args The arguments to use to populate this resource's properties.
116
+ * @param opts A bag of options that control this resource's behavior.
117
+ */
118
+ constructor(name: string, args: SnapshotPolicyArgs, opts?: pulumi.CustomResourceOptions);
119
+ }
120
+ /**
121
+ * Input properties used for looking up and filtering SnapshotPolicy resources.
122
+ */
123
+ export interface SnapshotPolicyState {
124
+ /**
125
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
126
+ */
127
+ addVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
128
+ /**
129
+ * Automatic snapshot policy ID.
130
+ */
131
+ autoSnapshotPolicyId?: pulumi.Input<string>;
132
+ /**
133
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
134
+ */
135
+ autoSnapshotPolicyName?: pulumi.Input<string>;
136
+ /**
137
+ * Creation time of the automatic snapshot policy.
138
+ */
139
+ createdAt?: pulumi.Input<string>;
140
+ /**
141
+ * Project associated with the automatic snapshot policy.
142
+ */
143
+ projectName?: pulumi.Input<string>;
144
+ /**
145
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
146
+ */
147
+ removeVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
148
+ /**
149
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
150
+ */
151
+ repeatDays?: pulumi.Input<number>;
152
+ /**
153
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
154
+ */
155
+ repeatWeekdays?: pulumi.Input<pulumi.Input<string>[]>;
156
+ /**
157
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
158
+ */
159
+ retentionDays?: pulumi.Input<number>;
160
+ /**
161
+ * Reserved parameter.
162
+ */
163
+ status?: pulumi.Input<string>;
164
+ tags?: pulumi.Input<pulumi.Input<inputs.storageebs.SnapshotPolicyTag>[]>;
165
+ /**
166
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
167
+ */
168
+ timePoints?: pulumi.Input<pulumi.Input<string>[]>;
169
+ /**
170
+ * Update time of the automatic snapshot policy.
171
+ */
172
+ updatedAt?: pulumi.Input<string>;
173
+ /**
174
+ * Total number of cloud disks.
175
+ */
176
+ volumeNums?: pulumi.Input<number>;
177
+ }
178
+ /**
179
+ * The set of arguments for constructing a SnapshotPolicy resource.
180
+ */
181
+ export interface SnapshotPolicyArgs {
182
+ /**
183
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
184
+ */
185
+ addVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
186
+ /**
187
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
188
+ */
189
+ autoSnapshotPolicyName: pulumi.Input<string>;
190
+ /**
191
+ * Project associated with the automatic snapshot policy.
192
+ */
193
+ projectName?: pulumi.Input<string>;
194
+ /**
195
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
196
+ */
197
+ removeVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
198
+ /**
199
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
200
+ */
201
+ repeatDays?: pulumi.Input<number>;
202
+ /**
203
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
204
+ */
205
+ repeatWeekdays?: pulumi.Input<pulumi.Input<string>[]>;
206
+ /**
207
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
208
+ */
209
+ retentionDays: pulumi.Input<number>;
210
+ tags?: pulumi.Input<pulumi.Input<inputs.storageebs.SnapshotPolicyTag>[]>;
211
+ /**
212
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
213
+ */
214
+ timePoints: pulumi.Input<pulumi.Input<string>[]>;
215
+ }
@@ -0,0 +1,122 @@
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.SnapshotPolicy = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Automatic snapshot policy
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 storageEBSSnapshotPolicyDemo = new volcenginecc.storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo", {
18
+ * autoSnapshotPolicyName: "ccapi-test",
19
+ * timePoints: [
20
+ * "0",
21
+ * "1",
22
+ * ],
23
+ * repeatWeekdays: [
24
+ * "2",
25
+ * "5",
26
+ * ],
27
+ * retentionDays: 7,
28
+ * projectName: "default",
29
+ * addVolumeIds: [
30
+ * "vol-3x594jtg0g4cxxxxx",
31
+ * "vol-3x594j4dvp4i4txxxxx",
32
+ * ],
33
+ * tags: [{
34
+ * key: "env",
35
+ * value: "test",
36
+ * }],
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * ```sh
43
+ * $ pulumi import volcenginecc:storageebs/snapshotPolicy:SnapshotPolicy example "auto_snapshot_policy_id"
44
+ * ```
45
+ */
46
+ class SnapshotPolicy extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing SnapshotPolicy 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, id, state, opts) {
57
+ return new SnapshotPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
58
+ }
59
+ /**
60
+ * Returns true if the given object is an instance of SnapshotPolicy. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj) {
64
+ if (obj === undefined || obj === null) {
65
+ return false;
66
+ }
67
+ return obj['__pulumiType'] === SnapshotPolicy.__pulumiType;
68
+ }
69
+ constructor(name, argsOrState, opts) {
70
+ let resourceInputs = {};
71
+ opts = opts || {};
72
+ if (opts.id) {
73
+ const state = argsOrState;
74
+ resourceInputs["addVolumeIds"] = state ? state.addVolumeIds : undefined;
75
+ resourceInputs["autoSnapshotPolicyId"] = state ? state.autoSnapshotPolicyId : undefined;
76
+ resourceInputs["autoSnapshotPolicyName"] = state ? state.autoSnapshotPolicyName : undefined;
77
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
78
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
79
+ resourceInputs["removeVolumeIds"] = state ? state.removeVolumeIds : undefined;
80
+ resourceInputs["repeatDays"] = state ? state.repeatDays : undefined;
81
+ resourceInputs["repeatWeekdays"] = state ? state.repeatWeekdays : undefined;
82
+ resourceInputs["retentionDays"] = state ? state.retentionDays : undefined;
83
+ resourceInputs["status"] = state ? state.status : undefined;
84
+ resourceInputs["tags"] = state ? state.tags : undefined;
85
+ resourceInputs["timePoints"] = state ? state.timePoints : undefined;
86
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
87
+ resourceInputs["volumeNums"] = state ? state.volumeNums : undefined;
88
+ }
89
+ else {
90
+ const args = argsOrState;
91
+ if ((!args || args.autoSnapshotPolicyName === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'autoSnapshotPolicyName'");
93
+ }
94
+ if ((!args || args.retentionDays === undefined) && !opts.urn) {
95
+ throw new Error("Missing required property 'retentionDays'");
96
+ }
97
+ if ((!args || args.timePoints === undefined) && !opts.urn) {
98
+ throw new Error("Missing required property 'timePoints'");
99
+ }
100
+ resourceInputs["addVolumeIds"] = args ? args.addVolumeIds : undefined;
101
+ resourceInputs["autoSnapshotPolicyName"] = args ? args.autoSnapshotPolicyName : undefined;
102
+ resourceInputs["projectName"] = args ? args.projectName : undefined;
103
+ resourceInputs["removeVolumeIds"] = args ? args.removeVolumeIds : undefined;
104
+ resourceInputs["repeatDays"] = args ? args.repeatDays : undefined;
105
+ resourceInputs["repeatWeekdays"] = args ? args.repeatWeekdays : undefined;
106
+ resourceInputs["retentionDays"] = args ? args.retentionDays : undefined;
107
+ resourceInputs["tags"] = args ? args.tags : undefined;
108
+ resourceInputs["timePoints"] = args ? args.timePoints : undefined;
109
+ resourceInputs["autoSnapshotPolicyId"] = undefined /*out*/;
110
+ resourceInputs["createdAt"] = undefined /*out*/;
111
+ resourceInputs["status"] = undefined /*out*/;
112
+ resourceInputs["updatedAt"] = undefined /*out*/;
113
+ resourceInputs["volumeNums"] = undefined /*out*/;
114
+ }
115
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
116
+ super(SnapshotPolicy.__pulumiType, name, resourceInputs, opts);
117
+ }
118
+ }
119
+ exports.SnapshotPolicy = SnapshotPolicy;
120
+ /** @internal */
121
+ SnapshotPolicy.__pulumiType = 'volcenginecc:storageebs/snapshotPolicy:SnapshotPolicy';
122
+ //# sourceMappingURL=snapshotPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshotPolicy.js","sourceRoot":"","sources":["../../storageebs/snapshotPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAgED,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cA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