@byteplus/pulumi-bytepluscc 0.0.50 → 0.0.52

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 (142) hide show
  1. package/cloudidentity/getUser.d.ts +8 -0
  2. package/cloudidentity/getUser.d.ts.map +1 -1
  3. package/cloudidentity/getUser.js.map +1 -1
  4. package/cloudidentity/user.d.ts +20 -0
  5. package/cloudidentity/user.d.ts.map +1 -1
  6. package/cloudidentity/user.js +4 -0
  7. package/cloudidentity/user.js.map +1 -1
  8. package/cr/getRobotAccount.d.ts +82 -0
  9. package/cr/getRobotAccount.d.ts.map +1 -0
  10. package/cr/getRobotAccount.js +51 -0
  11. package/cr/getRobotAccount.js.map +1 -0
  12. package/cr/getRobotAccounts.d.ts +23 -0
  13. package/cr/getRobotAccounts.d.ts.map +1 -0
  14. package/cr/getRobotAccounts.js +47 -0
  15. package/cr/getRobotAccounts.js.map +1 -0
  16. package/cr/index.d.ts +9 -0
  17. package/cr/index.d.ts.map +1 -1
  18. package/cr/index.js +12 -1
  19. package/cr/index.js.map +1 -1
  20. package/cr/robotAccount.d.ts +201 -0
  21. package/cr/robotAccount.d.ts.map +1 -0
  22. package/cr/robotAccount.js +143 -0
  23. package/cr/robotAccount.js.map +1 -0
  24. package/ecs/dedicatedHostCluster.d.ts +137 -0
  25. package/ecs/dedicatedHostCluster.d.ts.map +1 -0
  26. package/ecs/dedicatedHostCluster.js +114 -0
  27. package/ecs/dedicatedHostCluster.js.map +1 -0
  28. package/ecs/getDedicatedHostCluster.d.ts +70 -0
  29. package/ecs/getDedicatedHostCluster.d.ts.map +1 -0
  30. package/ecs/getDedicatedHostCluster.js +51 -0
  31. package/ecs/getDedicatedHostCluster.js.map +1 -0
  32. package/ecs/getDedicatedHostClusters.d.ts +23 -0
  33. package/ecs/getDedicatedHostClusters.d.ts.map +1 -0
  34. package/ecs/getDedicatedHostClusters.js +47 -0
  35. package/ecs/getDedicatedHostClusters.js.map +1 -0
  36. package/ecs/index.d.ts +9 -0
  37. package/ecs/index.d.ts.map +1 -1
  38. package/ecs/index.js +13 -1
  39. package/ecs/index.js.map +1 -1
  40. package/iam/apiKey.d.ts +139 -0
  41. package/iam/apiKey.d.ts.map +1 -0
  42. package/iam/apiKey.js +114 -0
  43. package/iam/apiKey.js.map +1 -0
  44. package/iam/getApiKey.d.ts +69 -0
  45. package/iam/getApiKey.d.ts.map +1 -0
  46. package/iam/getApiKey.js +51 -0
  47. package/iam/getApiKey.js.map +1 -0
  48. package/iam/getApiKeys.d.ts +23 -0
  49. package/iam/getApiKeys.d.ts.map +1 -0
  50. package/iam/getApiKeys.js +47 -0
  51. package/iam/getApiKeys.js.map +1 -0
  52. package/iam/index.d.ts +9 -0
  53. package/iam/index.d.ts.map +1 -1
  54. package/iam/index.js +12 -1
  55. package/iam/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/rdsmysql/getInstance.d.ts +1 -1
  58. package/rdsmysql/instance.d.ts +3 -3
  59. package/redis/getKeyScanJob.d.ts +77 -0
  60. package/redis/getKeyScanJob.d.ts.map +1 -0
  61. package/redis/getKeyScanJob.js +51 -0
  62. package/redis/getKeyScanJob.js.map +1 -0
  63. package/redis/getKeyScanJobs.d.ts +23 -0
  64. package/redis/getKeyScanJobs.d.ts.map +1 -0
  65. package/redis/getKeyScanJobs.js +47 -0
  66. package/redis/getKeyScanJobs.js.map +1 -0
  67. package/redis/index.d.ts +9 -0
  68. package/redis/index.d.ts.map +1 -1
  69. package/redis/index.js +12 -1
  70. package/redis/index.js.map +1 -1
  71. package/redis/keyScanJob.d.ts +151 -0
  72. package/redis/keyScanJob.d.ts.map +1 -0
  73. package/redis/keyScanJob.js +121 -0
  74. package/redis/keyScanJob.js.map +1 -0
  75. package/types/input.d.ts +109 -4
  76. package/types/input.d.ts.map +1 -1
  77. package/types/output.d.ts +216 -5
  78. package/types/output.d.ts.map +1 -1
  79. package/vpc/getIpamPool.d.ts +2 -2
  80. package/vpc/getIpamPool.js +2 -2
  81. package/vpc/getIpamPools.d.ts +2 -2
  82. package/vpc/getIpamPools.js +2 -2
  83. package/vpc/getIpamScope.d.ts +2 -2
  84. package/vpc/getIpamScope.js +2 -2
  85. package/vpc/getIpamScopes.d.ts +2 -2
  86. package/vpc/getIpamScopes.js +2 -2
  87. package/vpc/getIpv4Gateway.d.ts +77 -0
  88. package/vpc/getIpv4Gateway.d.ts.map +1 -0
  89. package/vpc/getIpv4Gateway.js +51 -0
  90. package/vpc/getIpv4Gateway.js.map +1 -0
  91. package/vpc/getIpv4Gateways.d.ts +23 -0
  92. package/vpc/getIpv4Gateways.d.ts.map +1 -0
  93. package/vpc/getIpv4Gateways.js +47 -0
  94. package/vpc/getIpv4Gateways.js.map +1 -0
  95. package/vpc/index.d.ts +9 -0
  96. package/vpc/index.d.ts.map +1 -1
  97. package/vpc/index.js +14 -3
  98. package/vpc/index.js.map +1 -1
  99. package/vpc/ipv4Gateway.d.ts +155 -0
  100. package/vpc/ipv4Gateway.d.ts.map +1 -0
  101. package/vpc/ipv4Gateway.js +112 -0
  102. package/vpc/ipv4Gateway.js.map +1 -0
  103. package/waf/customPage.d.ts +272 -0
  104. package/waf/customPage.d.ts.map +1 -0
  105. package/waf/customPage.js +156 -0
  106. package/waf/customPage.js.map +1 -0
  107. package/waf/getCustomPage.d.ts +110 -0
  108. package/waf/getCustomPage.d.ts.map +1 -0
  109. package/waf/getCustomPage.js +51 -0
  110. package/waf/getCustomPage.js.map +1 -0
  111. package/waf/getCustomPages.d.ts +23 -0
  112. package/waf/getCustomPages.d.ts.map +1 -0
  113. package/waf/getCustomPages.js +47 -0
  114. package/waf/getCustomPages.js.map +1 -0
  115. package/waf/getIpGroup.d.ts +62 -0
  116. package/waf/getIpGroup.d.ts.map +1 -0
  117. package/waf/getIpGroup.js +51 -0
  118. package/waf/getIpGroup.js.map +1 -0
  119. package/waf/getIpGroups.d.ts +23 -0
  120. package/waf/getIpGroups.d.ts.map +1 -0
  121. package/waf/getIpGroups.js +47 -0
  122. package/waf/getIpGroups.js.map +1 -0
  123. package/waf/getSystemBot.d.ts +38 -0
  124. package/waf/getSystemBot.d.ts.map +1 -0
  125. package/waf/getSystemBot.js +51 -0
  126. package/waf/getSystemBot.js.map +1 -0
  127. package/waf/getSystemBots.d.ts +23 -0
  128. package/waf/getSystemBots.d.ts.map +1 -0
  129. package/waf/getSystemBots.js +47 -0
  130. package/waf/getSystemBots.js.map +1 -0
  131. package/waf/index.d.ts +27 -0
  132. package/waf/index.d.ts.map +1 -1
  133. package/waf/index.js +34 -1
  134. package/waf/index.js.map +1 -1
  135. package/waf/ipGroup.d.ts +121 -0
  136. package/waf/ipGroup.d.ts.map +1 -0
  137. package/waf/ipGroup.js +112 -0
  138. package/waf/ipGroup.js.map +1 -0
  139. package/waf/systemBot.d.ts +172 -0
  140. package/waf/systemBot.d.ts.map +1 -0
  141. package/waf/systemBot.js +121 -0
  142. package/waf/systemBot.js.map +1 -0
