@byteplus/pulumi-bytepluscc 0.0.46 → 0.0.48
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/autoscaling/getNotificationConfiguration.d.ts +57 -0
- package/autoscaling/getNotificationConfiguration.d.ts.map +1 -0
- package/autoscaling/getNotificationConfiguration.js +51 -0
- package/autoscaling/getNotificationConfiguration.js.map +1 -0
- package/autoscaling/getNotificationConfigurations.d.ts +23 -0
- package/autoscaling/getNotificationConfigurations.d.ts.map +1 -0
- package/autoscaling/getNotificationConfigurations.js +47 -0
- package/autoscaling/getNotificationConfigurations.js.map +1 -0
- package/autoscaling/index.d.ts +9 -0
- package/autoscaling/index.d.ts.map +1 -1
- package/autoscaling/index.js +12 -1
- package/autoscaling/index.js.map +1 -1
- package/autoscaling/notificationConfiguration.d.ts +122 -0
- package/autoscaling/notificationConfiguration.d.ts.map +1 -0
- package/autoscaling/notificationConfiguration.js +122 -0
- package/autoscaling/notificationConfiguration.js.map +1 -0
- package/certificateservice/getOrganizationInfo.d.ts +106 -0
- package/certificateservice/getOrganizationInfo.d.ts.map +1 -0
- package/certificateservice/getOrganizationInfo.js +51 -0
- package/certificateservice/getOrganizationInfo.js.map +1 -0
- package/certificateservice/getOrganizationInfos.d.ts +23 -0
- package/certificateservice/getOrganizationInfos.d.ts.map +1 -0
- package/certificateservice/getOrganizationInfos.js +47 -0
- package/certificateservice/getOrganizationInfos.js.map +1 -0
- package/certificateservice/index.d.ts +9 -0
- package/certificateservice/index.d.ts.map +1 -1
- package/certificateservice/index.js +12 -1
- package/certificateservice/index.js.map +1 -1
- package/certificateservice/organizationInfo.d.ts +273 -0
- package/certificateservice/organizationInfo.d.ts.map +1 -0
- package/certificateservice/organizationInfo.js +152 -0
- package/certificateservice/organizationInfo.js.map +1 -0
- package/config/configurationRecorder.d.ts +127 -0
- package/config/configurationRecorder.d.ts.map +1 -0
- package/config/configurationRecorder.js +109 -0
- package/config/configurationRecorder.js.map +1 -0
- package/config/getConfigurationRecorder.d.ts +65 -0
- package/config/getConfigurationRecorder.d.ts.map +1 -0
- package/config/getConfigurationRecorder.js +51 -0
- package/config/getConfigurationRecorder.js.map +1 -0
- package/config/getConfigurationRecorders.d.ts +23 -0
- package/config/getConfigurationRecorders.d.ts.map +1 -0
- package/config/getConfigurationRecorders.js +47 -0
- package/config/getConfigurationRecorders.js.map +1 -0
- package/config/getGroupRule.d.ts +86 -0
- package/config/getGroupRule.d.ts.map +1 -0
- package/config/getGroupRule.js +51 -0
- package/config/getGroupRule.js.map +1 -0
- package/config/getGroupRules.d.ts +23 -0
- package/config/getGroupRules.d.ts.map +1 -0
- package/config/getGroupRules.js +47 -0
- package/config/getGroupRules.js.map +1 -0
- package/config/getRule.d.ts +82 -0
- package/config/getRule.d.ts.map +1 -0
- package/config/getRule.js +51 -0
- package/config/getRule.js.map +1 -0
- package/config/getRules.d.ts +23 -0
- package/config/getRules.d.ts.map +1 -0
- package/config/getRules.js +47 -0
- package/config/getRules.js.map +1 -0
- package/config/groupRule.d.ts +227 -0
- package/config/groupRule.d.ts.map +1 -0
- package/config/groupRule.js +164 -0
- package/config/groupRule.js.map +1 -0
- package/config/index.d.ts +27 -0
- package/config/index.d.ts.map +1 -1
- package/config/index.js +57 -1
- package/config/index.js.map +1 -1
- package/config/rule.d.ts +214 -0
- package/config/rule.d.ts.map +1 -0
- package/config/rule.js +161 -0
- package/config/rule.js.map +1 -0
- package/config/vars.d.ts +18 -6
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +18 -0
- package/config/vars.js.map +1 -1
- package/ecs/getScheduledInstance.d.ts +69 -0
- package/ecs/getScheduledInstance.d.ts.map +1 -0
- package/ecs/getScheduledInstance.js +51 -0
- package/ecs/getScheduledInstance.js.map +1 -0
- package/ecs/getScheduledInstances.d.ts +23 -0
- package/ecs/getScheduledInstances.d.ts.map +1 -0
- package/ecs/getScheduledInstances.js +47 -0
- package/ecs/getScheduledInstances.js.map +1 -0
- package/ecs/index.d.ts +9 -0
- package/ecs/index.d.ts.map +1 -1
- package/ecs/index.js +12 -1
- package/ecs/index.js.map +1 -1
- package/ecs/scheduledInstance.d.ts +741 -0
- package/ecs/scheduledInstance.d.ts.map +1 -0
- package/ecs/scheduledInstance.js +248 -0
- package/ecs/scheduledInstance.js.map +1 -0
- package/package.json +1 -1
- package/provider.d.ts +31 -11
- package/provider.d.ts.map +1 -1
- package/provider.js +5 -0
- package/provider.js.map +1 -1
- package/rdsmysql/getInstance.d.ts +5 -5
- package/rdsmysql/getInstance.d.ts.map +1 -1
- package/rdsmysql/instance.d.ts +15 -15
- package/rdsmysql/instance.d.ts.map +1 -1
- package/rdsmysql/instance.js +2 -2
- package/rdsmysql/instance.js.map +1 -1
- package/transitrouter/getTransitRouterTrafficQosMarkingEntries.d.ts +23 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntries.d.ts.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntries.js +47 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntries.js.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntry.d.ts +129 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntry.d.ts.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntry.js +51 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingEntry.js.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicies.d.ts +23 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicies.d.ts.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicies.js +47 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicies.js.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicy.d.ts +65 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicy.d.ts.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicy.js +51 -0
- package/transitrouter/getTransitRouterTrafficQosMarkingPolicy.js.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntries.d.ts +23 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntries.d.ts.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntries.js +47 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntries.js.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntry.d.ts +81 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntry.d.ts.map +1 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntry.js +51 -0
- package/transitrouter/getTransitRouterTrafficQosQueueEntry.js.map +1 -0
- package/transitrouter/index.d.ts +27 -0
- package/transitrouter/index.d.ts.map +1 -1
- package/transitrouter/index.js +35 -1
- package/transitrouter/index.js.map +1 -1
- package/transitrouter/transitRouterTrafficQosMarkingEntry.d.ts +329 -0
- package/transitrouter/transitRouterTrafficQosMarkingEntry.d.ts.map +1 -0
- package/transitrouter/transitRouterTrafficQosMarkingEntry.js +163 -0
- package/transitrouter/transitRouterTrafficQosMarkingEntry.js.map +1 -0
- package/transitrouter/transitRouterTrafficQosMarkingPolicy.d.ts +127 -0
- package/transitrouter/transitRouterTrafficQosMarkingPolicy.d.ts.map +1 -0
- package/transitrouter/transitRouterTrafficQosMarkingPolicy.js +109 -0
- package/transitrouter/transitRouterTrafficQosMarkingPolicy.js.map +1 -0
- package/transitrouter/transitRouterTrafficQosQueueEntry.d.ts +177 -0
- package/transitrouter/transitRouterTrafficQosQueueEntry.d.ts.map +1 -0
- package/transitrouter/transitRouterTrafficQosQueueEntry.js +129 -0
- package/transitrouter/transitRouterTrafficQosQueueEntry.js.map +1 -0
- package/types/input.d.ts +524 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1069 -28
- package/types/output.d.ts.map +1 -1
- package/vpc/getIpPool.d.ts +114 -0
- package/vpc/getIpPool.d.ts.map +1 -0
- package/vpc/getIpPool.js +51 -0
- package/vpc/getIpPool.js.map +1 -0
- package/vpc/getIpPoolCidrBlock.d.ts +65 -0
- package/vpc/getIpPoolCidrBlock.d.ts.map +1 -0
- package/vpc/getIpPoolCidrBlock.js +51 -0
- package/vpc/getIpPoolCidrBlock.js.map +1 -0
- package/vpc/getIpPoolCidrBlocks.d.ts +23 -0
- package/vpc/getIpPoolCidrBlocks.d.ts.map +1 -0
- package/vpc/getIpPoolCidrBlocks.js +47 -0
- package/vpc/getIpPoolCidrBlocks.js.map +1 -0
- package/vpc/getIpPools.d.ts +23 -0
- package/vpc/getIpPools.d.ts.map +1 -0
- package/vpc/getIpPools.js +47 -0
- package/vpc/getIpPools.js.map +1 -0
- package/vpc/index.d.ts +18 -0
- package/vpc/index.d.ts.map +1 -1
- package/vpc/index.js +24 -2
- package/vpc/index.js.map +1 -1
- package/vpc/ipPool.d.ts +250 -0
- package/vpc/ipPool.d.ts.map +1 -0
- package/vpc/ipPool.js +139 -0
- package/vpc/ipPool.js.map +1 -0
- package/vpc/ipPoolCidrBlock.d.ts +126 -0
- package/vpc/ipPoolCidrBlock.d.ts.map +1 -0
- package/vpc/ipPoolCidrBlock.js +108 -0
- package/vpc/ipPoolCidrBlock.js.map +1 -0
|
@@ -0,0 +1,741 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Volcano Engine Cloud Server (ECS) ScheduledInstance. A ScheduledInstance allows you to schedule the automatic delivery of a batch of ECS instances at a future time. Supports two types: Elastic Scheduled Instance (Esi) and Elastic Scheduled Instance - Segmented (Segmented).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
|
|
12
|
+
*
|
|
13
|
+
* const example = new bytepluscc.ecs.ScheduledInstance("example", {
|
|
14
|
+
* imageId: "image-xxxxxxxxxxxxxxxxxxxx",
|
|
15
|
+
* instanceName: "ecs-example",
|
|
16
|
+
* instanceTypeId: "ecs.c3a.large",
|
|
17
|
+
* scheduledInstanceName: "scheduled-example",
|
|
18
|
+
* zoneId: "ap-southeast-1a",
|
|
19
|
+
* networkInterfaces: [{
|
|
20
|
+
* security_group_ids: ["sg-xxxxxxxxxxxxxxxxxxxx"],
|
|
21
|
+
* subnet_id: "subnet-xxxxxxxxxxxxxxxxxxxx",
|
|
22
|
+
* vpc_id: "vpc-xxxxxxxxxxxxxxxxxxxx",
|
|
23
|
+
* primary_ip_address: "",
|
|
24
|
+
* private_ip_addresses: [],
|
|
25
|
+
* }],
|
|
26
|
+
* volumes: [{
|
|
27
|
+
* size: 20,
|
|
28
|
+
* volume_type: "ESSD_PL0",
|
|
29
|
+
* delete_with_instance: false,
|
|
30
|
+
* extra_performance_iops: 0,
|
|
31
|
+
* extra_performance_throughput_mb: 0,
|
|
32
|
+
* extra_performance_type_id: "",
|
|
33
|
+
* snapshot_id: "",
|
|
34
|
+
* }],
|
|
35
|
+
* instanceCount: 1,
|
|
36
|
+
* minCount: 1,
|
|
37
|
+
* elasticScheduledInstanceType: "Esi",
|
|
38
|
+
* startDeliveryAt: "2026-12-31T02:00:00+08:00",
|
|
39
|
+
* endDeliveryAt: "2026-12-31T02:10:00+08:00",
|
|
40
|
+
* hostName: "cc-test",
|
|
41
|
+
* uniqueSuffix: false,
|
|
42
|
+
* suffixIndex: 1,
|
|
43
|
+
* projectName: "default",
|
|
44
|
+
* description: "instance-desc",
|
|
45
|
+
* scheduledInstanceDescription: "desc",
|
|
46
|
+
* keyPairName: "example-keypair",
|
|
47
|
+
* keepImageCredential: false,
|
|
48
|
+
* installRunCommandAgent: false,
|
|
49
|
+
* deletionProtection: false,
|
|
50
|
+
* securityEnhancementStrategy: "Active",
|
|
51
|
+
* httpTokens: "optional",
|
|
52
|
+
* userData: "",
|
|
53
|
+
* eipAddress: {
|
|
54
|
+
* bandwidth_mbps: 1,
|
|
55
|
+
* bandwidth_package_id: "",
|
|
56
|
+
* charge_type: "PayByTraffic",
|
|
57
|
+
* isp: "BGP",
|
|
58
|
+
* release_with_instance: false,
|
|
59
|
+
* security_protection_instance_id: 0,
|
|
60
|
+
* security_protection_types: [],
|
|
61
|
+
* },
|
|
62
|
+
* tags: [
|
|
63
|
+
* {
|
|
64
|
+
* key: "key1",
|
|
65
|
+
* value: "1",
|
|
66
|
+
* },
|
|
67
|
+
* {
|
|
68
|
+
* key: "key2",
|
|
69
|
+
* value: "2",
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* ## Import
|
|
76
|
+
*
|
|
77
|
+
* ```sh
|
|
78
|
+
* $ pulumi import bytepluscc:ecs/scheduledInstance:ScheduledInstance example "scheduled_instance_id"
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare class ScheduledInstance extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing ScheduledInstance resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScheduledInstanceState, opts?: pulumi.CustomResourceOptions): ScheduledInstance;
|
|
92
|
+
/**
|
|
93
|
+
* Returns true if the given object is an instance of ScheduledInstance. This is designed to work even
|
|
94
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
95
|
+
*/
|
|
96
|
+
static isInstance(obj: any): obj is ScheduledInstance;
|
|
97
|
+
/**
|
|
98
|
+
* Instance automatic release time. Must be at a 10-minute mark. When `ElasticScheduledInstanceType` is set to Segmented, this parameter is required. Value range: - When `DeliveryType` is Reserve, the earliest release time is one hour after the reserved delivery time slot. - When `DeliveryType` is Immediate, the earliest release time is the next 10-minute mark after the current time. For example, if the current time is 5:02, the earliest automatic release time is 5:20.
|
|
99
|
+
*/
|
|
100
|
+
readonly autoReleaseAt: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Specify the maximum CPU frequency in GHz. Value range: between the base frequency and turbo frequency of the CPU.
|
|
103
|
+
*
|
|
104
|
+
* **Note:**
|
|
105
|
+
* - Currently, only g3al (4xlarge, 8xlarge, 16xlarge, 32xlarge), c3al (4xlarge, 8xlarge, 16xlarge, 32xlarge), r3al (4xlarge, 8xlarge, 16xlarge), g4i, c4i, r4i, g4ie, c4ie, r4ie instances support this parameter.
|
|
106
|
+
* For details on base/turbo frequency and more information, see [Instance Specifications].
|
|
107
|
+
* - This feature is in invitation-only testing. To use it, contact your account manager.
|
|
108
|
+
*/
|
|
109
|
+
readonly cpuMaxFrequency: pulumi.Output<number>;
|
|
110
|
+
/**
|
|
111
|
+
* ScheduledInstance creation time.
|
|
112
|
+
*/
|
|
113
|
+
readonly createdAt: pulumi.Output<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Instance deletion protection attribute. Specifies whether the instance can be deleted via console or API. Values:
|
|
116
|
+
* - true: Enable instance deletion protection
|
|
117
|
+
* - false (default): Disable instance deletion protection
|
|
118
|
+
*/
|
|
119
|
+
readonly deletionProtection: pulumi.Output<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Number of delivered instances
|
|
122
|
+
*/
|
|
123
|
+
readonly deliveryCount: pulumi.Output<number>;
|
|
124
|
+
/**
|
|
125
|
+
* Elastic Scheduled Instance - Segmented delivery type. Values: - Reserve (default): scheduled delivery - Immediate: immediate delivery
|
|
126
|
+
* **Note:** - This parameter is required only when `ElasticScheduledInstanceType` is set to `Segmented`. - Elastic Scheduled Instance - Segmented is currently in invitation testing. To apply for a trial, please contact your account manager.
|
|
127
|
+
*/
|
|
128
|
+
readonly deliveryType: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Instance description. The default value is an empty string. - Must start with a letter or Chinese character. - Can only contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals sign '=', English comma ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters.
|
|
131
|
+
*/
|
|
132
|
+
readonly description: pulumi.Output<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Public IP configuration specified when creating the instance.
|
|
135
|
+
*/
|
|
136
|
+
readonly eipAddress: pulumi.Output<outputs.ecs.ScheduledInstanceEipAddress>;
|
|
137
|
+
/**
|
|
138
|
+
* Elastic scheduled instance type. Options: - Esi (default): Elastic scheduled instance. - Segmented: Elastic scheduled instance (time segment).
|
|
139
|
+
* **Note:** Elastic scheduled instance (time segment) is currently in invite-only beta. To try it, please contact your account manager.
|
|
140
|
+
*/
|
|
141
|
+
readonly elasticScheduledInstanceType: pulumi.Output<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Instance end delivery time. Must be on a 10-minute mark, and the interval with `StartDeliveryAt` must be 10 minutes
|
|
144
|
+
* - If `ElasticScheduledInstanceType` is `Esi`, the end delivery time must be within 4–8 hours after reservation
|
|
145
|
+
* - If `ElasticScheduledInstanceType` is `Segmented`:
|
|
146
|
+
* - If `DeliveryType` is `Reserve`, the end delivery time must be within 24 hours after reservation
|
|
147
|
+
* - If `DeliveryType` is `Immediate`, this parameter is not required
|
|
148
|
+
*/
|
|
149
|
+
readonly endDeliveryAt: pulumi.Output<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Instance hostname, which is the computer name inside the instance operating system.
|
|
152
|
+
* - Linux instances:
|
|
153
|
+
* - Letters, numbers, periods ("."), and hyphens ("-") are allowed.
|
|
154
|
+
* - Cannot start or end with a hyphen or period, and hyphens and periods cannot be used consecutively.
|
|
155
|
+
* - Length must be between 2 and 63 characters for Linux systems.
|
|
156
|
+
* - Windows instances:
|
|
157
|
+
* - Letters, numbers, and hyphens ("-") are allowed, but the name cannot consist of only numbers.
|
|
158
|
+
* - Cannot start or end with a hyphen, and hyphens cannot be used consecutively.
|
|
159
|
+
* - Length must be between 2 and 15 characters for Windows systems.
|
|
160
|
+
*
|
|
161
|
+
* **Note:**
|
|
162
|
+
* - If left blank, the hostname is automatically generated according to the iv - + initial hostname rule, for example, iv-3tigy72q3u3vj0******.
|
|
163
|
+
* - Initial hostname generation logic:
|
|
164
|
+
* - Linux: Extract all characters after the instance ID i-.
|
|
165
|
+
* - Windows: Extract the last 12 characters after the instance ID i-.
|
|
166
|
+
* - When creating instances in batches, you can use the `name_prefix[begin_number,bits]name_suffix` format to customize sequential hostnames. For details, see [Batch Set Sequential Instance Names or Hostnames].
|
|
167
|
+
*/
|
|
168
|
+
readonly hostName: pulumi.Output<string>;
|
|
169
|
+
/**
|
|
170
|
+
* When creating a high-performance computing GPU instance, specify the high-performance computing cluster ID.
|
|
171
|
+
*/
|
|
172
|
+
readonly hpcClusterId: pulumi.Output<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Instance metadata access mode: whether to enforce enhanced mode. Values: - optional (default): Not enforced (compatible mode), meaning instance metadata can be accessed either directly or via token-based authentication. - required: Enforced (enhanced mode only), meaning instance metadata can only be accessed via token-based authentication.
|
|
175
|
+
* **Note:** - For details on how to view metadata and supported metadata items, see [View Instance Metadata]. - Enhanced mode is currently in invitation testing. To request access, contact your account manager.
|
|
176
|
+
*/
|
|
177
|
+
readonly httpTokens: pulumi.Output<string>;
|
|
178
|
+
/**
|
|
179
|
+
* The image ID used to launch the instance. You can use [DescribeImages] to query available image resources.
|
|
180
|
+
*/
|
|
181
|
+
readonly imageId: pulumi.Output<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Whether to install the Cloud Assistant Agent when creating the instance. Values:
|
|
184
|
+
* - true: Install during creation
|
|
185
|
+
* - false (default): Do not install during creation
|
|
186
|
+
*
|
|
187
|
+
* **Note:**
|
|
188
|
+
* For more information about Cloud Assistant, see [Cloud Assistant Overview].
|
|
189
|
+
*/
|
|
190
|
+
readonly installRunCommandAgent: pulumi.Output<boolean>;
|
|
191
|
+
/**
|
|
192
|
+
* Instance configuration information for the elastic reservation order.
|
|
193
|
+
*/
|
|
194
|
+
readonly instanceConfig: pulumi.Output<outputs.ecs.ScheduledInstanceInstanceConfig>;
|
|
195
|
+
/**
|
|
196
|
+
* Number of instances to create. Value range:
|
|
197
|
+
* - If `ElasticScheduledInstanceType` is set to `Esi`, value range is 1–500.
|
|
198
|
+
* - If `ElasticScheduledInstanceType` is set to `Segmented`, then:
|
|
199
|
+
* - If `DeliveryType` is `Reserve`, value range is 1–500.
|
|
200
|
+
* - If `DeliveryType` is `Immediate`, value range is 1–100.
|
|
201
|
+
*
|
|
202
|
+
* **Note:**
|
|
203
|
+
* If 0 is entered, the default is 1.
|
|
204
|
+
*/
|
|
205
|
+
readonly instanceCount: pulumi.Output<number>;
|
|
206
|
+
/**
|
|
207
|
+
* Instance name
|
|
208
|
+
* - Must start with a letter or Chinese character
|
|
209
|
+
* - Can only contain Chinese characters, letters, numbers, underscores "_", hyphens "-", and periods "."
|
|
210
|
+
* - Length must be between 1 and 128 characters
|
|
211
|
+
*
|
|
212
|
+
* **Note:**
|
|
213
|
+
* - If the instance has a `SuffixIndex` sequential suffix, the instance name length includes the suffix
|
|
214
|
+
* - When creating instances in bulk, you can use the `name_prefix[begin_number,bits]name_suffix` format to customize sequential instance names. For details, see [Batch Set Sequential Instance Names or Host Names]
|
|
215
|
+
*/
|
|
216
|
+
readonly instanceName: pulumi.Output<string>;
|
|
217
|
+
/**
|
|
218
|
+
* Instance type. - For supported instance types available for reservation, see [Elastic Scheduled Instance Overview]. - You can call [DescribeAvailableResource] to query inventory information for compute resources in the availability zone.
|
|
219
|
+
*/
|
|
220
|
+
readonly instanceTypeId: pulumi.Output<string>;
|
|
221
|
+
/**
|
|
222
|
+
* Elastic reservation order expiration time.
|
|
223
|
+
*/
|
|
224
|
+
readonly invalidAt: pulumi.Output<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Whether to retain image settings. Values: - true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. - false (default): Do not retain image settings.
|
|
227
|
+
* **Note:** - Only custom images and shared images support this feature. - When this parameter is set to `true`, do not specify `PassWord` or `KeyPairName`.
|
|
228
|
+
*/
|
|
229
|
+
readonly keepImageCredential: pulumi.Output<boolean>;
|
|
230
|
+
/**
|
|
231
|
+
* To log in to the instance using an SSH key, specify the name of an existing key pair. You can call [DescribeKeyPairs] to view existing key pairs; if none are available, call [CreateKeyPair] to create one
|
|
232
|
+
*
|
|
233
|
+
* **Note:**
|
|
234
|
+
* - Windows instances do not support SSH key login. Even if this parameter is provided, only the password `Password` is valid
|
|
235
|
+
* - Linux instances support login via password or key pair. If both `KeyPairName` and `Password` are set when calling this API, only `KeyPairName` takes effect
|
|
236
|
+
*/
|
|
237
|
+
readonly keyPairName: pulumi.Output<string>;
|
|
238
|
+
/**
|
|
239
|
+
* Specify the minimum number of Elastic Scheduled Instances to create. Value range: - ESI-General, ESI-Segmented (Scheduled Delivery): 1–500 - ESI-Segmented (Immediate Delivery): 1–100
|
|
240
|
+
* **Note:** - The minimum instance creation quantity `MinCount` ≤ creation quantity `Count`. - If inventory quantity > creation quantity `Count`, create according to `Count`. - If minimum creation quantity `MinCount` ≤ inventory quantity ≤ creation quantity `Count`, create according to inventory quantity. - If inventory quantity < minimum creation quantity `MinCount`, creation fails due to insufficient inventory.
|
|
241
|
+
*/
|
|
242
|
+
readonly minCount: pulumi.Output<number>;
|
|
243
|
+
/**
|
|
244
|
+
* Network interface configuration information specified when creating the instance.
|
|
245
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
246
|
+
*/
|
|
247
|
+
readonly networkInterfaces: pulumi.Output<outputs.ecs.ScheduledInstanceNetworkInterface[]>;
|
|
248
|
+
/**
|
|
249
|
+
* If you want to log in to the instance using the 'password' method, specify the initial login password for the administrator account through this parameter. The Linux administrator account is root, and the Windows administrator account is Administrator. Password complexity requirements: - Length must be between 8 and 30 characters. - Password must contain at least three of the following: uppercase letters, lowercase letters, numbers, and special characters. - Allowed special characters: `~!@#$%^&*()_-+=|{}[]:;'<>,.?/ - Cannot start with '/' or '$6$'.
|
|
250
|
+
* **Note:** Login credentials support three methods: 'password', 'key pair', and 'retain image settings'. When using the 'password' method to log in, it is recommended to increase password complexity for enhanced security.
|
|
251
|
+
*/
|
|
252
|
+
readonly password: pulumi.Output<string>;
|
|
253
|
+
/**
|
|
254
|
+
* Project to which the resource belongs. Each resource can belong to only one project. - Can only contain letters, numbers, underscore '_', period '.', and hyphen '-'. - Maximum length is 64 characters.
|
|
255
|
+
*/
|
|
256
|
+
readonly projectName: pulumi.Output<string>;
|
|
257
|
+
/**
|
|
258
|
+
* Number of released instances.
|
|
259
|
+
*/
|
|
260
|
+
readonly releaseCount: pulumi.Output<number>;
|
|
261
|
+
/**
|
|
262
|
+
* Description of the flexible reservation order. The default value is an empty string. - Must start with a letter or Chinese character. - Can only contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals sign '=', English comma ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters.
|
|
263
|
+
*/
|
|
264
|
+
readonly scheduledInstanceDescription: pulumi.Output<string>;
|
|
265
|
+
/**
|
|
266
|
+
* Elastic reservation order ID.
|
|
267
|
+
*/
|
|
268
|
+
readonly scheduledInstanceId: pulumi.Output<string>;
|
|
269
|
+
/**
|
|
270
|
+
* Name of the elastic reservation order. Values: - Cannot start with a number, hyphen, or underscore. - Can only contain Chinese characters, letters, numbers, underscores, and hyphens. - Length limit: 1–128 characters. - Special characters are not supported.
|
|
271
|
+
*/
|
|
272
|
+
readonly scheduledInstanceName: pulumi.Output<string>;
|
|
273
|
+
/**
|
|
274
|
+
* Whether to enable security hardening. Values: - Active: Enable security hardening, applies only to public images. - InActive: Disable security hardening, applies to all image types.
|
|
275
|
+
*/
|
|
276
|
+
readonly securityEnhancementStrategy: pulumi.Output<string>;
|
|
277
|
+
/**
|
|
278
|
+
* Instance delivery start time. Must be on a 10-minute mark (e.g., 10:00, 10:10, 10:20, etc.). - When `ElasticScheduledInstanceType` is set to `Esi`, delivery time is within 4–8 hours after reservation. - When `ElasticScheduledInstanceType` is set to `Segmented`: - If `DeliveryType` is `Reserve`, delivery time is within 24 hours after reservation. - If `DeliveryType` is `Immediate`, this parameter is not required.
|
|
279
|
+
*/
|
|
280
|
+
readonly startDeliveryAt: pulumi.Output<string>;
|
|
281
|
+
/**
|
|
282
|
+
* ScheduledInstance status.
|
|
283
|
+
*/
|
|
284
|
+
readonly status: pulumi.Output<string>;
|
|
285
|
+
/**
|
|
286
|
+
* Starting sequence number for ordered suffix. Value range: 1–999. Default is 1.
|
|
287
|
+
*/
|
|
288
|
+
readonly suffixIndex: pulumi.Output<number>;
|
|
289
|
+
/**
|
|
290
|
+
* Flexible reservation order tag information.
|
|
291
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
292
|
+
*/
|
|
293
|
+
readonly tags: pulumi.Output<outputs.ecs.ScheduledInstanceTag[]>;
|
|
294
|
+
/**
|
|
295
|
+
* Indicates whether to automatically add an ordered suffix to `HostName` and `InstanceName` when creating multiple instances. Values: - true: Enable ordered suffix. - false (default): Disable ordered suffix.
|
|
296
|
+
* **Note:** - When ordered suffix is enabled and `HostName` is empty, the system will automatically generate a host name without an ordered suffix. - When ordered suffix is enabled and the `[begin_number,bits]` naming format is specified for `HostName` or `InstanceName`, see [Batch Set Ordered Instance Names or Host Names] for the final effect.
|
|
297
|
+
*/
|
|
298
|
+
readonly uniqueSuffix: pulumi.Output<boolean>;
|
|
299
|
+
/**
|
|
300
|
+
* Elastic reservation order update time.
|
|
301
|
+
*/
|
|
302
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
303
|
+
/**
|
|
304
|
+
* Instance custom data. Custom data must be Base64-encoded, and the size before encoding must not exceed 16KB. If not specified, defaults to empty.
|
|
305
|
+
*/
|
|
306
|
+
readonly userData: pulumi.Output<string>;
|
|
307
|
+
/**
|
|
308
|
+
* Cloud disk configuration information specified when creating an instance.
|
|
309
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
310
|
+
*/
|
|
311
|
+
readonly volumes: pulumi.Output<outputs.ecs.ScheduledInstanceVolume[]>;
|
|
312
|
+
/**
|
|
313
|
+
* Availability zone ID where the instance is located. You can call [DescribeZones] to query the availability zones in a region.
|
|
314
|
+
*/
|
|
315
|
+
readonly zoneId: pulumi.Output<string>;
|
|
316
|
+
/**
|
|
317
|
+
* Create a ScheduledInstance resource with the given unique name, arguments, and options.
|
|
318
|
+
*
|
|
319
|
+
* @param name The _unique_ name of the resource.
|
|
320
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
321
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
322
|
+
*/
|
|
323
|
+
constructor(name: string, args: ScheduledInstanceArgs, opts?: pulumi.CustomResourceOptions);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Input properties used for looking up and filtering ScheduledInstance resources.
|
|
327
|
+
*/
|
|
328
|
+
export interface ScheduledInstanceState {
|
|
329
|
+
/**
|
|
330
|
+
* Instance automatic release time. Must be at a 10-minute mark. When `ElasticScheduledInstanceType` is set to Segmented, this parameter is required. Value range: - When `DeliveryType` is Reserve, the earliest release time is one hour after the reserved delivery time slot. - When `DeliveryType` is Immediate, the earliest release time is the next 10-minute mark after the current time. For example, if the current time is 5:02, the earliest automatic release time is 5:20.
|
|
331
|
+
*/
|
|
332
|
+
autoReleaseAt?: pulumi.Input<string | undefined>;
|
|
333
|
+
/**
|
|
334
|
+
* Specify the maximum CPU frequency in GHz. Value range: between the base frequency and turbo frequency of the CPU.
|
|
335
|
+
*
|
|
336
|
+
* **Note:**
|
|
337
|
+
* - Currently, only g3al (4xlarge, 8xlarge, 16xlarge, 32xlarge), c3al (4xlarge, 8xlarge, 16xlarge, 32xlarge), r3al (4xlarge, 8xlarge, 16xlarge), g4i, c4i, r4i, g4ie, c4ie, r4ie instances support this parameter.
|
|
338
|
+
* For details on base/turbo frequency and more information, see [Instance Specifications].
|
|
339
|
+
* - This feature is in invitation-only testing. To use it, contact your account manager.
|
|
340
|
+
*/
|
|
341
|
+
cpuMaxFrequency?: pulumi.Input<number | undefined>;
|
|
342
|
+
/**
|
|
343
|
+
* ScheduledInstance creation time.
|
|
344
|
+
*/
|
|
345
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
346
|
+
/**
|
|
347
|
+
* Instance deletion protection attribute. Specifies whether the instance can be deleted via console or API. Values:
|
|
348
|
+
* - true: Enable instance deletion protection
|
|
349
|
+
* - false (default): Disable instance deletion protection
|
|
350
|
+
*/
|
|
351
|
+
deletionProtection?: pulumi.Input<boolean | undefined>;
|
|
352
|
+
/**
|
|
353
|
+
* Number of delivered instances
|
|
354
|
+
*/
|
|
355
|
+
deliveryCount?: pulumi.Input<number | undefined>;
|
|
356
|
+
/**
|
|
357
|
+
* Elastic Scheduled Instance - Segmented delivery type. Values: - Reserve (default): scheduled delivery - Immediate: immediate delivery
|
|
358
|
+
* **Note:** - This parameter is required only when `ElasticScheduledInstanceType` is set to `Segmented`. - Elastic Scheduled Instance - Segmented is currently in invitation testing. To apply for a trial, please contact your account manager.
|
|
359
|
+
*/
|
|
360
|
+
deliveryType?: pulumi.Input<string | undefined>;
|
|
361
|
+
/**
|
|
362
|
+
* Instance description. The default value is an empty string. - Must start with a letter or Chinese character. - Can only contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals sign '=', English comma ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters.
|
|
363
|
+
*/
|
|
364
|
+
description?: pulumi.Input<string | undefined>;
|
|
365
|
+
/**
|
|
366
|
+
* Public IP configuration specified when creating the instance.
|
|
367
|
+
*/
|
|
368
|
+
eipAddress?: pulumi.Input<inputs.ecs.ScheduledInstanceEipAddress | undefined>;
|
|
369
|
+
/**
|
|
370
|
+
* Elastic scheduled instance type. Options: - Esi (default): Elastic scheduled instance. - Segmented: Elastic scheduled instance (time segment).
|
|
371
|
+
* **Note:** Elastic scheduled instance (time segment) is currently in invite-only beta. To try it, please contact your account manager.
|
|
372
|
+
*/
|
|
373
|
+
elasticScheduledInstanceType?: pulumi.Input<string | undefined>;
|
|
374
|
+
/**
|
|
375
|
+
* Instance end delivery time. Must be on a 10-minute mark, and the interval with `StartDeliveryAt` must be 10 minutes
|
|
376
|
+
* - If `ElasticScheduledInstanceType` is `Esi`, the end delivery time must be within 4–8 hours after reservation
|
|
377
|
+
* - If `ElasticScheduledInstanceType` is `Segmented`:
|
|
378
|
+
* - If `DeliveryType` is `Reserve`, the end delivery time must be within 24 hours after reservation
|
|
379
|
+
* - If `DeliveryType` is `Immediate`, this parameter is not required
|
|
380
|
+
*/
|
|
381
|
+
endDeliveryAt?: pulumi.Input<string | undefined>;
|
|
382
|
+
/**
|
|
383
|
+
* Instance hostname, which is the computer name inside the instance operating system.
|
|
384
|
+
* - Linux instances:
|
|
385
|
+
* - Letters, numbers, periods ("."), and hyphens ("-") are allowed.
|
|
386
|
+
* - Cannot start or end with a hyphen or period, and hyphens and periods cannot be used consecutively.
|
|
387
|
+
* - Length must be between 2 and 63 characters for Linux systems.
|
|
388
|
+
* - Windows instances:
|
|
389
|
+
* - Letters, numbers, and hyphens ("-") are allowed, but the name cannot consist of only numbers.
|
|
390
|
+
* - Cannot start or end with a hyphen, and hyphens cannot be used consecutively.
|
|
391
|
+
* - Length must be between 2 and 15 characters for Windows systems.
|
|
392
|
+
*
|
|
393
|
+
* **Note:**
|
|
394
|
+
* - If left blank, the hostname is automatically generated according to the iv - + initial hostname rule, for example, iv-3tigy72q3u3vj0******.
|
|
395
|
+
* - Initial hostname generation logic:
|
|
396
|
+
* - Linux: Extract all characters after the instance ID i-.
|
|
397
|
+
* - Windows: Extract the last 12 characters after the instance ID i-.
|
|
398
|
+
* - When creating instances in batches, you can use the `name_prefix[begin_number,bits]name_suffix` format to customize sequential hostnames. For details, see [Batch Set Sequential Instance Names or Hostnames].
|
|
399
|
+
*/
|
|
400
|
+
hostName?: pulumi.Input<string | undefined>;
|
|
401
|
+
/**
|
|
402
|
+
* When creating a high-performance computing GPU instance, specify the high-performance computing cluster ID.
|
|
403
|
+
*/
|
|
404
|
+
hpcClusterId?: pulumi.Input<string | undefined>;
|
|
405
|
+
/**
|
|
406
|
+
* Instance metadata access mode: whether to enforce enhanced mode. Values: - optional (default): Not enforced (compatible mode), meaning instance metadata can be accessed either directly or via token-based authentication. - required: Enforced (enhanced mode only), meaning instance metadata can only be accessed via token-based authentication.
|
|
407
|
+
* **Note:** - For details on how to view metadata and supported metadata items, see [View Instance Metadata]. - Enhanced mode is currently in invitation testing. To request access, contact your account manager.
|
|
408
|
+
*/
|
|
409
|
+
httpTokens?: pulumi.Input<string | undefined>;
|
|
410
|
+
/**
|
|
411
|
+
* The image ID used to launch the instance. You can use [DescribeImages] to query available image resources.
|
|
412
|
+
*/
|
|
413
|
+
imageId?: pulumi.Input<string | undefined>;
|
|
414
|
+
/**
|
|
415
|
+
* Whether to install the Cloud Assistant Agent when creating the instance. Values:
|
|
416
|
+
* - true: Install during creation
|
|
417
|
+
* - false (default): Do not install during creation
|
|
418
|
+
*
|
|
419
|
+
* **Note:**
|
|
420
|
+
* For more information about Cloud Assistant, see [Cloud Assistant Overview].
|
|
421
|
+
*/
|
|
422
|
+
installRunCommandAgent?: pulumi.Input<boolean | undefined>;
|
|
423
|
+
/**
|
|
424
|
+
* Instance configuration information for the elastic reservation order.
|
|
425
|
+
*/
|
|
426
|
+
instanceConfig?: pulumi.Input<inputs.ecs.ScheduledInstanceInstanceConfig | undefined>;
|
|
427
|
+
/**
|
|
428
|
+
* Number of instances to create. Value range:
|
|
429
|
+
* - If `ElasticScheduledInstanceType` is set to `Esi`, value range is 1–500.
|
|
430
|
+
* - If `ElasticScheduledInstanceType` is set to `Segmented`, then:
|
|
431
|
+
* - If `DeliveryType` is `Reserve`, value range is 1–500.
|
|
432
|
+
* - If `DeliveryType` is `Immediate`, value range is 1–100.
|
|
433
|
+
*
|
|
434
|
+
* **Note:**
|
|
435
|
+
* If 0 is entered, the default is 1.
|
|
436
|
+
*/
|
|
437
|
+
instanceCount?: pulumi.Input<number | undefined>;
|
|
438
|
+
/**
|
|
439
|
+
* Instance name
|
|
440
|
+
* - Must start with a letter or Chinese character
|
|
441
|
+
* - Can only contain Chinese characters, letters, numbers, underscores "_", hyphens "-", and periods "."
|
|
442
|
+
* - Length must be between 1 and 128 characters
|
|
443
|
+
*
|
|
444
|
+
* **Note:**
|
|
445
|
+
* - If the instance has a `SuffixIndex` sequential suffix, the instance name length includes the suffix
|
|
446
|
+
* - When creating instances in bulk, you can use the `name_prefix[begin_number,bits]name_suffix` format to customize sequential instance names. For details, see [Batch Set Sequential Instance Names or Host Names]
|
|
447
|
+
*/
|
|
448
|
+
instanceName?: pulumi.Input<string | undefined>;
|
|
449
|
+
/**
|
|
450
|
+
* Instance type. - For supported instance types available for reservation, see [Elastic Scheduled Instance Overview]. - You can call [DescribeAvailableResource] to query inventory information for compute resources in the availability zone.
|
|
451
|
+
*/
|
|
452
|
+
instanceTypeId?: pulumi.Input<string | undefined>;
|
|
453
|
+
/**
|
|
454
|
+
* Elastic reservation order expiration time.
|
|
455
|
+
*/
|
|
456
|
+
invalidAt?: pulumi.Input<string | undefined>;
|
|
457
|
+
/**
|
|
458
|
+
* Whether to retain image settings. Values: - true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. - false (default): Do not retain image settings.
|
|
459
|
+
* **Note:** - Only custom images and shared images support this feature. - When this parameter is set to `true`, do not specify `PassWord` or `KeyPairName`.
|
|
460
|
+
*/
|
|
461
|
+
keepImageCredential?: pulumi.Input<boolean | undefined>;
|
|
462
|
+
/**
|
|
463
|
+
* To log in to the instance using an SSH key, specify the name of an existing key pair. You can call [DescribeKeyPairs] to view existing key pairs; if none are available, call [CreateKeyPair] to create one
|
|
464
|
+
*
|
|
465
|
+
* **Note:**
|
|
466
|
+
* - Windows instances do not support SSH key login. Even if this parameter is provided, only the password `Password` is valid
|
|
467
|
+
* - Linux instances support login via password or key pair. If both `KeyPairName` and `Password` are set when calling this API, only `KeyPairName` takes effect
|
|
468
|
+
*/
|
|
469
|
+
keyPairName?: pulumi.Input<string | undefined>;
|
|
470
|
+
/**
|
|
471
|
+
* Specify the minimum number of Elastic Scheduled Instances to create. Value range: - ESI-General, ESI-Segmented (Scheduled Delivery): 1–500 - ESI-Segmented (Immediate Delivery): 1–100
|
|
472
|
+
* **Note:** - The minimum instance creation quantity `MinCount` ≤ creation quantity `Count`. - If inventory quantity > creation quantity `Count`, create according to `Count`. - If minimum creation quantity `MinCount` ≤ inventory quantity ≤ creation quantity `Count`, create according to inventory quantity. - If inventory quantity < minimum creation quantity `MinCount`, creation fails due to insufficient inventory.
|
|
473
|
+
*/
|
|
474
|
+
minCount?: pulumi.Input<number | undefined>;
|
|
475
|
+
/**
|
|
476
|
+
* Network interface configuration information specified when creating the instance.
|
|
477
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
478
|
+
*/
|
|
479
|
+
networkInterfaces?: pulumi.Input<pulumi.Input<inputs.ecs.ScheduledInstanceNetworkInterface>[] | undefined>;
|
|
480
|
+
/**
|
|
481
|
+
* If you want to log in to the instance using the 'password' method, specify the initial login password for the administrator account through this parameter. The Linux administrator account is root, and the Windows administrator account is Administrator. Password complexity requirements: - Length must be between 8 and 30 characters. - Password must contain at least three of the following: uppercase letters, lowercase letters, numbers, and special characters. - Allowed special characters: `~!@#$%^&*()_-+=|{}[]:;'<>,.?/ - Cannot start with '/' or '$6$'.
|
|
482
|
+
* **Note:** Login credentials support three methods: 'password', 'key pair', and 'retain image settings'. When using the 'password' method to log in, it is recommended to increase password complexity for enhanced security.
|
|
483
|
+
*/
|
|
484
|
+
password?: pulumi.Input<string | undefined>;
|
|
485
|
+
/**
|
|
486
|
+
* Project to which the resource belongs. Each resource can belong to only one project. - Can only contain letters, numbers, underscore '_', period '.', and hyphen '-'. - Maximum length is 64 characters.
|
|
487
|
+
*/
|
|
488
|
+
projectName?: pulumi.Input<string | undefined>;
|
|
489
|
+
/**
|
|
490
|
+
* Number of released instances.
|
|
491
|
+
*/
|
|
492
|
+
releaseCount?: pulumi.Input<number | undefined>;
|
|
493
|
+
/**
|
|
494
|
+
* Description of the flexible reservation order. The default value is an empty string. - Must start with a letter or Chinese character. - Can only contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals sign '=', English comma ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters.
|
|
495
|
+
*/
|
|
496
|
+
scheduledInstanceDescription?: pulumi.Input<string | undefined>;
|
|
497
|
+
/**
|
|
498
|
+
* Elastic reservation order ID.
|
|
499
|
+
*/
|
|
500
|
+
scheduledInstanceId?: pulumi.Input<string | undefined>;
|
|
501
|
+
/**
|
|
502
|
+
* Name of the elastic reservation order. Values: - Cannot start with a number, hyphen, or underscore. - Can only contain Chinese characters, letters, numbers, underscores, and hyphens. - Length limit: 1–128 characters. - Special characters are not supported.
|
|
503
|
+
*/
|
|
504
|
+
scheduledInstanceName?: pulumi.Input<string | undefined>;
|
|
505
|
+
/**
|
|
506
|
+
* Whether to enable security hardening. Values: - Active: Enable security hardening, applies only to public images. - InActive: Disable security hardening, applies to all image types.
|
|
507
|
+
*/
|
|
508
|
+
securityEnhancementStrategy?: pulumi.Input<string | undefined>;
|
|
509
|
+
/**
|
|
510
|
+
* Instance delivery start time. Must be on a 10-minute mark (e.g., 10:00, 10:10, 10:20, etc.). - When `ElasticScheduledInstanceType` is set to `Esi`, delivery time is within 4–8 hours after reservation. - When `ElasticScheduledInstanceType` is set to `Segmented`: - If `DeliveryType` is `Reserve`, delivery time is within 24 hours after reservation. - If `DeliveryType` is `Immediate`, this parameter is not required.
|
|
511
|
+
*/
|
|
512
|
+
startDeliveryAt?: pulumi.Input<string | undefined>;
|
|
513
|
+
/**
|
|
514
|
+
* ScheduledInstance status.
|
|
515
|
+
*/
|
|
516
|
+
status?: pulumi.Input<string | undefined>;
|
|
517
|
+
/**
|
|
518
|
+
* Starting sequence number for ordered suffix. Value range: 1–999. Default is 1.
|
|
519
|
+
*/
|
|
520
|
+
suffixIndex?: pulumi.Input<number | undefined>;
|
|
521
|
+
/**
|
|
522
|
+
* Flexible reservation order tag information.
|
|
523
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
524
|
+
*/
|
|
525
|
+
tags?: pulumi.Input<pulumi.Input<inputs.ecs.ScheduledInstanceTag>[] | undefined>;
|
|
526
|
+
/**
|
|
527
|
+
* Indicates whether to automatically add an ordered suffix to `HostName` and `InstanceName` when creating multiple instances. Values: - true: Enable ordered suffix. - false (default): Disable ordered suffix.
|
|
528
|
+
* **Note:** - When ordered suffix is enabled and `HostName` is empty, the system will automatically generate a host name without an ordered suffix. - When ordered suffix is enabled and the `[begin_number,bits]` naming format is specified for `HostName` or `InstanceName`, see [Batch Set Ordered Instance Names or Host Names] for the final effect.
|
|
529
|
+
*/
|
|
530
|
+
uniqueSuffix?: pulumi.Input<boolean | undefined>;
|
|
531
|
+
/**
|
|
532
|
+
* Elastic reservation order update time.
|
|
533
|
+
*/
|
|
534
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
535
|
+
/**
|
|
536
|
+
* Instance custom data. Custom data must be Base64-encoded, and the size before encoding must not exceed 16KB. If not specified, defaults to empty.
|
|
537
|
+
*/
|
|
538
|
+
userData?: pulumi.Input<string | undefined>;
|
|
539
|
+
/**
|
|
540
|
+
* Cloud disk configuration information specified when creating an instance.
|
|
541
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
542
|
+
*/
|
|
543
|
+
volumes?: pulumi.Input<pulumi.Input<inputs.ecs.ScheduledInstanceVolume>[] | undefined>;
|
|
544
|
+
/**
|
|
545
|
+
* Availability zone ID where the instance is located. You can call [DescribeZones] to query the availability zones in a region.
|
|
546
|
+
*/
|
|
547
|
+
zoneId?: pulumi.Input<string | undefined>;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* The set of arguments for constructing a ScheduledInstance resource.
|
|
551
|
+
*/
|
|
552
|
+
export interface ScheduledInstanceArgs {
|
|
553
|
+
/**
|
|
554
|
+
* Instance automatic release time. Must be at a 10-minute mark. When `ElasticScheduledInstanceType` is set to Segmented, this parameter is required. Value range: - When `DeliveryType` is Reserve, the earliest release time is one hour after the reserved delivery time slot. - When `DeliveryType` is Immediate, the earliest release time is the next 10-minute mark after the current time. For example, if the current time is 5:02, the earliest automatic release time is 5:20.
|
|
555
|
+
*/
|
|
556
|
+
autoReleaseAt?: pulumi.Input<string | undefined>;
|
|
557
|
+
/**
|
|
558
|
+
* Specify the maximum CPU frequency in GHz. Value range: between the base frequency and turbo frequency of the CPU.
|
|
559
|
+
*
|
|
560
|
+
* **Note:**
|
|
561
|
+
* - Currently, only g3al (4xlarge, 8xlarge, 16xlarge, 32xlarge), c3al (4xlarge, 8xlarge, 16xlarge, 32xlarge), r3al (4xlarge, 8xlarge, 16xlarge), g4i, c4i, r4i, g4ie, c4ie, r4ie instances support this parameter.
|
|
562
|
+
* For details on base/turbo frequency and more information, see [Instance Specifications].
|
|
563
|
+
* - This feature is in invitation-only testing. To use it, contact your account manager.
|
|
564
|
+
*/
|
|
565
|
+
cpuMaxFrequency?: pulumi.Input<number | undefined>;
|
|
566
|
+
/**
|
|
567
|
+
* Instance deletion protection attribute. Specifies whether the instance can be deleted via console or API. Values:
|
|
568
|
+
* - true: Enable instance deletion protection
|
|
569
|
+
* - false (default): Disable instance deletion protection
|
|
570
|
+
*/
|
|
571
|
+
deletionProtection?: pulumi.Input<boolean | undefined>;
|
|
572
|
+
/**
|
|
573
|
+
* Elastic Scheduled Instance - Segmented delivery type. Values: - Reserve (default): scheduled delivery - Immediate: immediate delivery
|
|
574
|
+
* **Note:** - This parameter is required only when `ElasticScheduledInstanceType` is set to `Segmented`. - Elastic Scheduled Instance - Segmented is currently in invitation testing. To apply for a trial, please contact your account manager.
|
|
575
|
+
*/
|
|
576
|
+
deliveryType?: pulumi.Input<string | undefined>;
|
|
577
|
+
/**
|
|
578
|
+
* Instance description. The default value is an empty string. - Must start with a letter or Chinese character. - Can only contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals sign '=', English comma ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters.
|
|
579
|
+
*/
|
|
580
|
+
description?: pulumi.Input<string | undefined>;
|
|
581
|
+
/**
|
|
582
|
+
* Public IP configuration specified when creating the instance.
|
|
583
|
+
*/
|
|
584
|
+
eipAddress?: pulumi.Input<inputs.ecs.ScheduledInstanceEipAddress | undefined>;
|
|
585
|
+
/**
|
|
586
|
+
* Elastic scheduled instance type. Options: - Esi (default): Elastic scheduled instance. - Segmented: Elastic scheduled instance (time segment).
|
|
587
|
+
* **Note:** Elastic scheduled instance (time segment) is currently in invite-only beta. To try it, please contact your account manager.
|
|
588
|
+
*/
|
|
589
|
+
elasticScheduledInstanceType?: pulumi.Input<string | undefined>;
|
|
590
|
+
/**
|
|
591
|
+
* Instance end delivery time. Must be on a 10-minute mark, and the interval with `StartDeliveryAt` must be 10 minutes
|
|
592
|
+
* - If `ElasticScheduledInstanceType` is `Esi`, the end delivery time must be within 4–8 hours after reservation
|
|
593
|
+
* - If `ElasticScheduledInstanceType` is `Segmented`:
|
|
594
|
+
* - If `DeliveryType` is `Reserve`, the end delivery time must be within 24 hours after reservation
|
|
595
|
+
* - If `DeliveryType` is `Immediate`, this parameter is not required
|
|
596
|
+
*/
|
|
597
|
+
endDeliveryAt?: pulumi.Input<string | undefined>;
|
|
598
|
+
/**
|
|
599
|
+
* Instance hostname, which is the computer name inside the instance operating system.
|
|
600
|
+
* - Linux instances:
|
|
601
|
+
* - Letters, numbers, periods ("."), and hyphens ("-") are allowed.
|
|
602
|
+
* - Cannot start or end with a hyphen or period, and hyphens and periods cannot be used consecutively.
|
|
603
|
+
* - Length must be between 2 and 63 characters for Linux systems.
|
|
604
|
+
* - Windows instances:
|
|
605
|
+
* - Letters, numbers, and hyphens ("-") are allowed, but the name cannot consist of only numbers.
|
|
606
|
+
* - Cannot start or end with a hyphen, and hyphens cannot be used consecutively.
|
|
607
|
+
* - Length must be between 2 and 15 characters for Windows systems.
|
|
608
|
+
*
|
|
609
|
+
* **Note:**
|
|
610
|
+
* - If left blank, the hostname is automatically generated according to the iv - + initial hostname rule, for example, iv-3tigy72q3u3vj0******.
|
|
611
|
+
* - Initial hostname generation logic:
|
|
612
|
+
* - Linux: Extract all characters after the instance ID i-.
|
|
613
|
+
* - Windows: Extract the last 12 characters after the instance ID i-.
|
|
614
|
+
* - When creating instances in batches, you can use the `name_prefix[begin_number,bits]name_suffix` format to customize sequential hostnames. For details, see [Batch Set Sequential Instance Names or Hostnames].
|
|
615
|
+
*/
|
|
616
|
+
hostName?: pulumi.Input<string | undefined>;
|
|
617
|
+
/**
|
|
618
|
+
* When creating a high-performance computing GPU instance, specify the high-performance computing cluster ID.
|
|
619
|
+
*/
|
|
620
|
+
hpcClusterId?: pulumi.Input<string | undefined>;
|
|
621
|
+
/**
|
|
622
|
+
* Instance metadata access mode: whether to enforce enhanced mode. Values: - optional (default): Not enforced (compatible mode), meaning instance metadata can be accessed either directly or via token-based authentication. - required: Enforced (enhanced mode only), meaning instance metadata can only be accessed via token-based authentication.
|
|
623
|
+
* **Note:** - For details on how to view metadata and supported metadata items, see [View Instance Metadata]. - Enhanced mode is currently in invitation testing. To request access, contact your account manager.
|
|
624
|
+
*/
|
|
625
|
+
httpTokens?: pulumi.Input<string | undefined>;
|
|
626
|
+
/**
|
|
627
|
+
* The image ID used to launch the instance. You can use [DescribeImages] to query available image resources.
|
|
628
|
+
*/
|
|
629
|
+
imageId: pulumi.Input<string>;
|
|
630
|
+
/**
|
|
631
|
+
* Whether to install the Cloud Assistant Agent when creating the instance. Values:
|
|
632
|
+
* - true: Install during creation
|
|
633
|
+
* - false (default): Do not install during creation
|
|
634
|
+
*
|
|
635
|
+
* **Note:**
|
|
636
|
+
* For more information about Cloud Assistant, see [Cloud Assistant Overview].
|
|
637
|
+
*/
|
|
638
|
+
installRunCommandAgent?: pulumi.Input<boolean | undefined>;
|
|
639
|
+
/**
|
|
640
|
+
* Number of instances to create. Value range:
|
|
641
|
+
* - If `ElasticScheduledInstanceType` is set to `Esi`, value range is 1–500.
|
|
642
|
+
* - If `ElasticScheduledInstanceType` is set to `Segmented`, then:
|
|
643
|
+
* - If `DeliveryType` is `Reserve`, value range is 1–500.
|
|
644
|
+
* - If `DeliveryType` is `Immediate`, value range is 1–100.
|
|
645
|
+
*
|
|
646
|
+
* **Note:**
|
|
647
|
+
* If 0 is entered, the default is 1.
|
|
648
|
+
*/
|
|
649
|
+
instanceCount?: pulumi.Input<number | undefined>;
|
|
650
|
+
/**
|
|
651
|
+
* Instance name
|
|
652
|
+
* - Must start with a letter or Chinese character
|
|
653
|
+
* - Can only contain Chinese characters, letters, numbers, underscores "_", hyphens "-", and periods "."
|
|
654
|
+
* - Length must be between 1 and 128 characters
|
|
655
|
+
*
|
|
656
|
+
* **Note:**
|
|
657
|
+
* - If the instance has a `SuffixIndex` sequential suffix, the instance name length includes the suffix
|
|
658
|
+
* - When creating instances in bulk, you can use the `name_prefix[begin_number,bits]name_suffix` format to customize sequential instance names. For details, see [Batch Set Sequential Instance Names or Host Names]
|
|
659
|
+
*/
|
|
660
|
+
instanceName: pulumi.Input<string>;
|
|
661
|
+
/**
|
|
662
|
+
* Instance type. - For supported instance types available for reservation, see [Elastic Scheduled Instance Overview]. - You can call [DescribeAvailableResource] to query inventory information for compute resources in the availability zone.
|
|
663
|
+
*/
|
|
664
|
+
instanceTypeId: pulumi.Input<string>;
|
|
665
|
+
/**
|
|
666
|
+
* Whether to retain image settings. Values: - true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. - false (default): Do not retain image settings.
|
|
667
|
+
* **Note:** - Only custom images and shared images support this feature. - When this parameter is set to `true`, do not specify `PassWord` or `KeyPairName`.
|
|
668
|
+
*/
|
|
669
|
+
keepImageCredential?: pulumi.Input<boolean | undefined>;
|
|
670
|
+
/**
|
|
671
|
+
* To log in to the instance using an SSH key, specify the name of an existing key pair. You can call [DescribeKeyPairs] to view existing key pairs; if none are available, call [CreateKeyPair] to create one
|
|
672
|
+
*
|
|
673
|
+
* **Note:**
|
|
674
|
+
* - Windows instances do not support SSH key login. Even if this parameter is provided, only the password `Password` is valid
|
|
675
|
+
* - Linux instances support login via password or key pair. If both `KeyPairName` and `Password` are set when calling this API, only `KeyPairName` takes effect
|
|
676
|
+
*/
|
|
677
|
+
keyPairName?: pulumi.Input<string | undefined>;
|
|
678
|
+
/**
|
|
679
|
+
* Specify the minimum number of Elastic Scheduled Instances to create. Value range: - ESI-General, ESI-Segmented (Scheduled Delivery): 1–500 - ESI-Segmented (Immediate Delivery): 1–100
|
|
680
|
+
* **Note:** - The minimum instance creation quantity `MinCount` ≤ creation quantity `Count`. - If inventory quantity > creation quantity `Count`, create according to `Count`. - If minimum creation quantity `MinCount` ≤ inventory quantity ≤ creation quantity `Count`, create according to inventory quantity. - If inventory quantity < minimum creation quantity `MinCount`, creation fails due to insufficient inventory.
|
|
681
|
+
*/
|
|
682
|
+
minCount?: pulumi.Input<number | undefined>;
|
|
683
|
+
/**
|
|
684
|
+
* Network interface configuration information specified when creating the instance.
|
|
685
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
686
|
+
*/
|
|
687
|
+
networkInterfaces: pulumi.Input<pulumi.Input<inputs.ecs.ScheduledInstanceNetworkInterface>[]>;
|
|
688
|
+
/**
|
|
689
|
+
* If you want to log in to the instance using the 'password' method, specify the initial login password for the administrator account through this parameter. The Linux administrator account is root, and the Windows administrator account is Administrator. Password complexity requirements: - Length must be between 8 and 30 characters. - Password must contain at least three of the following: uppercase letters, lowercase letters, numbers, and special characters. - Allowed special characters: `~!@#$%^&*()_-+=|{}[]:;'<>,.?/ - Cannot start with '/' or '$6$'.
|
|
690
|
+
* **Note:** Login credentials support three methods: 'password', 'key pair', and 'retain image settings'. When using the 'password' method to log in, it is recommended to increase password complexity for enhanced security.
|
|
691
|
+
*/
|
|
692
|
+
password?: pulumi.Input<string | undefined>;
|
|
693
|
+
/**
|
|
694
|
+
* Project to which the resource belongs. Each resource can belong to only one project. - Can only contain letters, numbers, underscore '_', period '.', and hyphen '-'. - Maximum length is 64 characters.
|
|
695
|
+
*/
|
|
696
|
+
projectName?: pulumi.Input<string | undefined>;
|
|
697
|
+
/**
|
|
698
|
+
* Description of the flexible reservation order. The default value is an empty string. - Must start with a letter or Chinese character. - Can only contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals sign '=', English comma ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters.
|
|
699
|
+
*/
|
|
700
|
+
scheduledInstanceDescription?: pulumi.Input<string | undefined>;
|
|
701
|
+
/**
|
|
702
|
+
* Name of the elastic reservation order. Values: - Cannot start with a number, hyphen, or underscore. - Can only contain Chinese characters, letters, numbers, underscores, and hyphens. - Length limit: 1–128 characters. - Special characters are not supported.
|
|
703
|
+
*/
|
|
704
|
+
scheduledInstanceName: pulumi.Input<string>;
|
|
705
|
+
/**
|
|
706
|
+
* Whether to enable security hardening. Values: - Active: Enable security hardening, applies only to public images. - InActive: Disable security hardening, applies to all image types.
|
|
707
|
+
*/
|
|
708
|
+
securityEnhancementStrategy?: pulumi.Input<string | undefined>;
|
|
709
|
+
/**
|
|
710
|
+
* Instance delivery start time. Must be on a 10-minute mark (e.g., 10:00, 10:10, 10:20, etc.). - When `ElasticScheduledInstanceType` is set to `Esi`, delivery time is within 4–8 hours after reservation. - When `ElasticScheduledInstanceType` is set to `Segmented`: - If `DeliveryType` is `Reserve`, delivery time is within 24 hours after reservation. - If `DeliveryType` is `Immediate`, this parameter is not required.
|
|
711
|
+
*/
|
|
712
|
+
startDeliveryAt?: pulumi.Input<string | undefined>;
|
|
713
|
+
/**
|
|
714
|
+
* Starting sequence number for ordered suffix. Value range: 1–999. Default is 1.
|
|
715
|
+
*/
|
|
716
|
+
suffixIndex?: pulumi.Input<number | undefined>;
|
|
717
|
+
/**
|
|
718
|
+
* Flexible reservation order tag information.
|
|
719
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
720
|
+
*/
|
|
721
|
+
tags?: pulumi.Input<pulumi.Input<inputs.ecs.ScheduledInstanceTag>[] | undefined>;
|
|
722
|
+
/**
|
|
723
|
+
* Indicates whether to automatically add an ordered suffix to `HostName` and `InstanceName` when creating multiple instances. Values: - true: Enable ordered suffix. - false (default): Disable ordered suffix.
|
|
724
|
+
* **Note:** - When ordered suffix is enabled and `HostName` is empty, the system will automatically generate a host name without an ordered suffix. - When ordered suffix is enabled and the `[begin_number,bits]` naming format is specified for `HostName` or `InstanceName`, see [Batch Set Ordered Instance Names or Host Names] for the final effect.
|
|
725
|
+
*/
|
|
726
|
+
uniqueSuffix?: pulumi.Input<boolean | undefined>;
|
|
727
|
+
/**
|
|
728
|
+
* Instance custom data. Custom data must be Base64-encoded, and the size before encoding must not exceed 16KB. If not specified, defaults to empty.
|
|
729
|
+
*/
|
|
730
|
+
userData?: pulumi.Input<string | undefined>;
|
|
731
|
+
/**
|
|
732
|
+
* Cloud disk configuration information specified when creating an instance.
|
|
733
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
734
|
+
*/
|
|
735
|
+
volumes: pulumi.Input<pulumi.Input<inputs.ecs.ScheduledInstanceVolume>[]>;
|
|
736
|
+
/**
|
|
737
|
+
* Availability zone ID where the instance is located. You can call [DescribeZones] to query the availability zones in a region.
|
|
738
|
+
*/
|
|
739
|
+
zoneId: pulumi.Input<string>;
|
|
740
|
+
}
|
|
741
|
+
//# sourceMappingURL=scheduledInstance.d.ts.map
|