@alicloud/ros-cdk-ecs 1.0.13 → 1.0.15
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/lib/ecs.generated.d.ts +181 -2
- package/lib/ecs.generated.js +218 -6
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/instancegroupclone.d.ts +4 -0
- package/lib/instancegroupclone.js +2 -1
- package/lib/networkinterface.d.ts +20 -0
- package/lib/networkinterface.js +5 -1
- package/lib/ramroleattachment.d.ts +46 -0
- package/lib/ramroleattachment.js +31 -0
- package/lib/runcommand.d.ts +4 -0
- package/lib/runcommand.js +2 -1
- package/package.json +1 -1
package/lib/ecs.generated.d.ts
CHANGED
|
@@ -3438,14 +3438,30 @@ export declare namespace RosInstanceGroup {
|
|
|
3438
3438
|
* @stability external
|
|
3439
3439
|
*/
|
|
3440
3440
|
interface EniMappingsProperty {
|
|
3441
|
+
/**
|
|
3442
|
+
* @Property networkInterfaceTrafficMode: The communication mode of the ENI. Valid values:
|
|
3443
|
+
* Standard: uses the TCP communication mode.
|
|
3444
|
+
* HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the remote direct memory access (RDMA) communication mode.
|
|
3445
|
+
*/
|
|
3446
|
+
readonly networkInterfaceTrafficMode?: string | ros.IResolvable;
|
|
3441
3447
|
/**
|
|
3442
3448
|
* @Property description: Description of your ENI. It is a string of [2, 256] English or Chinese characters.
|
|
3443
3449
|
*/
|
|
3444
3450
|
readonly description?: string | ros.IResolvable;
|
|
3451
|
+
/**
|
|
3452
|
+
* @Property queueNumber: The number of queues that are supported by the ENI. Valid values: 1 to 2048.
|
|
3453
|
+
* When you attach the ENI to an instance, make sure that the value of this parameter is less than the maximum number of queues per ENI that is allowed for the instance type. To view the maximum number of queues per ENI allowed for an instance type, you can call DescribeInstanceTypes and then check the return value of MaximumQueueNumberPerEni.
|
|
3454
|
+
* By default, this parameter is empty. If you do not specify this parameter, the default number of queues per ENI for the instance type of an instance is used when you attach the ENI to the instance. To learn about the default number of queues per ENI for an instance type, you can call DescribeInstanceTypes and then check the return value of SecondaryEniQueueNumber.
|
|
3455
|
+
*/
|
|
3456
|
+
readonly queueNumber?: number | ros.IResolvable;
|
|
3457
|
+
/**
|
|
3458
|
+
* @Property ipv6AddressCount: The number of randomly generated IPv6 addresses that are assigned to the ENI.
|
|
3459
|
+
*/
|
|
3460
|
+
readonly ipv6AddressCount?: number | ros.IResolvable;
|
|
3445
3461
|
/**
|
|
3446
3462
|
* @Property securityGroupId: The ID of the security group that the ENI joins. The security group and the ENI must be in a same VPC.
|
|
3447
3463
|
*/
|
|
3448
|
-
readonly securityGroupId
|
|
3464
|
+
readonly securityGroupId?: string | ros.IResolvable;
|
|
3449
3465
|
/**
|
|
3450
3466
|
* @Property vSwitchId: VSwitch ID of the specified VPC. Specifies the switch ID for the VPC.
|
|
3451
3467
|
*/
|
|
@@ -3458,6 +3474,19 @@ export declare namespace RosInstanceGroup {
|
|
|
3458
3474
|
* @Property primaryIpAddress: The primary private IP address of the ENI. The specified IP address must have the same Host ID as the VSwitch. If no IP addresses are specified, a random network ID is assigned for the ENI.
|
|
3459
3475
|
*/
|
|
3460
3476
|
readonly primaryIpAddress?: string | ros.IResolvable;
|
|
3477
|
+
/**
|
|
3478
|
+
* @Property ipv6Addresses: The IPv6 address N to assign to the ENI.
|
|
3479
|
+
*/
|
|
3480
|
+
readonly ipv6Addresses?: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
3481
|
+
/**
|
|
3482
|
+
* @Property instanceType: The type of ENI. Default value: Secondary.
|
|
3483
|
+
*/
|
|
3484
|
+
readonly instanceType?: string | ros.IResolvable;
|
|
3485
|
+
/**
|
|
3486
|
+
* @Property securityGroupIds: The IDs of security groups to which to assign ENI
|
|
3487
|
+
* Note: You cannot specify both SecurityGroupId and SecurityGroupIds at the same time.
|
|
3488
|
+
*/
|
|
3489
|
+
readonly securityGroupIds?: Array<any | ros.IResolvable> | ros.IResolvable;
|
|
3461
3490
|
}
|
|
3462
3491
|
}
|
|
3463
3492
|
export declare namespace RosInstanceGroup {
|
|
@@ -3734,6 +3763,10 @@ export declare class RosInstanceGroupClone extends ros.RosResource {
|
|
|
3734
3763
|
* @Attribute PublicIps: Public IP address list of created ecs instances.
|
|
3735
3764
|
*/
|
|
3736
3765
|
readonly attrPublicIps: ros.IResolvable;
|
|
3766
|
+
/**
|
|
3767
|
+
* @Attribute RelatedOrderIds: The related order id list of created ecs instances
|
|
3768
|
+
*/
|
|
3769
|
+
readonly attrRelatedOrderIds: ros.IResolvable;
|
|
3737
3770
|
/**
|
|
3738
3771
|
* @Attribute ZoneIds: Zone id of created instances.
|
|
3739
3772
|
*/
|
|
@@ -4029,14 +4062,30 @@ export declare namespace RosInstanceGroupClone {
|
|
|
4029
4062
|
* @stability external
|
|
4030
4063
|
*/
|
|
4031
4064
|
interface EniMappingsProperty {
|
|
4065
|
+
/**
|
|
4066
|
+
* @Property networkInterfaceTrafficMode: The communication mode of the ENI. Valid values:
|
|
4067
|
+
* Standard: uses the TCP communication mode.
|
|
4068
|
+
* HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the remote direct memory access (RDMA) communication mode.
|
|
4069
|
+
*/
|
|
4070
|
+
readonly networkInterfaceTrafficMode?: string | ros.IResolvable;
|
|
4032
4071
|
/**
|
|
4033
4072
|
* @Property description: Description of your ENI. It is a string of [2, 256] English or Chinese characters.
|
|
4034
4073
|
*/
|
|
4035
4074
|
readonly description?: string | ros.IResolvable;
|
|
4075
|
+
/**
|
|
4076
|
+
* @Property queueNumber: The number of queues that are supported by the ENI. Valid values: 1 to 2048.
|
|
4077
|
+
* When you attach the ENI to an instance, make sure that the value of this parameter is less than the maximum number of queues per ENI that is allowed for the instance type. To view the maximum number of queues per ENI allowed for an instance type, you can call DescribeInstanceTypes and then check the return value of MaximumQueueNumberPerEni.
|
|
4078
|
+
* By default, this parameter is empty. If you do not specify this parameter, the default number of queues per ENI for the instance type of an instance is used when you attach the ENI to the instance. To learn about the default number of queues per ENI for an instance type, you can call DescribeInstanceTypes and then check the return value of SecondaryEniQueueNumber.
|
|
4079
|
+
*/
|
|
4080
|
+
readonly queueNumber?: number | ros.IResolvable;
|
|
4081
|
+
/**
|
|
4082
|
+
* @Property ipv6AddressCount: The number of randomly generated IPv6 addresses that are assigned to the ENI.
|
|
4083
|
+
*/
|
|
4084
|
+
readonly ipv6AddressCount?: number | ros.IResolvable;
|
|
4036
4085
|
/**
|
|
4037
4086
|
* @Property securityGroupId: The ID of the security group that the ENI joins. The security group and the ENI must be in a same VPC.
|
|
4038
4087
|
*/
|
|
4039
|
-
readonly securityGroupId
|
|
4088
|
+
readonly securityGroupId?: string | ros.IResolvable;
|
|
4040
4089
|
/**
|
|
4041
4090
|
* @Property vSwitchId: VSwitch ID of the specified VPC. Specifies the switch ID for the VPC.
|
|
4042
4091
|
*/
|
|
@@ -4049,6 +4098,19 @@ export declare namespace RosInstanceGroupClone {
|
|
|
4049
4098
|
* @Property primaryIpAddress: The primary private IP address of the ENI. The specified IP address must have the same Host ID as the VSwitch. If no IP addresses are specified, a random network ID is assigned for the ENI.
|
|
4050
4099
|
*/
|
|
4051
4100
|
readonly primaryIpAddress?: string | ros.IResolvable;
|
|
4101
|
+
/**
|
|
4102
|
+
* @Property ipv6Addresses: The IPv6 address N to assign to the ENI.
|
|
4103
|
+
*/
|
|
4104
|
+
readonly ipv6Addresses?: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
4105
|
+
/**
|
|
4106
|
+
* @Property instanceType: The type of ENI. Default value: Secondary.
|
|
4107
|
+
*/
|
|
4108
|
+
readonly instanceType?: string | ros.IResolvable;
|
|
4109
|
+
/**
|
|
4110
|
+
* @Property securityGroupIds: The IDs of security groups to which to assign ENI
|
|
4111
|
+
* Note: You cannot specify both SecurityGroupId and SecurityGroupIds at the same time.
|
|
4112
|
+
*/
|
|
4113
|
+
readonly securityGroupIds?: Array<any | ros.IResolvable> | ros.IResolvable;
|
|
4052
4114
|
}
|
|
4053
4115
|
}
|
|
4054
4116
|
export declare namespace RosInstanceGroupClone {
|
|
@@ -4791,10 +4853,24 @@ export interface RosNetworkInterfaceProps {
|
|
|
4791
4853
|
* @Property description: Description of your ENI. It is a string of [2, 256] English or Chinese characters.
|
|
4792
4854
|
*/
|
|
4793
4855
|
readonly description?: string | ros.IResolvable;
|
|
4856
|
+
/**
|
|
4857
|
+
* @Property ipv6AddressCount: The number of randomly generated IPv6 addresses that are assigned to the ENI.
|
|
4858
|
+
*/
|
|
4859
|
+
readonly ipv6AddressCount?: number | ros.IResolvable;
|
|
4860
|
+
/**
|
|
4861
|
+
* @Property ipv6Addresses: The IPv6 address N to assign to the ENI.
|
|
4862
|
+
*/
|
|
4863
|
+
readonly ipv6Addresses?: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
4794
4864
|
/**
|
|
4795
4865
|
* @Property networkInterfaceName: Name of your ENI. It is a string of [2, 128] Chinese or English characters. It must begin with a letter and can contain numbers, underscores (_), colons (:), or hyphens (-).
|
|
4796
4866
|
*/
|
|
4797
4867
|
readonly networkInterfaceName?: string | ros.IResolvable;
|
|
4868
|
+
/**
|
|
4869
|
+
* @Property networkInterfaceTrafficMode: The communication mode of the ENI. Valid values:
|
|
4870
|
+
* Standard: uses the TCP communication mode.
|
|
4871
|
+
* HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the remote direct memory access (RDMA) communication mode.
|
|
4872
|
+
*/
|
|
4873
|
+
readonly networkInterfaceTrafficMode?: string | ros.IResolvable;
|
|
4798
4874
|
/**
|
|
4799
4875
|
* @Property primaryIpAddress: The primary private IP address of the ENI. The specified IP address must have the same Host ID as the VSwitch. If no IP addresses are specified, a random network ID is assigned for the ENI.
|
|
4800
4876
|
*/
|
|
@@ -4803,6 +4879,12 @@ export interface RosNetworkInterfaceProps {
|
|
|
4803
4879
|
* @Property privateIpAddresses: Specifies secondary private IP addresses of the ENI. This IP address must be an available IP address in the CIDR block of the VSwitch to which the ENI belongs.
|
|
4804
4880
|
*/
|
|
4805
4881
|
readonly privateIpAddresses?: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
4882
|
+
/**
|
|
4883
|
+
* @Property queueNumber: The number of queues that are supported by the ENI. Valid values: 1 to 2048.
|
|
4884
|
+
* When you attach the ENI to an instance, make sure that the value of this parameter is less than the maximum number of queues per ENI that is allowed for the instance type. To view the maximum number of queues per ENI allowed for an instance type, you can call DescribeInstanceTypes and then check the return value of MaximumQueueNumberPerEni.
|
|
4885
|
+
* By default, this parameter is empty. If you do not specify this parameter, the default number of queues per ENI for the instance type of an instance is used when you attach the ENI to the instance. To learn about the default number of queues per ENI for an instance type, you can call DescribeInstanceTypes and then check the return value of SecondaryEniQueueNumber.
|
|
4886
|
+
*/
|
|
4887
|
+
readonly queueNumber?: number | ros.IResolvable;
|
|
4806
4888
|
/**
|
|
4807
4889
|
* @Property resourceGroupId: Resource group id.
|
|
4808
4890
|
*/
|
|
@@ -4861,10 +4943,24 @@ export declare class RosNetworkInterface extends ros.RosResource {
|
|
|
4861
4943
|
* @Property description: Description of your ENI. It is a string of [2, 256] English or Chinese characters.
|
|
4862
4944
|
*/
|
|
4863
4945
|
description: string | ros.IResolvable | undefined;
|
|
4946
|
+
/**
|
|
4947
|
+
* @Property ipv6AddressCount: The number of randomly generated IPv6 addresses that are assigned to the ENI.
|
|
4948
|
+
*/
|
|
4949
|
+
ipv6AddressCount: number | ros.IResolvable | undefined;
|
|
4950
|
+
/**
|
|
4951
|
+
* @Property ipv6Addresses: The IPv6 address N to assign to the ENI.
|
|
4952
|
+
*/
|
|
4953
|
+
ipv6Addresses: Array<string | ros.IResolvable> | ros.IResolvable | undefined;
|
|
4864
4954
|
/**
|
|
4865
4955
|
* @Property networkInterfaceName: Name of your ENI. It is a string of [2, 128] Chinese or English characters. It must begin with a letter and can contain numbers, underscores (_), colons (:), or hyphens (-).
|
|
4866
4956
|
*/
|
|
4867
4957
|
networkInterfaceName: string | ros.IResolvable | undefined;
|
|
4958
|
+
/**
|
|
4959
|
+
* @Property networkInterfaceTrafficMode: The communication mode of the ENI. Valid values:
|
|
4960
|
+
* Standard: uses the TCP communication mode.
|
|
4961
|
+
* HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the remote direct memory access (RDMA) communication mode.
|
|
4962
|
+
*/
|
|
4963
|
+
networkInterfaceTrafficMode: string | ros.IResolvable | undefined;
|
|
4868
4964
|
/**
|
|
4869
4965
|
* @Property primaryIpAddress: The primary private IP address of the ENI. The specified IP address must have the same Host ID as the VSwitch. If no IP addresses are specified, a random network ID is assigned for the ENI.
|
|
4870
4966
|
*/
|
|
@@ -4873,6 +4969,12 @@ export declare class RosNetworkInterface extends ros.RosResource {
|
|
|
4873
4969
|
* @Property privateIpAddresses: Specifies secondary private IP addresses of the ENI. This IP address must be an available IP address in the CIDR block of the VSwitch to which the ENI belongs.
|
|
4874
4970
|
*/
|
|
4875
4971
|
privateIpAddresses: Array<string | ros.IResolvable> | ros.IResolvable | undefined;
|
|
4972
|
+
/**
|
|
4973
|
+
* @Property queueNumber: The number of queues that are supported by the ENI. Valid values: 1 to 2048.
|
|
4974
|
+
* When you attach the ENI to an instance, make sure that the value of this parameter is less than the maximum number of queues per ENI that is allowed for the instance type. To view the maximum number of queues per ENI allowed for an instance type, you can call DescribeInstanceTypes and then check the return value of MaximumQueueNumberPerEni.
|
|
4975
|
+
* By default, this parameter is empty. If you do not specify this parameter, the default number of queues per ENI for the instance type of an instance is used when you attach the ENI to the instance. To learn about the default number of queues per ENI for an instance type, you can call DescribeInstanceTypes and then check the return value of SecondaryEniQueueNumber.
|
|
4976
|
+
*/
|
|
4977
|
+
queueNumber: number | ros.IResolvable | undefined;
|
|
4876
4978
|
/**
|
|
4877
4979
|
* @Property resourceGroupId: Resource group id.
|
|
4878
4980
|
*/
|
|
@@ -5159,6 +5261,75 @@ export declare namespace RosPrefixList {
|
|
|
5159
5261
|
readonly cidr: string | ros.IResolvable;
|
|
5160
5262
|
}
|
|
5161
5263
|
}
|
|
5264
|
+
/**
|
|
5265
|
+
* Properties for defining a `ALIYUN::ECS::RamRoleAttachment`
|
|
5266
|
+
*/
|
|
5267
|
+
export interface RosRamRoleAttachmentProps {
|
|
5268
|
+
/**
|
|
5269
|
+
* @Property instanceIds: The instance id that needs to be granted the ram role.
|
|
5270
|
+
*/
|
|
5271
|
+
readonly instanceIds: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
5272
|
+
/**
|
|
5273
|
+
* @Property ramRoleName: The ram role name.
|
|
5274
|
+
*/
|
|
5275
|
+
readonly ramRoleName: string | ros.IResolvable;
|
|
5276
|
+
/**
|
|
5277
|
+
* @Property policy: When granting the instance RAM role to one or more ECS instances, you can specify an additional permission policy to further limit the permissions of the RAM role.
|
|
5278
|
+
* The length is 1~1024 characters.
|
|
5279
|
+
*/
|
|
5280
|
+
readonly policy?: string | ros.IResolvable;
|
|
5281
|
+
}
|
|
5282
|
+
/**
|
|
5283
|
+
* A ROS template type: `ALIYUN::ECS::RamRoleAttachment`
|
|
5284
|
+
*/
|
|
5285
|
+
export declare class RosRamRoleAttachment extends ros.RosResource {
|
|
5286
|
+
/**
|
|
5287
|
+
* The resource type name for this resource class.
|
|
5288
|
+
*/
|
|
5289
|
+
static readonly ROS_RESOURCE_TYPE_NAME = "ALIYUN::ECS::RamRoleAttachment";
|
|
5290
|
+
/**
|
|
5291
|
+
* A factory method that creates a new instance of this class from an object
|
|
5292
|
+
* containing the properties of this ROS resource.
|
|
5293
|
+
*/
|
|
5294
|
+
/**
|
|
5295
|
+
* @Attribute InstanceIds: The list of ecs instance id
|
|
5296
|
+
*/
|
|
5297
|
+
readonly attrInstanceIds: ros.IResolvable;
|
|
5298
|
+
/**
|
|
5299
|
+
* @Attribute RamRoleName: The ram role name.
|
|
5300
|
+
*/
|
|
5301
|
+
readonly attrRamRoleName: ros.IResolvable;
|
|
5302
|
+
enableResourcePropertyConstraint: boolean;
|
|
5303
|
+
/**
|
|
5304
|
+
* @Property instanceIds: The instance id that needs to be granted the ram role.
|
|
5305
|
+
*/
|
|
5306
|
+
instanceIds: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
5307
|
+
/**
|
|
5308
|
+
* @Property ramRoleName: The ram role name.
|
|
5309
|
+
*/
|
|
5310
|
+
ramRoleName: string | ros.IResolvable;
|
|
5311
|
+
/**
|
|
5312
|
+
* @Property policy: When granting the instance RAM role to one or more ECS instances, you can specify an additional permission policy to further limit the permissions of the RAM role.
|
|
5313
|
+
* The length is 1~1024 characters.
|
|
5314
|
+
*/
|
|
5315
|
+
policy: string | ros.IResolvable | undefined;
|
|
5316
|
+
/**
|
|
5317
|
+
* Create a new `ALIYUN::ECS::RamRoleAttachment`.
|
|
5318
|
+
*
|
|
5319
|
+
* @param scope - scope in which this resource is defined
|
|
5320
|
+
* @param id - scoped id of the resource
|
|
5321
|
+
* @param props - resource properties
|
|
5322
|
+
*/
|
|
5323
|
+
constructor(scope: ros.Construct, id: string, props: RosRamRoleAttachmentProps, enableResourcePropertyConstraint: boolean);
|
|
5324
|
+
protected get rosProperties(): {
|
|
5325
|
+
[key: string]: any;
|
|
5326
|
+
};
|
|
5327
|
+
protected renderProperties(props: {
|
|
5328
|
+
[key: string]: any;
|
|
5329
|
+
}): {
|
|
5330
|
+
[key: string]: any;
|
|
5331
|
+
};
|
|
5332
|
+
}
|
|
5162
5333
|
/**
|
|
5163
5334
|
* Properties for defining a `ALIYUN::ECS::Route`
|
|
5164
5335
|
*/
|
|
@@ -5317,6 +5488,10 @@ export interface RosRunCommandProps {
|
|
|
5317
5488
|
readonly parameters?: {
|
|
5318
5489
|
[key: string]: (any | ros.IResolvable);
|
|
5319
5490
|
} | ros.IResolvable;
|
|
5491
|
+
/**
|
|
5492
|
+
* @Property runAgainOn: The stage of executing the command again.
|
|
5493
|
+
*/
|
|
5494
|
+
readonly runAgainOn?: Array<string | ros.IResolvable> | ros.IResolvable;
|
|
5320
5495
|
/**
|
|
5321
5496
|
* @Property sync: Whether to invoke synchronously.
|
|
5322
5497
|
*/
|
|
@@ -5434,6 +5609,10 @@ export declare class RosRunCommand extends ros.RosResource {
|
|
|
5434
5609
|
parameters: {
|
|
5435
5610
|
[key: string]: (any | ros.IResolvable);
|
|
5436
5611
|
} | ros.IResolvable | undefined;
|
|
5612
|
+
/**
|
|
5613
|
+
* @Property runAgainOn: The stage of executing the command again.
|
|
5614
|
+
*/
|
|
5615
|
+
runAgainOn: Array<string | ros.IResolvable> | ros.IResolvable | undefined;
|
|
5437
5616
|
/**
|
|
5438
5617
|
* @Property sync: Whether to invoke synchronously.
|
|
5439
5618
|
*/
|