@@ -0,0 +1,172 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Volcengine WAF system Bot rule configuration. System Bot rules are built-in bot detection rules in WAF, categorized by BotType. Each category contains several independently configurable sub-rules (SubRule), each uniquely identified by a RuleTag. Use UpdateSystemBotConfig to set the action and switch for a sub-rule (RuleTag) under a specified domain (Host) (Enable=1 means enabled and considered created, Enable=0 means disabled and considered deleted), and use ListSystemBotConfig to query the current configuration of each sub-rule. Resource granularity is 'domain name + sub-rule tag'.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
10
+ *
11
+ * const example = new bytepluscc.waf.SystemBot("example", {
12
+ * host: "www.testwaf.com",
13
+ * ruleTag: "J000000000025",
14
+ * botType: "search_engine_bot",
15
+ * action: "js",
16
+ * projectName: "default",
17
+ * verificationExemptionTime: 300,
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * ```sh
24
+ * $ pulumi import bytepluscc:waf/systemBot:SystemBot example "host|rule_tag"
25
+ * ```
26
+ */
27
+ export declare class SystemBot extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing SystemBot resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SystemBotState, opts?: pulumi.CustomResourceOptions): SystemBot;
38
+ /**
39
+ * Returns true if the given object is an instance of SystemBot. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is SystemBot;
43
+ /**
44
+ * Action taken when this sub-rule is triggered. Values: observe, block, etc.
45
+ */
46
+ readonly action: pulumi.Output<string>;
47
+ /**
48
+ * Category of the system Bot rule, such as llmCrawlerBot (large model crawler), userBot (user-triggered crawling), searchEngineBot (search engine), marketing (marketing tool), etc.
49
+ */
50
+ readonly botType: pulumi.Output<string>;
51
+ /**
52
+ * Description of the sub-rule.
53
+ */
54
+ readonly description: pulumi.Output<string>;
55
+ /**
56
+ * Sub-rule switch. Values:
57
+ *
58
+ * - 1: Enabled (fixed as 1 when created)
59
+ * - 0: Disabled (fixed as 0 when deleted)
60
+ */
61
+ readonly enable: pulumi.Output<number>;
62
+ /**
63
+ * Domain name to be protected by the system Bot rule.
64
+ */
65
+ readonly host: pulumi.Output<string>;
66
+ /**
67
+ * Whether this sub-rule supports IP-based matching.
68
+ */
69
+ readonly ipMatch: pulumi.Output<boolean>;
70
+ /**
71
+ * Sub-rule name.
72
+ */
73
+ readonly name: pulumi.Output<string>;
74
+ /**
75
+ * Project name to which the resource belongs.
76
+ */
77
+ readonly projectName: pulumi.Output<string>;
78
+ /**
79
+ * Unique tag for the system Bot sub-rule, such as J000000001026. Used to uniquely identify a sub-rule within a BotType category.
80
+ */
81
+ readonly ruleTag: pulumi.Output<string>;
82
+ /**
83
+ * Verification exemption duration, in seconds. The period during which verification is not required after a hit and successful verification.
84
+ */
85
+ readonly verificationExemptionTime: pulumi.Output<number>;
86
+ /**
87
+ * Create a SystemBot resource with the given unique name, arguments, and options.
88
+ *
89
+ * @param name The _unique_ name of the resource.
90
+ * @param args The arguments to use to populate this resource's properties.
91
+ * @param opts A bag of options that control this resource's behavior.
92
+ */
93
+ constructor(name: string, args: SystemBotArgs, opts?: pulumi.CustomResourceOptions);
94
+ }
95
+ /**
96
+ * Input properties used for looking up and filtering SystemBot resources.
97
+ */
98
+ export interface SystemBotState {
99
+ /**
100
+ * Action taken when this sub-rule is triggered. Values: observe, block, etc.
101
+ */
102
+ action?: pulumi.Input<string | undefined>;
103
+ /**
104
+ * Category of the system Bot rule, such as llmCrawlerBot (large model crawler), userBot (user-triggered crawling), searchEngineBot (search engine), marketing (marketing tool), etc.
105
+ */
106
+ botType?: pulumi.Input<string | undefined>;
107
+ /**
108
+ * Description of the sub-rule.
109
+ */
110
+ description?: pulumi.Input<string | undefined>;
111
+ /**
112
+ * Sub-rule switch. Values:
113
+ *
114
+ * - 1: Enabled (fixed as 1 when created)
115
+ * - 0: Disabled (fixed as 0 when deleted)
116
+ */
117
+ enable?: pulumi.Input<number | undefined>;
118
+ /**
119
+ * Domain name to be protected by the system Bot rule.
120
+ */
121
+ host?: pulumi.Input<string | undefined>;
122
+ /**
123
+ * Whether this sub-rule supports IP-based matching.
124
+ */
125
+ ipMatch?: pulumi.Input<boolean | undefined>;
126
+ /**
127
+ * Sub-rule name.
128
+ */
129
+ name?: pulumi.Input<string | undefined>;
130
+ /**
131
+ * Project name to which the resource belongs.
132
+ */
133
+ projectName?: pulumi.Input<string | undefined>;
134
+ /**
135
+ * Unique tag for the system Bot sub-rule, such as J000000001026. Used to uniquely identify a sub-rule within a BotType category.
136
+ */
137
+ ruleTag?: pulumi.Input<string | undefined>;
138
+ /**
139
+ * Verification exemption duration, in seconds. The period during which verification is not required after a hit and successful verification.
140
+ */
141
+ verificationExemptionTime?: pulumi.Input<number | undefined>;
142
+ }
143
+ /**
144
+ * The set of arguments for constructing a SystemBot resource.
145
+ */
146
+ export interface SystemBotArgs {
147
+ /**
148
+ * Action taken when this sub-rule is triggered. Values: observe, block, etc.
149
+ */
150
+ action?: pulumi.Input<string | undefined>;
151
+ /**
152
+ * Category of the system Bot rule, such as llmCrawlerBot (large model crawler), userBot (user-triggered crawling), searchEngineBot (search engine), marketing (marketing tool), etc.
153
+ */
154
+ botType?: pulumi.Input<string | undefined>;
155
+ /**
156
+ * Domain name to be protected by the system Bot rule.
157
+ */
158
+ host: pulumi.Input<string>;
159
+ /**
160
+ * Project name to which the resource belongs.
161
+ */
162
+ projectName?: pulumi.Input<string | undefined>;
163
+ /**
164
+ * Unique tag for the system Bot sub-rule, such as J000000001026. Used to uniquely identify a sub-rule within a BotType category.
165
+ */
166
+ ruleTag: pulumi.Input<string>;
167
+ /**
168
+ * Verification exemption duration, in seconds. The period during which verification is not required after a hit and successful verification.
169
+ */
170
+ verificationExemptionTime?: pulumi.Input<number | undefined>;
171
+ }
172
+ //# sourceMappingURL=systemBot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemBot.d.ts","sourceRoot":"","sources":["../../waf/systemBot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,SAAS;IAOpI;;;OAGG;WACW,UAAU,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SAAS,CAAC,CAAC;CAChE"}
@@ -0,0 +1,121 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.SystemBot = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Volcengine WAF system Bot rule configuration. System Bot rules are built-in bot detection rules in WAF, categorized by BotType. Each category contains several independently configurable sub-rules (SubRule), each uniquely identified by a RuleTag. Use UpdateSystemBotConfig to set the action and switch for a sub-rule (RuleTag) under a specified domain (Host) (Enable=1 means enabled and considered created, Enable=0 means disabled and considered deleted), and use ListSystemBotConfig to query the current configuration of each sub-rule. Resource granularity is 'domain name + sub-rule tag'.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
39
+ *
40
+ * const example = new bytepluscc.waf.SystemBot("example", {
41
+ * host: "www.testwaf.com",
42
+ * ruleTag: "J000000000025",
43
+ * botType: "search_engine_bot",
44
+ * action: "js",
45
+ * projectName: "default",
46
+ * verificationExemptionTime: 300,
47
+ * });
48
+ * ```
49
+ *
50
+ * ## Import
51
+ *
52
+ * ```sh
53
+ * $ pulumi import bytepluscc:waf/systemBot:SystemBot example "host|rule_tag"
54
+ * ```
55
+ */
56
+ class SystemBot extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing SystemBot resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name, id, state, opts) {
67
+ return new SystemBot(name, state, { ...opts, id: id });
68
+ }
69
+ /** @internal */
70
+ static __pulumiType = 'bytepluscc:waf/systemBot:SystemBot';
71
+ /**
72
+ * Returns true if the given object is an instance of SystemBot. This is designed to work even
73
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
74
+ */
75
+ static isInstance(obj) {
76
+ if (obj === undefined || obj === null) {
77
+ return false;
78
+ }
79
+ return obj['__pulumiType'] === SystemBot.__pulumiType;
80
+ }
81
+ constructor(name, argsOrState, opts) {
82
+ let resourceInputs = {};
83
+ opts = opts || {};
84
+ if (opts.id) {
85
+ const state = argsOrState;
86
+ resourceInputs["action"] = state?.action;
87
+ resourceInputs["botType"] = state?.botType;
88
+ resourceInputs["description"] = state?.description;
89
+ resourceInputs["enable"] = state?.enable;
90
+ resourceInputs["host"] = state?.host;
91
+ resourceInputs["ipMatch"] = state?.ipMatch;
92
+ resourceInputs["name"] = state?.name;
93
+ resourceInputs["projectName"] = state?.projectName;
94
+ resourceInputs["ruleTag"] = state?.ruleTag;
95
+ resourceInputs["verificationExemptionTime"] = state?.verificationExemptionTime;
96
+ }
97
+ else {
98
+ const args = argsOrState;
99
+ if (args?.host === undefined && !opts.urn) {
100
+ throw new Error("Missing required property 'host'");
101
+ }
102
+ if (args?.ruleTag === undefined && !opts.urn) {
103
+ throw new Error("Missing required property 'ruleTag'");
104
+ }
105
+ resourceInputs["action"] = args?.action;
106
+ resourceInputs["botType"] = args?.botType;
107
+ resourceInputs["host"] = args?.host;
108
+ resourceInputs["projectName"] = args?.projectName;
109
+ resourceInputs["ruleTag"] = args?.ruleTag;
110
+ resourceInputs["verificationExemptionTime"] = args?.verificationExemptionTime;
111
+ resourceInputs["description"] = undefined /*out*/;
112
+ resourceInputs["enable"] = undefined /*out*/;
113
+ resourceInputs["ipMatch"] = undefined /*out*/;
114
+ resourceInputs["name"] = undefined /*out*/;
115
+ }
116
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
117
+ super(SystemBot.__pulumiType, name, resourceInputs, opts);
118
+ }
119
+ }
120
+ exports.SystemBot = SystemBot;
121
+ //# sourceMappingURL=systemBot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemBot.js","sourceRoot":"","sources":["../../waf/systemBot.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oCAAoC,CAAC;IAE3E;;;OA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