From 6793ad42291eb4d96ee65757d2bdc962600c5c48 Mon Sep 17 00:00:00 2001 From: ci_volc_sdk_gen Date: Tue, 14 Nov 2023 03:59:39 +0000 Subject: [PATCH] Auto generate pulumi SDK from terraform provider v0.0.123 --- .../pulumi-resource-volcengine/schema.json | 280 +++++++-- provider/go.mod | 2 +- provider/go.sum | 4 +- provider/resources.go | 584 +++++++++--------- .../ScalingGroupLaunchTemplateOverrideArgs.cs | 27 + ...alingGroupLaunchTemplateOverrideGetArgs.cs | 27 + ...calingLifecycleHookLifecycleCommandArgs.cs | 34 + ...ingLifecycleHookLifecycleCommandGetArgs.cs | 34 + ...onfigurationsScalingConfigurationResult.cs | 9 + .../ScalingGroupLaunchTemplateOverride.cs | 28 + ...calingGroupLaunchTemplateOverrideResult.cs | 36 ++ .../ScalingGroupsScalingGroupResult.cs | 37 +- .../ScalingLifecycleHookLifecycleCommand.cs | 37 ++ ...ooksLifecycleHookLifecycleCommandResult.cs | 37 ++ ...calingLifecycleHooksLifecycleHookResult.cs | 7 + .../Autoscaling/ScalingConfiguration.cs | 24 + .../Volcengine/Autoscaling/ScalingGroup.cs | 106 +++- .../Volcengine/Autoscaling/ScalingGroups.cs | 19 + .../Autoscaling/ScalingLifecycleHook.cs | 43 +- .../Volcengine/Mongodb/MongoAllowList.cs | 18 - .../NodePoolNodeConfigDataVolumeArgs.cs | 4 +- .../NodePoolNodeConfigDataVolumeGetArgs.cs | 4 +- sdk/dotnet/Volcengine/Vke/NodePool.cs | 6 +- .../Outputs/NodePoolNodeConfigDataVolume.cs | 4 +- sdk/go/volcengine/autoscaling/pulumiTypes.go | 567 ++++++++++++++++- .../autoscaling/scalingConfiguration.go | 27 + sdk/go/volcengine/autoscaling/scalingGroup.go | 87 ++- .../volcengine/autoscaling/scalingGroups.go | 19 +- .../autoscaling/scalingLifecycleHook.go | 43 +- sdk/go/volcengine/mongodb/mongoAllowList.go | 15 - sdk/go/volcengine/vke/nodePool.go | 6 +- sdk/go/volcengine/vke/pulumiTypes.go | 12 +- .../autoscaling/scalingConfiguration.ts | 20 + sdk/nodejs/autoscaling/scalingGroup.ts | 76 ++- sdk/nodejs/autoscaling/scalingGroups.ts | 13 + .../autoscaling/scalingLifecycleHook.ts | 39 +- sdk/nodejs/mongodb/mongoAllowList.ts | 14 - sdk/nodejs/types/input.ts | 23 +- sdk/nodejs/types/output.ts | 82 ++- sdk/nodejs/vke/nodePool.ts | 6 +- sdk/nodejs/yarn.lock | 132 ++-- .../pulumi_volcengine/autoscaling/_inputs.py | 64 ++ .../pulumi_volcengine/autoscaling/outputs.py | 233 ++++++- .../autoscaling/scaling_configuration.py | 61 ++ .../autoscaling/scaling_group.py | 223 ++++++- .../autoscaling/scaling_groups.py | 20 +- .../autoscaling/scaling_lifecycle_hook.py | 97 ++- .../mongodb/mongo_allow_list.py | 53 +- sdk/python/pulumi_volcengine/vke/_inputs.py | 8 +- sdk/python/pulumi_volcengine/vke/node_pool.py | 12 +- sdk/python/pulumi_volcengine/vke/outputs.py | 8 +- 51 files changed, 2771 insertions(+), 600 deletions(-) create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideArgs.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideGetArgs.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandArgs.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandGetArgs.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupLaunchTemplateOverride.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupLaunchTemplateOverrideResult.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHookLifecycleCommand.cs create mode 100644 sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookLifecycleCommandResult.cs diff --git a/provider/cmd/pulumi-resource-volcengine/schema.json b/provider/cmd/pulumi-resource-volcengine/schema.json index 908264b1..44d520fe 100644 --- a/provider/cmd/pulumi-resource-volcengine/schema.json +++ b/provider/cmd/pulumi-resource-volcengine/schema.json @@ -334,6 +334,10 @@ }, "description": "The list of the ECS instance type which the scaling configuration set.\n" }, + "ipv6AddressCount": { + "type": "integer", + "description": "Assign IPv6 address to instance network card. Possible values:\n0: Do not assign IPv6 address.\n1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.\n" + }, "keyPairName": { "type": "string", "description": "The ECS key pair name which the scaling configuration set.\n" @@ -409,6 +413,7 @@ "instanceDescription", "instanceName", "instanceTypes", + "ipv6AddressCount", "keyPairName", "lifecycleState", "projectName", @@ -478,6 +483,18 @@ } } }, + "volcengine:autoscaling/ScalingGroupLaunchTemplateOverride:ScalingGroupLaunchTemplateOverride": { + "properties": { + "instanceType": { + "type": "string", + "description": "The instance type.\n" + } + }, + "type": "object", + "required": [ + "instanceType" + ] + }, "volcengine:autoscaling/ScalingGroupServerGroupAttribute:ScalingGroupServerGroupAttribute": { "properties": { "loadBalancerId": { @@ -555,6 +572,10 @@ "type": "integer", "description": "The desire instance number of the scaling group.\n" }, + "healthCheckType": { + "type": "string", + "description": "The health check type of the scaling group.\n" + }, "id": { "type": "string", "description": "The id of the scaling group.\n" @@ -567,6 +588,13 @@ "type": "string", "description": "The ID of the launch template bound to the scaling group.\n" }, + "launchTemplateOverrides": { + "type": "array", + "items": { + "$ref": "#/types/volcengine:autoscaling/ScalingGroupsScalingGroupLaunchTemplateOverride:ScalingGroupsScalingGroupLaunchTemplateOverride" + }, + "description": "Instance start template information.\n" + }, "launchTemplateVersion": { "type": "string", "description": "The version of the launch template bound to the scaling group.\n" @@ -575,6 +603,10 @@ "type": "string", "description": "The lifecycle state of the scaling group.\n" }, + "loadBalancerHealthCheckGracePeriod": { + "type": "integer", + "description": "Grace period for health check of CLB instance in elastic group.\n" + }, "maxInstanceNumber": { "type": "integer", "description": "The max instance number of the scaling group.\n" @@ -589,7 +621,7 @@ }, "projectName": { "type": "string", - "description": "The ProjectName of scaling group.\n" + "description": "The project name of the scaling group.\n" }, "scalingGroupId": { "type": "string", @@ -599,6 +631,10 @@ "type": "string", "description": "The name of the scaling group.\n" }, + "scalingMode": { + "type": "string", + "description": "The scaling mode of the scaling group.\n" + }, "serverGroupAttributes": { "type": "array", "items": { @@ -606,6 +642,10 @@ }, "description": "The list of server group attributes.\n" }, + "stoppedInstanceCount": { + "type": "integer", + "description": "The number of stopped instances.\n" + }, "subnetIds": { "type": "array", "items": { @@ -640,18 +680,23 @@ "dbInstanceIds", "defaultCooldown", "desireInstanceNumber", + "healthCheckType", "id", "instanceTerminatePolicy", "launchTemplateId", + "launchTemplateOverrides", "launchTemplateVersion", "lifecycleState", + "loadBalancerHealthCheckGracePeriod", "maxInstanceNumber", "minInstanceNumber", "multiAzPolicy", "projectName", "scalingGroupId", "scalingGroupName", + "scalingMode", "serverGroupAttributes", + "stoppedInstanceCount", "subnetIds", "tags", "totalInstanceCount", @@ -664,6 +709,28 @@ } } }, + "volcengine:autoscaling/ScalingGroupsScalingGroupLaunchTemplateOverride:ScalingGroupsScalingGroupLaunchTemplateOverride": { + "properties": { + "instanceType": { + "type": "string", + "description": "The instance type.\n" + }, + "weightedCapacity": { + "type": "integer", + "description": "Weight of instance specifications.\n" + } + }, + "type": "object", + "required": [ + "instanceType", + "weightedCapacity" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, "volcengine:autoscaling/ScalingGroupsScalingGroupServerGroupAttribute:ScalingGroupsScalingGroupServerGroupAttribute": { "properties": { "loadBalancerId": { @@ -775,12 +842,35 @@ } } }, + "volcengine:autoscaling/ScalingLifecycleHookLifecycleCommand:ScalingLifecycleHookLifecycleCommand": { + "properties": { + "commandId": { + "type": "string", + "description": "Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.\n" + }, + "parameters": { + "type": "string", + "description": "Parameters and parameter values in batch job commands.\nThe number of parameters ranges from 0 to 60.\n" + } + }, + "type": "object", + "required": [ + "commandId" + ] + }, "volcengine:autoscaling/ScalingLifecycleHooksLifecycleHook:ScalingLifecycleHooksLifecycleHook": { "properties": { "id": { "type": "string", "description": "The id of the lifecycle hook.\n" }, + "lifecycleCommands": { + "type": "array", + "items": { + "$ref": "#/types/volcengine:autoscaling/ScalingLifecycleHooksLifecycleHookLifecycleCommand:ScalingLifecycleHooksLifecycleHookLifecycleCommand" + }, + "description": "Batch job command.\n" + }, "lifecycleHookId": { "type": "string", "description": "The id of the lifecycle hook.\n" @@ -809,6 +899,7 @@ "type": "object", "required": [ "id", + "lifecycleCommands", "lifecycleHookId", "lifecycleHookName", "lifecycleHookPolicy", @@ -822,6 +913,28 @@ } } }, + "volcengine:autoscaling/ScalingLifecycleHooksLifecycleHookLifecycleCommand:ScalingLifecycleHooksLifecycleHookLifecycleCommand": { + "properties": { + "commandId": { + "type": "string", + "description": "Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.\n" + }, + "parameters": { + "type": "string", + "description": "Parameters and parameter values in batch job commands.\nThe number of parameters ranges from 0 to 60.\n" + } + }, + "type": "object", + "required": [ + "commandId", + "parameters" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, "volcengine:autoscaling/ScalingPoliciesScalingPolicy:ScalingPoliciesScalingPolicy": { "properties": { "adjustmentType": { @@ -19477,8 +19590,7 @@ "properties": { "additionalContainerStorageEnabled": { "type": "boolean", - "description": "The AdditionalContainerStorageEnabled of NodeConfig.\n", - "willReplaceOnChanges": true + "description": "The AdditionalContainerStorageEnabled of NodeConfig.\n" }, "autoRenew": { "type": "boolean", @@ -19493,8 +19605,7 @@ "items": { "$ref": "#/types/volcengine:vke/NodePoolNodeConfigDataVolume:NodePoolNodeConfigDataVolume" }, - "description": "The DataVolumes of NodeConfig.\n", - "willReplaceOnChanges": true + "description": "The DataVolumes of NodeConfig.\n" }, "ecsTags": { "type": "array", @@ -19551,8 +19662,7 @@ }, "systemVolume": { "$ref": "#/types/volcengine:vke/NodePoolNodeConfigSystemVolume:NodePoolNodeConfigSystemVolume", - "description": "The SystemVolume of NodeConfig.\n", - "willReplaceOnChanges": true + "description": "The SystemVolume of NodeConfig.\n" } }, "type": "object", @@ -19580,18 +19690,15 @@ "properties": { "mountPoint": { "type": "string", - "description": "The target mount directory of the disk. Must start with `/`.\n", - "willReplaceOnChanges": true + "description": "The target mount directory of the disk. Must start with `/`.\n" }, "size": { "type": "integer", - "description": "The Size of DataVolumes, the value range in 20~32768.\n", - "willReplaceOnChanges": true + "description": "The Size of DataVolumes, the value range in 20~32768. Default value is `20`.\n" }, "type": { "type": "string", - "description": "The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`.\n", - "willReplaceOnChanges": true + "description": "The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`.\n" } }, "type": "object" @@ -19660,16 +19767,22 @@ "properties": { "size": { "type": "integer", - "description": "The Size of SystemVolume, the value range in 20~2048.\n", - "willReplaceOnChanges": true + "description": "The Size of SystemVolume, the value range in 20~2048.\n" }, "type": { "type": "string", - "description": "The Type of SystemVolume, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`.\n", - "willReplaceOnChanges": true + "description": "The Type of SystemVolume, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`.\n" } }, - "type": "object" + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "size", + "type" + ] + } + } }, "volcengine:vke/NodePoolTag:NodePoolTag": { "properties": { @@ -23024,6 +23137,10 @@ }, "description": "The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.\n" }, + "ipv6AddressCount": { + "type": "integer", + "description": "Assign IPv6 address to instance network card. Possible values:\n0: Do not assign IPv6 address.\n1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.\n" + }, "keyPairName": { "type": "string", "description": "The ECS key pair name which the scaling configuration set.\n" @@ -23147,6 +23264,10 @@ }, "description": "The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.\n" }, + "ipv6AddressCount": { + "type": "integer", + "description": "Assign IPv6 address to instance network card. Possible values:\n0: Do not assign IPv6 address.\n1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.\n" + }, "keyPairName": { "type": "string", "description": "The ECS key pair name which the scaling configuration set.\n" @@ -23258,6 +23379,10 @@ }, "description": "The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.\n" }, + "ipv6AddressCount": { + "type": "integer", + "description": "Assign IPv6 address to instance network card. Possible values:\n0: Do not assign IPv6 address.\n1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.\n" + }, "keyPairName": { "type": "string", "description": "The ECS key pair name which the scaling configuration set.\n" @@ -23378,7 +23503,7 @@ "items": { "type": "string" }, - "description": "The list of db instance ids.\n" + "description": "ID of the RDS database instance.\n" }, "defaultCooldown": { "type": "integer", @@ -23388,6 +23513,10 @@ "type": "integer", "description": "The desire instance number of the scaling group.\n" }, + "healthCheckType": { + "type": "string", + "description": "The health check type of the scaling group.\n" + }, "instanceTerminatePolicy": { "type": "string", "description": "The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.\n" @@ -23396,6 +23525,13 @@ "type": "string", "description": "The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.\n" }, + "launchTemplateOverrides": { + "type": "array", + "items": { + "$ref": "#/types/volcengine:autoscaling/ScalingGroupLaunchTemplateOverride:ScalingGroupLaunchTemplateOverride" + }, + "description": "Specify instance specifications.\n" + }, "launchTemplateVersion": { "type": "string", "description": "The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.\n" @@ -23404,6 +23540,10 @@ "type": "string", "description": "The lifecycle state of the scaling group.\n" }, + "loadBalancerHealthCheckGracePeriod": { + "type": "integer", + "description": "Grace period for health check of CLB instance in elastic group.\n" + }, "maxInstanceNumber": { "type": "integer", "description": "The max instance number of the scaling group. Value range: 0 ~ 100.\n" @@ -23428,6 +23568,10 @@ "type": "string", "description": "The name of the scaling group.\n" }, + "scalingMode": { + "type": "string", + "description": "Example recycling mode for the elastic group, with values:\nrelease (default): Release mode.\nrecycle: Shutdown recycling mode.\n" + }, "serverGroupAttributes": { "type": "array", "items": { @@ -23435,6 +23579,10 @@ }, "description": "The load balancer server group attributes of the scaling group.\n" }, + "stoppedInstanceCount": { + "type": "integer", + "description": "The number of stopped instances.\n" + }, "subnetIds": { "type": "array", "items": { @@ -23465,23 +23613,34 @@ "required": [ "activeScalingConfigurationId", "createdAt", - "dbInstanceIds", "defaultCooldown", "desireInstanceNumber", + "healthCheckType", "instanceTerminatePolicy", "lifecycleState", + "loadBalancerHealthCheckGracePeriod", "maxInstanceNumber", "minInstanceNumber", "multiAzPolicy", "projectName", "scalingGroupId", "scalingGroupName", + "scalingMode", + "stoppedInstanceCount", "subnetIds", "totalInstanceCount", "updatedAt", "vpcId" ], "inputProperties": { + "dbInstanceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "ID of the RDS database instance.\n", + "willReplaceOnChanges": true + }, "defaultCooldown": { "type": "integer", "description": "The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.\n" @@ -23498,6 +23657,13 @@ "type": "string", "description": "The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.\n" }, + "launchTemplateOverrides": { + "type": "array", + "items": { + "$ref": "#/types/volcengine:autoscaling/ScalingGroupLaunchTemplateOverride:ScalingGroupLaunchTemplateOverride" + }, + "description": "Specify instance specifications.\n" + }, "launchTemplateVersion": { "type": "string", "description": "The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.\n" @@ -23522,6 +23688,11 @@ "type": "string", "description": "The name of the scaling group.\n" }, + "scalingMode": { + "type": "string", + "description": "Example recycling mode for the elastic group, with values:\nrelease (default): Release mode.\nrecycle: Shutdown recycling mode.\n", + "willReplaceOnChanges": true + }, "serverGroupAttributes": { "type": "array", "items": { @@ -23566,7 +23737,8 @@ "items": { "type": "string" }, - "description": "The list of db instance ids.\n" + "description": "ID of the RDS database instance.\n", + "willReplaceOnChanges": true }, "defaultCooldown": { "type": "integer", @@ -23576,6 +23748,10 @@ "type": "integer", "description": "The desire instance number of the scaling group.\n" }, + "healthCheckType": { + "type": "string", + "description": "The health check type of the scaling group.\n" + }, "instanceTerminatePolicy": { "type": "string", "description": "The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.\n" @@ -23584,6 +23760,13 @@ "type": "string", "description": "The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.\n" }, + "launchTemplateOverrides": { + "type": "array", + "items": { + "$ref": "#/types/volcengine:autoscaling/ScalingGroupLaunchTemplateOverride:ScalingGroupLaunchTemplateOverride" + }, + "description": "Specify instance specifications.\n" + }, "launchTemplateVersion": { "type": "string", "description": "The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.\n" @@ -23592,6 +23775,10 @@ "type": "string", "description": "The lifecycle state of the scaling group.\n" }, + "loadBalancerHealthCheckGracePeriod": { + "type": "integer", + "description": "Grace period for health check of CLB instance in elastic group.\n" + }, "maxInstanceNumber": { "type": "integer", "description": "The max instance number of the scaling group. Value range: 0 ~ 100.\n" @@ -23616,6 +23803,11 @@ "type": "string", "description": "The name of the scaling group.\n" }, + "scalingMode": { + "type": "string", + "description": "Example recycling mode for the elastic group, with values:\nrelease (default): Release mode.\nrecycle: Shutdown recycling mode.\n", + "willReplaceOnChanges": true + }, "serverGroupAttributes": { "type": "array", "items": { @@ -23623,6 +23815,10 @@ }, "description": "The load balancer server group attributes of the scaling group.\n" }, + "stoppedInstanceCount": { + "type": "integer", + "description": "The number of stopped instances.\n" + }, "subnetIds": { "type": "array", "items": { @@ -23774,8 +23970,12 @@ } }, "volcengine:autoscaling/scalingLifecycleHook:ScalingLifecycleHook": { - "description": "Provides a resource to manage scaling lifecycle hook\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as volcengine from \"@pulumi/volcengine\";\nimport * as volcengine from \"@volcengine/pulumi\";\n\nconst fooZones = volcengine.ecs.Zones({});\nconst fooVpc = new volcengine.vpc.Vpc(\"fooVpc\", {\n vpcName: \"acc-test-vpc\",\n cidrBlock: \"172.16.0.0/16\",\n});\nconst fooSubnet = new volcengine.vpc.Subnet(\"fooSubnet\", {\n subnetName: \"acc-test-subnet\",\n cidrBlock: \"172.16.0.0/24\",\n zoneId: fooZones.then(fooZones =\u003e fooZones.zones?.[0]?.id),\n vpcId: fooVpc.id,\n});\nconst fooScalingGroup = new volcengine.autoscaling.ScalingGroup(\"fooScalingGroup\", {\n scalingGroupName: \"acc-test-scaling-group-lifecycle\",\n subnetIds: [fooSubnet.id],\n multiAzPolicy: \"BALANCE\",\n desireInstanceNumber: 0,\n minInstanceNumber: 0,\n maxInstanceNumber: 1,\n instanceTerminatePolicy: \"OldestInstance\",\n defaultCooldown: 10,\n});\nconst fooScalingLifecycleHook = new volcengine.autoscaling.ScalingLifecycleHook(\"fooScalingLifecycleHook\", {\n lifecycleHookName: \"acc-test-lifecycle\",\n lifecycleHookPolicy: \"CONTINUE\",\n lifecycleHookTimeout: 30,\n lifecycleHookType: \"SCALE_IN\",\n scalingGroupId: fooScalingGroup.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_volcengine as volcengine\n\nfoo_zones = volcengine.ecs.zones()\nfoo_vpc = volcengine.vpc.Vpc(\"fooVpc\",\n vpc_name=\"acc-test-vpc\",\n cidr_block=\"172.16.0.0/16\")\nfoo_subnet = volcengine.vpc.Subnet(\"fooSubnet\",\n subnet_name=\"acc-test-subnet\",\n cidr_block=\"172.16.0.0/24\",\n zone_id=foo_zones.zones[0].id,\n vpc_id=foo_vpc.id)\nfoo_scaling_group = volcengine.autoscaling.ScalingGroup(\"fooScalingGroup\",\n scaling_group_name=\"acc-test-scaling-group-lifecycle\",\n subnet_ids=[foo_subnet.id],\n multi_az_policy=\"BALANCE\",\n desire_instance_number=0,\n min_instance_number=0,\n max_instance_number=1,\n instance_terminate_policy=\"OldestInstance\",\n default_cooldown=10)\nfoo_scaling_lifecycle_hook = volcengine.autoscaling.ScalingLifecycleHook(\"fooScalingLifecycleHook\",\n lifecycle_hook_name=\"acc-test-lifecycle\",\n lifecycle_hook_policy=\"CONTINUE\",\n lifecycle_hook_timeout=30,\n lifecycle_hook_type=\"SCALE_IN\",\n scaling_group_id=foo_scaling_group.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Volcengine = Pulumi.Volcengine;\nusing Volcengine = Volcengine.Pulumi.Volcengine;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooZones = Volcengine.Ecs.Zones.Invoke();\n\n var fooVpc = new Volcengine.Vpc.Vpc(\"fooVpc\", new()\n {\n VpcName = \"acc-test-vpc\",\n CidrBlock = \"172.16.0.0/16\",\n });\n\n var fooSubnet = new Volcengine.Vpc.Subnet(\"fooSubnet\", new()\n {\n SubnetName = \"acc-test-subnet\",\n CidrBlock = \"172.16.0.0/24\",\n ZoneId = fooZones.Apply(zonesResult =\u003e zonesResult.Zones[0]?.Id),\n VpcId = fooVpc.Id,\n });\n\n var fooScalingGroup = new Volcengine.Autoscaling.ScalingGroup(\"fooScalingGroup\", new()\n {\n ScalingGroupName = \"acc-test-scaling-group-lifecycle\",\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n MultiAzPolicy = \"BALANCE\",\n DesireInstanceNumber = 0,\n MinInstanceNumber = 0,\n MaxInstanceNumber = 1,\n InstanceTerminatePolicy = \"OldestInstance\",\n DefaultCooldown = 10,\n });\n\n var fooScalingLifecycleHook = new Volcengine.Autoscaling.ScalingLifecycleHook(\"fooScalingLifecycleHook\", new()\n {\n LifecycleHookName = \"acc-test-lifecycle\",\n LifecycleHookPolicy = \"CONTINUE\",\n LifecycleHookTimeout = 30,\n LifecycleHookType = \"SCALE_IN\",\n ScalingGroupId = fooScalingGroup.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/autoscaling\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooZones, err := ecs.Zones(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooVpc, err := vpc.NewVpc(ctx, \"fooVpc\", \u0026vpc.VpcArgs{\n\t\t\tVpcName: pulumi.String(\"acc-test-vpc\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooSubnet, err := vpc.NewSubnet(ctx, \"fooSubnet\", \u0026vpc.SubnetArgs{\n\t\t\tSubnetName: pulumi.String(\"acc-test-subnet\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/24\"),\n\t\t\tZoneId: *pulumi.String(fooZones.Zones[0].Id),\n\t\t\tVpcId: fooVpc.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooScalingGroup, err := autoscaling.NewScalingGroup(ctx, \"fooScalingGroup\", \u0026autoscaling.ScalingGroupArgs{\n\t\t\tScalingGroupName: pulumi.String(\"acc-test-scaling-group-lifecycle\"),\n\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\tfooSubnet.ID(),\n\t\t\t},\n\t\t\tMultiAzPolicy: pulumi.String(\"BALANCE\"),\n\t\t\tDesireInstanceNumber: pulumi.Int(0),\n\t\t\tMinInstanceNumber: pulumi.Int(0),\n\t\t\tMaxInstanceNumber: pulumi.Int(1),\n\t\t\tInstanceTerminatePolicy: pulumi.String(\"OldestInstance\"),\n\t\t\tDefaultCooldown: pulumi.Int(10),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = autoscaling.NewScalingLifecycleHook(ctx, \"fooScalingLifecycleHook\", \u0026autoscaling.ScalingLifecycleHookArgs{\n\t\t\tLifecycleHookName: pulumi.String(\"acc-test-lifecycle\"),\n\t\t\tLifecycleHookPolicy: pulumi.String(\"CONTINUE\"),\n\t\t\tLifecycleHookTimeout: pulumi.Int(30),\n\t\t\tLifecycleHookType: pulumi.String(\"SCALE_IN\"),\n\t\t\tScalingGroupId: fooScalingGroup.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.volcengine.ecs.EcsFunctions;\nimport com.pulumi.volcengine.ecs.inputs.ZonesArgs;\nimport com.pulumi.volcengine.vpc.Vpc;\nimport com.pulumi.volcengine.vpc.VpcArgs;\nimport com.pulumi.volcengine.vpc.Subnet;\nimport com.pulumi.volcengine.vpc.SubnetArgs;\nimport com.pulumi.volcengine.autoscaling.ScalingGroup;\nimport com.pulumi.volcengine.autoscaling.ScalingGroupArgs;\nimport com.pulumi.volcengine.autoscaling.ScalingLifecycleHook;\nimport com.pulumi.volcengine.autoscaling.ScalingLifecycleHookArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var fooZones = EcsFunctions.Zones();\n\n var fooVpc = new Vpc(\"fooVpc\", VpcArgs.builder() \n .vpcName(\"acc-test-vpc\")\n .cidrBlock(\"172.16.0.0/16\")\n .build());\n\n var fooSubnet = new Subnet(\"fooSubnet\", SubnetArgs.builder() \n .subnetName(\"acc-test-subnet\")\n .cidrBlock(\"172.16.0.0/24\")\n .zoneId(fooZones.applyValue(zonesResult -\u003e zonesResult.zones()[0].id()))\n .vpcId(fooVpc.id())\n .build());\n\n var fooScalingGroup = new ScalingGroup(\"fooScalingGroup\", ScalingGroupArgs.builder() \n .scalingGroupName(\"acc-test-scaling-group-lifecycle\")\n .subnetIds(fooSubnet.id())\n .multiAzPolicy(\"BALANCE\")\n .desireInstanceNumber(0)\n .minInstanceNumber(0)\n .maxInstanceNumber(1)\n .instanceTerminatePolicy(\"OldestInstance\")\n .defaultCooldown(10)\n .build());\n\n var fooScalingLifecycleHook = new ScalingLifecycleHook(\"fooScalingLifecycleHook\", ScalingLifecycleHookArgs.builder() \n .lifecycleHookName(\"acc-test-lifecycle\")\n .lifecycleHookPolicy(\"CONTINUE\")\n .lifecycleHookTimeout(30)\n .lifecycleHookType(\"SCALE_IN\")\n .scalingGroupId(fooScalingGroup.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooVpc:\n type: volcengine:vpc:Vpc\n properties:\n vpcName: acc-test-vpc\n cidrBlock: 172.16.0.0/16\n fooSubnet:\n type: volcengine:vpc:Subnet\n properties:\n subnetName: acc-test-subnet\n cidrBlock: 172.16.0.0/24\n zoneId: ${fooZones.zones[0].id}\n vpcId: ${fooVpc.id}\n fooScalingGroup:\n type: volcengine:autoscaling:ScalingGroup\n properties:\n scalingGroupName: acc-test-scaling-group-lifecycle\n subnetIds:\n - ${fooSubnet.id}\n multiAzPolicy: BALANCE\n desireInstanceNumber: 0\n minInstanceNumber: 0\n maxInstanceNumber: 1\n instanceTerminatePolicy: OldestInstance\n defaultCooldown: 10\n fooScalingLifecycleHook:\n type: volcengine:autoscaling:ScalingLifecycleHook\n properties:\n lifecycleHookName: acc-test-lifecycle\n lifecycleHookPolicy: CONTINUE\n lifecycleHookTimeout: 30\n lifecycleHookType: SCALE_IN\n scalingGroupId: ${fooScalingGroup.id}\nvariables:\n fooZones:\n fn::invoke:\n Function: volcengine:ecs:Zones\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nScalingLifecycleHook can be imported using the ScalingGroupId:LifecycleHookId, e.g.\n\n```sh\n $ pulumi import volcengine:autoscaling/scalingLifecycleHook:ScalingLifecycleHook default scg-yblfbfhy7agh9zn72iaz:sgh-ybqholahe4gso0ee88sd\n```\n\n ", + "description": "Provides a resource to manage scaling lifecycle hook\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as volcengine from \"@pulumi/volcengine\";\nimport * as volcengine from \"@volcengine/pulumi\";\n\nconst fooZones = volcengine.ecs.Zones({});\nconst fooVpc = new volcengine.vpc.Vpc(\"fooVpc\", {\n vpcName: \"acc-test-vpc\",\n cidrBlock: \"172.16.0.0/16\",\n});\nconst fooSubnet = new volcengine.vpc.Subnet(\"fooSubnet\", {\n subnetName: \"acc-test-subnet\",\n cidrBlock: \"172.16.0.0/24\",\n zoneId: fooZones.then(fooZones =\u003e fooZones.zones?.[0]?.id),\n vpcId: fooVpc.id,\n});\nconst fooCommand = new volcengine.ecs.Command(\"fooCommand\", {\n description: \"tf\",\n workingDir: \"/home\",\n username: \"root\",\n timeout: 100,\n commandContent: \"IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi\",\n});\nconst fooScalingGroup = new volcengine.autoscaling.ScalingGroup(\"fooScalingGroup\", {\n scalingGroupName: \"acc-test-scaling-group-lifecycle\",\n subnetIds: [fooSubnet.id],\n multiAzPolicy: \"BALANCE\",\n desireInstanceNumber: 0,\n minInstanceNumber: 0,\n maxInstanceNumber: 1,\n instanceTerminatePolicy: \"OldestInstance\",\n defaultCooldown: 10,\n});\nconst fooScalingLifecycleHook = new volcengine.autoscaling.ScalingLifecycleHook(\"fooScalingLifecycleHook\", {\n lifecycleHookName: \"acc-test-lifecycle\",\n lifecycleHookPolicy: \"ROLLBACK\",\n lifecycleHookTimeout: 300,\n lifecycleHookType: \"SCALE_OUT\",\n scalingGroupId: fooScalingGroup.id,\n});\n// lifecycle_command {\n// command_id = volcengine_ecs_command.foo.id\n// parameters = \"{}\"\n// }\n```\n```python\nimport pulumi\nimport pulumi_volcengine as volcengine\n\nfoo_zones = volcengine.ecs.zones()\nfoo_vpc = volcengine.vpc.Vpc(\"fooVpc\",\n vpc_name=\"acc-test-vpc\",\n cidr_block=\"172.16.0.0/16\")\nfoo_subnet = volcengine.vpc.Subnet(\"fooSubnet\",\n subnet_name=\"acc-test-subnet\",\n cidr_block=\"172.16.0.0/24\",\n zone_id=foo_zones.zones[0].id,\n vpc_id=foo_vpc.id)\nfoo_command = volcengine.ecs.Command(\"fooCommand\",\n description=\"tf\",\n working_dir=\"/home\",\n username=\"root\",\n timeout=100,\n command_content=\"IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi\")\nfoo_scaling_group = volcengine.autoscaling.ScalingGroup(\"fooScalingGroup\",\n scaling_group_name=\"acc-test-scaling-group-lifecycle\",\n subnet_ids=[foo_subnet.id],\n multi_az_policy=\"BALANCE\",\n desire_instance_number=0,\n min_instance_number=0,\n max_instance_number=1,\n instance_terminate_policy=\"OldestInstance\",\n default_cooldown=10)\nfoo_scaling_lifecycle_hook = volcengine.autoscaling.ScalingLifecycleHook(\"fooScalingLifecycleHook\",\n lifecycle_hook_name=\"acc-test-lifecycle\",\n lifecycle_hook_policy=\"ROLLBACK\",\n lifecycle_hook_timeout=300,\n lifecycle_hook_type=\"SCALE_OUT\",\n scaling_group_id=foo_scaling_group.id)\n# lifecycle_command {\n# command_id = volcengine_ecs_command.foo.id\n# parameters = \"{}\"\n# }\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Volcengine = Pulumi.Volcengine;\nusing Volcengine = Volcengine.Pulumi.Volcengine;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooZones = Volcengine.Ecs.Zones.Invoke();\n\n var fooVpc = new Volcengine.Vpc.Vpc(\"fooVpc\", new()\n {\n VpcName = \"acc-test-vpc\",\n CidrBlock = \"172.16.0.0/16\",\n });\n\n var fooSubnet = new Volcengine.Vpc.Subnet(\"fooSubnet\", new()\n {\n SubnetName = \"acc-test-subnet\",\n CidrBlock = \"172.16.0.0/24\",\n ZoneId = fooZones.Apply(zonesResult =\u003e zonesResult.Zones[0]?.Id),\n VpcId = fooVpc.Id,\n });\n\n var fooCommand = new Volcengine.Ecs.Command(\"fooCommand\", new()\n {\n Description = \"tf\",\n WorkingDir = \"/home\",\n Username = \"root\",\n Timeout = 100,\n CommandContent = \"IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi\",\n });\n\n var fooScalingGroup = new Volcengine.Autoscaling.ScalingGroup(\"fooScalingGroup\", new()\n {\n ScalingGroupName = \"acc-test-scaling-group-lifecycle\",\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n MultiAzPolicy = \"BALANCE\",\n DesireInstanceNumber = 0,\n MinInstanceNumber = 0,\n MaxInstanceNumber = 1,\n InstanceTerminatePolicy = \"OldestInstance\",\n DefaultCooldown = 10,\n });\n\n var fooScalingLifecycleHook = new Volcengine.Autoscaling.ScalingLifecycleHook(\"fooScalingLifecycleHook\", new()\n {\n LifecycleHookName = \"acc-test-lifecycle\",\n LifecycleHookPolicy = \"ROLLBACK\",\n LifecycleHookTimeout = 300,\n LifecycleHookType = \"SCALE_OUT\",\n ScalingGroupId = fooScalingGroup.Id,\n });\n\n // lifecycle_command {\n // command_id = volcengine_ecs_command.foo.id\n // parameters = \"{}\"\n // }\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/autoscaling\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooZones, err := ecs.Zones(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooVpc, err := vpc.NewVpc(ctx, \"fooVpc\", \u0026vpc.VpcArgs{\n\t\t\tVpcName: pulumi.String(\"acc-test-vpc\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooSubnet, err := vpc.NewSubnet(ctx, \"fooSubnet\", \u0026vpc.SubnetArgs{\n\t\t\tSubnetName: pulumi.String(\"acc-test-subnet\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/24\"),\n\t\t\tZoneId: *pulumi.String(fooZones.Zones[0].Id),\n\t\t\tVpcId: fooVpc.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ecs.NewCommand(ctx, \"fooCommand\", \u0026ecs.CommandArgs{\n\t\t\tDescription: pulumi.String(\"tf\"),\n\t\t\tWorkingDir: pulumi.String(\"/home\"),\n\t\t\tUsername: pulumi.String(\"root\"),\n\t\t\tTimeout: pulumi.Int(100),\n\t\t\tCommandContent: pulumi.String(\"IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooScalingGroup, err := autoscaling.NewScalingGroup(ctx, \"fooScalingGroup\", \u0026autoscaling.ScalingGroupArgs{\n\t\t\tScalingGroupName: pulumi.String(\"acc-test-scaling-group-lifecycle\"),\n\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\tfooSubnet.ID(),\n\t\t\t},\n\t\t\tMultiAzPolicy: pulumi.String(\"BALANCE\"),\n\t\t\tDesireInstanceNumber: pulumi.Int(0),\n\t\t\tMinInstanceNumber: pulumi.Int(0),\n\t\t\tMaxInstanceNumber: pulumi.Int(1),\n\t\t\tInstanceTerminatePolicy: pulumi.String(\"OldestInstance\"),\n\t\t\tDefaultCooldown: pulumi.Int(10),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = autoscaling.NewScalingLifecycleHook(ctx, \"fooScalingLifecycleHook\", \u0026autoscaling.ScalingLifecycleHookArgs{\n\t\t\tLifecycleHookName: pulumi.String(\"acc-test-lifecycle\"),\n\t\t\tLifecycleHookPolicy: pulumi.String(\"ROLLBACK\"),\n\t\t\tLifecycleHookTimeout: pulumi.Int(300),\n\t\t\tLifecycleHookType: pulumi.String(\"SCALE_OUT\"),\n\t\t\tScalingGroupId: fooScalingGroup.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.volcengine.ecs.EcsFunctions;\nimport com.pulumi.volcengine.ecs.inputs.ZonesArgs;\nimport com.pulumi.volcengine.vpc.Vpc;\nimport com.pulumi.volcengine.vpc.VpcArgs;\nimport com.pulumi.volcengine.vpc.Subnet;\nimport com.pulumi.volcengine.vpc.SubnetArgs;\nimport com.pulumi.volcengine.ecs.Command;\nimport com.pulumi.volcengine.ecs.CommandArgs;\nimport com.pulumi.volcengine.autoscaling.ScalingGroup;\nimport com.pulumi.volcengine.autoscaling.ScalingGroupArgs;\nimport com.pulumi.volcengine.autoscaling.ScalingLifecycleHook;\nimport com.pulumi.volcengine.autoscaling.ScalingLifecycleHookArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var fooZones = EcsFunctions.Zones();\n\n var fooVpc = new Vpc(\"fooVpc\", VpcArgs.builder() \n .vpcName(\"acc-test-vpc\")\n .cidrBlock(\"172.16.0.0/16\")\n .build());\n\n var fooSubnet = new Subnet(\"fooSubnet\", SubnetArgs.builder() \n .subnetName(\"acc-test-subnet\")\n .cidrBlock(\"172.16.0.0/24\")\n .zoneId(fooZones.applyValue(zonesResult -\u003e zonesResult.zones()[0].id()))\n .vpcId(fooVpc.id())\n .build());\n\n var fooCommand = new Command(\"fooCommand\", CommandArgs.builder() \n .description(\"tf\")\n .workingDir(\"/home\")\n .username(\"root\")\n .timeout(100)\n .commandContent(\"IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi\")\n .build());\n\n var fooScalingGroup = new ScalingGroup(\"fooScalingGroup\", ScalingGroupArgs.builder() \n .scalingGroupName(\"acc-test-scaling-group-lifecycle\")\n .subnetIds(fooSubnet.id())\n .multiAzPolicy(\"BALANCE\")\n .desireInstanceNumber(0)\n .minInstanceNumber(0)\n .maxInstanceNumber(1)\n .instanceTerminatePolicy(\"OldestInstance\")\n .defaultCooldown(10)\n .build());\n\n var fooScalingLifecycleHook = new ScalingLifecycleHook(\"fooScalingLifecycleHook\", ScalingLifecycleHookArgs.builder() \n .lifecycleHookName(\"acc-test-lifecycle\")\n .lifecycleHookPolicy(\"ROLLBACK\")\n .lifecycleHookTimeout(300)\n .lifecycleHookType(\"SCALE_OUT\")\n .scalingGroupId(fooScalingGroup.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooVpc:\n type: volcengine:vpc:Vpc\n properties:\n vpcName: acc-test-vpc\n cidrBlock: 172.16.0.0/16\n fooSubnet:\n type: volcengine:vpc:Subnet\n properties:\n subnetName: acc-test-subnet\n cidrBlock: 172.16.0.0/24\n zoneId: ${fooZones.zones[0].id}\n vpcId: ${fooVpc.id}\n fooCommand:\n type: volcengine:ecs:Command\n properties:\n description: tf\n workingDir: /home\n username: root\n timeout: 100\n commandContent: IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi\n fooScalingGroup:\n type: volcengine:autoscaling:ScalingGroup\n properties:\n scalingGroupName: acc-test-scaling-group-lifecycle\n subnetIds:\n - ${fooSubnet.id}\n multiAzPolicy: BALANCE\n desireInstanceNumber: 0\n minInstanceNumber: 0\n maxInstanceNumber: 1\n instanceTerminatePolicy: OldestInstance\n defaultCooldown: 10\n fooScalingLifecycleHook:\n type: volcengine:autoscaling:ScalingLifecycleHook\n properties:\n lifecycleHookName: acc-test-lifecycle\n lifecycleHookPolicy: ROLLBACK\n lifecycleHookTimeout: 300\n lifecycleHookType: SCALE_OUT\n scalingGroupId: ${fooScalingGroup.id}\nvariables:\n fooZones:\n fn::invoke:\n Function: volcengine:ecs:Zones\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nScalingLifecycleHook can be imported using the ScalingGroupId:LifecycleHookId, e.g.\n\n```sh\n $ pulumi import volcengine:autoscaling/scalingLifecycleHook:ScalingLifecycleHook default scg-yblfbfhy7agh9zn72iaz:sgh-ybqholahe4gso0ee88sd\n```\n\n ", "properties": { + "lifecycleCommand": { + "$ref": "#/types/volcengine:autoscaling/ScalingLifecycleHookLifecycleCommand:ScalingLifecycleHookLifecycleCommand", + "description": "Batch job command.\n" + }, "lifecycleHookId": { "type": "string", "description": "The id of the lifecycle hook.\n" @@ -23786,7 +23986,7 @@ }, "lifecycleHookPolicy": { "type": "string", - "description": "The policy of the lifecycle hook. Valid values: CONTINUE, REJECT.\n" + "description": "The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK.\n" }, "lifecycleHookTimeout": { "type": "integer", @@ -23810,6 +24010,10 @@ "scalingGroupId" ], "inputProperties": { + "lifecycleCommand": { + "$ref": "#/types/volcengine:autoscaling/ScalingLifecycleHookLifecycleCommand:ScalingLifecycleHookLifecycleCommand", + "description": "Batch job command.\n" + }, "lifecycleHookName": { "type": "string", "description": "The name of the lifecycle hook.\n", @@ -23817,7 +24021,7 @@ }, "lifecycleHookPolicy": { "type": "string", - "description": "The policy of the lifecycle hook. Valid values: CONTINUE, REJECT.\n" + "description": "The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK.\n" }, "lifecycleHookTimeout": { "type": "integer", @@ -23843,6 +24047,10 @@ "stateInputs": { "description": "Input properties used for looking up and filtering ScalingLifecycleHook resources.\n", "properties": { + "lifecycleCommand": { + "$ref": "#/types/volcengine:autoscaling/ScalingLifecycleHookLifecycleCommand:ScalingLifecycleHookLifecycleCommand", + "description": "Batch job command.\n" + }, "lifecycleHookId": { "type": "string", "description": "The id of the lifecycle hook.\n" @@ -23854,7 +24062,7 @@ }, "lifecycleHookPolicy": { "type": "string", - "description": "The policy of the lifecycle hook. Valid values: CONTINUE, REJECT.\n" + "description": "The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK.\n" }, "lifecycleHookTimeout": { "type": "integer", @@ -31955,10 +32163,6 @@ "allowListType": { "type": "string", "description": "The IP address type of allow list, valid value contains `IPv4`.\n" - }, - "modifyMode": { - "type": "string", - "description": "The modify mode. Only support Cover mode.\n" } }, "required": [ @@ -31982,10 +32186,6 @@ "allowListType": { "type": "string", "description": "The IP address type of allow list, valid value contains `IPv4`.\n" - }, - "modifyMode": { - "type": "string", - "description": "The modify mode. Only support Cover mode.\n" } }, "requiredInputs": [ @@ -32010,10 +32210,6 @@ "allowListType": { "type": "string", "description": "The IP address type of allow list, valid value contains `IPv4`.\n" - }, - "modifyMode": { - "type": "string", - "description": "The modify mode. Only support Cover mode.\n" } }, "type": "object" @@ -40396,7 +40592,7 @@ } }, "volcengine:vke/nodePool:NodePool": { - "description": "Provides a resource to manage vke node pool\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as volcengine from \"@pulumi/volcengine\";\nimport * as volcengine from \"@volcengine/pulumi\";\n\nconst fooZones = volcengine.ecs.Zones({});\nconst fooVpc = new volcengine.vpc.Vpc(\"fooVpc\", {\n vpcName: \"acc-test-vpc\",\n cidrBlock: \"172.16.0.0/16\",\n});\nconst fooSubnet = new volcengine.vpc.Subnet(\"fooSubnet\", {\n subnetName: \"acc-test-subnet\",\n cidrBlock: \"172.16.0.0/24\",\n zoneId: fooZones.then(fooZones =\u003e fooZones.zones?.[0]?.id),\n vpcId: fooVpc.id,\n});\nconst fooSecurityGroup = new volcengine.vpc.SecurityGroup(\"fooSecurityGroup\", {\n securityGroupName: \"acc-test-security-group\",\n vpcId: fooVpc.id,\n});\nconst fooImages = volcengine.ecs.Images({\n nameRegex: \"veLinux 1.0 CentOS兼容版 64位\",\n});\nconst fooCluster = new volcengine.vke.Cluster(\"fooCluster\", {\n description: \"created by terraform\",\n deleteProtectionEnabled: false,\n clusterConfig: {\n subnetIds: [fooSubnet.id],\n apiServerPublicAccessEnabled: true,\n apiServerPublicAccessConfig: {\n publicAccessNetworkConfig: {\n billingType: \"PostPaidByBandwidth\",\n bandwidth: 1,\n },\n },\n resourcePublicAccessDefaultEnabled: true,\n },\n podsConfig: {\n podNetworkMode: \"VpcCniShared\",\n vpcCniConfig: {\n subnetIds: [fooSubnet.id],\n },\n },\n servicesConfig: {\n serviceCidrsv4s: [\"172.30.0.0/18\"],\n },\n tags: [{\n key: \"tf-k1\",\n value: \"tf-v1\",\n }],\n});\nconst fooNodePool = new volcengine.vke.NodePool(\"fooNodePool\", {\n clusterId: fooCluster.id,\n autoScaling: {\n enabled: true,\n minReplicas: 0,\n maxReplicas: 5,\n desiredReplicas: 0,\n priority: 5,\n subnetPolicy: \"ZoneBalance\",\n },\n nodeConfig: {\n instanceTypeIds: [\"ecs.g1ie.xlarge\"],\n subnetIds: [fooSubnet.id],\n imageId: fooImages.then(fooImages =\u003e .filter(image =\u003e image.imageName == \"veLinux 1.0 CentOS兼容版 64位\").map(image =\u003e (image.imageId))[0]),\n systemVolume: {\n type: \"ESSD_PL0\",\n size: 60,\n },\n dataVolumes: [\n {\n type: \"ESSD_PL0\",\n size: 60,\n mountPoint: \"/tf1\",\n },\n {\n type: \"ESSD_PL0\",\n size: 60,\n mountPoint: \"/tf2\",\n },\n ],\n initializeScript: \"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\",\n security: {\n login: {\n password: \"UHdkMTIzNDU2\",\n },\n securityStrategies: [\"Hids\"],\n securityGroupIds: [fooSecurityGroup.id],\n },\n additionalContainerStorageEnabled: true,\n instanceChargeType: \"PostPaid\",\n namePrefix: \"acc-test\",\n ecsTags: [{\n key: \"ecs_k1\",\n value: \"ecs_v1\",\n }],\n },\n kubernetesConfig: {\n labels: [{\n key: \"label1\",\n value: \"value1\",\n }],\n taints: [{\n key: \"taint-key/node-type\",\n value: \"taint-value\",\n effect: \"NoSchedule\",\n }],\n cordon: true,\n },\n tags: [{\n key: \"node-pool-k1\",\n value: \"node-pool-v1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_volcengine as volcengine\n\nfoo_zones = volcengine.ecs.zones()\nfoo_vpc = volcengine.vpc.Vpc(\"fooVpc\",\n vpc_name=\"acc-test-vpc\",\n cidr_block=\"172.16.0.0/16\")\nfoo_subnet = volcengine.vpc.Subnet(\"fooSubnet\",\n subnet_name=\"acc-test-subnet\",\n cidr_block=\"172.16.0.0/24\",\n zone_id=foo_zones.zones[0].id,\n vpc_id=foo_vpc.id)\nfoo_security_group = volcengine.vpc.SecurityGroup(\"fooSecurityGroup\",\n security_group_name=\"acc-test-security-group\",\n vpc_id=foo_vpc.id)\nfoo_images = volcengine.ecs.images(name_regex=\"veLinux 1.0 CentOS兼容版 64位\")\nfoo_cluster = volcengine.vke.Cluster(\"fooCluster\",\n description=\"created by terraform\",\n delete_protection_enabled=False,\n cluster_config=volcengine.vke.ClusterClusterConfigArgs(\n subnet_ids=[foo_subnet.id],\n api_server_public_access_enabled=True,\n api_server_public_access_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigArgs(\n public_access_network_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs(\n billing_type=\"PostPaidByBandwidth\",\n bandwidth=1,\n ),\n ),\n resource_public_access_default_enabled=True,\n ),\n pods_config=volcengine.vke.ClusterPodsConfigArgs(\n pod_network_mode=\"VpcCniShared\",\n vpc_cni_config=volcengine.vke.ClusterPodsConfigVpcCniConfigArgs(\n subnet_ids=[foo_subnet.id],\n ),\n ),\n services_config=volcengine.vke.ClusterServicesConfigArgs(\n service_cidrsv4s=[\"172.30.0.0/18\"],\n ),\n tags=[volcengine.vke.ClusterTagArgs(\n key=\"tf-k1\",\n value=\"tf-v1\",\n )])\nfoo_node_pool = volcengine.vke.NodePool(\"fooNodePool\",\n cluster_id=foo_cluster.id,\n auto_scaling=volcengine.vke.NodePoolAutoScalingArgs(\n enabled=True,\n min_replicas=0,\n max_replicas=5,\n desired_replicas=0,\n priority=5,\n subnet_policy=\"ZoneBalance\",\n ),\n node_config=volcengine.vke.NodePoolNodeConfigArgs(\n instance_type_ids=[\"ecs.g1ie.xlarge\"],\n subnet_ids=[foo_subnet.id],\n image_id=[image.image_id for image in foo_images.images if image.image_name == \"veLinux 1.0 CentOS兼容版 64位\"][0],\n system_volume=volcengine.vke.NodePoolNodeConfigSystemVolumeArgs(\n type=\"ESSD_PL0\",\n size=60,\n ),\n data_volumes=[\n volcengine.vke.NodePoolNodeConfigDataVolumeArgs(\n type=\"ESSD_PL0\",\n size=60,\n mount_point=\"/tf1\",\n ),\n volcengine.vke.NodePoolNodeConfigDataVolumeArgs(\n type=\"ESSD_PL0\",\n size=60,\n mount_point=\"/tf2\",\n ),\n ],\n initialize_script=\"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\",\n security=volcengine.vke.NodePoolNodeConfigSecurityArgs(\n login=volcengine.vke.NodePoolNodeConfigSecurityLoginArgs(\n password=\"UHdkMTIzNDU2\",\n ),\n security_strategies=[\"Hids\"],\n security_group_ids=[foo_security_group.id],\n ),\n additional_container_storage_enabled=True,\n instance_charge_type=\"PostPaid\",\n name_prefix=\"acc-test\",\n ecs_tags=[volcengine.vke.NodePoolNodeConfigEcsTagArgs(\n key=\"ecs_k1\",\n value=\"ecs_v1\",\n )],\n ),\n kubernetes_config=volcengine.vke.NodePoolKubernetesConfigArgs(\n labels=[volcengine.vke.NodePoolKubernetesConfigLabelArgs(\n key=\"label1\",\n value=\"value1\",\n )],\n taints=[volcengine.vke.NodePoolKubernetesConfigTaintArgs(\n key=\"taint-key/node-type\",\n value=\"taint-value\",\n effect=\"NoSchedule\",\n )],\n cordon=True,\n ),\n tags=[volcengine.vke.NodePoolTagArgs(\n key=\"node-pool-k1\",\n value=\"node-pool-v1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Volcengine = Pulumi.Volcengine;\nusing Volcengine = Volcengine.Pulumi.Volcengine;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooZones = Volcengine.Ecs.Zones.Invoke();\n\n var fooVpc = new Volcengine.Vpc.Vpc(\"fooVpc\", new()\n {\n VpcName = \"acc-test-vpc\",\n CidrBlock = \"172.16.0.0/16\",\n });\n\n var fooSubnet = new Volcengine.Vpc.Subnet(\"fooSubnet\", new()\n {\n SubnetName = \"acc-test-subnet\",\n CidrBlock = \"172.16.0.0/24\",\n ZoneId = fooZones.Apply(zonesResult =\u003e zonesResult.Zones[0]?.Id),\n VpcId = fooVpc.Id,\n });\n\n var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup(\"fooSecurityGroup\", new()\n {\n SecurityGroupName = \"acc-test-security-group\",\n VpcId = fooVpc.Id,\n });\n\n var fooImages = Volcengine.Ecs.Images.Invoke(new()\n {\n NameRegex = \"veLinux 1.0 CentOS兼容版 64位\",\n });\n\n var fooCluster = new Volcengine.Vke.Cluster(\"fooCluster\", new()\n {\n Description = \"created by terraform\",\n DeleteProtectionEnabled = false,\n ClusterConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigArgs\n {\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n ApiServerPublicAccessEnabled = true,\n ApiServerPublicAccessConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs\n {\n PublicAccessNetworkConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs\n {\n BillingType = \"PostPaidByBandwidth\",\n Bandwidth = 1,\n },\n },\n ResourcePublicAccessDefaultEnabled = true,\n },\n PodsConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigArgs\n {\n PodNetworkMode = \"VpcCniShared\",\n VpcCniConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigVpcCniConfigArgs\n {\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n },\n },\n ServicesConfig = new Volcengine.Vke.Inputs.ClusterServicesConfigArgs\n {\n ServiceCidrsv4s = new[]\n {\n \"172.30.0.0/18\",\n },\n },\n Tags = new[]\n {\n new Volcengine.Vke.Inputs.ClusterTagArgs\n {\n Key = \"tf-k1\",\n Value = \"tf-v1\",\n },\n },\n });\n\n var fooNodePool = new Volcengine.Vke.NodePool(\"fooNodePool\", new()\n {\n ClusterId = fooCluster.Id,\n AutoScaling = new Volcengine.Vke.Inputs.NodePoolAutoScalingArgs\n {\n Enabled = true,\n MinReplicas = 0,\n MaxReplicas = 5,\n DesiredReplicas = 0,\n Priority = 5,\n SubnetPolicy = \"ZoneBalance\",\n },\n NodeConfig = new Volcengine.Vke.Inputs.NodePoolNodeConfigArgs\n {\n InstanceTypeIds = new[]\n {\n \"ecs.g1ie.xlarge\",\n },\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n ImageId = .Where(image =\u003e image.ImageName == \"veLinux 1.0 CentOS兼容版 64位\").Select(image =\u003e \n {\n return image.ImageId;\n })[0],\n SystemVolume = new Volcengine.Vke.Inputs.NodePoolNodeConfigSystemVolumeArgs\n {\n Type = \"ESSD_PL0\",\n Size = 60,\n },\n DataVolumes = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs\n {\n Type = \"ESSD_PL0\",\n Size = 60,\n MountPoint = \"/tf1\",\n },\n new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs\n {\n Type = \"ESSD_PL0\",\n Size = 60,\n MountPoint = \"/tf2\",\n },\n },\n InitializeScript = \"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\",\n Security = new Volcengine.Vke.Inputs.NodePoolNodeConfigSecurityArgs\n {\n Login = new Volcengine.Vke.Inputs.NodePoolNodeConfigSecurityLoginArgs\n {\n Password = \"UHdkMTIzNDU2\",\n },\n SecurityStrategies = new[]\n {\n \"Hids\",\n },\n SecurityGroupIds = new[]\n {\n fooSecurityGroup.Id,\n },\n },\n AdditionalContainerStorageEnabled = true,\n InstanceChargeType = \"PostPaid\",\n NamePrefix = \"acc-test\",\n EcsTags = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolNodeConfigEcsTagArgs\n {\n Key = \"ecs_k1\",\n Value = \"ecs_v1\",\n },\n },\n },\n KubernetesConfig = new Volcengine.Vke.Inputs.NodePoolKubernetesConfigArgs\n {\n Labels = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolKubernetesConfigLabelArgs\n {\n Key = \"label1\",\n Value = \"value1\",\n },\n },\n Taints = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolKubernetesConfigTaintArgs\n {\n Key = \"taint-key/node-type\",\n Value = \"taint-value\",\n Effect = \"NoSchedule\",\n },\n },\n Cordon = true,\n },\n Tags = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolTagArgs\n {\n Key = \"node-pool-k1\",\n Value = \"node-pool-v1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooZones, err := ecs.Zones(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooVpc, err := vpc.NewVpc(ctx, \"fooVpc\", \u0026vpc.VpcArgs{\n\t\t\tVpcName: pulumi.String(\"acc-test-vpc\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooSubnet, err := vpc.NewSubnet(ctx, \"fooSubnet\", \u0026vpc.SubnetArgs{\n\t\t\tSubnetName: pulumi.String(\"acc-test-subnet\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/24\"),\n\t\t\tZoneId: *pulumi.String(fooZones.Zones[0].Id),\n\t\t\tVpcId: fooVpc.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooSecurityGroup, err := vpc.NewSecurityGroup(ctx, \"fooSecurityGroup\", \u0026vpc.SecurityGroupArgs{\n\t\t\tSecurityGroupName: pulumi.String(\"acc-test-security-group\"),\n\t\t\tVpcId: fooVpc.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooImages, err := ecs.Images(ctx, \u0026ecs.ImagesArgs{\n\t\t\tNameRegex: pulumi.StringRef(\"veLinux 1.0 CentOS兼容版 64位\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooCluster, err := vke.NewCluster(ctx, \"fooCluster\", \u0026vke.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"created by terraform\"),\n\t\t\tDeleteProtectionEnabled: pulumi.Bool(false),\n\t\t\tClusterConfig: \u0026vke.ClusterClusterConfigArgs{\n\t\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\t\tfooSubnet.ID(),\n\t\t\t\t},\n\t\t\t\tApiServerPublicAccessEnabled: pulumi.Bool(true),\n\t\t\t\tApiServerPublicAccessConfig: \u0026vke.ClusterClusterConfigApiServerPublicAccessConfigArgs{\n\t\t\t\t\tPublicAccessNetworkConfig: \u0026vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs{\n\t\t\t\t\t\tBillingType: pulumi.String(\"PostPaidByBandwidth\"),\n\t\t\t\t\t\tBandwidth: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tResourcePublicAccessDefaultEnabled: pulumi.Bool(true),\n\t\t\t},\n\t\t\tPodsConfig: \u0026vke.ClusterPodsConfigArgs{\n\t\t\t\tPodNetworkMode: pulumi.String(\"VpcCniShared\"),\n\t\t\t\tVpcCniConfig: \u0026vke.ClusterPodsConfigVpcCniConfigArgs{\n\t\t\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\t\t\tfooSubnet.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tServicesConfig: \u0026vke.ClusterServicesConfigArgs{\n\t\t\t\tServiceCidrsv4s: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"172.30.0.0/18\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: vke.ClusterTagArray{\n\t\t\t\t\u0026vke.ClusterTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"tf-k1\"),\n\t\t\t\t\tValue: pulumi.String(\"tf-v1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vke.NewNodePool(ctx, \"fooNodePool\", \u0026vke.NodePoolArgs{\n\t\t\tClusterId: fooCluster.ID(),\n\t\t\tAutoScaling: \u0026vke.NodePoolAutoScalingArgs{\n\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\tMinReplicas: pulumi.Int(0),\n\t\t\t\tMaxReplicas: pulumi.Int(5),\n\t\t\t\tDesiredReplicas: pulumi.Int(0),\n\t\t\t\tPriority: pulumi.Int(5),\n\t\t\t\tSubnetPolicy: pulumi.String(\"ZoneBalance\"),\n\t\t\t},\n\t\t\tNodeConfig: \u0026vke.NodePoolNodeConfigArgs{\n\t\t\t\tInstanceTypeIds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"ecs.g1ie.xlarge\"),\n\t\t\t\t},\n\t\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\t\tfooSubnet.ID(),\n\t\t\t\t},\n\t\t\t\tImageId: \"TODO: For expression\"[0],\n\t\t\t\tSystemVolume: \u0026vke.NodePoolNodeConfigSystemVolumeArgs{\n\t\t\t\t\tType: pulumi.String(\"ESSD_PL0\"),\n\t\t\t\t\tSize: pulumi.Int(60),\n\t\t\t\t},\n\t\t\t\tDataVolumes: vke.NodePoolNodeConfigDataVolumeArray{\n\t\t\t\t\t\u0026vke.NodePoolNodeConfigDataVolumeArgs{\n\t\t\t\t\t\tType: pulumi.String(\"ESSD_PL0\"),\n\t\t\t\t\t\tSize: pulumi.Int(60),\n\t\t\t\t\t\tMountPoint: pulumi.String(\"/tf1\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026vke.NodePoolNodeConfigDataVolumeArgs{\n\t\t\t\t\t\tType: pulumi.String(\"ESSD_PL0\"),\n\t\t\t\t\t\tSize: pulumi.Int(60),\n\t\t\t\t\t\tMountPoint: pulumi.String(\"/tf2\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tInitializeScript: pulumi.String(\"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\"),\n\t\t\t\tSecurity: \u0026vke.NodePoolNodeConfigSecurityArgs{\n\t\t\t\t\tLogin: \u0026vke.NodePoolNodeConfigSecurityLoginArgs{\n\t\t\t\t\t\tPassword: pulumi.String(\"UHdkMTIzNDU2\"),\n\t\t\t\t\t},\n\t\t\t\t\tSecurityStrategies: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"Hids\"),\n\t\t\t\t\t},\n\t\t\t\t\tSecurityGroupIds: pulumi.StringArray{\n\t\t\t\t\t\tfooSecurityGroup.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tAdditionalContainerStorageEnabled: pulumi.Bool(true),\n\t\t\t\tInstanceChargeType: pulumi.String(\"PostPaid\"),\n\t\t\t\tNamePrefix: pulumi.String(\"acc-test\"),\n\t\t\t\tEcsTags: vke.NodePoolNodeConfigEcsTagArray{\n\t\t\t\t\t\u0026vke.NodePoolNodeConfigEcsTagArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"ecs_k1\"),\n\t\t\t\t\t\tValue: pulumi.String(\"ecs_v1\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKubernetesConfig: \u0026vke.NodePoolKubernetesConfigArgs{\n\t\t\t\tLabels: vke.NodePoolKubernetesConfigLabelArray{\n\t\t\t\t\t\u0026vke.NodePoolKubernetesConfigLabelArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"label1\"),\n\t\t\t\t\t\tValue: pulumi.String(\"value1\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tTaints: vke.NodePoolKubernetesConfigTaintArray{\n\t\t\t\t\t\u0026vke.NodePoolKubernetesConfigTaintArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"taint-key/node-type\"),\n\t\t\t\t\t\tValue: pulumi.String(\"taint-value\"),\n\t\t\t\t\t\tEffect: pulumi.String(\"NoSchedule\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tCordon: pulumi.Bool(true),\n\t\t\t},\n\t\t\tTags: vke.NodePoolTagArray{\n\t\t\t\t\u0026vke.NodePoolTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"node-pool-k1\"),\n\t\t\t\t\tValue: pulumi.String(\"node-pool-v1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNodePool can be imported using the id, e.g.\n\n```sh\n $ pulumi import volcengine:vke/nodePool:NodePool default pcabe57vqtofgrbln3dp0\n```\n\n ", + "description": "Provides a resource to manage vke node pool\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as volcengine from \"@pulumi/volcengine\";\nimport * as volcengine from \"@volcengine/pulumi\";\n\nconst fooZones = volcengine.ecs.Zones({});\nconst fooVpc = new volcengine.vpc.Vpc(\"fooVpc\", {\n vpcName: \"acc-test-vpc\",\n cidrBlock: \"172.16.0.0/16\",\n});\nconst fooSubnet = new volcengine.vpc.Subnet(\"fooSubnet\", {\n subnetName: \"acc-test-subnet\",\n cidrBlock: \"172.16.0.0/24\",\n zoneId: fooZones.then(fooZones =\u003e fooZones.zones?.[0]?.id),\n vpcId: fooVpc.id,\n});\nconst fooSecurityGroup = new volcengine.vpc.SecurityGroup(\"fooSecurityGroup\", {\n securityGroupName: \"acc-test-security-group\",\n vpcId: fooVpc.id,\n});\nconst fooImages = volcengine.ecs.Images({\n nameRegex: \"veLinux 1.0 CentOS兼容版 64位\",\n});\nconst fooCluster = new volcengine.vke.Cluster(\"fooCluster\", {\n description: \"created by terraform\",\n deleteProtectionEnabled: false,\n clusterConfig: {\n subnetIds: [fooSubnet.id],\n apiServerPublicAccessEnabled: true,\n apiServerPublicAccessConfig: {\n publicAccessNetworkConfig: {\n billingType: \"PostPaidByBandwidth\",\n bandwidth: 1,\n },\n },\n resourcePublicAccessDefaultEnabled: true,\n },\n podsConfig: {\n podNetworkMode: \"VpcCniShared\",\n vpcCniConfig: {\n subnetIds: [fooSubnet.id],\n },\n },\n servicesConfig: {\n serviceCidrsv4s: [\"172.30.0.0/18\"],\n },\n tags: [{\n key: \"tf-k1\",\n value: \"tf-v1\",\n }],\n});\nconst fooNodePool = new volcengine.vke.NodePool(\"fooNodePool\", {\n clusterId: fooCluster.id,\n autoScaling: {\n enabled: true,\n minReplicas: 0,\n maxReplicas: 5,\n desiredReplicas: 0,\n priority: 5,\n subnetPolicy: \"ZoneBalance\",\n },\n nodeConfig: {\n instanceTypeIds: [\"ecs.g1ie.xlarge\"],\n subnetIds: [fooSubnet.id],\n imageId: fooImages.then(fooImages =\u003e .filter(image =\u003e image.imageName == \"veLinux 1.0 CentOS兼容版 64位\").map(image =\u003e (image.imageId))[0]),\n systemVolume: {\n type: \"ESSD_PL0\",\n size: 80,\n },\n dataVolumes: [\n {\n type: \"ESSD_PL0\",\n size: 80,\n mountPoint: \"/tf1\",\n },\n {\n type: \"ESSD_PL0\",\n size: 60,\n mountPoint: \"/tf2\",\n },\n ],\n initializeScript: \"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\",\n security: {\n login: {\n password: \"UHdkMTIzNDU2\",\n },\n securityStrategies: [\"Hids\"],\n securityGroupIds: [fooSecurityGroup.id],\n },\n additionalContainerStorageEnabled: false,\n instanceChargeType: \"PostPaid\",\n namePrefix: \"acc-test\",\n ecsTags: [{\n key: \"ecs_k1\",\n value: \"ecs_v1\",\n }],\n },\n kubernetesConfig: {\n labels: [{\n key: \"label1\",\n value: \"value1\",\n }],\n taints: [{\n key: \"taint-key/node-type\",\n value: \"taint-value\",\n effect: \"NoSchedule\",\n }],\n cordon: true,\n },\n tags: [{\n key: \"node-pool-k1\",\n value: \"node-pool-v1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_volcengine as volcengine\n\nfoo_zones = volcengine.ecs.zones()\nfoo_vpc = volcengine.vpc.Vpc(\"fooVpc\",\n vpc_name=\"acc-test-vpc\",\n cidr_block=\"172.16.0.0/16\")\nfoo_subnet = volcengine.vpc.Subnet(\"fooSubnet\",\n subnet_name=\"acc-test-subnet\",\n cidr_block=\"172.16.0.0/24\",\n zone_id=foo_zones.zones[0].id,\n vpc_id=foo_vpc.id)\nfoo_security_group = volcengine.vpc.SecurityGroup(\"fooSecurityGroup\",\n security_group_name=\"acc-test-security-group\",\n vpc_id=foo_vpc.id)\nfoo_images = volcengine.ecs.images(name_regex=\"veLinux 1.0 CentOS兼容版 64位\")\nfoo_cluster = volcengine.vke.Cluster(\"fooCluster\",\n description=\"created by terraform\",\n delete_protection_enabled=False,\n cluster_config=volcengine.vke.ClusterClusterConfigArgs(\n subnet_ids=[foo_subnet.id],\n api_server_public_access_enabled=True,\n api_server_public_access_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigArgs(\n public_access_network_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs(\n billing_type=\"PostPaidByBandwidth\",\n bandwidth=1,\n ),\n ),\n resource_public_access_default_enabled=True,\n ),\n pods_config=volcengine.vke.ClusterPodsConfigArgs(\n pod_network_mode=\"VpcCniShared\",\n vpc_cni_config=volcengine.vke.ClusterPodsConfigVpcCniConfigArgs(\n subnet_ids=[foo_subnet.id],\n ),\n ),\n services_config=volcengine.vke.ClusterServicesConfigArgs(\n service_cidrsv4s=[\"172.30.0.0/18\"],\n ),\n tags=[volcengine.vke.ClusterTagArgs(\n key=\"tf-k1\",\n value=\"tf-v1\",\n )])\nfoo_node_pool = volcengine.vke.NodePool(\"fooNodePool\",\n cluster_id=foo_cluster.id,\n auto_scaling=volcengine.vke.NodePoolAutoScalingArgs(\n enabled=True,\n min_replicas=0,\n max_replicas=5,\n desired_replicas=0,\n priority=5,\n subnet_policy=\"ZoneBalance\",\n ),\n node_config=volcengine.vke.NodePoolNodeConfigArgs(\n instance_type_ids=[\"ecs.g1ie.xlarge\"],\n subnet_ids=[foo_subnet.id],\n image_id=[image.image_id for image in foo_images.images if image.image_name == \"veLinux 1.0 CentOS兼容版 64位\"][0],\n system_volume=volcengine.vke.NodePoolNodeConfigSystemVolumeArgs(\n type=\"ESSD_PL0\",\n size=80,\n ),\n data_volumes=[\n volcengine.vke.NodePoolNodeConfigDataVolumeArgs(\n type=\"ESSD_PL0\",\n size=80,\n mount_point=\"/tf1\",\n ),\n volcengine.vke.NodePoolNodeConfigDataVolumeArgs(\n type=\"ESSD_PL0\",\n size=60,\n mount_point=\"/tf2\",\n ),\n ],\n initialize_script=\"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\",\n security=volcengine.vke.NodePoolNodeConfigSecurityArgs(\n login=volcengine.vke.NodePoolNodeConfigSecurityLoginArgs(\n password=\"UHdkMTIzNDU2\",\n ),\n security_strategies=[\"Hids\"],\n security_group_ids=[foo_security_group.id],\n ),\n additional_container_storage_enabled=False,\n instance_charge_type=\"PostPaid\",\n name_prefix=\"acc-test\",\n ecs_tags=[volcengine.vke.NodePoolNodeConfigEcsTagArgs(\n key=\"ecs_k1\",\n value=\"ecs_v1\",\n )],\n ),\n kubernetes_config=volcengine.vke.NodePoolKubernetesConfigArgs(\n labels=[volcengine.vke.NodePoolKubernetesConfigLabelArgs(\n key=\"label1\",\n value=\"value1\",\n )],\n taints=[volcengine.vke.NodePoolKubernetesConfigTaintArgs(\n key=\"taint-key/node-type\",\n value=\"taint-value\",\n effect=\"NoSchedule\",\n )],\n cordon=True,\n ),\n tags=[volcengine.vke.NodePoolTagArgs(\n key=\"node-pool-k1\",\n value=\"node-pool-v1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Volcengine = Pulumi.Volcengine;\nusing Volcengine = Volcengine.Pulumi.Volcengine;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooZones = Volcengine.Ecs.Zones.Invoke();\n\n var fooVpc = new Volcengine.Vpc.Vpc(\"fooVpc\", new()\n {\n VpcName = \"acc-test-vpc\",\n CidrBlock = \"172.16.0.0/16\",\n });\n\n var fooSubnet = new Volcengine.Vpc.Subnet(\"fooSubnet\", new()\n {\n SubnetName = \"acc-test-subnet\",\n CidrBlock = \"172.16.0.0/24\",\n ZoneId = fooZones.Apply(zonesResult =\u003e zonesResult.Zones[0]?.Id),\n VpcId = fooVpc.Id,\n });\n\n var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup(\"fooSecurityGroup\", new()\n {\n SecurityGroupName = \"acc-test-security-group\",\n VpcId = fooVpc.Id,\n });\n\n var fooImages = Volcengine.Ecs.Images.Invoke(new()\n {\n NameRegex = \"veLinux 1.0 CentOS兼容版 64位\",\n });\n\n var fooCluster = new Volcengine.Vke.Cluster(\"fooCluster\", new()\n {\n Description = \"created by terraform\",\n DeleteProtectionEnabled = false,\n ClusterConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigArgs\n {\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n ApiServerPublicAccessEnabled = true,\n ApiServerPublicAccessConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs\n {\n PublicAccessNetworkConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs\n {\n BillingType = \"PostPaidByBandwidth\",\n Bandwidth = 1,\n },\n },\n ResourcePublicAccessDefaultEnabled = true,\n },\n PodsConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigArgs\n {\n PodNetworkMode = \"VpcCniShared\",\n VpcCniConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigVpcCniConfigArgs\n {\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n },\n },\n ServicesConfig = new Volcengine.Vke.Inputs.ClusterServicesConfigArgs\n {\n ServiceCidrsv4s = new[]\n {\n \"172.30.0.0/18\",\n },\n },\n Tags = new[]\n {\n new Volcengine.Vke.Inputs.ClusterTagArgs\n {\n Key = \"tf-k1\",\n Value = \"tf-v1\",\n },\n },\n });\n\n var fooNodePool = new Volcengine.Vke.NodePool(\"fooNodePool\", new()\n {\n ClusterId = fooCluster.Id,\n AutoScaling = new Volcengine.Vke.Inputs.NodePoolAutoScalingArgs\n {\n Enabled = true,\n MinReplicas = 0,\n MaxReplicas = 5,\n DesiredReplicas = 0,\n Priority = 5,\n SubnetPolicy = \"ZoneBalance\",\n },\n NodeConfig = new Volcengine.Vke.Inputs.NodePoolNodeConfigArgs\n {\n InstanceTypeIds = new[]\n {\n \"ecs.g1ie.xlarge\",\n },\n SubnetIds = new[]\n {\n fooSubnet.Id,\n },\n ImageId = .Where(image =\u003e image.ImageName == \"veLinux 1.0 CentOS兼容版 64位\").Select(image =\u003e \n {\n return image.ImageId;\n })[0],\n SystemVolume = new Volcengine.Vke.Inputs.NodePoolNodeConfigSystemVolumeArgs\n {\n Type = \"ESSD_PL0\",\n Size = 80,\n },\n DataVolumes = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs\n {\n Type = \"ESSD_PL0\",\n Size = 80,\n MountPoint = \"/tf1\",\n },\n new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs\n {\n Type = \"ESSD_PL0\",\n Size = 60,\n MountPoint = \"/tf2\",\n },\n },\n InitializeScript = \"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\",\n Security = new Volcengine.Vke.Inputs.NodePoolNodeConfigSecurityArgs\n {\n Login = new Volcengine.Vke.Inputs.NodePoolNodeConfigSecurityLoginArgs\n {\n Password = \"UHdkMTIzNDU2\",\n },\n SecurityStrategies = new[]\n {\n \"Hids\",\n },\n SecurityGroupIds = new[]\n {\n fooSecurityGroup.Id,\n },\n },\n AdditionalContainerStorageEnabled = false,\n InstanceChargeType = \"PostPaid\",\n NamePrefix = \"acc-test\",\n EcsTags = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolNodeConfigEcsTagArgs\n {\n Key = \"ecs_k1\",\n Value = \"ecs_v1\",\n },\n },\n },\n KubernetesConfig = new Volcengine.Vke.Inputs.NodePoolKubernetesConfigArgs\n {\n Labels = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolKubernetesConfigLabelArgs\n {\n Key = \"label1\",\n Value = \"value1\",\n },\n },\n Taints = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolKubernetesConfigTaintArgs\n {\n Key = \"taint-key/node-type\",\n Value = \"taint-value\",\n Effect = \"NoSchedule\",\n },\n },\n Cordon = true,\n },\n Tags = new[]\n {\n new Volcengine.Vke.Inputs.NodePoolTagArgs\n {\n Key = \"node-pool-k1\",\n Value = \"node-pool-v1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke\"\n\t\"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooZones, err := ecs.Zones(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooVpc, err := vpc.NewVpc(ctx, \"fooVpc\", \u0026vpc.VpcArgs{\n\t\t\tVpcName: pulumi.String(\"acc-test-vpc\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooSubnet, err := vpc.NewSubnet(ctx, \"fooSubnet\", \u0026vpc.SubnetArgs{\n\t\t\tSubnetName: pulumi.String(\"acc-test-subnet\"),\n\t\t\tCidrBlock: pulumi.String(\"172.16.0.0/24\"),\n\t\t\tZoneId: *pulumi.String(fooZones.Zones[0].Id),\n\t\t\tVpcId: fooVpc.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooSecurityGroup, err := vpc.NewSecurityGroup(ctx, \"fooSecurityGroup\", \u0026vpc.SecurityGroupArgs{\n\t\t\tSecurityGroupName: pulumi.String(\"acc-test-security-group\"),\n\t\t\tVpcId: fooVpc.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooImages, err := ecs.Images(ctx, \u0026ecs.ImagesArgs{\n\t\t\tNameRegex: pulumi.StringRef(\"veLinux 1.0 CentOS兼容版 64位\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooCluster, err := vke.NewCluster(ctx, \"fooCluster\", \u0026vke.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"created by terraform\"),\n\t\t\tDeleteProtectionEnabled: pulumi.Bool(false),\n\t\t\tClusterConfig: \u0026vke.ClusterClusterConfigArgs{\n\t\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\t\tfooSubnet.ID(),\n\t\t\t\t},\n\t\t\t\tApiServerPublicAccessEnabled: pulumi.Bool(true),\n\t\t\t\tApiServerPublicAccessConfig: \u0026vke.ClusterClusterConfigApiServerPublicAccessConfigArgs{\n\t\t\t\t\tPublicAccessNetworkConfig: \u0026vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs{\n\t\t\t\t\t\tBillingType: pulumi.String(\"PostPaidByBandwidth\"),\n\t\t\t\t\t\tBandwidth: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tResourcePublicAccessDefaultEnabled: pulumi.Bool(true),\n\t\t\t},\n\t\t\tPodsConfig: \u0026vke.ClusterPodsConfigArgs{\n\t\t\t\tPodNetworkMode: pulumi.String(\"VpcCniShared\"),\n\t\t\t\tVpcCniConfig: \u0026vke.ClusterPodsConfigVpcCniConfigArgs{\n\t\t\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\t\t\tfooSubnet.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tServicesConfig: \u0026vke.ClusterServicesConfigArgs{\n\t\t\t\tServiceCidrsv4s: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"172.30.0.0/18\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: vke.ClusterTagArray{\n\t\t\t\t\u0026vke.ClusterTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"tf-k1\"),\n\t\t\t\t\tValue: pulumi.String(\"tf-v1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vke.NewNodePool(ctx, \"fooNodePool\", \u0026vke.NodePoolArgs{\n\t\t\tClusterId: fooCluster.ID(),\n\t\t\tAutoScaling: \u0026vke.NodePoolAutoScalingArgs{\n\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\tMinReplicas: pulumi.Int(0),\n\t\t\t\tMaxReplicas: pulumi.Int(5),\n\t\t\t\tDesiredReplicas: pulumi.Int(0),\n\t\t\t\tPriority: pulumi.Int(5),\n\t\t\t\tSubnetPolicy: pulumi.String(\"ZoneBalance\"),\n\t\t\t},\n\t\t\tNodeConfig: \u0026vke.NodePoolNodeConfigArgs{\n\t\t\t\tInstanceTypeIds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"ecs.g1ie.xlarge\"),\n\t\t\t\t},\n\t\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\t\tfooSubnet.ID(),\n\t\t\t\t},\n\t\t\t\tImageId: \"TODO: For expression\"[0],\n\t\t\t\tSystemVolume: \u0026vke.NodePoolNodeConfigSystemVolumeArgs{\n\t\t\t\t\tType: pulumi.String(\"ESSD_PL0\"),\n\t\t\t\t\tSize: pulumi.Int(80),\n\t\t\t\t},\n\t\t\t\tDataVolumes: vke.NodePoolNodeConfigDataVolumeArray{\n\t\t\t\t\t\u0026vke.NodePoolNodeConfigDataVolumeArgs{\n\t\t\t\t\t\tType: pulumi.String(\"ESSD_PL0\"),\n\t\t\t\t\t\tSize: pulumi.Int(80),\n\t\t\t\t\t\tMountPoint: pulumi.String(\"/tf1\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026vke.NodePoolNodeConfigDataVolumeArgs{\n\t\t\t\t\t\tType: pulumi.String(\"ESSD_PL0\"),\n\t\t\t\t\t\tSize: pulumi.Int(60),\n\t\t\t\t\t\tMountPoint: pulumi.String(\"/tf2\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tInitializeScript: pulumi.String(\"ZWNobyBoZWxsbyB0ZXJyYWZvcm0h\"),\n\t\t\t\tSecurity: \u0026vke.NodePoolNodeConfigSecurityArgs{\n\t\t\t\t\tLogin: \u0026vke.NodePoolNodeConfigSecurityLoginArgs{\n\t\t\t\t\t\tPassword: pulumi.String(\"UHdkMTIzNDU2\"),\n\t\t\t\t\t},\n\t\t\t\t\tSecurityStrategies: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"Hids\"),\n\t\t\t\t\t},\n\t\t\t\t\tSecurityGroupIds: pulumi.StringArray{\n\t\t\t\t\t\tfooSecurityGroup.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tAdditionalContainerStorageEnabled: pulumi.Bool(false),\n\t\t\t\tInstanceChargeType: pulumi.String(\"PostPaid\"),\n\t\t\t\tNamePrefix: pulumi.String(\"acc-test\"),\n\t\t\t\tEcsTags: vke.NodePoolNodeConfigEcsTagArray{\n\t\t\t\t\t\u0026vke.NodePoolNodeConfigEcsTagArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"ecs_k1\"),\n\t\t\t\t\t\tValue: pulumi.String(\"ecs_v1\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKubernetesConfig: \u0026vke.NodePoolKubernetesConfigArgs{\n\t\t\t\tLabels: vke.NodePoolKubernetesConfigLabelArray{\n\t\t\t\t\t\u0026vke.NodePoolKubernetesConfigLabelArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"label1\"),\n\t\t\t\t\t\tValue: pulumi.String(\"value1\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tTaints: vke.NodePoolKubernetesConfigTaintArray{\n\t\t\t\t\t\u0026vke.NodePoolKubernetesConfigTaintArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"taint-key/node-type\"),\n\t\t\t\t\t\tValue: pulumi.String(\"taint-value\"),\n\t\t\t\t\t\tEffect: pulumi.String(\"NoSchedule\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tCordon: pulumi.Bool(true),\n\t\t\t},\n\t\t\tTags: vke.NodePoolTagArray{\n\t\t\t\t\u0026vke.NodePoolTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"node-pool-k1\"),\n\t\t\t\t\tValue: pulumi.String(\"node-pool-v1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNodePool can be imported using the id, e.g.\n\n```sh\n $ pulumi import volcengine:vke/nodePool:NodePool default pcabe57vqtofgrbln3dp0\n```\n\n ", "properties": { "autoScaling": { "$ref": "#/types/volcengine:vke/NodePoolAutoScaling:NodePoolAutoScaling", @@ -44011,6 +44207,10 @@ "type": "string", "description": "File name where to save data source results.\n" }, + "projectName": { + "type": "string", + "description": "The project name of the scaling group.\n" + }, "scalingGroupNames": { "type": "array", "items": { @@ -44040,6 +44240,10 @@ "outputFile": { "type": "string" }, + "projectName": { + "type": "string", + "description": "The ProjectName of scaling group.\n" + }, "scalingGroupNames": { "type": "array", "items": { diff --git a/provider/go.mod b/provider/go.mod index c46af77d..2b496da2 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -12,7 +12,7 @@ require ( github.com/hashicorp/terraform-plugin-sdk v1.9.1 github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0 github.com/pulumi/pulumi/sdk/v3 v3.76.1 - github.com/volcengine/terraform-provider-volcengine v0.0.121 + github.com/volcengine/terraform-provider-volcengine v0.0.123 ) require ( diff --git a/provider/go.sum b/provider/go.sum index e0fefecb..e88cda55 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1732,8 +1732,8 @@ github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/volcengine/terraform-provider-volcengine v0.0.121 h1:t7nSpECXW3dc+q67G21LlMC5o/i0tLoPIfRv+alNH+M= -github.com/volcengine/terraform-provider-volcengine v0.0.121/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI= +github.com/volcengine/terraform-provider-volcengine v0.0.123 h1:X8NkU4nyt8gmGt5bo7CSUJ6+0g2IRknLL/3aaQcLfNo= +github.com/volcengine/terraform-provider-volcengine v0.0.123/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI= github.com/volcengine/volc-sdk-golang v1.0.23 h1:anOslb2Qp6ywnsbyq9jqR0ljuO63kg9PY+4OehIk5R8= github.com/volcengine/volc-sdk-golang v1.0.23/go.mod h1:AfG/PZRUkHJ9inETvbjNifTDgut25Wbkm2QoYBTbvyU= github.com/volcengine/volcengine-go-sdk v1.0.75 h1:FLNABNe7D5adaul3hLs4Co3oFC4xqIK5+QpKAdW/49Y= diff --git a/provider/resources.go b/provider/resources.go index 0b02cf2b..2fabf6a8 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -35,33 +35,33 @@ const ( volcenginePkg = "volcengine" // modules: //mainMod = "index" // the volcengine module - volcengineMongodbMod = "mongodb" - volcengineIamMod = "iam" - volcengineRdsMysqlMod = "rds_mysql" - volcengineVkeMod = "vke" + volcengineNatMod = "nat" + volcengineCrMod = "cr" + volcengineVpnMod = "vpn" + volcengineRdsMod = "rds" + volcengineTosMod = "tos" volcengineDirectConnectMod = "direct_connect" + volcengineEcsMod = "ecs" + volcengineEscloudMod = "escloud" + volcengineTlsMod = "tls" + volcengineTransitRouterMod = "transit_router" volcengineEbsMod = "ebs" + volcengineRdsV2Mod = "rds_v2" volcengineVeenedgeMod = "veenedge" - volcenginePrivatelinkMod = "privatelink" - volcengineTosMod = "tos" - volcengineTransitRouterMod = "transit_router" - volcengineVpnMod = "vpn" volcengineAutoscalingMod = "autoscaling" - volcengineCenMod = "cen" - volcengineEscloudMod = "escloud" - volcengineBioosMod = "bioos" - volcengineClbMod = "clb" - volcengineEcsMod = "ecs" - volcengineEipMod = "eip" - volcengineNatMod = "nat" volcengineCloudfsMod = "cloudfs" - volcengineRdsMod = "rds" - volcengineRdsV2Mod = "rds_v2" + volcengineEipMod = "eip" + volcengineIamMod = "iam" + volcengineMongodbMod = "mongodb" + volcengineRdsMysqlMod = "rds_mysql" + volcengineBioosMod = "bioos" + volcengineCenMod = "cen" + volcenginePrivatelinkMod = "privatelink" volcengineVpcMod = "vpc" - volcengineTlsMod = "tls" - volcengineCrMod = "cr" volcengineNasMod = "nas" volcengineRedisMod = "redis" + volcengineVkeMod = "vke" + volcengineClbMod = "clb" ) // preConfigureCallback is called before the providerConfigure function of the underlying provider. @@ -136,328 +136,328 @@ func Provider() tfbridge.ProviderInfo { }, PreConfigureCallback: preConfigureCallback, Resources: map[string]*tfbridge.ResourceInfo{ - "volcengine_cr_endpoint": {Tok: resourceType(volcengineCrMod, "Endpoint")}, - "volcengine_cr_registry_state": {Tok: resourceType(volcengineCrMod, "State")}, - "volcengine_cr_vpc_endpoint": {Tok: resourceType(volcengineCrMod, "VpcEndpoint")}, - "volcengine_cr_registry": {Tok: resourceType(volcengineCrMod, "Registry")}, - "volcengine_cr_repository": {Tok: resourceType(volcengineCrMod, "Repository")}, - "volcengine_cr_tag": {Tok: resourceType(volcengineCrMod, "Tag")}, - "volcengine_cr_namespace": {Tok: resourceType(volcengineCrMod, "Namespace")}, - "volcengine_cen_bandwidth_package_associate": {Tok: resourceType(volcengineCenMod, "BandwidthPackageAssociate")}, - "volcengine_cen_service_route_entry": {Tok: resourceType(volcengineCenMod, "ServiceRouteEntry")}, - "volcengine_cen_attach_instance": {Tok: resourceType(volcengineCenMod, "AttachInstance")}, - "volcengine_cen": {Tok: resourceType(volcengineCenMod, "Cen")}, - "volcengine_cen_grant_instance": {Tok: resourceType(volcengineCenMod, "GrantInstance")}, - "volcengine_cen_route_entry": {Tok: resourceType(volcengineCenMod, "RouteEntry")}, - "volcengine_cen_inter_region_bandwidth": {Tok: resourceType(volcengineCenMod, "InterRegionBandwidth")}, - "volcengine_cen_bandwidth_package": {Tok: resourceType(volcengineCenMod, "BandwidthPackage")}, - "volcengine_cloudfs_file_system": {Tok: resourceType(volcengineCloudfsMod, "FileSystem")}, - "volcengine_cloudfs_namespace": {Tok: resourceType(volcengineCloudfsMod, "Namespace")}, - "volcengine_cloudfs_access": {Tok: resourceType(volcengineCloudfsMod, "Access")}, - "volcengine_rds_mysql_database": {Tok: resourceType(volcengineRdsMysqlMod, "Database")}, - "volcengine_rds_mysql_account": {Tok: resourceType(volcengineRdsMysqlMod, "Account")}, - "volcengine_rds_mysql_instance_readonly_node": {Tok: resourceType(volcengineRdsMysqlMod, "InstanceReadonlyNode")}, - "volcengine_rds_mysql_allowlist": {Tok: resourceType(volcengineRdsMysqlMod, "Allowlist")}, - "volcengine_rds_mysql_allowlist_associate": {Tok: resourceType(volcengineRdsMysqlMod, "AllowlistAssociate")}, - "volcengine_rds_mysql_instance": {Tok: resourceType(volcengineRdsMysqlMod, "Instance")}, - "volcengine_redis_endpoint": {Tok: resourceType(volcengineRedisMod, "Endpoint")}, - "volcengine_redis_allow_list_associate": {Tok: resourceType(volcengineRedisMod, "AllowListAssociate")}, + "volcengine_clb_rule": {Tok: resourceType(volcengineClbMod, "Rule")}, + "volcengine_acl_entry": {Tok: resourceType(volcengineClbMod, "AclEntry")}, + "volcengine_listener": {Tok: resourceType(volcengineClbMod, "Listener")}, + "volcengine_clb": {Tok: resourceType(volcengineClbMod, "Clb")}, + "volcengine_server_group": {Tok: resourceType(volcengineClbMod, "ServerGroup")}, + "volcengine_certificate": {Tok: resourceType(volcengineClbMod, "Certificate")}, + "volcengine_acl": {Tok: resourceType(volcengineClbMod, "Acl")}, + "volcengine_server_group_server": {Tok: resourceType(volcengineClbMod, "ServerGroupServer")}, + "volcengine_vpn_connection": {Tok: resourceType(volcengineVpnMod, "Connection")}, + "volcengine_customer_gateway": {Tok: resourceType(volcengineVpnMod, "CustomerGateway")}, + "volcengine_ssl_vpn_server": {Tok: resourceType(volcengineVpnMod, "SslVpnServer")}, + "volcengine_ssl_vpn_client_cert": {Tok: resourceType(volcengineVpnMod, "SslVpnClientCert")}, + "volcengine_vpn_gateway_route": {Tok: resourceType(volcengineVpnMod, "GatewayRoute")}, + "volcengine_vpn_gateway": {Tok: resourceType(volcengineVpnMod, "Gateway")}, + "volcengine_scaling_group": {Tok: resourceType(volcengineAutoscalingMod, "ScalingGroup")}, + "volcengine_scaling_lifecycle_hook": {Tok: resourceType(volcengineAutoscalingMod, "ScalingLifecycleHook")}, + "volcengine_scaling_policy": {Tok: resourceType(volcengineAutoscalingMod, "ScalingPolicy")}, + "volcengine_scaling_group_enabler": {Tok: resourceType(volcengineAutoscalingMod, "ScalingGroupEnabler")}, + "volcengine_scaling_instance_attachment": {Tok: resourceType(volcengineAutoscalingMod, "ScalingInstanceAttachment")}, + "volcengine_scaling_configuration": {Tok: resourceType(volcengineAutoscalingMod, "ScalingConfiguration")}, + "volcengine_scaling_configuration_attachment": {Tok: resourceType(volcengineAutoscalingMod, "ScalingConfigurationAttachment")}, + "volcengine_redis_instance_state": {Tok: resourceType(volcengineRedisMod, "State")}, "volcengine_redis_continuous_backup": {Tok: resourceType(volcengineRedisMod, "ContinuousBackup")}, + "volcengine_redis_allow_list_associate": {Tok: resourceType(volcengineRedisMod, "AllowListAssociate")}, "volcengine_redis_allow_list": {Tok: resourceType(volcengineRedisMod, "AllowList")}, + "volcengine_redis_backup_restore": {Tok: resourceType(volcengineRedisMod, "BackupRestore")}, "volcengine_redis_account": {Tok: resourceType(volcengineRedisMod, "Account")}, "volcengine_redis_instance": {Tok: resourceType(volcengineRedisMod, "Instance")}, - "volcengine_redis_backup_restore": {Tok: resourceType(volcengineRedisMod, "BackupRestore")}, - "volcengine_redis_instance_state": {Tok: resourceType(volcengineRedisMod, "State")}, + "volcengine_redis_endpoint": {Tok: resourceType(volcengineRedisMod, "Endpoint")}, "volcengine_redis_backup": {Tok: resourceType(volcengineRedisMod, "Backup")}, - "volcengine_vke_cluster": {Tok: resourceType(volcengineVkeMod, "Cluster")}, - "volcengine_vke_node": {Tok: resourceType(volcengineVkeMod, "Node")}, + "volcengine_cr_namespace": {Tok: resourceType(volcengineCrMod, "Namespace")}, + "volcengine_cr_vpc_endpoint": {Tok: resourceType(volcengineCrMod, "VpcEndpoint")}, + "volcengine_cr_repository": {Tok: resourceType(volcengineCrMod, "Repository")}, + "volcengine_cr_tag": {Tok: resourceType(volcengineCrMod, "Tag")}, + "volcengine_cr_registry_state": {Tok: resourceType(volcengineCrMod, "State")}, + "volcengine_cr_endpoint": {Tok: resourceType(volcengineCrMod, "Endpoint")}, + "volcengine_cr_registry": {Tok: resourceType(volcengineCrMod, "Registry")}, + "volcengine_tos_bucket_policy": {Tok: resourceType(volcengineTosMod, "BucketPolicy")}, + "volcengine_tos_bucket": {Tok: resourceType(volcengineTosMod, "Bucket")}, + "volcengine_tos_object": {Tok: resourceType(volcengineTosMod, "BucketObject")}, + "volcengine_iam_user_policy_attachment": {Tok: resourceType(volcengineIamMod, "UserPolicyAttachment")}, + "volcengine_iam_role": {Tok: resourceType(volcengineIamMod, "Role")}, + "volcengine_iam_policy": {Tok: resourceType(volcengineIamMod, "Policy")}, + "volcengine_iam_role_policy_attachment": {Tok: resourceType(volcengineIamMod, "RolePolicyAttachment")}, + "volcengine_iam_access_key": {Tok: resourceType(volcengineIamMod, "AccessKey")}, + "volcengine_iam_user_group_attachment": {Tok: resourceType(volcengineIamMod, "UserGroupAttachment")}, + "volcengine_iam_login_profile": {Tok: resourceType(volcengineIamMod, "LoginProfile")}, + "volcengine_iam_user_group": {Tok: resourceType(volcengineIamMod, "UserGroup")}, + "volcengine_iam_user": {Tok: resourceType(volcengineIamMod, "User")}, + "volcengine_iam_user_group_policy_attachment": {Tok: resourceType(volcengineIamMod, "UserGroupPolicyAttachment")}, + "volcengine_volume_attach": {Tok: resourceType(volcengineEbsMod, "VolumeAttach")}, + "volcengine_volume": {Tok: resourceType(volcengineEbsMod, "Volume")}, + "volcengine_veenedge_cloud_server": {Tok: resourceType(volcengineVeenedgeMod, "CloudServer")}, + "volcengine_veenedge_instance": {Tok: resourceType(volcengineVeenedgeMod, "Instance")}, + "volcengine_veenedge_vpc": {Tok: resourceType(volcengineVeenedgeMod, "Vpc")}, + "volcengine_cloudfs_namespace": {Tok: resourceType(volcengineCloudfsMod, "Namespace")}, + "volcengine_cloudfs_file_system": {Tok: resourceType(volcengineCloudfsMod, "FileSystem")}, + "volcengine_cloudfs_access": {Tok: resourceType(volcengineCloudfsMod, "Access")}, + "volcengine_mongodb_allow_list": {Tok: resourceType(volcengineMongodbMod, "MongoAllowList")}, + "volcengine_mongodb_instance_parameter": {Tok: resourceType(volcengineMongodbMod, "InstanceParameter")}, + "volcengine_mongodb_allow_list_associate": {Tok: resourceType(volcengineMongodbMod, "MongoAllowListAssociate")}, + "volcengine_mongodb_endpoint": {Tok: resourceType(volcengineMongodbMod, "Endpoint")}, + "volcengine_mongodb_instance": {Tok: resourceType(volcengineMongodbMod, "Instance")}, + "volcengine_mongodb_ssl_state": {Tok: resourceType(volcengineMongodbMod, "SslState")}, + "volcengine_eip_address": {Tok: resourceType(volcengineEipMod, "Address")}, + "volcengine_eip_associate": {Tok: resourceType(volcengineEipMod, "Associate")}, + "volcengine_direct_connect_connection": {Tok: resourceType(volcengineDirectConnectMod, "Connection")}, + "volcengine_direct_connect_bgp_peer": {Tok: resourceType(volcengineDirectConnectMod, "BgpPeer")}, + "volcengine_direct_connect_gateway_route": {Tok: resourceType(volcengineDirectConnectMod, "GatewayRoute")}, + "volcengine_direct_connect_gateway": {Tok: resourceType(volcengineDirectConnectMod, "Gateway")}, + "volcengine_direct_connect_virtual_interface": {Tok: resourceType(volcengineDirectConnectMod, "VirtualInterface")}, + "volcengine_privatelink_vpc_endpoint_service": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointService")}, + "volcengine_privatelink_vpc_endpoint_service_resource": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointServiceResource")}, + "volcengine_privatelink_vpc_endpoint": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpoint")}, + "volcengine_privatelink_vpc_endpoint_connection": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointConnection")}, + "volcengine_privatelink_vpc_endpoint_service_permission": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointServicePermission")}, + "volcengine_privatelink_vpc_endpoint_zone": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointZone")}, + "volcengine_privatelink_security_group": {Tok: resourceType(volcenginePrivatelinkMod, "SecurityGroup")}, + "volcengine_snat_entry": {Tok: resourceType(volcengineNatMod, "SnatEntry")}, + "volcengine_nat_gateway": {Tok: resourceType(volcengineNatMod, "Gateway")}, + "volcengine_dnat_entry": {Tok: resourceType(volcengineNatMod, "DnatEntry")}, + "volcengine_ecs_deployment_set_associate": {Tok: resourceType(volcengineEcsMod, "DeploymentSetAssociate")}, + "volcengine_ecs_instance_state": {Tok: resourceType(volcengineEcsMod, "State")}, + "volcengine_ecs_deployment_set": {Tok: resourceType(volcengineEcsMod, "DeploymentSet")}, + "volcengine_ecs_command": {Tok: resourceType(volcengineEcsMod, "Command")}, + "volcengine_ecs_instance": {Tok: resourceType(volcengineEcsMod, "Instance")}, + "volcengine_ecs_invocation": {Tok: resourceType(volcengineEcsMod, "Invocation")}, + "volcengine_ecs_key_pair_associate": {Tok: resourceType(volcengineEcsMod, "KeyPairAssociate")}, + "volcengine_ecs_key_pair": {Tok: resourceType(volcengineEcsMod, "KeyPair")}, + "volcengine_ecs_launch_template": {Tok: resourceType(volcengineEcsMod, "LaunchTemplate")}, + "volcengine_rds_account": {Tok: resourceType(volcengineRdsMod, "Account")}, + "volcengine_rds_database": {Tok: resourceType(volcengineRdsMod, "Database")}, + "volcengine_rds_parameter_template": {Tok: resourceType(volcengineRdsMod, "ParameterTemplate")}, + "volcengine_rds_account_privilege": {Tok: resourceType(volcengineRdsMod, "AccountPrivilege")}, + "volcengine_rds_ip_list": {Tok: resourceType(volcengineRdsMod, "IpList")}, + "volcengine_rds_instance": {Tok: resourceType(volcengineRdsMod, "Instance")}, + "volcengine_rds_instance_v2": {Tok: resourceType(volcengineRdsV2Mod, "RdsInstanceV2")}, "volcengine_vke_addon": {Tok: resourceType(volcengineVkeMod, "Addon")}, "volcengine_vke_default_node_pool_batch_attach": {Tok: resourceType(volcengineVkeMod, "DefaultNodePoolBatchAttach")}, "volcengine_vke_node_pool": {Tok: resourceType(volcengineVkeMod, "NodePool")}, + "volcengine_vke_node": {Tok: resourceType(volcengineVkeMod, "Node")}, "volcengine_vke_default_node_pool": {Tok: resourceType(volcengineVkeMod, "DefaultNodePool")}, "volcengine_vke_kubeconfig": {Tok: resourceType(volcengineVkeMod, "Kubeconfig")}, - "volcengine_volume": {Tok: resourceType(volcengineEbsMod, "Volume")}, - "volcengine_volume_attach": {Tok: resourceType(volcengineEbsMod, "VolumeAttach")}, - "volcengine_scaling_policy": {Tok: resourceType(volcengineAutoscalingMod, "ScalingPolicy")}, - "volcengine_scaling_configuration_attachment": {Tok: resourceType(volcengineAutoscalingMod, "ScalingConfigurationAttachment")}, - "volcengine_scaling_group_enabler": {Tok: resourceType(volcengineAutoscalingMod, "ScalingGroupEnabler")}, - "volcengine_scaling_group": {Tok: resourceType(volcengineAutoscalingMod, "ScalingGroup")}, - "volcengine_scaling_configuration": {Tok: resourceType(volcengineAutoscalingMod, "ScalingConfiguration")}, - "volcengine_scaling_instance_attachment": {Tok: resourceType(volcengineAutoscalingMod, "ScalingInstanceAttachment")}, - "volcengine_scaling_lifecycle_hook": {Tok: resourceType(volcengineAutoscalingMod, "ScalingLifecycleHook")}, - "volcengine_privatelink_vpc_endpoint_connection": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointConnection")}, - "volcengine_privatelink_security_group": {Tok: resourceType(volcenginePrivatelinkMod, "SecurityGroup")}, - "volcengine_privatelink_vpc_endpoint_service_resource": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointServiceResource")}, - "volcengine_privatelink_vpc_endpoint_service_permission": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointServicePermission")}, - "volcengine_privatelink_vpc_endpoint": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpoint")}, - "volcengine_privatelink_vpc_endpoint_zone": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointZone")}, - "volcengine_privatelink_vpc_endpoint_service": {Tok: resourceType(volcenginePrivatelinkMod, "VpcEndpointService")}, - "volcengine_vpc_prefix_list": {Tok: resourceType(volcengineVpcMod, "PrefixList")}, - "volcengine_ha_vip_associate": {Tok: resourceType(volcengineVpcMod, "HaVipAssociate")}, - "volcengine_network_interface": {Tok: resourceType(volcengineVpcMod, "NetworkInterface")}, - "volcengine_vpc_ipv6_gateway": {Tok: resourceType(volcengineVpcMod, "Ipv6Gateway")}, - "volcengine_route_table_associate": {Tok: resourceType(volcengineVpcMod, "RouteTableAssociate")}, + "volcengine_vke_cluster": {Tok: resourceType(volcengineVkeMod, "Cluster")}, "volcengine_security_group_rule": {Tok: resourceType(volcengineVpcMod, "SecurityGroupRule")}, - "volcengine_network_acl_associate": {Tok: resourceType(volcengineVpcMod, "NetworkAclAssociate")}, - "volcengine_network_interface_attach": {Tok: resourceType(volcengineVpcMod, "NetworkInterfaceAttach")}, - "volcengine_network_acl": {Tok: resourceType(volcengineVpcMod, "NetworkAcl")}, "volcengine_vpc": {Tok: resourceType(volcengineVpcMod, "Vpc")}, + "volcengine_vpc_prefix_list": {Tok: resourceType(volcengineVpcMod, "PrefixList")}, + "volcengine_network_acl": {Tok: resourceType(volcengineVpcMod, "NetworkAcl")}, + "volcengine_network_interface_attach": {Tok: resourceType(volcengineVpcMod, "NetworkInterfaceAttach")}, + "volcengine_vpc_ipv6_gateway": {Tok: resourceType(volcengineVpcMod, "Ipv6Gateway")}, "volcengine_vpc_ipv6_address_bandwidth": {Tok: resourceType(volcengineVpcMod, "Ipv6AddressBandwidth")}, + "volcengine_network_acl_associate": {Tok: resourceType(volcengineVpcMod, "NetworkAclAssociate")}, + "volcengine_route_entry": {Tok: resourceType(volcengineVpcMod, "RouteEntry")}, + "volcengine_ha_vip_associate": {Tok: resourceType(volcengineVpcMod, "HaVipAssociate")}, "volcengine_subnet": {Tok: resourceType(volcengineVpcMod, "Subnet")}, + "volcengine_ha_vip": {Tok: resourceType(volcengineVpcMod, "HaVip")}, + "volcengine_route_table_associate": {Tok: resourceType(volcengineVpcMod, "RouteTableAssociate")}, "volcengine_route_table": {Tok: resourceType(volcengineVpcMod, "RouteTable")}, - "volcengine_route_entry": {Tok: resourceType(volcengineVpcMod, "RouteEntry")}, + "volcengine_network_interface": {Tok: resourceType(volcengineVpcMod, "NetworkInterface")}, "volcengine_security_group": {Tok: resourceType(volcengineVpcMod, "SecurityGroup")}, - "volcengine_ha_vip": {Tok: resourceType(volcengineVpcMod, "HaVip")}, + "volcengine_cen_attach_instance": {Tok: resourceType(volcengineCenMod, "AttachInstance")}, + "volcengine_cen_inter_region_bandwidth": {Tok: resourceType(volcengineCenMod, "InterRegionBandwidth")}, + "volcengine_cen_grant_instance": {Tok: resourceType(volcengineCenMod, "GrantInstance")}, + "volcengine_cen_bandwidth_package_associate": {Tok: resourceType(volcengineCenMod, "BandwidthPackageAssociate")}, + "volcengine_cen_bandwidth_package": {Tok: resourceType(volcengineCenMod, "BandwidthPackage")}, + "volcengine_cen_service_route_entry": {Tok: resourceType(volcengineCenMod, "ServiceRouteEntry")}, + "volcengine_cen_route_entry": {Tok: resourceType(volcengineCenMod, "RouteEntry")}, + "volcengine_cen": {Tok: resourceType(volcengineCenMod, "Cen")}, + "volcengine_tls_alarm_notify_group": {Tok: resourceType(volcengineTlsMod, "AlarmNotifyGroup")}, + "volcengine_tls_host": {Tok: resourceType(volcengineTlsMod, "Host")}, + "volcengine_tls_topic": {Tok: resourceType(volcengineTlsMod, "Topic")}, + "volcengine_tls_rule": {Tok: resourceType(volcengineTlsMod, "Rule")}, + "volcengine_tls_host_group": {Tok: resourceType(volcengineTlsMod, "HostGroup")}, + "volcengine_tls_rule_applier": {Tok: resourceType(volcengineTlsMod, "RuleApplier")}, + "volcengine_tls_kafka_consumer": {Tok: resourceType(volcengineTlsMod, "KafkaConsumer")}, + "volcengine_tls_project": {Tok: resourceType(volcengineTlsMod, "Project")}, + "volcengine_tls_alarm": {Tok: resourceType(volcengineTlsMod, "Alarm")}, + "volcengine_tls_index": {Tok: resourceType(volcengineTlsMod, "Index")}, "volcengine_bioos_cluster_bind": {Tok: resourceType(volcengineBioosMod, "ClusterBind")}, "volcengine_bioos_workspace": {Tok: resourceType(volcengineBioosMod, "Workspace")}, "volcengine_bioos_cluster": {Tok: resourceType(volcengineBioosMod, "Cluster")}, - "volcengine_tos_bucket": {Tok: resourceType(volcengineTosMod, "Bucket")}, - "volcengine_tos_bucket_policy": {Tok: resourceType(volcengineTosMod, "BucketPolicy")}, - "volcengine_tos_object": {Tok: resourceType(volcengineTosMod, "BucketObject")}, - "volcengine_nas_snapshot": {Tok: resourceType(volcengineNasMod, "Snapshot")}, - "volcengine_nas_file_system": {Tok: resourceType(volcengineNasMod, "FileSystem")}, - "volcengine_nas_mount_point": {Tok: resourceType(volcengineNasMod, "MountPoint")}, - "volcengine_nas_permission_group": {Tok: resourceType(volcengineNasMod, "PermissionGroup")}, - "volcengine_direct_connect_bgp_peer": {Tok: resourceType(volcengineDirectConnectMod, "BgpPeer")}, - "volcengine_direct_connect_gateway": {Tok: resourceType(volcengineDirectConnectMod, "Gateway")}, - "volcengine_direct_connect_gateway_route": {Tok: resourceType(volcengineDirectConnectMod, "GatewayRoute")}, - "volcengine_direct_connect_connection": {Tok: resourceType(volcengineDirectConnectMod, "Connection")}, - "volcengine_direct_connect_virtual_interface": {Tok: resourceType(volcengineDirectConnectMod, "VirtualInterface")}, - "volcengine_rds_instance_v2": {Tok: resourceType(volcengineRdsV2Mod, "RdsInstanceV2")}, "volcengine_escloud_instance": {Tok: resourceType(volcengineEscloudMod, "Instance")}, - "volcengine_dnat_entry": {Tok: resourceType(volcengineNatMod, "DnatEntry")}, - "volcengine_snat_entry": {Tok: resourceType(volcengineNatMod, "SnatEntry")}, - "volcengine_nat_gateway": {Tok: resourceType(volcengineNatMod, "Gateway")}, - "volcengine_iam_user": {Tok: resourceType(volcengineIamMod, "User")}, - "volcengine_iam_user_group_policy_attachment": {Tok: resourceType(volcengineIamMod, "UserGroupPolicyAttachment")}, - "volcengine_iam_role_policy_attachment": {Tok: resourceType(volcengineIamMod, "RolePolicyAttachment")}, - "volcengine_iam_login_profile": {Tok: resourceType(volcengineIamMod, "LoginProfile")}, - "volcengine_iam_access_key": {Tok: resourceType(volcengineIamMod, "AccessKey")}, - "volcengine_iam_user_group": {Tok: resourceType(volcengineIamMod, "UserGroup")}, - "volcengine_iam_user_group_attachment": {Tok: resourceType(volcengineIamMod, "UserGroupAttachment")}, - "volcengine_iam_policy": {Tok: resourceType(volcengineIamMod, "Policy")}, - "volcengine_iam_role": {Tok: resourceType(volcengineIamMod, "Role")}, - "volcengine_iam_user_policy_attachment": {Tok: resourceType(volcengineIamMod, "UserPolicyAttachment")}, - "volcengine_transit_router_bandwidth_package": {Tok: resourceType(volcengineTransitRouterMod, "BandwidthPackage")}, - "volcengine_transit_router_peer_attachment": {Tok: resourceType(volcengineTransitRouterMod, "PeerAttachment")}, - "volcengine_transit_router_route_table_propagation": {Tok: resourceType(volcengineTransitRouterMod, "RouteTablePropagation")}, - "volcengine_transit_router_direct_connect_gateway_attachment": {Tok: resourceType(volcengineTransitRouterMod, "DirectConnectGatewayAttachment")}, - "volcengine_transit_router": {Tok: resourceType(volcengineTransitRouterMod, "TransitRouter")}, - "volcengine_transit_router_vpn_attachment": {Tok: resourceType(volcengineTransitRouterMod, "VpnAttachment")}, "volcengine_transit_router_route_entry": {Tok: resourceType(volcengineTransitRouterMod, "RouteEntry")}, + "volcengine_transit_router_vpc_attachment": {Tok: resourceType(volcengineTransitRouterMod, "VpcAttachment")}, + "volcengine_transit_router_route_table": {Tok: resourceType(volcengineTransitRouterMod, "RouteTable")}, "volcengine_transit_router_shared_transit_router_state": {Tok: resourceType(volcengineTransitRouterMod, "SharedTransitRouterState")}, + "volcengine_transit_router_bandwidth_package": {Tok: resourceType(volcengineTransitRouterMod, "BandwidthPackage")}, "volcengine_transit_router_grant_rule": {Tok: resourceType(volcengineTransitRouterMod, "GrantRule")}, + "volcengine_transit_router_direct_connect_gateway_attachment": {Tok: resourceType(volcengineTransitRouterMod, "DirectConnectGatewayAttachment")}, "volcengine_transit_router_route_table_association": {Tok: resourceType(volcengineTransitRouterMod, "RouteTableAssociation")}, - "volcengine_transit_router_route_table": {Tok: resourceType(volcengineTransitRouterMod, "RouteTable")}, - "volcengine_transit_router_vpc_attachment": {Tok: resourceType(volcengineTransitRouterMod, "VpcAttachment")}, - "volcengine_ssl_vpn_client_cert": {Tok: resourceType(volcengineVpnMod, "SslVpnClientCert")}, - "volcengine_customer_gateway": {Tok: resourceType(volcengineVpnMod, "CustomerGateway")}, - "volcengine_vpn_connection": {Tok: resourceType(volcengineVpnMod, "Connection")}, - "volcengine_ssl_vpn_server": {Tok: resourceType(volcengineVpnMod, "SslVpnServer")}, - "volcengine_vpn_gateway_route": {Tok: resourceType(volcengineVpnMod, "GatewayRoute")}, - "volcengine_vpn_gateway": {Tok: resourceType(volcengineVpnMod, "Gateway")}, - "volcengine_mongodb_ssl_state": {Tok: resourceType(volcengineMongodbMod, "SslState")}, - "volcengine_mongodb_endpoint": {Tok: resourceType(volcengineMongodbMod, "Endpoint")}, - "volcengine_mongodb_instance_parameter": {Tok: resourceType(volcengineMongodbMod, "InstanceParameter")}, - "volcengine_mongodb_instance": {Tok: resourceType(volcengineMongodbMod, "Instance")}, - "volcengine_mongodb_allow_list": {Tok: resourceType(volcengineMongodbMod, "MongoAllowList")}, - "volcengine_mongodb_allow_list_associate": {Tok: resourceType(volcengineMongodbMod, "MongoAllowListAssociate")}, - "volcengine_ecs_deployment_set_associate": {Tok: resourceType(volcengineEcsMod, "DeploymentSetAssociate")}, - "volcengine_ecs_instance_state": {Tok: resourceType(volcengineEcsMod, "State")}, - "volcengine_ecs_invocation": {Tok: resourceType(volcengineEcsMod, "Invocation")}, - "volcengine_ecs_key_pair_associate": {Tok: resourceType(volcengineEcsMod, "KeyPairAssociate")}, - "volcengine_ecs_launch_template": {Tok: resourceType(volcengineEcsMod, "LaunchTemplate")}, - "volcengine_ecs_key_pair": {Tok: resourceType(volcengineEcsMod, "KeyPair")}, - "volcengine_ecs_command": {Tok: resourceType(volcengineEcsMod, "Command")}, - "volcengine_ecs_instance": {Tok: resourceType(volcengineEcsMod, "Instance")}, - "volcengine_ecs_deployment_set": {Tok: resourceType(volcengineEcsMod, "DeploymentSet")}, - "volcengine_rds_parameter_template": {Tok: resourceType(volcengineRdsMod, "ParameterTemplate")}, - "volcengine_rds_instance": {Tok: resourceType(volcengineRdsMod, "Instance")}, - "volcengine_rds_database": {Tok: resourceType(volcengineRdsMod, "Database")}, - "volcengine_rds_account": {Tok: resourceType(volcengineRdsMod, "Account")}, - "volcengine_rds_ip_list": {Tok: resourceType(volcengineRdsMod, "IpList")}, - "volcengine_rds_account_privilege": {Tok: resourceType(volcengineRdsMod, "AccountPrivilege")}, - "volcengine_veenedge_instance": {Tok: resourceType(volcengineVeenedgeMod, "Instance")}, - "volcengine_veenedge_cloud_server": {Tok: resourceType(volcengineVeenedgeMod, "CloudServer")}, - "volcengine_veenedge_vpc": {Tok: resourceType(volcengineVeenedgeMod, "Vpc")}, - "volcengine_eip_address": {Tok: resourceType(volcengineEipMod, "Address")}, - "volcengine_eip_associate": {Tok: resourceType(volcengineEipMod, "Associate")}, - "volcengine_tls_kafka_consumer": {Tok: resourceType(volcengineTlsMod, "KafkaConsumer")}, - "volcengine_tls_rule_applier": {Tok: resourceType(volcengineTlsMod, "RuleApplier")}, - "volcengine_tls_rule": {Tok: resourceType(volcengineTlsMod, "Rule")}, - "volcengine_tls_alarm_notify_group": {Tok: resourceType(volcengineTlsMod, "AlarmNotifyGroup")}, - "volcengine_tls_host_group": {Tok: resourceType(volcengineTlsMod, "HostGroup")}, - "volcengine_tls_host": {Tok: resourceType(volcengineTlsMod, "Host")}, - "volcengine_tls_index": {Tok: resourceType(volcengineTlsMod, "Index")}, - "volcengine_tls_topic": {Tok: resourceType(volcengineTlsMod, "Topic")}, - "volcengine_tls_alarm": {Tok: resourceType(volcengineTlsMod, "Alarm")}, - "volcengine_tls_project": {Tok: resourceType(volcengineTlsMod, "Project")}, - "volcengine_clb": {Tok: resourceType(volcengineClbMod, "Clb")}, - "volcengine_server_group": {Tok: resourceType(volcengineClbMod, "ServerGroup")}, - "volcengine_clb_rule": {Tok: resourceType(volcengineClbMod, "Rule")}, - "volcengine_server_group_server": {Tok: resourceType(volcengineClbMod, "ServerGroupServer")}, - "volcengine_acl_entry": {Tok: resourceType(volcengineClbMod, "AclEntry")}, - "volcengine_certificate": {Tok: resourceType(volcengineClbMod, "Certificate")}, - "volcengine_acl": {Tok: resourceType(volcengineClbMod, "Acl")}, - "volcengine_listener": {Tok: resourceType(volcengineClbMod, "Listener")}, + "volcengine_transit_router_route_table_propagation": {Tok: resourceType(volcengineTransitRouterMod, "RouteTablePropagation")}, + "volcengine_transit_router_vpn_attachment": {Tok: resourceType(volcengineTransitRouterMod, "VpnAttachment")}, + "volcengine_transit_router_peer_attachment": {Tok: resourceType(volcengineTransitRouterMod, "PeerAttachment")}, + "volcengine_transit_router": {Tok: resourceType(volcengineTransitRouterMod, "TransitRouter")}, + "volcengine_rds_mysql_account": {Tok: resourceType(volcengineRdsMysqlMod, "Account")}, + "volcengine_rds_mysql_database": {Tok: resourceType(volcengineRdsMysqlMod, "Database")}, + "volcengine_rds_mysql_allowlist_associate": {Tok: resourceType(volcengineRdsMysqlMod, "AllowlistAssociate")}, + "volcengine_rds_mysql_instance_readonly_node": {Tok: resourceType(volcengineRdsMysqlMod, "InstanceReadonlyNode")}, + "volcengine_rds_mysql_instance": {Tok: resourceType(volcengineRdsMysqlMod, "Instance")}, + "volcengine_rds_mysql_allowlist": {Tok: resourceType(volcengineRdsMysqlMod, "Allowlist")}, + "volcengine_nas_file_system": {Tok: resourceType(volcengineNasMod, "FileSystem")}, + "volcengine_nas_permission_group": {Tok: resourceType(volcengineNasMod, "PermissionGroup")}, + "volcengine_nas_mount_point": {Tok: resourceType(volcengineNasMod, "MountPoint")}, + "volcengine_nas_snapshot": {Tok: resourceType(volcengineNasMod, "Snapshot")}, }, DataSources: map[string]*tfbridge.DataSourceInfo{ - "volcengine_cr_endpoints": {Tok: dataSourceType(volcengineCrMod, "Endpoints")}, + "volcengine_clb_rules": {Tok: dataSourceType(volcengineClbMod, "Rules")}, + "volcengine_clb_zones": {Tok: dataSourceType(volcengineClbMod, "Zones")}, + "volcengine_listeners": {Tok: dataSourceType(volcengineClbMod, "Listeners")}, + "volcengine_clbs": {Tok: dataSourceType(volcengineClbMod, "Clbs")}, + "volcengine_server_groups": {Tok: dataSourceType(volcengineClbMod, "ServerGroups")}, + "volcengine_certificates": {Tok: dataSourceType(volcengineClbMod, "Certificates")}, + "volcengine_acls": {Tok: dataSourceType(volcengineClbMod, "Acls")}, + "volcengine_server_group_servers": {Tok: dataSourceType(volcengineClbMod, "ServerGroupServers")}, + "volcengine_vpn_connections": {Tok: dataSourceType(volcengineVpnMod, "Connections")}, + "volcengine_customer_gateways": {Tok: dataSourceType(volcengineVpnMod, "CustomerGateways")}, + "volcengine_ssl_vpn_servers": {Tok: dataSourceType(volcengineVpnMod, "SslVpnServers")}, + "volcengine_ssl_vpn_client_certs": {Tok: dataSourceType(volcengineVpnMod, "SslVpnClientCerts")}, + "volcengine_vpn_gateway_routes": {Tok: dataSourceType(volcengineVpnMod, "GatewayRoutes")}, + "volcengine_vpn_gateways": {Tok: dataSourceType(volcengineVpnMod, "Gateways")}, + "volcengine_scaling_groups": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingGroups")}, + "volcengine_scaling_lifecycle_hooks": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingLifecycleHooks")}, + "volcengine_scaling_policies": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingPolicies")}, + "volcengine_scaling_activities": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingActivities")}, + "volcengine_scaling_configurations": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingConfigurations")}, + "volcengine_scaling_instances": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingInstances")}, + "volcengine_redis_pitr_time_windows": {Tok: dataSourceType(volcengineRedisMod, "PitrTimeWindows")}, + "volcengine_redis_zones": {Tok: dataSourceType(volcengineRedisMod, "Zones")}, + "volcengine_redis_allow_lists": {Tok: dataSourceType(volcengineRedisMod, "AllowLists")}, + "volcengine_redis_accounts": {Tok: dataSourceType(volcengineRedisMod, "Accounts")}, + "volcengine_redis_regions": {Tok: dataSourceType(volcengineRedisMod, "Regions")}, + "volcengine_redis_instances": {Tok: dataSourceType(volcengineRedisMod, "Instances")}, + "volcengine_redis_backups": {Tok: dataSourceType(volcengineRedisMod, "Backups")}, + "volcengine_cr_namespaces": {Tok: dataSourceType(volcengineCrMod, "Namespaces")}, + "volcengine_cr_authorization_tokens": {Tok: dataSourceType(volcengineCrMod, "AuthorizationTokens")}, "volcengine_cr_vpc_endpoints": {Tok: dataSourceType(volcengineCrMod, "VpcEndpoints")}, - "volcengine_cr_registries": {Tok: dataSourceType(volcengineCrMod, "Registries")}, "volcengine_cr_repositories": {Tok: dataSourceType(volcengineCrMod, "Repositories")}, "volcengine_cr_tags": {Tok: dataSourceType(volcengineCrMod, "Tags")}, - "volcengine_cr_namespaces": {Tok: dataSourceType(volcengineCrMod, "Namespaces")}, - "volcengine_cr_authorization_tokens": {Tok: dataSourceType(volcengineCrMod, "AuthorizationTokens")}, - "volcengine_cen_service_route_entries": {Tok: dataSourceType(volcengineCenMod, "ServiceRouteEntries")}, - "volcengine_cen_attach_instances": {Tok: dataSourceType(volcengineCenMod, "AttachInstances")}, - "volcengine_cens": {Tok: dataSourceType(volcengineCenMod, "Cens")}, - "volcengine_cen_route_entries": {Tok: dataSourceType(volcengineCenMod, "RouteEntries")}, - "volcengine_cen_inter_region_bandwidths": {Tok: dataSourceType(volcengineCenMod, "InterRegionBandwidths")}, - "volcengine_cen_bandwidth_packages": {Tok: dataSourceType(volcengineCenMod, "BandwidthPackages")}, - "volcengine_cloudfs_file_systems": {Tok: dataSourceType(volcengineCloudfsMod, "FileSystems")}, + "volcengine_cr_endpoints": {Tok: dataSourceType(volcengineCrMod, "Endpoints")}, + "volcengine_cr_registries": {Tok: dataSourceType(volcengineCrMod, "Registries")}, + "volcengine_tos_buckets": {Tok: dataSourceType(volcengineTosMod, "Buckets")}, + "volcengine_tos_objects": {Tok: dataSourceType(volcengineTosMod, "BucketObjects")}, + "volcengine_iam_roles": {Tok: dataSourceType(volcengineIamMod, "Roles")}, + "volcengine_iam_policies": {Tok: dataSourceType(volcengineIamMod, "Policies")}, + "volcengine_iam_user_groups": {Tok: dataSourceType(volcengineIamMod, "UserGroups")}, + "volcengine_iam_users": {Tok: dataSourceType(volcengineIamMod, "Users")}, + "volcengine_iam_user_group_policy_attachments": {Tok: dataSourceType(volcengineIamMod, "UserGroupPolicyAttachments")}, + "volcengine_volumes": {Tok: dataSourceType(volcengineEbsMod, "Volumes")}, + "volcengine_veenedge_cloud_servers": {Tok: dataSourceType(volcengineVeenedgeMod, "CloudServers")}, + "volcengine_veenedge_instances": {Tok: dataSourceType(volcengineVeenedgeMod, "Instances")}, + "volcengine_veenedge_instance_types": {Tok: dataSourceType(volcengineVeenedgeMod, "InstanceTypes")}, + "volcengine_veenedge_available_resources": {Tok: dataSourceType(volcengineVeenedgeMod, "AvailableResources")}, + "volcengine_veenedge_vpcs": {Tok: dataSourceType(volcengineVeenedgeMod, "Vpcs")}, "volcengine_cloudfs_namespaces": {Tok: dataSourceType(volcengineCloudfsMod, "Namespaces")}, + "volcengine_cloudfs_file_systems": {Tok: dataSourceType(volcengineCloudfsMod, "FileSystems")}, + "volcengine_cloudfs_accesses": {Tok: dataSourceType(volcengineCloudfsMod, "Accesses")}, "volcengine_cloudfs_ns_quotas": {Tok: dataSourceType(volcengineCloudfsMod, "NsQuotas")}, "volcengine_cloudfs_quotas": {Tok: dataSourceType(volcengineCloudfsMod, "Quotas")}, - "volcengine_cloudfs_accesses": {Tok: dataSourceType(volcengineCloudfsMod, "Accesses")}, - "volcengine_rds_mysql_databases": {Tok: dataSourceType(volcengineRdsMysqlMod, "Databases")}, - "volcengine_rds_mysql_accounts": {Tok: dataSourceType(volcengineRdsMysqlMod, "Accounts")}, - "volcengine_rds_mysql_allowlists": {Tok: dataSourceType(volcengineRdsMysqlMod, "Allowlists")}, - "volcengine_rds_mysql_instances": {Tok: dataSourceType(volcengineRdsMysqlMod, "Instances")}, - "volcengine_redis_allow_lists": {Tok: dataSourceType(volcengineRedisMod, "AllowLists")}, - "volcengine_redis_zones": {Tok: dataSourceType(volcengineRedisMod, "Zones")}, - "volcengine_redis_regions": {Tok: dataSourceType(volcengineRedisMod, "Regions")}, - "volcengine_redis_accounts": {Tok: dataSourceType(volcengineRedisMod, "Accounts")}, - "volcengine_redis_instances": {Tok: dataSourceType(volcengineRedisMod, "Instances")}, - "volcengine_redis_pitr_time_windows": {Tok: dataSourceType(volcengineRedisMod, "PitrTimeWindows")}, - "volcengine_redis_backups": {Tok: dataSourceType(volcengineRedisMod, "Backups")}, - "volcengine_vke_clusters": {Tok: dataSourceType(volcengineVkeMod, "Clusters")}, - "volcengine_vke_nodes": {Tok: dataSourceType(volcengineVkeMod, "Nodes")}, - "volcengine_vke_support_resource_types": {Tok: dataSourceType(volcengineVkeMod, "SupportResourceTypes")}, - "volcengine_vke_support_addons": {Tok: dataSourceType(volcengineVkeMod, "SupportAddons")}, - "volcengine_vke_addons": {Tok: dataSourceType(volcengineVkeMod, "Addons")}, - "volcengine_vke_node_pools": {Tok: dataSourceType(volcengineVkeMod, "NodePools")}, - "volcengine_vke_kubeconfigs": {Tok: dataSourceType(volcengineVkeMod, "Kubeconfigs")}, - "volcengine_volumes": {Tok: dataSourceType(volcengineEbsMod, "Volumes")}, - "volcengine_scaling_policies": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingPolicies")}, - "volcengine_scaling_instances": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingInstances")}, - "volcengine_scaling_groups": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingGroups")}, - "volcengine_scaling_configurations": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingConfigurations")}, - "volcengine_scaling_lifecycle_hooks": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingLifecycleHooks")}, - "volcengine_scaling_activities": {Tok: dataSourceType(volcengineAutoscalingMod, "ScalingActivities")}, + "volcengine_mongodb_allow_lists": {Tok: dataSourceType(volcengineMongodbMod, "MongoAllowLists")}, + "volcengine_mongodb_instance_parameters": {Tok: dataSourceType(volcengineMongodbMod, "InstanceParameters")}, + "volcengine_mongodb_instance_parameter_logs": {Tok: dataSourceType(volcengineMongodbMod, "InstanceParameterLogs")}, + "volcengine_mongodb_accounts": {Tok: dataSourceType(volcengineMongodbMod, "Accounts")}, + "volcengine_mongodb_specs": {Tok: dataSourceType(volcengineMongodbMod, "Specs")}, + "volcengine_mongodb_endpoints": {Tok: dataSourceType(volcengineMongodbMod, "Endpoints")}, + "volcengine_mongodb_instances": {Tok: dataSourceType(volcengineMongodbMod, "Instances")}, + "volcengine_mongodb_ssl_states": {Tok: dataSourceType(volcengineMongodbMod, "SslStates")}, + "volcengine_mongodb_regions": {Tok: dataSourceType(volcengineMongodbMod, "Regions")}, + "volcengine_mongodb_zones": {Tok: dataSourceType(volcengineMongodbMod, "Zones")}, + "volcengine_eip_addresses": {Tok: dataSourceType(volcengineEipMod, "Addresses")}, + "volcengine_direct_connect_connections": {Tok: dataSourceType(volcengineDirectConnectMod, "Connections")}, + "volcengine_direct_connect_bgp_peers": {Tok: dataSourceType(volcengineDirectConnectMod, "BgpPeers")}, + "volcengine_direct_connect_gateway_routes": {Tok: dataSourceType(volcengineDirectConnectMod, "GatewayRoutes")}, + "volcengine_direct_connect_gateways": {Tok: dataSourceType(volcengineDirectConnectMod, "Gateways")}, + "volcengine_direct_connect_virtual_interfaces": {Tok: dataSourceType(volcengineDirectConnectMod, "VirtualInterfaces")}, + "volcengine_privatelink_vpc_endpoint_services": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpointServices")}, + "volcengine_privatelink_vpc_endpoints": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpoints")}, "volcengine_privatelink_vpc_endpoint_connections": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpointConnections")}, "volcengine_privatelink_vpc_endpoint_service_permissions": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpointServicePermissions")}, - "volcengine_privatelink_vpc_endpoints": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpoints")}, "volcengine_privatelink_vpc_endpoint_zones": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpointZones")}, - "volcengine_privatelink_vpc_endpoint_services": {Tok: dataSourceType(volcenginePrivatelinkMod, "VpcEndpointServices")}, + "volcengine_snat_entries": {Tok: dataSourceType(volcengineNatMod, "SnatEntries")}, + "volcengine_nat_gateways": {Tok: dataSourceType(volcengineNatMod, "Gateways")}, + "volcengine_dnat_entries": {Tok: dataSourceType(volcengineNatMod, "DnatEntries")}, + "volcengine_ecs_deployment_sets": {Tok: dataSourceType(volcengineEcsMod, "DeploymentSets")}, + "volcengine_ecs_commands": {Tok: dataSourceType(volcengineEcsMod, "Commands")}, + "volcengine_zones": {Tok: dataSourceType(volcengineEcsMod, "Zones")}, + "volcengine_ecs_instances": {Tok: dataSourceType(volcengineEcsMod, "Instances")}, + "volcengine_ecs_invocations": {Tok: dataSourceType(volcengineEcsMod, "Invocations")}, + "volcengine_ecs_invocation_results": {Tok: dataSourceType(volcengineEcsMod, "InvocationResults")}, + "volcengine_ecs_key_pairs": {Tok: dataSourceType(volcengineEcsMod, "KeyPairs")}, + "volcengine_ecs_available_resources": {Tok: dataSourceType(volcengineEcsMod, "AvailableResources")}, + "volcengine_regions": {Tok: dataSourceType(volcengineEcsMod, "Regions")}, + "volcengine_images": {Tok: dataSourceType(volcengineEcsMod, "Images")}, + "volcengine_ecs_launch_templates": {Tok: dataSourceType(volcengineEcsMod, "LaunchTemplates")}, + "volcengine_rds_accounts": {Tok: dataSourceType(volcengineRdsMod, "Accounts")}, + "volcengine_rds_databases": {Tok: dataSourceType(volcengineRdsMod, "Databases")}, + "volcengine_rds_parameter_templates": {Tok: dataSourceType(volcengineRdsMod, "ParameterTemplates")}, + "volcengine_rds_ip_lists": {Tok: dataSourceType(volcengineRdsMod, "IpLists")}, + "volcengine_rds_instances": {Tok: dataSourceType(volcengineRdsMod, "Instances")}, + "volcengine_rds_instances_v2": {Tok: dataSourceType(volcengineRdsV2Mod, "RdsInstancesV2")}, + "volcengine_vke_addons": {Tok: dataSourceType(volcengineVkeMod, "Addons")}, + "volcengine_vke_node_pools": {Tok: dataSourceType(volcengineVkeMod, "NodePools")}, + "volcengine_vke_support_resource_types": {Tok: dataSourceType(volcengineVkeMod, "SupportResourceTypes")}, + "volcengine_vke_support_addons": {Tok: dataSourceType(volcengineVkeMod, "SupportAddons")}, + "volcengine_vke_nodes": {Tok: dataSourceType(volcengineVkeMod, "Nodes")}, + "volcengine_vke_kubeconfigs": {Tok: dataSourceType(volcengineVkeMod, "Kubeconfigs")}, + "volcengine_vke_clusters": {Tok: dataSourceType(volcengineVkeMod, "Clusters")}, + "volcengine_security_group_rules": {Tok: dataSourceType(volcengineVpcMod, "SecurityGroupRules")}, + "volcengine_vpcs": {Tok: dataSourceType(volcengineVpcMod, "Vpcs")}, "volcengine_vpc_prefix_lists": {Tok: dataSourceType(volcengineVpcMod, "PrefixLists")}, "volcengine_vpc_ipv6_addresses": {Tok: dataSourceType(volcengineVpcMod, "Ipv6Addresses")}, - "volcengine_network_interfaces": {Tok: dataSourceType(volcengineVpcMod, "NetworkInterfaces")}, - "volcengine_vpc_ipv6_gateways": {Tok: dataSourceType(volcengineVpcMod, "Ipv6Gateways")}, - "volcengine_security_group_rules": {Tok: dataSourceType(volcengineVpcMod, "SecurityGroupRules")}, "volcengine_network_acls": {Tok: dataSourceType(volcengineVpcMod, "NetworkAcls")}, - "volcengine_vpcs": {Tok: dataSourceType(volcengineVpcMod, "Vpcs")}, + "volcengine_vpc_ipv6_gateways": {Tok: dataSourceType(volcengineVpcMod, "Ipv6Gateways")}, "volcengine_vpc_ipv6_address_bandwidths": {Tok: dataSourceType(volcengineVpcMod, "Ipv6AddressBandwidths")}, + "volcengine_route_entries": {Tok: dataSourceType(volcengineVpcMod, "RouteEntries")}, "volcengine_subnets": {Tok: dataSourceType(volcengineVpcMod, "Subnets")}, + "volcengine_ha_vips": {Tok: dataSourceType(volcengineVpcMod, "HaVips")}, "volcengine_route_tables": {Tok: dataSourceType(volcengineVpcMod, "RouteTables")}, - "volcengine_route_entries": {Tok: dataSourceType(volcengineVpcMod, "RouteEntries")}, + "volcengine_network_interfaces": {Tok: dataSourceType(volcengineVpcMod, "NetworkInterfaces")}, "volcengine_security_groups": {Tok: dataSourceType(volcengineVpcMod, "SecurityGroups")}, - "volcengine_ha_vips": {Tok: dataSourceType(volcengineVpcMod, "HaVips")}, + "volcengine_cen_attach_instances": {Tok: dataSourceType(volcengineCenMod, "AttachInstances")}, + "volcengine_cen_inter_region_bandwidths": {Tok: dataSourceType(volcengineCenMod, "InterRegionBandwidths")}, + "volcengine_cen_bandwidth_packages": {Tok: dataSourceType(volcengineCenMod, "BandwidthPackages")}, + "volcengine_cen_service_route_entries": {Tok: dataSourceType(volcengineCenMod, "ServiceRouteEntries")}, + "volcengine_cen_route_entries": {Tok: dataSourceType(volcengineCenMod, "RouteEntries")}, + "volcengine_cens": {Tok: dataSourceType(volcengineCenMod, "Cens")}, + "volcengine_tls_alarm_notify_groups": {Tok: dataSourceType(volcengineTlsMod, "AlarmNotifyGroups")}, + "volcengine_tls_hosts": {Tok: dataSourceType(volcengineTlsMod, "Hosts")}, + "volcengine_tls_topics": {Tok: dataSourceType(volcengineTlsMod, "Topics")}, + "volcengine_tls_rules": {Tok: dataSourceType(volcengineTlsMod, "Rules")}, + "volcengine_tls_host_groups": {Tok: dataSourceType(volcengineTlsMod, "HostGroups")}, + "volcengine_tls_rule_appliers": {Tok: dataSourceType(volcengineTlsMod, "RuleAppliers")}, + "volcengine_tls_kafka_consumers": {Tok: dataSourceType(volcengineTlsMod, "KafkaConsumers")}, + "volcengine_tls_projects": {Tok: dataSourceType(volcengineTlsMod, "Projects")}, + "volcengine_tls_alarms": {Tok: dataSourceType(volcengineTlsMod, "Alarms")}, + "volcengine_tls_indexes": {Tok: dataSourceType(volcengineTlsMod, "Indexes")}, + "volcengine_tls_shards": {Tok: dataSourceType(volcengineTlsMod, "Shards")}, "volcengine_bioos_workspaces": {Tok: dataSourceType(volcengineBioosMod, "Workspaces")}, "volcengine_bioos_clusters": {Tok: dataSourceType(volcengineBioosMod, "Clusters")}, - "volcengine_tos_buckets": {Tok: dataSourceType(volcengineTosMod, "Buckets")}, - "volcengine_tos_objects": {Tok: dataSourceType(volcengineTosMod, "BucketObjects")}, - "volcengine_nas_snapshots": {Tok: dataSourceType(volcengineNasMod, "Snapshots")}, - "volcengine_nas_regions": {Tok: dataSourceType(volcengineNasMod, "Regions")}, - "volcengine_nas_zones": {Tok: dataSourceType(volcengineNasMod, "Zones")}, - "volcengine_nas_file_systems": {Tok: dataSourceType(volcengineNasMod, "FileSystems")}, - "volcengine_nas_mount_points": {Tok: dataSourceType(volcengineNasMod, "MountPoints")}, - "volcengine_nas_permission_groups": {Tok: dataSourceType(volcengineNasMod, "PermissionGroups")}, - "volcengine_direct_connect_bgp_peers": {Tok: dataSourceType(volcengineDirectConnectMod, "BgpPeers")}, - "volcengine_direct_connect_gateways": {Tok: dataSourceType(volcengineDirectConnectMod, "Gateways")}, - "volcengine_direct_connect_gateway_routes": {Tok: dataSourceType(volcengineDirectConnectMod, "GatewayRoutes")}, - "volcengine_direct_connect_connections": {Tok: dataSourceType(volcengineDirectConnectMod, "Connections")}, - "volcengine_direct_connect_virtual_interfaces": {Tok: dataSourceType(volcengineDirectConnectMod, "VirtualInterfaces")}, - "volcengine_rds_instances_v2": {Tok: dataSourceType(volcengineRdsV2Mod, "RdsInstancesV2")}, "volcengine_escloud_instances": {Tok: dataSourceType(volcengineEscloudMod, "Instances")}, - "volcengine_escloud_regions": {Tok: dataSourceType(volcengineEscloudMod, "Regions")}, "volcengine_escloud_zones": {Tok: dataSourceType(volcengineEscloudMod, "Zones")}, - "volcengine_dnat_entries": {Tok: dataSourceType(volcengineNatMod, "DnatEntries")}, - "volcengine_snat_entries": {Tok: dataSourceType(volcengineNatMod, "SnatEntries")}, - "volcengine_nat_gateways": {Tok: dataSourceType(volcengineNatMod, "Gateways")}, - "volcengine_iam_users": {Tok: dataSourceType(volcengineIamMod, "Users")}, - "volcengine_iam_user_group_policy_attachments": {Tok: dataSourceType(volcengineIamMod, "UserGroupPolicyAttachments")}, - "volcengine_iam_user_groups": {Tok: dataSourceType(volcengineIamMod, "UserGroups")}, - "volcengine_iam_policies": {Tok: dataSourceType(volcengineIamMod, "Policies")}, - "volcengine_iam_roles": {Tok: dataSourceType(volcengineIamMod, "Roles")}, - "volcengine_transit_router_bandwidth_packages": {Tok: dataSourceType(volcengineTransitRouterMod, "BandwidthPackages")}, - "volcengine_transit_router_peer_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "PeerAttachments")}, - "volcengine_transit_router_route_table_propagations": {Tok: dataSourceType(volcengineTransitRouterMod, "RouteTablePropagations")}, - "volcengine_transit_router_direct_connect_gateway_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "DirectConnectGatewayAttachments")}, - "volcengine_transit_routers": {Tok: dataSourceType(volcengineTransitRouterMod, "TransitRouters")}, - "volcengine_transit_router_vpn_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "VpnAttachments")}, + "volcengine_escloud_regions": {Tok: dataSourceType(volcengineEscloudMod, "Regions")}, "volcengine_transit_router_route_entries": {Tok: dataSourceType(volcengineTransitRouterMod, "RouteEntries")}, + "volcengine_transit_router_vpc_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "VpcAttachments")}, + "volcengine_transit_router_route_tables": {Tok: dataSourceType(volcengineTransitRouterMod, "RouteTables")}, + "volcengine_transit_router_bandwidth_packages": {Tok: dataSourceType(volcengineTransitRouterMod, "BandwidthPackages")}, "volcengine_transit_router_grant_rules": {Tok: dataSourceType(volcengineTransitRouterMod, "GrantRules")}, + "volcengine_transit_router_direct_connect_gateway_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "DirectConnectGatewayAttachments")}, "volcengine_transit_router_route_table_associations": {Tok: dataSourceType(volcengineTransitRouterMod, "RouteTableAssociations")}, - "volcengine_transit_router_route_tables": {Tok: dataSourceType(volcengineTransitRouterMod, "RouteTables")}, - "volcengine_transit_router_vpc_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "VpcAttachments")}, - "volcengine_ssl_vpn_client_certs": {Tok: dataSourceType(volcengineVpnMod, "SslVpnClientCerts")}, - "volcengine_customer_gateways": {Tok: dataSourceType(volcengineVpnMod, "CustomerGateways")}, - "volcengine_vpn_connections": {Tok: dataSourceType(volcengineVpnMod, "Connections")}, - "volcengine_ssl_vpn_servers": {Tok: dataSourceType(volcengineVpnMod, "SslVpnServers")}, - "volcengine_vpn_gateway_routes": {Tok: dataSourceType(volcengineVpnMod, "GatewayRoutes")}, - "volcengine_vpn_gateways": {Tok: dataSourceType(volcengineVpnMod, "Gateways")}, - "volcengine_mongodb_ssl_states": {Tok: dataSourceType(volcengineMongodbMod, "SslStates")}, - "volcengine_mongodb_regions": {Tok: dataSourceType(volcengineMongodbMod, "Regions")}, - "volcengine_mongodb_accounts": {Tok: dataSourceType(volcengineMongodbMod, "Accounts")}, - "volcengine_mongodb_zones": {Tok: dataSourceType(volcengineMongodbMod, "Zones")}, - "volcengine_mongodb_instance_parameter_logs": {Tok: dataSourceType(volcengineMongodbMod, "InstanceParameterLogs")}, - "volcengine_mongodb_endpoints": {Tok: dataSourceType(volcengineMongodbMod, "Endpoints")}, - "volcengine_mongodb_instance_parameters": {Tok: dataSourceType(volcengineMongodbMod, "InstanceParameters")}, - "volcengine_mongodb_instances": {Tok: dataSourceType(volcengineMongodbMod, "Instances")}, - "volcengine_mongodb_allow_lists": {Tok: dataSourceType(volcengineMongodbMod, "MongoAllowLists")}, - "volcengine_mongodb_specs": {Tok: dataSourceType(volcengineMongodbMod, "Specs")}, - "volcengine_images": {Tok: dataSourceType(volcengineEcsMod, "Images")}, - "volcengine_ecs_invocations": {Tok: dataSourceType(volcengineEcsMod, "Invocations")}, - "volcengine_ecs_invocation_results": {Tok: dataSourceType(volcengineEcsMod, "InvocationResults")}, - "volcengine_ecs_available_resources": {Tok: dataSourceType(volcengineEcsMod, "AvailableResources")}, - "volcengine_ecs_launch_templates": {Tok: dataSourceType(volcengineEcsMod, "LaunchTemplates")}, - "volcengine_ecs_key_pairs": {Tok: dataSourceType(volcengineEcsMod, "KeyPairs")}, - "volcengine_regions": {Tok: dataSourceType(volcengineEcsMod, "Regions")}, - "volcengine_ecs_commands": {Tok: dataSourceType(volcengineEcsMod, "Commands")}, - "volcengine_ecs_instances": {Tok: dataSourceType(volcengineEcsMod, "Instances")}, - "volcengine_zones": {Tok: dataSourceType(volcengineEcsMod, "Zones")}, - "volcengine_ecs_deployment_sets": {Tok: dataSourceType(volcengineEcsMod, "DeploymentSets")}, - "volcengine_rds_parameter_templates": {Tok: dataSourceType(volcengineRdsMod, "ParameterTemplates")}, - "volcengine_rds_instances": {Tok: dataSourceType(volcengineRdsMod, "Instances")}, - "volcengine_rds_databases": {Tok: dataSourceType(volcengineRdsMod, "Databases")}, - "volcengine_rds_accounts": {Tok: dataSourceType(volcengineRdsMod, "Accounts")}, - "volcengine_rds_ip_lists": {Tok: dataSourceType(volcengineRdsMod, "IpLists")}, - "volcengine_veenedge_instance_types": {Tok: dataSourceType(volcengineVeenedgeMod, "InstanceTypes")}, - "volcengine_veenedge_instances": {Tok: dataSourceType(volcengineVeenedgeMod, "Instances")}, - "volcengine_veenedge_cloud_servers": {Tok: dataSourceType(volcengineVeenedgeMod, "CloudServers")}, - "volcengine_veenedge_vpcs": {Tok: dataSourceType(volcengineVeenedgeMod, "Vpcs")}, - "volcengine_veenedge_available_resources": {Tok: dataSourceType(volcengineVeenedgeMod, "AvailableResources")}, - "volcengine_eip_addresses": {Tok: dataSourceType(volcengineEipMod, "Addresses")}, - "volcengine_tls_kafka_consumers": {Tok: dataSourceType(volcengineTlsMod, "KafkaConsumers")}, - "volcengine_tls_rule_appliers": {Tok: dataSourceType(volcengineTlsMod, "RuleAppliers")}, - "volcengine_tls_rules": {Tok: dataSourceType(volcengineTlsMod, "Rules")}, - "volcengine_tls_shards": {Tok: dataSourceType(volcengineTlsMod, "Shards")}, - "volcengine_tls_alarm_notify_groups": {Tok: dataSourceType(volcengineTlsMod, "AlarmNotifyGroups")}, - "volcengine_tls_host_groups": {Tok: dataSourceType(volcengineTlsMod, "HostGroups")}, - "volcengine_tls_hosts": {Tok: dataSourceType(volcengineTlsMod, "Hosts")}, - "volcengine_tls_indexes": {Tok: dataSourceType(volcengineTlsMod, "Indexes")}, - "volcengine_tls_topics": {Tok: dataSourceType(volcengineTlsMod, "Topics")}, - "volcengine_tls_alarms": {Tok: dataSourceType(volcengineTlsMod, "Alarms")}, - "volcengine_tls_projects": {Tok: dataSourceType(volcengineTlsMod, "Projects")}, - "volcengine_clbs": {Tok: dataSourceType(volcengineClbMod, "Clbs")}, - "volcengine_server_groups": {Tok: dataSourceType(volcengineClbMod, "ServerGroups")}, - "volcengine_clb_rules": {Tok: dataSourceType(volcengineClbMod, "Rules")}, - "volcengine_server_group_servers": {Tok: dataSourceType(volcengineClbMod, "ServerGroupServers")}, - "volcengine_clb_zones": {Tok: dataSourceType(volcengineClbMod, "Zones")}, - "volcengine_certificates": {Tok: dataSourceType(volcengineClbMod, "Certificates")}, - "volcengine_acls": {Tok: dataSourceType(volcengineClbMod, "Acls")}, - "volcengine_listeners": {Tok: dataSourceType(volcengineClbMod, "Listeners")}, + "volcengine_transit_router_route_table_propagations": {Tok: dataSourceType(volcengineTransitRouterMod, "RouteTablePropagations")}, + "volcengine_transit_router_vpn_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "VpnAttachments")}, + "volcengine_transit_router_peer_attachments": {Tok: dataSourceType(volcengineTransitRouterMod, "PeerAttachments")}, + "volcengine_transit_routers": {Tok: dataSourceType(volcengineTransitRouterMod, "TransitRouters")}, + "volcengine_rds_mysql_accounts": {Tok: dataSourceType(volcengineRdsMysqlMod, "Accounts")}, + "volcengine_rds_mysql_databases": {Tok: dataSourceType(volcengineRdsMysqlMod, "Databases")}, + "volcengine_rds_mysql_instances": {Tok: dataSourceType(volcengineRdsMysqlMod, "Instances")}, + "volcengine_rds_mysql_allowlists": {Tok: dataSourceType(volcengineRdsMysqlMod, "Allowlists")}, + "volcengine_nas_file_systems": {Tok: dataSourceType(volcengineNasMod, "FileSystems")}, + "volcengine_nas_permission_groups": {Tok: dataSourceType(volcengineNasMod, "PermissionGroups")}, + "volcengine_nas_mount_points": {Tok: dataSourceType(volcengineNasMod, "MountPoints")}, + "volcengine_nas_zones": {Tok: dataSourceType(volcengineNasMod, "Zones")}, + "volcengine_nas_regions": {Tok: dataSourceType(volcengineNasMod, "Regions")}, + "volcengine_nas_snapshots": {Tok: dataSourceType(volcengineNasMod, "Snapshots")}, }, JavaScript: &tfbridge.JavaScriptInfo{ // List any npm dependencies and their versions diff --git a/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideArgs.cs b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideArgs.cs new file mode 100644 index 00000000..46b7f97a --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs +{ + + public sealed class ScalingGroupLaunchTemplateOverrideArgs : global::Pulumi.ResourceArgs + { + /// + /// The instance type. + /// + [Input("instanceType", required: true)] + public Input InstanceType { get; set; } = null!; + + public ScalingGroupLaunchTemplateOverrideArgs() + { + } + public static new ScalingGroupLaunchTemplateOverrideArgs Empty => new ScalingGroupLaunchTemplateOverrideArgs(); + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideGetArgs.cs b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideGetArgs.cs new file mode 100644 index 00000000..ba73c5d7 --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingGroupLaunchTemplateOverrideGetArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs +{ + + public sealed class ScalingGroupLaunchTemplateOverrideGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The instance type. + /// + [Input("instanceType", required: true)] + public Input InstanceType { get; set; } = null!; + + public ScalingGroupLaunchTemplateOverrideGetArgs() + { + } + public static new ScalingGroupLaunchTemplateOverrideGetArgs Empty => new ScalingGroupLaunchTemplateOverrideGetArgs(); + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandArgs.cs b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandArgs.cs new file mode 100644 index 00000000..29b231f7 --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandArgs.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs +{ + + public sealed class ScalingLifecycleHookLifecycleCommandArgs : global::Pulumi.ResourceArgs + { + /// + /// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + /// + [Input("commandId", required: true)] + public Input CommandId { get; set; } = null!; + + /// + /// Parameters and parameter values in batch job commands. + /// The number of parameters ranges from 0 to 60. + /// + [Input("parameters")] + public Input? Parameters { get; set; } + + public ScalingLifecycleHookLifecycleCommandArgs() + { + } + public static new ScalingLifecycleHookLifecycleCommandArgs Empty => new ScalingLifecycleHookLifecycleCommandArgs(); + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandGetArgs.cs b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandGetArgs.cs new file mode 100644 index 00000000..65f00ce9 --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Inputs/ScalingLifecycleHookLifecycleCommandGetArgs.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs +{ + + public sealed class ScalingLifecycleHookLifecycleCommandGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + /// + [Input("commandId", required: true)] + public Input CommandId { get; set; } = null!; + + /// + /// Parameters and parameter values in batch job commands. + /// The number of parameters ranges from 0 to 60. + /// + [Input("parameters")] + public Input? Parameters { get; set; } + + public ScalingLifecycleHookLifecycleCommandGetArgs() + { + } + public static new ScalingLifecycleHookLifecycleCommandGetArgs Empty => new ScalingLifecycleHookLifecycleCommandGetArgs(); + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingConfigurationsScalingConfigurationResult.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingConfigurationsScalingConfigurationResult.cs index 7bec3292..193366cd 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingConfigurationsScalingConfigurationResult.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingConfigurationsScalingConfigurationResult.cs @@ -59,6 +59,12 @@ public sealed class ScalingConfigurationsScalingConfigurationResult /// public readonly ImmutableArray InstanceTypes; /// + /// Assign IPv6 address to instance network card. Possible values: + /// 0: Do not assign IPv6 address. + /// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + /// + public readonly int Ipv6AddressCount; + /// /// The ECS key pair name which the scaling configuration set. /// public readonly string KeyPairName; @@ -135,6 +141,8 @@ public sealed class ScalingConfigurationsScalingConfigurationResult ImmutableArray instanceTypes, + int ipv6AddressCount, + string keyPairName, string lifecycleState, @@ -172,6 +180,7 @@ public sealed class ScalingConfigurationsScalingConfigurationResult InstanceDescription = instanceDescription; InstanceName = instanceName; InstanceTypes = instanceTypes; + Ipv6AddressCount = ipv6AddressCount; KeyPairName = keyPairName; LifecycleState = lifecycleState; ProjectName = projectName; diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupLaunchTemplateOverride.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupLaunchTemplateOverride.cs new file mode 100644 index 00000000..d98b833f --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupLaunchTemplateOverride.cs @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Outputs +{ + + [OutputType] + public sealed class ScalingGroupLaunchTemplateOverride + { + /// + /// The instance type. + /// + public readonly string InstanceType; + + [OutputConstructor] + private ScalingGroupLaunchTemplateOverride(string instanceType) + { + InstanceType = instanceType; + } + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupLaunchTemplateOverrideResult.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupLaunchTemplateOverrideResult.cs new file mode 100644 index 00000000..659dadb7 --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupLaunchTemplateOverrideResult.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Outputs +{ + + [OutputType] + public sealed class ScalingGroupsScalingGroupLaunchTemplateOverrideResult + { + /// + /// The instance type. + /// + public readonly string InstanceType; + /// + /// Weight of instance specifications. + /// + public readonly int WeightedCapacity; + + [OutputConstructor] + private ScalingGroupsScalingGroupLaunchTemplateOverrideResult( + string instanceType, + + int weightedCapacity) + { + InstanceType = instanceType; + WeightedCapacity = weightedCapacity; + } + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupResult.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupResult.cs index 70369066..5b2fb848 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupResult.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingGroupsScalingGroupResult.cs @@ -35,6 +35,10 @@ public sealed class ScalingGroupsScalingGroupResult /// public readonly int DesireInstanceNumber; /// + /// The health check type of the scaling group. + /// + public readonly string HealthCheckType; + /// /// The id of the scaling group. /// public readonly string Id; @@ -47,6 +51,10 @@ public sealed class ScalingGroupsScalingGroupResult /// public readonly string LaunchTemplateId; /// + /// Instance start template information. + /// + public readonly ImmutableArray LaunchTemplateOverrides; + /// /// The version of the launch template bound to the scaling group. /// public readonly string LaunchTemplateVersion; @@ -55,6 +63,10 @@ public sealed class ScalingGroupsScalingGroupResult /// public readonly string LifecycleState; /// + /// Grace period for health check of CLB instance in elastic group. + /// + public readonly int LoadBalancerHealthCheckGracePeriod; + /// /// The max instance number of the scaling group. /// public readonly int MaxInstanceNumber; @@ -67,7 +79,7 @@ public sealed class ScalingGroupsScalingGroupResult /// public readonly string MultiAzPolicy; /// - /// The ProjectName of scaling group. + /// The project name of the scaling group. /// public readonly string ProjectName; /// @@ -79,10 +91,18 @@ public sealed class ScalingGroupsScalingGroupResult /// public readonly string ScalingGroupName; /// + /// The scaling mode of the scaling group. + /// + public readonly string ScalingMode; + /// /// The list of server group attributes. /// public readonly ImmutableArray ServerGroupAttributes; /// + /// The number of stopped instances. + /// + public readonly int StoppedInstanceCount; + /// /// The list of the subnet id to which the ENI is connected. /// public readonly ImmutableArray SubnetIds; @@ -115,16 +135,22 @@ public sealed class ScalingGroupsScalingGroupResult int desireInstanceNumber, + string healthCheckType, + string id, string instanceTerminatePolicy, string launchTemplateId, + ImmutableArray launchTemplateOverrides, + string launchTemplateVersion, string lifecycleState, + int loadBalancerHealthCheckGracePeriod, + int maxInstanceNumber, int minInstanceNumber, @@ -137,8 +163,12 @@ public sealed class ScalingGroupsScalingGroupResult string scalingGroupName, + string scalingMode, + ImmutableArray serverGroupAttributes, + int stoppedInstanceCount, + ImmutableArray subnetIds, ImmutableArray tags, @@ -154,18 +184,23 @@ public sealed class ScalingGroupsScalingGroupResult DbInstanceIds = dbInstanceIds; DefaultCooldown = defaultCooldown; DesireInstanceNumber = desireInstanceNumber; + HealthCheckType = healthCheckType; Id = id; InstanceTerminatePolicy = instanceTerminatePolicy; LaunchTemplateId = launchTemplateId; + LaunchTemplateOverrides = launchTemplateOverrides; LaunchTemplateVersion = launchTemplateVersion; LifecycleState = lifecycleState; + LoadBalancerHealthCheckGracePeriod = loadBalancerHealthCheckGracePeriod; MaxInstanceNumber = maxInstanceNumber; MinInstanceNumber = minInstanceNumber; MultiAzPolicy = multiAzPolicy; ProjectName = projectName; ScalingGroupId = scalingGroupId; ScalingGroupName = scalingGroupName; + ScalingMode = scalingMode; ServerGroupAttributes = serverGroupAttributes; + StoppedInstanceCount = stoppedInstanceCount; SubnetIds = subnetIds; Tags = tags; TotalInstanceCount = totalInstanceCount; diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHookLifecycleCommand.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHookLifecycleCommand.cs new file mode 100644 index 00000000..f9a4cd7c --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHookLifecycleCommand.cs @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Outputs +{ + + [OutputType] + public sealed class ScalingLifecycleHookLifecycleCommand + { + /// + /// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + /// + public readonly string CommandId; + /// + /// Parameters and parameter values in batch job commands. + /// The number of parameters ranges from 0 to 60. + /// + public readonly string? Parameters; + + [OutputConstructor] + private ScalingLifecycleHookLifecycleCommand( + string commandId, + + string? parameters) + { + CommandId = commandId; + Parameters = parameters; + } + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookLifecycleCommandResult.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookLifecycleCommandResult.cs new file mode 100644 index 00000000..6efa59ad --- /dev/null +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookLifecycleCommandResult.cs @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Volcengine.Pulumi.Volcengine.Autoscaling.Outputs +{ + + [OutputType] + public sealed class ScalingLifecycleHooksLifecycleHookLifecycleCommandResult + { + /// + /// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + /// + public readonly string CommandId; + /// + /// Parameters and parameter values in batch job commands. + /// The number of parameters ranges from 0 to 60. + /// + public readonly string Parameters; + + [OutputConstructor] + private ScalingLifecycleHooksLifecycleHookLifecycleCommandResult( + string commandId, + + string parameters) + { + CommandId = commandId; + Parameters = parameters; + } + } +} diff --git a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookResult.cs b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookResult.cs index cd475fec..438d7148 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookResult.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/Outputs/ScalingLifecycleHooksLifecycleHookResult.cs @@ -19,6 +19,10 @@ public sealed class ScalingLifecycleHooksLifecycleHookResult /// public readonly string Id; /// + /// Batch job command. + /// + public readonly ImmutableArray LifecycleCommands; + /// /// The id of the lifecycle hook. /// public readonly string LifecycleHookId; @@ -47,6 +51,8 @@ public sealed class ScalingLifecycleHooksLifecycleHookResult private ScalingLifecycleHooksLifecycleHookResult( string id, + ImmutableArray lifecycleCommands, + string lifecycleHookId, string lifecycleHookName, @@ -60,6 +66,7 @@ public sealed class ScalingLifecycleHooksLifecycleHookResult string scalingGroupId) { Id = id; + LifecycleCommands = lifecycleCommands; LifecycleHookId = lifecycleHookId; LifecycleHookName = lifecycleHookName; LifecycleHookPolicy = lifecycleHookPolicy; diff --git a/sdk/dotnet/Volcengine/Autoscaling/ScalingConfiguration.cs b/sdk/dotnet/Volcengine/Autoscaling/ScalingConfiguration.cs index a5a43030..802255ae 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/ScalingConfiguration.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/ScalingConfiguration.cs @@ -196,6 +196,14 @@ public partial class ScalingConfiguration : global::Pulumi.CustomResource [Output("instanceTypes")] public Output> InstanceTypes { get; private set; } = null!; + /// + /// Assign IPv6 address to instance network card. Possible values: + /// 0: Do not assign IPv6 address. + /// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + /// + [Output("ipv6AddressCount")] + public Output Ipv6AddressCount { get; private set; } = null!; + /// /// The ECS key pair name which the scaling configuration set. /// @@ -391,6 +399,14 @@ public InputList InstanceTypes set => _instanceTypes = value; } + /// + /// Assign IPv6 address to instance network card. Possible values: + /// 0: Do not assign IPv6 address. + /// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + /// + [Input("ipv6AddressCount")] + public Input? Ipv6AddressCount { get; set; } + /// /// The ECS key pair name which the scaling configuration set. /// @@ -559,6 +575,14 @@ public InputList InstanceTypes set => _instanceTypes = value; } + /// + /// Assign IPv6 address to instance network card. Possible values: + /// 0: Do not assign IPv6 address. + /// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + /// + [Input("ipv6AddressCount")] + public Input? Ipv6AddressCount { get; set; } + /// /// The ECS key pair name which the scaling configuration set. /// diff --git a/sdk/dotnet/Volcengine/Autoscaling/ScalingGroup.cs b/sdk/dotnet/Volcengine/Autoscaling/ScalingGroup.cs index 47e40feb..35cdd55b 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/ScalingGroup.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/ScalingGroup.cs @@ -98,7 +98,7 @@ public partial class ScalingGroup : global::Pulumi.CustomResource public Output CreatedAt { get; private set; } = null!; /// - /// The list of db instance ids. + /// ID of the RDS database instance. /// [Output("dbInstanceIds")] public Output> DbInstanceIds { get; private set; } = null!; @@ -115,6 +115,12 @@ public partial class ScalingGroup : global::Pulumi.CustomResource [Output("desireInstanceNumber")] public Output DesireInstanceNumber { get; private set; } = null!; + /// + /// The health check type of the scaling group. + /// + [Output("healthCheckType")] + public Output HealthCheckType { get; private set; } = null!; + /// /// The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. /// @@ -127,6 +133,12 @@ public partial class ScalingGroup : global::Pulumi.CustomResource [Output("launchTemplateId")] public Output LaunchTemplateId { get; private set; } = null!; + /// + /// Specify instance specifications. + /// + [Output("launchTemplateOverrides")] + public Output> LaunchTemplateOverrides { get; private set; } = null!; + /// /// The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. /// @@ -139,6 +151,12 @@ public partial class ScalingGroup : global::Pulumi.CustomResource [Output("lifecycleState")] public Output LifecycleState { get; private set; } = null!; + /// + /// Grace period for health check of CLB instance in elastic group. + /// + [Output("loadBalancerHealthCheckGracePeriod")] + public Output LoadBalancerHealthCheckGracePeriod { get; private set; } = null!; + /// /// The max instance number of the scaling group. Value range: 0 ~ 100. /// @@ -175,12 +193,26 @@ public partial class ScalingGroup : global::Pulumi.CustomResource [Output("scalingGroupName")] public Output ScalingGroupName { get; private set; } = null!; + /// + /// Example recycling mode for the elastic group, with values: + /// release (default): Release mode. + /// recycle: Shutdown recycling mode. + /// + [Output("scalingMode")] + public Output ScalingMode { get; private set; } = null!; + /// /// The load balancer server group attributes of the scaling group. /// [Output("serverGroupAttributes")] public Output> ServerGroupAttributes { get; private set; } = null!; + /// + /// The number of stopped instances. + /// + [Output("stoppedInstanceCount")] + public Output StoppedInstanceCount { get; private set; } = null!; + /// /// The list of the subnet id to which the ENI is connected. /// @@ -258,6 +290,18 @@ public static ScalingGroup Get(string name, Input id, ScalingGroupState? public sealed class ScalingGroupArgs : global::Pulumi.ResourceArgs { + [Input("dbInstanceIds")] + private InputList? _dbInstanceIds; + + /// + /// ID of the RDS database instance. + /// + public InputList DbInstanceIds + { + get => _dbInstanceIds ?? (_dbInstanceIds = new InputList()); + set => _dbInstanceIds = value; + } + /// /// The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. /// @@ -282,6 +326,18 @@ public sealed class ScalingGroupArgs : global::Pulumi.ResourceArgs [Input("launchTemplateId")] public Input? LaunchTemplateId { get; set; } + [Input("launchTemplateOverrides")] + private InputList? _launchTemplateOverrides; + + /// + /// Specify instance specifications. + /// + public InputList LaunchTemplateOverrides + { + get => _launchTemplateOverrides ?? (_launchTemplateOverrides = new InputList()); + set => _launchTemplateOverrides = value; + } + /// /// The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. /// @@ -318,6 +374,14 @@ public sealed class ScalingGroupArgs : global::Pulumi.ResourceArgs [Input("scalingGroupName", required: true)] public Input ScalingGroupName { get; set; } = null!; + /// + /// Example recycling mode for the elastic group, with values: + /// release (default): Release mode. + /// recycle: Shutdown recycling mode. + /// + [Input("scalingMode")] + public Input? ScalingMode { get; set; } + [Input("serverGroupAttributes")] private InputList? _serverGroupAttributes; @@ -378,7 +442,7 @@ public sealed class ScalingGroupState : global::Pulumi.ResourceArgs private InputList? _dbInstanceIds; /// - /// The list of db instance ids. + /// ID of the RDS database instance. /// public InputList DbInstanceIds { @@ -398,6 +462,12 @@ public InputList DbInstanceIds [Input("desireInstanceNumber")] public Input? DesireInstanceNumber { get; set; } + /// + /// The health check type of the scaling group. + /// + [Input("healthCheckType")] + public Input? HealthCheckType { get; set; } + /// /// The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. /// @@ -410,6 +480,18 @@ public InputList DbInstanceIds [Input("launchTemplateId")] public Input? LaunchTemplateId { get; set; } + [Input("launchTemplateOverrides")] + private InputList? _launchTemplateOverrides; + + /// + /// Specify instance specifications. + /// + public InputList LaunchTemplateOverrides + { + get => _launchTemplateOverrides ?? (_launchTemplateOverrides = new InputList()); + set => _launchTemplateOverrides = value; + } + /// /// The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. /// @@ -422,6 +504,12 @@ public InputList DbInstanceIds [Input("lifecycleState")] public Input? LifecycleState { get; set; } + /// + /// Grace period for health check of CLB instance in elastic group. + /// + [Input("loadBalancerHealthCheckGracePeriod")] + public Input? LoadBalancerHealthCheckGracePeriod { get; set; } + /// /// The max instance number of the scaling group. Value range: 0 ~ 100. /// @@ -458,6 +546,14 @@ public InputList DbInstanceIds [Input("scalingGroupName")] public Input? ScalingGroupName { get; set; } + /// + /// Example recycling mode for the elastic group, with values: + /// release (default): Release mode. + /// recycle: Shutdown recycling mode. + /// + [Input("scalingMode")] + public Input? ScalingMode { get; set; } + [Input("serverGroupAttributes")] private InputList? _serverGroupAttributes; @@ -470,6 +566,12 @@ public InputList ServerGroupAttr set => _serverGroupAttributes = value; } + /// + /// The number of stopped instances. + /// + [Input("stoppedInstanceCount")] + public Input? StoppedInstanceCount { get; set; } + [Input("subnetIds")] private InputList? _subnetIds; diff --git a/sdk/dotnet/Volcengine/Autoscaling/ScalingGroups.cs b/sdk/dotnet/Volcengine/Autoscaling/ScalingGroups.cs index c4253bec..d8e7fd6b 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/ScalingGroups.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/ScalingGroups.cs @@ -192,6 +192,12 @@ public List Ids [Input("outputFile")] public string? OutputFile { get; set; } + /// + /// The project name of the scaling group. + /// + [Input("projectName")] + public string? ProjectName { get; set; } + [Input("scalingGroupNames")] private List? _scalingGroupNames; @@ -236,6 +242,12 @@ public InputList Ids [Input("outputFile")] public Input? OutputFile { get; set; } + /// + /// The project name of the scaling group. + /// + [Input("projectName")] + public Input? ProjectName { get; set; } + [Input("scalingGroupNames")] private InputList? _scalingGroupNames; @@ -265,6 +277,10 @@ public sealed class ScalingGroupsResult public readonly ImmutableArray Ids; public readonly string? NameRegex; public readonly string? OutputFile; + /// + /// The ProjectName of scaling group. + /// + public readonly string? ProjectName; public readonly ImmutableArray ScalingGroupNames; /// /// The collection of scaling group query. @@ -285,6 +301,8 @@ public sealed class ScalingGroupsResult string? outputFile, + string? projectName, + ImmutableArray scalingGroupNames, ImmutableArray scalingGroups, @@ -295,6 +313,7 @@ public sealed class ScalingGroupsResult Ids = ids; NameRegex = nameRegex; OutputFile = outputFile; + ProjectName = projectName; ScalingGroupNames = scalingGroupNames; ScalingGroups = scalingGroups; TotalCount = totalCount; diff --git a/sdk/dotnet/Volcengine/Autoscaling/ScalingLifecycleHook.cs b/sdk/dotnet/Volcengine/Autoscaling/ScalingLifecycleHook.cs index 2ddbcbbc..305ba670 100644 --- a/sdk/dotnet/Volcengine/Autoscaling/ScalingLifecycleHook.cs +++ b/sdk/dotnet/Volcengine/Autoscaling/ScalingLifecycleHook.cs @@ -39,6 +39,15 @@ namespace Volcengine.Pulumi.Volcengine.Autoscaling /// VpcId = fooVpc.Id, /// }); /// + /// var fooCommand = new Volcengine.Ecs.Command("fooCommand", new() + /// { + /// Description = "tf", + /// WorkingDir = "/home", + /// Username = "root", + /// Timeout = 100, + /// CommandContent = "IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi", + /// }); + /// /// var fooScalingGroup = new Volcengine.Autoscaling.ScalingGroup("fooScalingGroup", new() /// { /// ScalingGroupName = "acc-test-scaling-group-lifecycle", @@ -57,12 +66,16 @@ namespace Volcengine.Pulumi.Volcengine.Autoscaling /// var fooScalingLifecycleHook = new Volcengine.Autoscaling.ScalingLifecycleHook("fooScalingLifecycleHook", new() /// { /// LifecycleHookName = "acc-test-lifecycle", - /// LifecycleHookPolicy = "CONTINUE", - /// LifecycleHookTimeout = 30, - /// LifecycleHookType = "SCALE_IN", + /// LifecycleHookPolicy = "ROLLBACK", + /// LifecycleHookTimeout = 300, + /// LifecycleHookType = "SCALE_OUT", /// ScalingGroupId = fooScalingGroup.Id, /// }); /// + /// // lifecycle_command { + /// // command_id = volcengine_ecs_command.foo.id + /// // parameters = "{}" + /// // } /// }); /// ``` /// @@ -77,6 +90,12 @@ namespace Volcengine.Pulumi.Volcengine.Autoscaling [VolcengineResourceType("volcengine:autoscaling/scalingLifecycleHook:ScalingLifecycleHook")] public partial class ScalingLifecycleHook : global::Pulumi.CustomResource { + /// + /// Batch job command. + /// + [Output("lifecycleCommand")] + public Output LifecycleCommand { get; private set; } = null!; + /// /// The id of the lifecycle hook. /// @@ -90,7 +109,7 @@ public partial class ScalingLifecycleHook : global::Pulumi.CustomResource public Output LifecycleHookName { get; private set; } = null!; /// - /// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + /// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. /// [Output("lifecycleHookPolicy")] public Output LifecycleHookPolicy { get; private set; } = null!; @@ -160,6 +179,12 @@ public static ScalingLifecycleHook Get(string name, Input id, ScalingLif public sealed class ScalingLifecycleHookArgs : global::Pulumi.ResourceArgs { + /// + /// Batch job command. + /// + [Input("lifecycleCommand")] + public Input? LifecycleCommand { get; set; } + /// /// The name of the lifecycle hook. /// @@ -167,7 +192,7 @@ public sealed class ScalingLifecycleHookArgs : global::Pulumi.ResourceArgs public Input LifecycleHookName { get; set; } = null!; /// - /// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + /// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. /// [Input("lifecycleHookPolicy", required: true)] public Input LifecycleHookPolicy { get; set; } = null!; @@ -198,6 +223,12 @@ public ScalingLifecycleHookArgs() public sealed class ScalingLifecycleHookState : global::Pulumi.ResourceArgs { + /// + /// Batch job command. + /// + [Input("lifecycleCommand")] + public Input? LifecycleCommand { get; set; } + /// /// The id of the lifecycle hook. /// @@ -211,7 +242,7 @@ public sealed class ScalingLifecycleHookState : global::Pulumi.ResourceArgs public Input? LifecycleHookName { get; set; } /// - /// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + /// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. /// [Input("lifecycleHookPolicy")] public Input? LifecycleHookPolicy { get; set; } diff --git a/sdk/dotnet/Volcengine/Mongodb/MongoAllowList.cs b/sdk/dotnet/Volcengine/Mongodb/MongoAllowList.cs index 902fc8a3..48920147 100644 --- a/sdk/dotnet/Volcengine/Mongodb/MongoAllowList.cs +++ b/sdk/dotnet/Volcengine/Mongodb/MongoAllowList.cs @@ -68,12 +68,6 @@ public partial class MongoAllowList : global::Pulumi.CustomResource [Output("allowListType")] public Output AllowListType { get; private set; } = null!; - /// - /// The modify mode. Only support Cover mode. - /// - [Output("modifyMode")] - public Output ModifyMode { get; private set; } = null!; - /// /// Create a MongoAllowList resource with the given unique name, arguments, and options. @@ -145,12 +139,6 @@ public sealed class MongoAllowListArgs : global::Pulumi.ResourceArgs [Input("allowListType")] public Input? AllowListType { get; set; } - /// - /// The modify mode. Only support Cover mode. - /// - [Input("modifyMode")] - public Input? ModifyMode { get; set; } - public MongoAllowListArgs() { } @@ -183,12 +171,6 @@ public sealed class MongoAllowListState : global::Pulumi.ResourceArgs [Input("allowListType")] public Input? AllowListType { get; set; } - /// - /// The modify mode. Only support Cover mode. - /// - [Input("modifyMode")] - public Input? ModifyMode { get; set; } - public MongoAllowListState() { } diff --git a/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeArgs.cs b/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeArgs.cs index 5ae45745..6c3ece06 100644 --- a/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeArgs.cs +++ b/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeArgs.cs @@ -20,13 +20,13 @@ public sealed class NodePoolNodeConfigDataVolumeArgs : global::Pulumi.ResourceAr public Input? MountPoint { get; set; } /// - /// The Size of DataVolumes, the value range in 20~32768. + /// The Size of DataVolumes, the value range in 20~32768. Default value is `20`. /// [Input("size")] public Input? Size { get; set; } /// - /// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + /// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeGetArgs.cs b/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeGetArgs.cs index 9efd56ef..2bc90fe0 100644 --- a/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeGetArgs.cs +++ b/sdk/dotnet/Volcengine/Vke/Inputs/NodePoolNodeConfigDataVolumeGetArgs.cs @@ -20,13 +20,13 @@ public sealed class NodePoolNodeConfigDataVolumeGetArgs : global::Pulumi.Resourc public Input? MountPoint { get; set; } /// - /// The Size of DataVolumes, the value range in 20~32768. + /// The Size of DataVolumes, the value range in 20~32768. Default value is `20`. /// [Input("size")] public Input? Size { get; set; } /// - /// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + /// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/Volcengine/Vke/NodePool.cs b/sdk/dotnet/Volcengine/Vke/NodePool.cs index 21a6813d..3fd55d9c 100644 --- a/sdk/dotnet/Volcengine/Vke/NodePool.cs +++ b/sdk/dotnet/Volcengine/Vke/NodePool.cs @@ -128,14 +128,14 @@ namespace Volcengine.Pulumi.Volcengine.Vke /// SystemVolume = new Volcengine.Vke.Inputs.NodePoolNodeConfigSystemVolumeArgs /// { /// Type = "ESSD_PL0", - /// Size = 60, + /// Size = 80, /// }, /// DataVolumes = new[] /// { /// new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs /// { /// Type = "ESSD_PL0", - /// Size = 60, + /// Size = 80, /// MountPoint = "/tf1", /// }, /// new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs @@ -161,7 +161,7 @@ namespace Volcengine.Pulumi.Volcengine.Vke /// fooSecurityGroup.Id, /// }, /// }, - /// AdditionalContainerStorageEnabled = true, + /// AdditionalContainerStorageEnabled = false, /// InstanceChargeType = "PostPaid", /// NamePrefix = "acc-test", /// EcsTags = new[] diff --git a/sdk/dotnet/Volcengine/Vke/Outputs/NodePoolNodeConfigDataVolume.cs b/sdk/dotnet/Volcengine/Vke/Outputs/NodePoolNodeConfigDataVolume.cs index 6c78aeab..a8127317 100644 --- a/sdk/dotnet/Volcengine/Vke/Outputs/NodePoolNodeConfigDataVolume.cs +++ b/sdk/dotnet/Volcengine/Vke/Outputs/NodePoolNodeConfigDataVolume.cs @@ -19,11 +19,11 @@ public sealed class NodePoolNodeConfigDataVolume /// public readonly string? MountPoint; /// - /// The Size of DataVolumes, the value range in 20~32768. + /// The Size of DataVolumes, the value range in 20~32768. Default value is `20`. /// public readonly int? Size; /// - /// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + /// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. /// public readonly string? Type; diff --git a/sdk/go/volcengine/autoscaling/pulumiTypes.go b/sdk/go/volcengine/autoscaling/pulumiTypes.go index 7784b448..9878ba4c 100644 --- a/sdk/go/volcengine/autoscaling/pulumiTypes.go +++ b/sdk/go/volcengine/autoscaling/pulumiTypes.go @@ -615,6 +615,10 @@ type ScalingConfigurationsScalingConfiguration struct { InstanceName string `pulumi:"instanceName"` // The list of the ECS instance type which the scaling configuration set. InstanceTypes []string `pulumi:"instanceTypes"` + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount int `pulumi:"ipv6AddressCount"` // The ECS key pair name which the scaling configuration set. KeyPairName string `pulumi:"keyPairName"` // The lifecycle state of the scaling configuration. @@ -677,6 +681,10 @@ type ScalingConfigurationsScalingConfigurationArgs struct { InstanceName pulumi.StringInput `pulumi:"instanceName"` // The list of the ECS instance type which the scaling configuration set. InstanceTypes pulumi.StringArrayInput `pulumi:"instanceTypes"` + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount pulumi.IntInput `pulumi:"ipv6AddressCount"` // The ECS key pair name which the scaling configuration set. KeyPairName pulumi.StringInput `pulumi:"keyPairName"` // The lifecycle state of the scaling configuration. @@ -811,6 +819,13 @@ func (o ScalingConfigurationsScalingConfigurationOutput) InstanceTypes() pulumi. return o.ApplyT(func(v ScalingConfigurationsScalingConfiguration) []string { return v.InstanceTypes }).(pulumi.StringArrayOutput) } +// Assign IPv6 address to instance network card. Possible values: +// 0: Do not assign IPv6 address. +// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. +func (o ScalingConfigurationsScalingConfigurationOutput) Ipv6AddressCount() pulumi.IntOutput { + return o.ApplyT(func(v ScalingConfigurationsScalingConfiguration) int { return v.Ipv6AddressCount }).(pulumi.IntOutput) +} + // The ECS key pair name which the scaling configuration set. func (o ScalingConfigurationsScalingConfigurationOutput) KeyPairName() pulumi.StringOutput { return o.ApplyT(func(v ScalingConfigurationsScalingConfiguration) string { return v.KeyPairName }).(pulumi.StringOutput) @@ -1121,6 +1136,103 @@ func (o ScalingConfigurationsScalingConfigurationVolumeArrayOutput) Index(i pulu }).(ScalingConfigurationsScalingConfigurationVolumeOutput) } +type ScalingGroupLaunchTemplateOverride struct { + // The instance type. + InstanceType string `pulumi:"instanceType"` +} + +// ScalingGroupLaunchTemplateOverrideInput is an input type that accepts ScalingGroupLaunchTemplateOverrideArgs and ScalingGroupLaunchTemplateOverrideOutput values. +// You can construct a concrete instance of `ScalingGroupLaunchTemplateOverrideInput` via: +// +// ScalingGroupLaunchTemplateOverrideArgs{...} +type ScalingGroupLaunchTemplateOverrideInput interface { + pulumi.Input + + ToScalingGroupLaunchTemplateOverrideOutput() ScalingGroupLaunchTemplateOverrideOutput + ToScalingGroupLaunchTemplateOverrideOutputWithContext(context.Context) ScalingGroupLaunchTemplateOverrideOutput +} + +type ScalingGroupLaunchTemplateOverrideArgs struct { + // The instance type. + InstanceType pulumi.StringInput `pulumi:"instanceType"` +} + +func (ScalingGroupLaunchTemplateOverrideArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (i ScalingGroupLaunchTemplateOverrideArgs) ToScalingGroupLaunchTemplateOverrideOutput() ScalingGroupLaunchTemplateOverrideOutput { + return i.ToScalingGroupLaunchTemplateOverrideOutputWithContext(context.Background()) +} + +func (i ScalingGroupLaunchTemplateOverrideArgs) ToScalingGroupLaunchTemplateOverrideOutputWithContext(ctx context.Context) ScalingGroupLaunchTemplateOverrideOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingGroupLaunchTemplateOverrideOutput) +} + +// ScalingGroupLaunchTemplateOverrideArrayInput is an input type that accepts ScalingGroupLaunchTemplateOverrideArray and ScalingGroupLaunchTemplateOverrideArrayOutput values. +// You can construct a concrete instance of `ScalingGroupLaunchTemplateOverrideArrayInput` via: +// +// ScalingGroupLaunchTemplateOverrideArray{ ScalingGroupLaunchTemplateOverrideArgs{...} } +type ScalingGroupLaunchTemplateOverrideArrayInput interface { + pulumi.Input + + ToScalingGroupLaunchTemplateOverrideArrayOutput() ScalingGroupLaunchTemplateOverrideArrayOutput + ToScalingGroupLaunchTemplateOverrideArrayOutputWithContext(context.Context) ScalingGroupLaunchTemplateOverrideArrayOutput +} + +type ScalingGroupLaunchTemplateOverrideArray []ScalingGroupLaunchTemplateOverrideInput + +func (ScalingGroupLaunchTemplateOverrideArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (i ScalingGroupLaunchTemplateOverrideArray) ToScalingGroupLaunchTemplateOverrideArrayOutput() ScalingGroupLaunchTemplateOverrideArrayOutput { + return i.ToScalingGroupLaunchTemplateOverrideArrayOutputWithContext(context.Background()) +} + +func (i ScalingGroupLaunchTemplateOverrideArray) ToScalingGroupLaunchTemplateOverrideArrayOutputWithContext(ctx context.Context) ScalingGroupLaunchTemplateOverrideArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingGroupLaunchTemplateOverrideArrayOutput) +} + +type ScalingGroupLaunchTemplateOverrideOutput struct{ *pulumi.OutputState } + +func (ScalingGroupLaunchTemplateOverrideOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (o ScalingGroupLaunchTemplateOverrideOutput) ToScalingGroupLaunchTemplateOverrideOutput() ScalingGroupLaunchTemplateOverrideOutput { + return o +} + +func (o ScalingGroupLaunchTemplateOverrideOutput) ToScalingGroupLaunchTemplateOverrideOutputWithContext(ctx context.Context) ScalingGroupLaunchTemplateOverrideOutput { + return o +} + +// The instance type. +func (o ScalingGroupLaunchTemplateOverrideOutput) InstanceType() pulumi.StringOutput { + return o.ApplyT(func(v ScalingGroupLaunchTemplateOverride) string { return v.InstanceType }).(pulumi.StringOutput) +} + +type ScalingGroupLaunchTemplateOverrideArrayOutput struct{ *pulumi.OutputState } + +func (ScalingGroupLaunchTemplateOverrideArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (o ScalingGroupLaunchTemplateOverrideArrayOutput) ToScalingGroupLaunchTemplateOverrideArrayOutput() ScalingGroupLaunchTemplateOverrideArrayOutput { + return o +} + +func (o ScalingGroupLaunchTemplateOverrideArrayOutput) ToScalingGroupLaunchTemplateOverrideArrayOutputWithContext(ctx context.Context) ScalingGroupLaunchTemplateOverrideArrayOutput { + return o +} + +func (o ScalingGroupLaunchTemplateOverrideArrayOutput) Index(i pulumi.IntInput) ScalingGroupLaunchTemplateOverrideOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ScalingGroupLaunchTemplateOverride { + return vs[0].([]ScalingGroupLaunchTemplateOverride)[vs[1].(int)] + }).(ScalingGroupLaunchTemplateOverrideOutput) +} + type ScalingGroupServerGroupAttribute struct { LoadBalancerId *string `pulumi:"loadBalancerId"` // The port receiving request of the server group. Value range: 1 ~ 65535. @@ -1359,30 +1471,40 @@ type ScalingGroupsScalingGroup struct { DefaultCooldown int `pulumi:"defaultCooldown"` // The desire instance number of the scaling group. DesireInstanceNumber int `pulumi:"desireInstanceNumber"` + // The health check type of the scaling group. + HealthCheckType string `pulumi:"healthCheckType"` // The id of the scaling group. Id string `pulumi:"id"` // The instance terminate policy of the scaling group. InstanceTerminatePolicy string `pulumi:"instanceTerminatePolicy"` // The ID of the launch template bound to the scaling group. LaunchTemplateId string `pulumi:"launchTemplateId"` + // Instance start template information. + LaunchTemplateOverrides []ScalingGroupsScalingGroupLaunchTemplateOverride `pulumi:"launchTemplateOverrides"` // The version of the launch template bound to the scaling group. LaunchTemplateVersion string `pulumi:"launchTemplateVersion"` // The lifecycle state of the scaling group. LifecycleState string `pulumi:"lifecycleState"` + // Grace period for health check of CLB instance in elastic group. + LoadBalancerHealthCheckGracePeriod int `pulumi:"loadBalancerHealthCheckGracePeriod"` // The max instance number of the scaling group. MaxInstanceNumber int `pulumi:"maxInstanceNumber"` // The min instance number of the scaling group. MinInstanceNumber int `pulumi:"minInstanceNumber"` // The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. MultiAzPolicy string `pulumi:"multiAzPolicy"` - // The ProjectName of scaling group. + // The project name of the scaling group. ProjectName string `pulumi:"projectName"` // The id of the scaling group. ScalingGroupId string `pulumi:"scalingGroupId"` // The name of the scaling group. ScalingGroupName string `pulumi:"scalingGroupName"` + // The scaling mode of the scaling group. + ScalingMode string `pulumi:"scalingMode"` // The list of server group attributes. ServerGroupAttributes []ScalingGroupsScalingGroupServerGroupAttribute `pulumi:"serverGroupAttributes"` + // The number of stopped instances. + StoppedInstanceCount int `pulumi:"stoppedInstanceCount"` // The list of the subnet id to which the ENI is connected. SubnetIds []string `pulumi:"subnetIds"` // Tags. @@ -1417,30 +1539,40 @@ type ScalingGroupsScalingGroupArgs struct { DefaultCooldown pulumi.IntInput `pulumi:"defaultCooldown"` // The desire instance number of the scaling group. DesireInstanceNumber pulumi.IntInput `pulumi:"desireInstanceNumber"` + // The health check type of the scaling group. + HealthCheckType pulumi.StringInput `pulumi:"healthCheckType"` // The id of the scaling group. Id pulumi.StringInput `pulumi:"id"` // The instance terminate policy of the scaling group. InstanceTerminatePolicy pulumi.StringInput `pulumi:"instanceTerminatePolicy"` // The ID of the launch template bound to the scaling group. LaunchTemplateId pulumi.StringInput `pulumi:"launchTemplateId"` + // Instance start template information. + LaunchTemplateOverrides ScalingGroupsScalingGroupLaunchTemplateOverrideArrayInput `pulumi:"launchTemplateOverrides"` // The version of the launch template bound to the scaling group. LaunchTemplateVersion pulumi.StringInput `pulumi:"launchTemplateVersion"` // The lifecycle state of the scaling group. LifecycleState pulumi.StringInput `pulumi:"lifecycleState"` + // Grace period for health check of CLB instance in elastic group. + LoadBalancerHealthCheckGracePeriod pulumi.IntInput `pulumi:"loadBalancerHealthCheckGracePeriod"` // The max instance number of the scaling group. MaxInstanceNumber pulumi.IntInput `pulumi:"maxInstanceNumber"` // The min instance number of the scaling group. MinInstanceNumber pulumi.IntInput `pulumi:"minInstanceNumber"` // The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. MultiAzPolicy pulumi.StringInput `pulumi:"multiAzPolicy"` - // The ProjectName of scaling group. + // The project name of the scaling group. ProjectName pulumi.StringInput `pulumi:"projectName"` // The id of the scaling group. ScalingGroupId pulumi.StringInput `pulumi:"scalingGroupId"` // The name of the scaling group. ScalingGroupName pulumi.StringInput `pulumi:"scalingGroupName"` + // The scaling mode of the scaling group. + ScalingMode pulumi.StringInput `pulumi:"scalingMode"` // The list of server group attributes. ServerGroupAttributes ScalingGroupsScalingGroupServerGroupAttributeArrayInput `pulumi:"serverGroupAttributes"` + // The number of stopped instances. + StoppedInstanceCount pulumi.IntInput `pulumi:"stoppedInstanceCount"` // The list of the subnet id to which the ENI is connected. SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"` // Tags. @@ -1529,6 +1661,11 @@ func (o ScalingGroupsScalingGroupOutput) DesireInstanceNumber() pulumi.IntOutput return o.ApplyT(func(v ScalingGroupsScalingGroup) int { return v.DesireInstanceNumber }).(pulumi.IntOutput) } +// The health check type of the scaling group. +func (o ScalingGroupsScalingGroupOutput) HealthCheckType() pulumi.StringOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.HealthCheckType }).(pulumi.StringOutput) +} + // The id of the scaling group. func (o ScalingGroupsScalingGroupOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.Id }).(pulumi.StringOutput) @@ -1544,6 +1681,13 @@ func (o ScalingGroupsScalingGroupOutput) LaunchTemplateId() pulumi.StringOutput return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.LaunchTemplateId }).(pulumi.StringOutput) } +// Instance start template information. +func (o ScalingGroupsScalingGroupOutput) LaunchTemplateOverrides() ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroup) []ScalingGroupsScalingGroupLaunchTemplateOverride { + return v.LaunchTemplateOverrides + }).(ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput) +} + // The version of the launch template bound to the scaling group. func (o ScalingGroupsScalingGroupOutput) LaunchTemplateVersion() pulumi.StringOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.LaunchTemplateVersion }).(pulumi.StringOutput) @@ -1554,6 +1698,11 @@ func (o ScalingGroupsScalingGroupOutput) LifecycleState() pulumi.StringOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.LifecycleState }).(pulumi.StringOutput) } +// Grace period for health check of CLB instance in elastic group. +func (o ScalingGroupsScalingGroupOutput) LoadBalancerHealthCheckGracePeriod() pulumi.IntOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroup) int { return v.LoadBalancerHealthCheckGracePeriod }).(pulumi.IntOutput) +} + // The max instance number of the scaling group. func (o ScalingGroupsScalingGroupOutput) MaxInstanceNumber() pulumi.IntOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) int { return v.MaxInstanceNumber }).(pulumi.IntOutput) @@ -1569,7 +1718,7 @@ func (o ScalingGroupsScalingGroupOutput) MultiAzPolicy() pulumi.StringOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.MultiAzPolicy }).(pulumi.StringOutput) } -// The ProjectName of scaling group. +// The project name of the scaling group. func (o ScalingGroupsScalingGroupOutput) ProjectName() pulumi.StringOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.ProjectName }).(pulumi.StringOutput) } @@ -1584,6 +1733,11 @@ func (o ScalingGroupsScalingGroupOutput) ScalingGroupName() pulumi.StringOutput return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.ScalingGroupName }).(pulumi.StringOutput) } +// The scaling mode of the scaling group. +func (o ScalingGroupsScalingGroupOutput) ScalingMode() pulumi.StringOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroup) string { return v.ScalingMode }).(pulumi.StringOutput) +} + // The list of server group attributes. func (o ScalingGroupsScalingGroupOutput) ServerGroupAttributes() ScalingGroupsScalingGroupServerGroupAttributeArrayOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) []ScalingGroupsScalingGroupServerGroupAttribute { @@ -1591,6 +1745,11 @@ func (o ScalingGroupsScalingGroupOutput) ServerGroupAttributes() ScalingGroupsSc }).(ScalingGroupsScalingGroupServerGroupAttributeArrayOutput) } +// The number of stopped instances. +func (o ScalingGroupsScalingGroupOutput) StoppedInstanceCount() pulumi.IntOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroup) int { return v.StoppedInstanceCount }).(pulumi.IntOutput) +} + // The list of the subnet id to which the ENI is connected. func (o ScalingGroupsScalingGroupOutput) SubnetIds() pulumi.StringArrayOutput { return o.ApplyT(func(v ScalingGroupsScalingGroup) []string { return v.SubnetIds }).(pulumi.StringArrayOutput) @@ -1636,6 +1795,112 @@ func (o ScalingGroupsScalingGroupArrayOutput) Index(i pulumi.IntInput) ScalingGr }).(ScalingGroupsScalingGroupOutput) } +type ScalingGroupsScalingGroupLaunchTemplateOverride struct { + // The instance type. + InstanceType string `pulumi:"instanceType"` + // Weight of instance specifications. + WeightedCapacity int `pulumi:"weightedCapacity"` +} + +// ScalingGroupsScalingGroupLaunchTemplateOverrideInput is an input type that accepts ScalingGroupsScalingGroupLaunchTemplateOverrideArgs and ScalingGroupsScalingGroupLaunchTemplateOverrideOutput values. +// You can construct a concrete instance of `ScalingGroupsScalingGroupLaunchTemplateOverrideInput` via: +// +// ScalingGroupsScalingGroupLaunchTemplateOverrideArgs{...} +type ScalingGroupsScalingGroupLaunchTemplateOverrideInput interface { + pulumi.Input + + ToScalingGroupsScalingGroupLaunchTemplateOverrideOutput() ScalingGroupsScalingGroupLaunchTemplateOverrideOutput + ToScalingGroupsScalingGroupLaunchTemplateOverrideOutputWithContext(context.Context) ScalingGroupsScalingGroupLaunchTemplateOverrideOutput +} + +type ScalingGroupsScalingGroupLaunchTemplateOverrideArgs struct { + // The instance type. + InstanceType pulumi.StringInput `pulumi:"instanceType"` + // Weight of instance specifications. + WeightedCapacity pulumi.IntInput `pulumi:"weightedCapacity"` +} + +func (ScalingGroupsScalingGroupLaunchTemplateOverrideArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingGroupsScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (i ScalingGroupsScalingGroupLaunchTemplateOverrideArgs) ToScalingGroupsScalingGroupLaunchTemplateOverrideOutput() ScalingGroupsScalingGroupLaunchTemplateOverrideOutput { + return i.ToScalingGroupsScalingGroupLaunchTemplateOverrideOutputWithContext(context.Background()) +} + +func (i ScalingGroupsScalingGroupLaunchTemplateOverrideArgs) ToScalingGroupsScalingGroupLaunchTemplateOverrideOutputWithContext(ctx context.Context) ScalingGroupsScalingGroupLaunchTemplateOverrideOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) +} + +// ScalingGroupsScalingGroupLaunchTemplateOverrideArrayInput is an input type that accepts ScalingGroupsScalingGroupLaunchTemplateOverrideArray and ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput values. +// You can construct a concrete instance of `ScalingGroupsScalingGroupLaunchTemplateOverrideArrayInput` via: +// +// ScalingGroupsScalingGroupLaunchTemplateOverrideArray{ ScalingGroupsScalingGroupLaunchTemplateOverrideArgs{...} } +type ScalingGroupsScalingGroupLaunchTemplateOverrideArrayInput interface { + pulumi.Input + + ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput() ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput + ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutputWithContext(context.Context) ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput +} + +type ScalingGroupsScalingGroupLaunchTemplateOverrideArray []ScalingGroupsScalingGroupLaunchTemplateOverrideInput + +func (ScalingGroupsScalingGroupLaunchTemplateOverrideArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ScalingGroupsScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (i ScalingGroupsScalingGroupLaunchTemplateOverrideArray) ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput() ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput { + return i.ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutputWithContext(context.Background()) +} + +func (i ScalingGroupsScalingGroupLaunchTemplateOverrideArray) ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutputWithContext(ctx context.Context) ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput) +} + +type ScalingGroupsScalingGroupLaunchTemplateOverrideOutput struct{ *pulumi.OutputState } + +func (ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingGroupsScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) ToScalingGroupsScalingGroupLaunchTemplateOverrideOutput() ScalingGroupsScalingGroupLaunchTemplateOverrideOutput { + return o +} + +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) ToScalingGroupsScalingGroupLaunchTemplateOverrideOutputWithContext(ctx context.Context) ScalingGroupsScalingGroupLaunchTemplateOverrideOutput { + return o +} + +// The instance type. +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) InstanceType() pulumi.StringOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroupLaunchTemplateOverride) string { return v.InstanceType }).(pulumi.StringOutput) +} + +// Weight of instance specifications. +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) WeightedCapacity() pulumi.IntOutput { + return o.ApplyT(func(v ScalingGroupsScalingGroupLaunchTemplateOverride) int { return v.WeightedCapacity }).(pulumi.IntOutput) +} + +type ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput struct{ *pulumi.OutputState } + +func (ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ScalingGroupsScalingGroupLaunchTemplateOverride)(nil)).Elem() +} + +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput) ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput() ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput { + return o +} + +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput) ToScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutputWithContext(ctx context.Context) ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput { + return o +} + +func (o ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput) Index(i pulumi.IntInput) ScalingGroupsScalingGroupLaunchTemplateOverrideOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ScalingGroupsScalingGroupLaunchTemplateOverride { + return vs[0].([]ScalingGroupsScalingGroupLaunchTemplateOverride)[vs[1].(int)] + }).(ScalingGroupsScalingGroupLaunchTemplateOverrideOutput) +} + type ScalingGroupsScalingGroupServerGroupAttribute struct { // The load balancer id. LoadBalancerId string `pulumi:"loadBalancerId"` @@ -2035,9 +2300,171 @@ func (o ScalingInstancesScalingInstanceArrayOutput) Index(i pulumi.IntInput) Sca }).(ScalingInstancesScalingInstanceOutput) } +type ScalingLifecycleHookLifecycleCommand struct { + // Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + CommandId string `pulumi:"commandId"` + // Parameters and parameter values in batch job commands. + // The number of parameters ranges from 0 to 60. + Parameters *string `pulumi:"parameters"` +} + +// ScalingLifecycleHookLifecycleCommandInput is an input type that accepts ScalingLifecycleHookLifecycleCommandArgs and ScalingLifecycleHookLifecycleCommandOutput values. +// You can construct a concrete instance of `ScalingLifecycleHookLifecycleCommandInput` via: +// +// ScalingLifecycleHookLifecycleCommandArgs{...} +type ScalingLifecycleHookLifecycleCommandInput interface { + pulumi.Input + + ToScalingLifecycleHookLifecycleCommandOutput() ScalingLifecycleHookLifecycleCommandOutput + ToScalingLifecycleHookLifecycleCommandOutputWithContext(context.Context) ScalingLifecycleHookLifecycleCommandOutput +} + +type ScalingLifecycleHookLifecycleCommandArgs struct { + // Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + CommandId pulumi.StringInput `pulumi:"commandId"` + // Parameters and parameter values in batch job commands. + // The number of parameters ranges from 0 to 60. + Parameters pulumi.StringPtrInput `pulumi:"parameters"` +} + +func (ScalingLifecycleHookLifecycleCommandArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (i ScalingLifecycleHookLifecycleCommandArgs) ToScalingLifecycleHookLifecycleCommandOutput() ScalingLifecycleHookLifecycleCommandOutput { + return i.ToScalingLifecycleHookLifecycleCommandOutputWithContext(context.Background()) +} + +func (i ScalingLifecycleHookLifecycleCommandArgs) ToScalingLifecycleHookLifecycleCommandOutputWithContext(ctx context.Context) ScalingLifecycleHookLifecycleCommandOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingLifecycleHookLifecycleCommandOutput) +} + +func (i ScalingLifecycleHookLifecycleCommandArgs) ToScalingLifecycleHookLifecycleCommandPtrOutput() ScalingLifecycleHookLifecycleCommandPtrOutput { + return i.ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(context.Background()) +} + +func (i ScalingLifecycleHookLifecycleCommandArgs) ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(ctx context.Context) ScalingLifecycleHookLifecycleCommandPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingLifecycleHookLifecycleCommandOutput).ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(ctx) +} + +// ScalingLifecycleHookLifecycleCommandPtrInput is an input type that accepts ScalingLifecycleHookLifecycleCommandArgs, ScalingLifecycleHookLifecycleCommandPtr and ScalingLifecycleHookLifecycleCommandPtrOutput values. +// You can construct a concrete instance of `ScalingLifecycleHookLifecycleCommandPtrInput` via: +// +// ScalingLifecycleHookLifecycleCommandArgs{...} +// +// or: +// +// nil +type ScalingLifecycleHookLifecycleCommandPtrInput interface { + pulumi.Input + + ToScalingLifecycleHookLifecycleCommandPtrOutput() ScalingLifecycleHookLifecycleCommandPtrOutput + ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(context.Context) ScalingLifecycleHookLifecycleCommandPtrOutput +} + +type scalingLifecycleHookLifecycleCommandPtrType ScalingLifecycleHookLifecycleCommandArgs + +func ScalingLifecycleHookLifecycleCommandPtr(v *ScalingLifecycleHookLifecycleCommandArgs) ScalingLifecycleHookLifecycleCommandPtrInput { + return (*scalingLifecycleHookLifecycleCommandPtrType)(v) +} + +func (*scalingLifecycleHookLifecycleCommandPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ScalingLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (i *scalingLifecycleHookLifecycleCommandPtrType) ToScalingLifecycleHookLifecycleCommandPtrOutput() ScalingLifecycleHookLifecycleCommandPtrOutput { + return i.ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(context.Background()) +} + +func (i *scalingLifecycleHookLifecycleCommandPtrType) ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(ctx context.Context) ScalingLifecycleHookLifecycleCommandPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingLifecycleHookLifecycleCommandPtrOutput) +} + +type ScalingLifecycleHookLifecycleCommandOutput struct{ *pulumi.OutputState } + +func (ScalingLifecycleHookLifecycleCommandOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (o ScalingLifecycleHookLifecycleCommandOutput) ToScalingLifecycleHookLifecycleCommandOutput() ScalingLifecycleHookLifecycleCommandOutput { + return o +} + +func (o ScalingLifecycleHookLifecycleCommandOutput) ToScalingLifecycleHookLifecycleCommandOutputWithContext(ctx context.Context) ScalingLifecycleHookLifecycleCommandOutput { + return o +} + +func (o ScalingLifecycleHookLifecycleCommandOutput) ToScalingLifecycleHookLifecycleCommandPtrOutput() ScalingLifecycleHookLifecycleCommandPtrOutput { + return o.ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(context.Background()) +} + +func (o ScalingLifecycleHookLifecycleCommandOutput) ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(ctx context.Context) ScalingLifecycleHookLifecycleCommandPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ScalingLifecycleHookLifecycleCommand) *ScalingLifecycleHookLifecycleCommand { + return &v + }).(ScalingLifecycleHookLifecycleCommandPtrOutput) +} + +// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. +func (o ScalingLifecycleHookLifecycleCommandOutput) CommandId() pulumi.StringOutput { + return o.ApplyT(func(v ScalingLifecycleHookLifecycleCommand) string { return v.CommandId }).(pulumi.StringOutput) +} + +// Parameters and parameter values in batch job commands. +// The number of parameters ranges from 0 to 60. +func (o ScalingLifecycleHookLifecycleCommandOutput) Parameters() pulumi.StringPtrOutput { + return o.ApplyT(func(v ScalingLifecycleHookLifecycleCommand) *string { return v.Parameters }).(pulumi.StringPtrOutput) +} + +type ScalingLifecycleHookLifecycleCommandPtrOutput struct{ *pulumi.OutputState } + +func (ScalingLifecycleHookLifecycleCommandPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ScalingLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (o ScalingLifecycleHookLifecycleCommandPtrOutput) ToScalingLifecycleHookLifecycleCommandPtrOutput() ScalingLifecycleHookLifecycleCommandPtrOutput { + return o +} + +func (o ScalingLifecycleHookLifecycleCommandPtrOutput) ToScalingLifecycleHookLifecycleCommandPtrOutputWithContext(ctx context.Context) ScalingLifecycleHookLifecycleCommandPtrOutput { + return o +} + +func (o ScalingLifecycleHookLifecycleCommandPtrOutput) Elem() ScalingLifecycleHookLifecycleCommandOutput { + return o.ApplyT(func(v *ScalingLifecycleHookLifecycleCommand) ScalingLifecycleHookLifecycleCommand { + if v != nil { + return *v + } + var ret ScalingLifecycleHookLifecycleCommand + return ret + }).(ScalingLifecycleHookLifecycleCommandOutput) +} + +// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. +func (o ScalingLifecycleHookLifecycleCommandPtrOutput) CommandId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ScalingLifecycleHookLifecycleCommand) *string { + if v == nil { + return nil + } + return &v.CommandId + }).(pulumi.StringPtrOutput) +} + +// Parameters and parameter values in batch job commands. +// The number of parameters ranges from 0 to 60. +func (o ScalingLifecycleHookLifecycleCommandPtrOutput) Parameters() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ScalingLifecycleHookLifecycleCommand) *string { + if v == nil { + return nil + } + return v.Parameters + }).(pulumi.StringPtrOutput) +} + type ScalingLifecycleHooksLifecycleHook struct { // The id of the lifecycle hook. Id string `pulumi:"id"` + // Batch job command. + LifecycleCommands []ScalingLifecycleHooksLifecycleHookLifecycleCommand `pulumi:"lifecycleCommands"` // The id of the lifecycle hook. LifecycleHookId string `pulumi:"lifecycleHookId"` // The name of the lifecycle hook. @@ -2066,6 +2493,8 @@ type ScalingLifecycleHooksLifecycleHookInput interface { type ScalingLifecycleHooksLifecycleHookArgs struct { // The id of the lifecycle hook. Id pulumi.StringInput `pulumi:"id"` + // Batch job command. + LifecycleCommands ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayInput `pulumi:"lifecycleCommands"` // The id of the lifecycle hook. LifecycleHookId pulumi.StringInput `pulumi:"lifecycleHookId"` // The name of the lifecycle hook. @@ -2136,6 +2565,13 @@ func (o ScalingLifecycleHooksLifecycleHookOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v ScalingLifecycleHooksLifecycleHook) string { return v.Id }).(pulumi.StringOutput) } +// Batch job command. +func (o ScalingLifecycleHooksLifecycleHookOutput) LifecycleCommands() ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput { + return o.ApplyT(func(v ScalingLifecycleHooksLifecycleHook) []ScalingLifecycleHooksLifecycleHookLifecycleCommand { + return v.LifecycleCommands + }).(ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput) +} + // The id of the lifecycle hook. func (o ScalingLifecycleHooksLifecycleHookOutput) LifecycleHookId() pulumi.StringOutput { return o.ApplyT(func(v ScalingLifecycleHooksLifecycleHook) string { return v.LifecycleHookId }).(pulumi.StringOutput) @@ -2186,6 +2622,115 @@ func (o ScalingLifecycleHooksLifecycleHookArrayOutput) Index(i pulumi.IntInput) }).(ScalingLifecycleHooksLifecycleHookOutput) } +type ScalingLifecycleHooksLifecycleHookLifecycleCommand struct { + // Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + CommandId string `pulumi:"commandId"` + // Parameters and parameter values in batch job commands. + // The number of parameters ranges from 0 to 60. + Parameters string `pulumi:"parameters"` +} + +// ScalingLifecycleHooksLifecycleHookLifecycleCommandInput is an input type that accepts ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs and ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput values. +// You can construct a concrete instance of `ScalingLifecycleHooksLifecycleHookLifecycleCommandInput` via: +// +// ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs{...} +type ScalingLifecycleHooksLifecycleHookLifecycleCommandInput interface { + pulumi.Input + + ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutput() ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput + ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutputWithContext(context.Context) ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput +} + +type ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs struct { + // Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + CommandId pulumi.StringInput `pulumi:"commandId"` + // Parameters and parameter values in batch job commands. + // The number of parameters ranges from 0 to 60. + Parameters pulumi.StringInput `pulumi:"parameters"` +} + +func (ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingLifecycleHooksLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (i ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs) ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutput() ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput { + return i.ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutputWithContext(context.Background()) +} + +func (i ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs) ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutputWithContext(ctx context.Context) ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) +} + +// ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayInput is an input type that accepts ScalingLifecycleHooksLifecycleHookLifecycleCommandArray and ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput values. +// You can construct a concrete instance of `ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayInput` via: +// +// ScalingLifecycleHooksLifecycleHookLifecycleCommandArray{ ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs{...} } +type ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayInput interface { + pulumi.Input + + ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput() ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput + ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutputWithContext(context.Context) ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput +} + +type ScalingLifecycleHooksLifecycleHookLifecycleCommandArray []ScalingLifecycleHooksLifecycleHookLifecycleCommandInput + +func (ScalingLifecycleHooksLifecycleHookLifecycleCommandArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ScalingLifecycleHooksLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (i ScalingLifecycleHooksLifecycleHookLifecycleCommandArray) ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput() ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput { + return i.ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutputWithContext(context.Background()) +} + +func (i ScalingLifecycleHooksLifecycleHookLifecycleCommandArray) ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutputWithContext(ctx context.Context) ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput) +} + +type ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput struct{ *pulumi.OutputState } + +func (ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ScalingLifecycleHooksLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutput() ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput { + return o +} + +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) ToScalingLifecycleHooksLifecycleHookLifecycleCommandOutputWithContext(ctx context.Context) ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput { + return o +} + +// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) CommandId() pulumi.StringOutput { + return o.ApplyT(func(v ScalingLifecycleHooksLifecycleHookLifecycleCommand) string { return v.CommandId }).(pulumi.StringOutput) +} + +// Parameters and parameter values in batch job commands. +// The number of parameters ranges from 0 to 60. +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) Parameters() pulumi.StringOutput { + return o.ApplyT(func(v ScalingLifecycleHooksLifecycleHookLifecycleCommand) string { return v.Parameters }).(pulumi.StringOutput) +} + +type ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput struct{ *pulumi.OutputState } + +func (ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ScalingLifecycleHooksLifecycleHookLifecycleCommand)(nil)).Elem() +} + +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput) ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput() ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput { + return o +} + +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput) ToScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutputWithContext(ctx context.Context) ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput { + return o +} + +func (o ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput) Index(i pulumi.IntInput) ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ScalingLifecycleHooksLifecycleHookLifecycleCommand { + return vs[0].([]ScalingLifecycleHooksLifecycleHookLifecycleCommand)[vs[1].(int)] + }).(ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput) +} + type ScalingPoliciesScalingPolicy struct { // The adjustment type of the scaling policy. AdjustmentType string `pulumi:"adjustmentType"` @@ -2469,20 +3014,28 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ScalingConfigurationsScalingConfigurationTagArrayInput)(nil)).Elem(), ScalingConfigurationsScalingConfigurationTagArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingConfigurationsScalingConfigurationVolumeInput)(nil)).Elem(), ScalingConfigurationsScalingConfigurationVolumeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingConfigurationsScalingConfigurationVolumeArrayInput)(nil)).Elem(), ScalingConfigurationsScalingConfigurationVolumeArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupLaunchTemplateOverrideInput)(nil)).Elem(), ScalingGroupLaunchTemplateOverrideArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupLaunchTemplateOverrideArrayInput)(nil)).Elem(), ScalingGroupLaunchTemplateOverrideArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupServerGroupAttributeInput)(nil)).Elem(), ScalingGroupServerGroupAttributeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupServerGroupAttributeArrayInput)(nil)).Elem(), ScalingGroupServerGroupAttributeArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupTagInput)(nil)).Elem(), ScalingGroupTagArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupTagArrayInput)(nil)).Elem(), ScalingGroupTagArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupInput)(nil)).Elem(), ScalingGroupsScalingGroupArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupArrayInput)(nil)).Elem(), ScalingGroupsScalingGroupArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupLaunchTemplateOverrideInput)(nil)).Elem(), ScalingGroupsScalingGroupLaunchTemplateOverrideArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupLaunchTemplateOverrideArrayInput)(nil)).Elem(), ScalingGroupsScalingGroupLaunchTemplateOverrideArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupServerGroupAttributeInput)(nil)).Elem(), ScalingGroupsScalingGroupServerGroupAttributeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupServerGroupAttributeArrayInput)(nil)).Elem(), ScalingGroupsScalingGroupServerGroupAttributeArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupTagInput)(nil)).Elem(), ScalingGroupsScalingGroupTagArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingGroupsScalingGroupTagArrayInput)(nil)).Elem(), ScalingGroupsScalingGroupTagArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingInstancesScalingInstanceInput)(nil)).Elem(), ScalingInstancesScalingInstanceArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingInstancesScalingInstanceArrayInput)(nil)).Elem(), ScalingInstancesScalingInstanceArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingLifecycleHookLifecycleCommandInput)(nil)).Elem(), ScalingLifecycleHookLifecycleCommandArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingLifecycleHookLifecycleCommandPtrInput)(nil)).Elem(), ScalingLifecycleHookLifecycleCommandArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingLifecycleHooksLifecycleHookInput)(nil)).Elem(), ScalingLifecycleHooksLifecycleHookArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingLifecycleHooksLifecycleHookArrayInput)(nil)).Elem(), ScalingLifecycleHooksLifecycleHookArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingLifecycleHooksLifecycleHookLifecycleCommandInput)(nil)).Elem(), ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayInput)(nil)).Elem(), ScalingLifecycleHooksLifecycleHookLifecycleCommandArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingPoliciesScalingPolicyInput)(nil)).Elem(), ScalingPoliciesScalingPolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ScalingPoliciesScalingPolicyArrayInput)(nil)).Elem(), ScalingPoliciesScalingPolicyArray{}) pulumi.RegisterOutputType(ScalingActivitiesActivityOutput{}) @@ -2499,20 +3052,28 @@ func init() { pulumi.RegisterOutputType(ScalingConfigurationsScalingConfigurationTagArrayOutput{}) pulumi.RegisterOutputType(ScalingConfigurationsScalingConfigurationVolumeOutput{}) pulumi.RegisterOutputType(ScalingConfigurationsScalingConfigurationVolumeArrayOutput{}) + pulumi.RegisterOutputType(ScalingGroupLaunchTemplateOverrideOutput{}) + pulumi.RegisterOutputType(ScalingGroupLaunchTemplateOverrideArrayOutput{}) pulumi.RegisterOutputType(ScalingGroupServerGroupAttributeOutput{}) pulumi.RegisterOutputType(ScalingGroupServerGroupAttributeArrayOutput{}) pulumi.RegisterOutputType(ScalingGroupTagOutput{}) pulumi.RegisterOutputType(ScalingGroupTagArrayOutput{}) pulumi.RegisterOutputType(ScalingGroupsScalingGroupOutput{}) pulumi.RegisterOutputType(ScalingGroupsScalingGroupArrayOutput{}) + pulumi.RegisterOutputType(ScalingGroupsScalingGroupLaunchTemplateOverrideOutput{}) + pulumi.RegisterOutputType(ScalingGroupsScalingGroupLaunchTemplateOverrideArrayOutput{}) pulumi.RegisterOutputType(ScalingGroupsScalingGroupServerGroupAttributeOutput{}) pulumi.RegisterOutputType(ScalingGroupsScalingGroupServerGroupAttributeArrayOutput{}) pulumi.RegisterOutputType(ScalingGroupsScalingGroupTagOutput{}) pulumi.RegisterOutputType(ScalingGroupsScalingGroupTagArrayOutput{}) pulumi.RegisterOutputType(ScalingInstancesScalingInstanceOutput{}) pulumi.RegisterOutputType(ScalingInstancesScalingInstanceArrayOutput{}) + pulumi.RegisterOutputType(ScalingLifecycleHookLifecycleCommandOutput{}) + pulumi.RegisterOutputType(ScalingLifecycleHookLifecycleCommandPtrOutput{}) pulumi.RegisterOutputType(ScalingLifecycleHooksLifecycleHookOutput{}) pulumi.RegisterOutputType(ScalingLifecycleHooksLifecycleHookArrayOutput{}) + pulumi.RegisterOutputType(ScalingLifecycleHooksLifecycleHookLifecycleCommandOutput{}) + pulumi.RegisterOutputType(ScalingLifecycleHooksLifecycleHookLifecycleCommandArrayOutput{}) pulumi.RegisterOutputType(ScalingPoliciesScalingPolicyOutput{}) pulumi.RegisterOutputType(ScalingPoliciesScalingPolicyArrayOutput{}) } diff --git a/sdk/go/volcengine/autoscaling/scalingConfiguration.go b/sdk/go/volcengine/autoscaling/scalingConfiguration.go index 27209791..d1cc9b24 100644 --- a/sdk/go/volcengine/autoscaling/scalingConfiguration.go +++ b/sdk/go/volcengine/autoscaling/scalingConfiguration.go @@ -165,6 +165,10 @@ type ScalingConfiguration struct { InstanceName pulumi.StringOutput `pulumi:"instanceName"` // The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. InstanceTypes pulumi.StringArrayOutput `pulumi:"instanceTypes"` + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount pulumi.IntPtrOutput `pulumi:"ipv6AddressCount"` // The ECS key pair name which the scaling configuration set. KeyPairName pulumi.StringPtrOutput `pulumi:"keyPairName"` // The lifecycle state of the scaling configuration. @@ -273,6 +277,10 @@ type scalingConfigurationState struct { InstanceName *string `pulumi:"instanceName"` // The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. InstanceTypes []string `pulumi:"instanceTypes"` + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount *int `pulumi:"ipv6AddressCount"` // The ECS key pair name which the scaling configuration set. KeyPairName *string `pulumi:"keyPairName"` // The lifecycle state of the scaling configuration. @@ -324,6 +332,10 @@ type ScalingConfigurationState struct { InstanceName pulumi.StringPtrInput // The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. InstanceTypes pulumi.StringArrayInput + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount pulumi.IntPtrInput // The ECS key pair name which the scaling configuration set. KeyPairName pulumi.StringPtrInput // The lifecycle state of the scaling configuration. @@ -377,6 +389,10 @@ type scalingConfigurationArgs struct { InstanceName string `pulumi:"instanceName"` // The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. InstanceTypes []string `pulumi:"instanceTypes"` + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount *int `pulumi:"ipv6AddressCount"` // The ECS key pair name which the scaling configuration set. KeyPairName *string `pulumi:"keyPairName"` // The ECS password which the scaling configuration set. @@ -421,6 +437,10 @@ type ScalingConfigurationArgs struct { InstanceName pulumi.StringInput // The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. InstanceTypes pulumi.StringArrayInput + // Assign IPv6 address to instance network card. Possible values: + // 0: Do not assign IPv6 address. + // 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + Ipv6AddressCount pulumi.IntPtrInput // The ECS key pair name which the scaling configuration set. KeyPairName pulumi.StringPtrInput // The ECS password which the scaling configuration set. @@ -582,6 +602,13 @@ func (o ScalingConfigurationOutput) InstanceTypes() pulumi.StringArrayOutput { return o.ApplyT(func(v *ScalingConfiguration) pulumi.StringArrayOutput { return v.InstanceTypes }).(pulumi.StringArrayOutput) } +// Assign IPv6 address to instance network card. Possible values: +// 0: Do not assign IPv6 address. +// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. +func (o ScalingConfigurationOutput) Ipv6AddressCount() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ScalingConfiguration) pulumi.IntPtrOutput { return v.Ipv6AddressCount }).(pulumi.IntPtrOutput) +} + // The ECS key pair name which the scaling configuration set. func (o ScalingConfigurationOutput) KeyPairName() pulumi.StringPtrOutput { return o.ApplyT(func(v *ScalingConfiguration) pulumi.StringPtrOutput { return v.KeyPairName }).(pulumi.StringPtrOutput) diff --git a/sdk/go/volcengine/autoscaling/scalingGroup.go b/sdk/go/volcengine/autoscaling/scalingGroup.go index 243564a6..7052a7d2 100644 --- a/sdk/go/volcengine/autoscaling/scalingGroup.go +++ b/sdk/go/volcengine/autoscaling/scalingGroup.go @@ -104,20 +104,26 @@ type ScalingGroup struct { ActiveScalingConfigurationId pulumi.StringOutput `pulumi:"activeScalingConfigurationId"` // The create time of the scaling group. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` - // The list of db instance ids. + // ID of the RDS database instance. DbInstanceIds pulumi.StringArrayOutput `pulumi:"dbInstanceIds"` // The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. DefaultCooldown pulumi.IntOutput `pulumi:"defaultCooldown"` // The desire instance number of the scaling group. DesireInstanceNumber pulumi.IntOutput `pulumi:"desireInstanceNumber"` + // The health check type of the scaling group. + HealthCheckType pulumi.StringOutput `pulumi:"healthCheckType"` // The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. InstanceTerminatePolicy pulumi.StringOutput `pulumi:"instanceTerminatePolicy"` // The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. LaunchTemplateId pulumi.StringPtrOutput `pulumi:"launchTemplateId"` + // Specify instance specifications. + LaunchTemplateOverrides ScalingGroupLaunchTemplateOverrideArrayOutput `pulumi:"launchTemplateOverrides"` // The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. LaunchTemplateVersion pulumi.StringPtrOutput `pulumi:"launchTemplateVersion"` // The lifecycle state of the scaling group. LifecycleState pulumi.StringOutput `pulumi:"lifecycleState"` + // Grace period for health check of CLB instance in elastic group. + LoadBalancerHealthCheckGracePeriod pulumi.IntOutput `pulumi:"loadBalancerHealthCheckGracePeriod"` // The max instance number of the scaling group. Value range: 0 ~ 100. MaxInstanceNumber pulumi.IntOutput `pulumi:"maxInstanceNumber"` // The min instance number of the scaling group. Value range: 0 ~ 100. @@ -130,8 +136,14 @@ type ScalingGroup struct { ScalingGroupId pulumi.StringOutput `pulumi:"scalingGroupId"` // The name of the scaling group. ScalingGroupName pulumi.StringOutput `pulumi:"scalingGroupName"` + // Example recycling mode for the elastic group, with values: + // release (default): Release mode. + // recycle: Shutdown recycling mode. + ScalingMode pulumi.StringOutput `pulumi:"scalingMode"` // The load balancer server group attributes of the scaling group. ServerGroupAttributes ScalingGroupServerGroupAttributeArrayOutput `pulumi:"serverGroupAttributes"` + // The number of stopped instances. + StoppedInstanceCount pulumi.IntOutput `pulumi:"stoppedInstanceCount"` // The list of the subnet id to which the ENI is connected. SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"` // Tags. @@ -190,20 +202,26 @@ type scalingGroupState struct { ActiveScalingConfigurationId *string `pulumi:"activeScalingConfigurationId"` // The create time of the scaling group. CreatedAt *string `pulumi:"createdAt"` - // The list of db instance ids. + // ID of the RDS database instance. DbInstanceIds []string `pulumi:"dbInstanceIds"` // The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. DefaultCooldown *int `pulumi:"defaultCooldown"` // The desire instance number of the scaling group. DesireInstanceNumber *int `pulumi:"desireInstanceNumber"` + // The health check type of the scaling group. + HealthCheckType *string `pulumi:"healthCheckType"` // The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. InstanceTerminatePolicy *string `pulumi:"instanceTerminatePolicy"` // The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. LaunchTemplateId *string `pulumi:"launchTemplateId"` + // Specify instance specifications. + LaunchTemplateOverrides []ScalingGroupLaunchTemplateOverride `pulumi:"launchTemplateOverrides"` // The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. LaunchTemplateVersion *string `pulumi:"launchTemplateVersion"` // The lifecycle state of the scaling group. LifecycleState *string `pulumi:"lifecycleState"` + // Grace period for health check of CLB instance in elastic group. + LoadBalancerHealthCheckGracePeriod *int `pulumi:"loadBalancerHealthCheckGracePeriod"` // The max instance number of the scaling group. Value range: 0 ~ 100. MaxInstanceNumber *int `pulumi:"maxInstanceNumber"` // The min instance number of the scaling group. Value range: 0 ~ 100. @@ -216,8 +234,14 @@ type scalingGroupState struct { ScalingGroupId *string `pulumi:"scalingGroupId"` // The name of the scaling group. ScalingGroupName *string `pulumi:"scalingGroupName"` + // Example recycling mode for the elastic group, with values: + // release (default): Release mode. + // recycle: Shutdown recycling mode. + ScalingMode *string `pulumi:"scalingMode"` // The load balancer server group attributes of the scaling group. ServerGroupAttributes []ScalingGroupServerGroupAttribute `pulumi:"serverGroupAttributes"` + // The number of stopped instances. + StoppedInstanceCount *int `pulumi:"stoppedInstanceCount"` // The list of the subnet id to which the ENI is connected. SubnetIds []string `pulumi:"subnetIds"` // Tags. @@ -235,20 +259,26 @@ type ScalingGroupState struct { ActiveScalingConfigurationId pulumi.StringPtrInput // The create time of the scaling group. CreatedAt pulumi.StringPtrInput - // The list of db instance ids. + // ID of the RDS database instance. DbInstanceIds pulumi.StringArrayInput // The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. DefaultCooldown pulumi.IntPtrInput // The desire instance number of the scaling group. DesireInstanceNumber pulumi.IntPtrInput + // The health check type of the scaling group. + HealthCheckType pulumi.StringPtrInput // The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. InstanceTerminatePolicy pulumi.StringPtrInput // The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. LaunchTemplateId pulumi.StringPtrInput + // Specify instance specifications. + LaunchTemplateOverrides ScalingGroupLaunchTemplateOverrideArrayInput // The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. LaunchTemplateVersion pulumi.StringPtrInput // The lifecycle state of the scaling group. LifecycleState pulumi.StringPtrInput + // Grace period for health check of CLB instance in elastic group. + LoadBalancerHealthCheckGracePeriod pulumi.IntPtrInput // The max instance number of the scaling group. Value range: 0 ~ 100. MaxInstanceNumber pulumi.IntPtrInput // The min instance number of the scaling group. Value range: 0 ~ 100. @@ -261,8 +291,14 @@ type ScalingGroupState struct { ScalingGroupId pulumi.StringPtrInput // The name of the scaling group. ScalingGroupName pulumi.StringPtrInput + // Example recycling mode for the elastic group, with values: + // release (default): Release mode. + // recycle: Shutdown recycling mode. + ScalingMode pulumi.StringPtrInput // The load balancer server group attributes of the scaling group. ServerGroupAttributes ScalingGroupServerGroupAttributeArrayInput + // The number of stopped instances. + StoppedInstanceCount pulumi.IntPtrInput // The list of the subnet id to which the ENI is connected. SubnetIds pulumi.StringArrayInput // Tags. @@ -280,6 +316,8 @@ func (ScalingGroupState) ElementType() reflect.Type { } type scalingGroupArgs struct { + // ID of the RDS database instance. + DbInstanceIds []string `pulumi:"dbInstanceIds"` // The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. DefaultCooldown *int `pulumi:"defaultCooldown"` // The desire instance number of the scaling group. @@ -288,6 +326,8 @@ type scalingGroupArgs struct { InstanceTerminatePolicy *string `pulumi:"instanceTerminatePolicy"` // The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. LaunchTemplateId *string `pulumi:"launchTemplateId"` + // Specify instance specifications. + LaunchTemplateOverrides []ScalingGroupLaunchTemplateOverride `pulumi:"launchTemplateOverrides"` // The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. LaunchTemplateVersion *string `pulumi:"launchTemplateVersion"` // The max instance number of the scaling group. Value range: 0 ~ 100. @@ -300,6 +340,10 @@ type scalingGroupArgs struct { ProjectName *string `pulumi:"projectName"` // The name of the scaling group. ScalingGroupName string `pulumi:"scalingGroupName"` + // Example recycling mode for the elastic group, with values: + // release (default): Release mode. + // recycle: Shutdown recycling mode. + ScalingMode *string `pulumi:"scalingMode"` // The load balancer server group attributes of the scaling group. ServerGroupAttributes []ScalingGroupServerGroupAttribute `pulumi:"serverGroupAttributes"` // The list of the subnet id to which the ENI is connected. @@ -310,6 +354,8 @@ type scalingGroupArgs struct { // The set of arguments for constructing a ScalingGroup resource. type ScalingGroupArgs struct { + // ID of the RDS database instance. + DbInstanceIds pulumi.StringArrayInput // The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. DefaultCooldown pulumi.IntPtrInput // The desire instance number of the scaling group. @@ -318,6 +364,8 @@ type ScalingGroupArgs struct { InstanceTerminatePolicy pulumi.StringPtrInput // The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. LaunchTemplateId pulumi.StringPtrInput + // Specify instance specifications. + LaunchTemplateOverrides ScalingGroupLaunchTemplateOverrideArrayInput // The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. LaunchTemplateVersion pulumi.StringPtrInput // The max instance number of the scaling group. Value range: 0 ~ 100. @@ -330,6 +378,10 @@ type ScalingGroupArgs struct { ProjectName pulumi.StringPtrInput // The name of the scaling group. ScalingGroupName pulumi.StringInput + // Example recycling mode for the elastic group, with values: + // release (default): Release mode. + // recycle: Shutdown recycling mode. + ScalingMode pulumi.StringPtrInput // The load balancer server group attributes of the scaling group. ServerGroupAttributes ScalingGroupServerGroupAttributeArrayInput // The list of the subnet id to which the ENI is connected. @@ -435,7 +487,7 @@ func (o ScalingGroupOutput) CreatedAt() pulumi.StringOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } -// The list of db instance ids. +// ID of the RDS database instance. func (o ScalingGroupOutput) DbInstanceIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringArrayOutput { return v.DbInstanceIds }).(pulumi.StringArrayOutput) } @@ -450,6 +502,11 @@ func (o ScalingGroupOutput) DesireInstanceNumber() pulumi.IntOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.IntOutput { return v.DesireInstanceNumber }).(pulumi.IntOutput) } +// The health check type of the scaling group. +func (o ScalingGroupOutput) HealthCheckType() pulumi.StringOutput { + return o.ApplyT(func(v *ScalingGroup) pulumi.StringOutput { return v.HealthCheckType }).(pulumi.StringOutput) +} + // The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. func (o ScalingGroupOutput) InstanceTerminatePolicy() pulumi.StringOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringOutput { return v.InstanceTerminatePolicy }).(pulumi.StringOutput) @@ -460,6 +517,11 @@ func (o ScalingGroupOutput) LaunchTemplateId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringPtrOutput { return v.LaunchTemplateId }).(pulumi.StringPtrOutput) } +// Specify instance specifications. +func (o ScalingGroupOutput) LaunchTemplateOverrides() ScalingGroupLaunchTemplateOverrideArrayOutput { + return o.ApplyT(func(v *ScalingGroup) ScalingGroupLaunchTemplateOverrideArrayOutput { return v.LaunchTemplateOverrides }).(ScalingGroupLaunchTemplateOverrideArrayOutput) +} + // The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. func (o ScalingGroupOutput) LaunchTemplateVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringPtrOutput { return v.LaunchTemplateVersion }).(pulumi.StringPtrOutput) @@ -470,6 +532,11 @@ func (o ScalingGroupOutput) LifecycleState() pulumi.StringOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringOutput { return v.LifecycleState }).(pulumi.StringOutput) } +// Grace period for health check of CLB instance in elastic group. +func (o ScalingGroupOutput) LoadBalancerHealthCheckGracePeriod() pulumi.IntOutput { + return o.ApplyT(func(v *ScalingGroup) pulumi.IntOutput { return v.LoadBalancerHealthCheckGracePeriod }).(pulumi.IntOutput) +} + // The max instance number of the scaling group. Value range: 0 ~ 100. func (o ScalingGroupOutput) MaxInstanceNumber() pulumi.IntOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.IntOutput { return v.MaxInstanceNumber }).(pulumi.IntOutput) @@ -500,11 +567,23 @@ func (o ScalingGroupOutput) ScalingGroupName() pulumi.StringOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringOutput { return v.ScalingGroupName }).(pulumi.StringOutput) } +// Example recycling mode for the elastic group, with values: +// release (default): Release mode. +// recycle: Shutdown recycling mode. +func (o ScalingGroupOutput) ScalingMode() pulumi.StringOutput { + return o.ApplyT(func(v *ScalingGroup) pulumi.StringOutput { return v.ScalingMode }).(pulumi.StringOutput) +} + // The load balancer server group attributes of the scaling group. func (o ScalingGroupOutput) ServerGroupAttributes() ScalingGroupServerGroupAttributeArrayOutput { return o.ApplyT(func(v *ScalingGroup) ScalingGroupServerGroupAttributeArrayOutput { return v.ServerGroupAttributes }).(ScalingGroupServerGroupAttributeArrayOutput) } +// The number of stopped instances. +func (o ScalingGroupOutput) StoppedInstanceCount() pulumi.IntOutput { + return o.ApplyT(func(v *ScalingGroup) pulumi.IntOutput { return v.StoppedInstanceCount }).(pulumi.IntOutput) +} + // The list of the subnet id to which the ENI is connected. func (o ScalingGroupOutput) SubnetIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *ScalingGroup) pulumi.StringArrayOutput { return v.SubnetIds }).(pulumi.StringArrayOutput) diff --git a/sdk/go/volcengine/autoscaling/scalingGroups.go b/sdk/go/volcengine/autoscaling/scalingGroups.go index 2c878dec..f867bcb9 100644 --- a/sdk/go/volcengine/autoscaling/scalingGroups.go +++ b/sdk/go/volcengine/autoscaling/scalingGroups.go @@ -107,6 +107,8 @@ type ScalingGroupsArgs struct { NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results. OutputFile *string `pulumi:"outputFile"` + // The project name of the scaling group. + ProjectName *string `pulumi:"projectName"` // A list of scaling group names. ScalingGroupNames []string `pulumi:"scalingGroupNames"` } @@ -114,10 +116,12 @@ type ScalingGroupsArgs struct { // A collection of values returned by ScalingGroups. type ScalingGroupsResult struct { // The provider-assigned unique ID for this managed resource. - Id string `pulumi:"id"` - Ids []string `pulumi:"ids"` - NameRegex *string `pulumi:"nameRegex"` - OutputFile *string `pulumi:"outputFile"` + Id string `pulumi:"id"` + Ids []string `pulumi:"ids"` + NameRegex *string `pulumi:"nameRegex"` + OutputFile *string `pulumi:"outputFile"` + // The ProjectName of scaling group. + ProjectName *string `pulumi:"projectName"` ScalingGroupNames []string `pulumi:"scalingGroupNames"` // The collection of scaling group query. ScalingGroups []ScalingGroupsScalingGroup `pulumi:"scalingGroups"` @@ -146,6 +150,8 @@ type ScalingGroupsOutputArgs struct { NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results. OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` + // The project name of the scaling group. + ProjectName pulumi.StringPtrInput `pulumi:"projectName"` // A list of scaling group names. ScalingGroupNames pulumi.StringArrayInput `pulumi:"scalingGroupNames"` } @@ -186,6 +192,11 @@ func (o ScalingGroupsResultOutput) OutputFile() pulumi.StringPtrOutput { return o.ApplyT(func(v ScalingGroupsResult) *string { return v.OutputFile }).(pulumi.StringPtrOutput) } +// The ProjectName of scaling group. +func (o ScalingGroupsResultOutput) ProjectName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ScalingGroupsResult) *string { return v.ProjectName }).(pulumi.StringPtrOutput) +} + func (o ScalingGroupsResultOutput) ScalingGroupNames() pulumi.StringArrayOutput { return o.ApplyT(func(v ScalingGroupsResult) []string { return v.ScalingGroupNames }).(pulumi.StringArrayOutput) } diff --git a/sdk/go/volcengine/autoscaling/scalingLifecycleHook.go b/sdk/go/volcengine/autoscaling/scalingLifecycleHook.go index 75f6d233..220486bc 100644 --- a/sdk/go/volcengine/autoscaling/scalingLifecycleHook.go +++ b/sdk/go/volcengine/autoscaling/scalingLifecycleHook.go @@ -49,6 +49,16 @@ import ( // if err != nil { // return err // } +// _, err = ecs.NewCommand(ctx, "fooCommand", &ecs.CommandArgs{ +// Description: pulumi.String("tf"), +// WorkingDir: pulumi.String("/home"), +// Username: pulumi.String("root"), +// Timeout: pulumi.Int(100), +// CommandContent: pulumi.String("IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi"), +// }) +// if err != nil { +// return err +// } // fooScalingGroup, err := autoscaling.NewScalingGroup(ctx, "fooScalingGroup", &autoscaling.ScalingGroupArgs{ // ScalingGroupName: pulumi.String("acc-test-scaling-group-lifecycle"), // SubnetIds: pulumi.StringArray{ @@ -66,9 +76,9 @@ import ( // } // _, err = autoscaling.NewScalingLifecycleHook(ctx, "fooScalingLifecycleHook", &autoscaling.ScalingLifecycleHookArgs{ // LifecycleHookName: pulumi.String("acc-test-lifecycle"), -// LifecycleHookPolicy: pulumi.String("CONTINUE"), -// LifecycleHookTimeout: pulumi.Int(30), -// LifecycleHookType: pulumi.String("SCALE_IN"), +// LifecycleHookPolicy: pulumi.String("ROLLBACK"), +// LifecycleHookTimeout: pulumi.Int(300), +// LifecycleHookType: pulumi.String("SCALE_OUT"), // ScalingGroupId: fooScalingGroup.ID(), // }) // if err != nil { @@ -92,11 +102,13 @@ import ( type ScalingLifecycleHook struct { pulumi.CustomResourceState + // Batch job command. + LifecycleCommand ScalingLifecycleHookLifecycleCommandPtrOutput `pulumi:"lifecycleCommand"` // The id of the lifecycle hook. LifecycleHookId pulumi.StringOutput `pulumi:"lifecycleHookId"` // The name of the lifecycle hook. LifecycleHookName pulumi.StringOutput `pulumi:"lifecycleHookName"` - // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. LifecycleHookPolicy pulumi.StringOutput `pulumi:"lifecycleHookPolicy"` // The timeout of the lifecycle hook. LifecycleHookTimeout pulumi.IntOutput `pulumi:"lifecycleHookTimeout"` @@ -151,11 +163,13 @@ func GetScalingLifecycleHook(ctx *pulumi.Context, // Input properties used for looking up and filtering ScalingLifecycleHook resources. type scalingLifecycleHookState struct { + // Batch job command. + LifecycleCommand *ScalingLifecycleHookLifecycleCommand `pulumi:"lifecycleCommand"` // The id of the lifecycle hook. LifecycleHookId *string `pulumi:"lifecycleHookId"` // The name of the lifecycle hook. LifecycleHookName *string `pulumi:"lifecycleHookName"` - // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. LifecycleHookPolicy *string `pulumi:"lifecycleHookPolicy"` // The timeout of the lifecycle hook. LifecycleHookTimeout *int `pulumi:"lifecycleHookTimeout"` @@ -166,11 +180,13 @@ type scalingLifecycleHookState struct { } type ScalingLifecycleHookState struct { + // Batch job command. + LifecycleCommand ScalingLifecycleHookLifecycleCommandPtrInput // The id of the lifecycle hook. LifecycleHookId pulumi.StringPtrInput // The name of the lifecycle hook. LifecycleHookName pulumi.StringPtrInput - // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. LifecycleHookPolicy pulumi.StringPtrInput // The timeout of the lifecycle hook. LifecycleHookTimeout pulumi.IntPtrInput @@ -185,9 +201,11 @@ func (ScalingLifecycleHookState) ElementType() reflect.Type { } type scalingLifecycleHookArgs struct { + // Batch job command. + LifecycleCommand *ScalingLifecycleHookLifecycleCommand `pulumi:"lifecycleCommand"` // The name of the lifecycle hook. LifecycleHookName string `pulumi:"lifecycleHookName"` - // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. LifecycleHookPolicy string `pulumi:"lifecycleHookPolicy"` // The timeout of the lifecycle hook. LifecycleHookTimeout int `pulumi:"lifecycleHookTimeout"` @@ -199,9 +217,11 @@ type scalingLifecycleHookArgs struct { // The set of arguments for constructing a ScalingLifecycleHook resource. type ScalingLifecycleHookArgs struct { + // Batch job command. + LifecycleCommand ScalingLifecycleHookLifecycleCommandPtrInput // The name of the lifecycle hook. LifecycleHookName pulumi.StringInput - // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + // The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. LifecycleHookPolicy pulumi.StringInput // The timeout of the lifecycle hook. LifecycleHookTimeout pulumi.IntInput @@ -298,6 +318,11 @@ func (o ScalingLifecycleHookOutput) ToScalingLifecycleHookOutputWithContext(ctx return o } +// Batch job command. +func (o ScalingLifecycleHookOutput) LifecycleCommand() ScalingLifecycleHookLifecycleCommandPtrOutput { + return o.ApplyT(func(v *ScalingLifecycleHook) ScalingLifecycleHookLifecycleCommandPtrOutput { return v.LifecycleCommand }).(ScalingLifecycleHookLifecycleCommandPtrOutput) +} + // The id of the lifecycle hook. func (o ScalingLifecycleHookOutput) LifecycleHookId() pulumi.StringOutput { return o.ApplyT(func(v *ScalingLifecycleHook) pulumi.StringOutput { return v.LifecycleHookId }).(pulumi.StringOutput) @@ -308,7 +333,7 @@ func (o ScalingLifecycleHookOutput) LifecycleHookName() pulumi.StringOutput { return o.ApplyT(func(v *ScalingLifecycleHook) pulumi.StringOutput { return v.LifecycleHookName }).(pulumi.StringOutput) } -// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. +// The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. func (o ScalingLifecycleHookOutput) LifecycleHookPolicy() pulumi.StringOutput { return o.ApplyT(func(v *ScalingLifecycleHook) pulumi.StringOutput { return v.LifecycleHookPolicy }).(pulumi.StringOutput) } diff --git a/sdk/go/volcengine/mongodb/mongoAllowList.go b/sdk/go/volcengine/mongodb/mongoAllowList.go index cc486db3..610c15c4 100644 --- a/sdk/go/volcengine/mongodb/mongoAllowList.go +++ b/sdk/go/volcengine/mongodb/mongoAllowList.go @@ -62,8 +62,6 @@ type MongoAllowList struct { AllowListName pulumi.StringOutput `pulumi:"allowListName"` // The IP address type of allow list, valid value contains `IPv4`. AllowListType pulumi.StringPtrOutput `pulumi:"allowListType"` - // The modify mode. Only support Cover mode. - ModifyMode pulumi.StringPtrOutput `pulumi:"modifyMode"` } // NewMongoAllowList registers a new resource with the given unique name, arguments, and options. @@ -110,8 +108,6 @@ type mongoAllowListState struct { AllowListName *string `pulumi:"allowListName"` // The IP address type of allow list, valid value contains `IPv4`. AllowListType *string `pulumi:"allowListType"` - // The modify mode. Only support Cover mode. - ModifyMode *string `pulumi:"modifyMode"` } type MongoAllowListState struct { @@ -123,8 +119,6 @@ type MongoAllowListState struct { AllowListName pulumi.StringPtrInput // The IP address type of allow list, valid value contains `IPv4`. AllowListType pulumi.StringPtrInput - // The modify mode. Only support Cover mode. - ModifyMode pulumi.StringPtrInput } func (MongoAllowListState) ElementType() reflect.Type { @@ -140,8 +134,6 @@ type mongoAllowListArgs struct { AllowListName string `pulumi:"allowListName"` // The IP address type of allow list, valid value contains `IPv4`. AllowListType *string `pulumi:"allowListType"` - // The modify mode. Only support Cover mode. - ModifyMode *string `pulumi:"modifyMode"` } // The set of arguments for constructing a MongoAllowList resource. @@ -154,8 +146,6 @@ type MongoAllowListArgs struct { AllowListName pulumi.StringInput // The IP address type of allow list, valid value contains `IPv4`. AllowListType pulumi.StringPtrInput - // The modify mode. Only support Cover mode. - ModifyMode pulumi.StringPtrInput } func (MongoAllowListArgs) ElementType() reflect.Type { @@ -265,11 +255,6 @@ func (o MongoAllowListOutput) AllowListType() pulumi.StringPtrOutput { return o.ApplyT(func(v *MongoAllowList) pulumi.StringPtrOutput { return v.AllowListType }).(pulumi.StringPtrOutput) } -// The modify mode. Only support Cover mode. -func (o MongoAllowListOutput) ModifyMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *MongoAllowList) pulumi.StringPtrOutput { return v.ModifyMode }).(pulumi.StringPtrOutput) -} - type MongoAllowListArrayOutput struct{ *pulumi.OutputState } func (MongoAllowListArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/volcengine/vke/nodePool.go b/sdk/go/volcengine/vke/nodePool.go index c8d3dabd..68aa2f86 100644 --- a/sdk/go/volcengine/vke/nodePool.go +++ b/sdk/go/volcengine/vke/nodePool.go @@ -121,12 +121,12 @@ import ( // ImageId: "TODO: For expression"[0], // SystemVolume: &vke.NodePoolNodeConfigSystemVolumeArgs{ // Type: pulumi.String("ESSD_PL0"), -// Size: pulumi.Int(60), +// Size: pulumi.Int(80), // }, // DataVolumes: vke.NodePoolNodeConfigDataVolumeArray{ // &vke.NodePoolNodeConfigDataVolumeArgs{ // Type: pulumi.String("ESSD_PL0"), -// Size: pulumi.Int(60), +// Size: pulumi.Int(80), // MountPoint: pulumi.String("/tf1"), // }, // &vke.NodePoolNodeConfigDataVolumeArgs{ @@ -147,7 +147,7 @@ import ( // fooSecurityGroup.ID(), // }, // }, -// AdditionalContainerStorageEnabled: pulumi.Bool(true), +// AdditionalContainerStorageEnabled: pulumi.Bool(false), // InstanceChargeType: pulumi.String("PostPaid"), // NamePrefix: pulumi.String("acc-test"), // EcsTags: vke.NodePoolNodeConfigEcsTagArray{ diff --git a/sdk/go/volcengine/vke/pulumiTypes.go b/sdk/go/volcengine/vke/pulumiTypes.go index f42edd57..5c039ff0 100644 --- a/sdk/go/volcengine/vke/pulumiTypes.go +++ b/sdk/go/volcengine/vke/pulumiTypes.go @@ -7696,9 +7696,9 @@ func (o NodePoolNodeConfigPtrOutput) SystemVolume() NodePoolNodeConfigSystemVolu type NodePoolNodeConfigDataVolume struct { // The target mount directory of the disk. Must start with `/`. MountPoint *string `pulumi:"mountPoint"` - // The Size of DataVolumes, the value range in 20~32768. + // The Size of DataVolumes, the value range in 20~32768. Default value is `20`. Size *int `pulumi:"size"` - // The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + // The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. Type *string `pulumi:"type"` } @@ -7716,9 +7716,9 @@ type NodePoolNodeConfigDataVolumeInput interface { type NodePoolNodeConfigDataVolumeArgs struct { // The target mount directory of the disk. Must start with `/`. MountPoint pulumi.StringPtrInput `pulumi:"mountPoint"` - // The Size of DataVolumes, the value range in 20~32768. + // The Size of DataVolumes, the value range in 20~32768. Default value is `20`. Size pulumi.IntPtrInput `pulumi:"size"` - // The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + // The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. Type pulumi.StringPtrInput `pulumi:"type"` } @@ -7778,12 +7778,12 @@ func (o NodePoolNodeConfigDataVolumeOutput) MountPoint() pulumi.StringPtrOutput return o.ApplyT(func(v NodePoolNodeConfigDataVolume) *string { return v.MountPoint }).(pulumi.StringPtrOutput) } -// The Size of DataVolumes, the value range in 20~32768. +// The Size of DataVolumes, the value range in 20~32768. Default value is `20`. func (o NodePoolNodeConfigDataVolumeOutput) Size() pulumi.IntPtrOutput { return o.ApplyT(func(v NodePoolNodeConfigDataVolume) *int { return v.Size }).(pulumi.IntPtrOutput) } -// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. +// The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. func (o NodePoolNodeConfigDataVolumeOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v NodePoolNodeConfigDataVolume) *string { return v.Type }).(pulumi.StringPtrOutput) } diff --git a/sdk/nodejs/autoscaling/scalingConfiguration.ts b/sdk/nodejs/autoscaling/scalingConfiguration.ts index 0927f47c..a0e72ac6 100644 --- a/sdk/nodejs/autoscaling/scalingConfiguration.ts +++ b/sdk/nodejs/autoscaling/scalingConfiguration.ts @@ -164,6 +164,12 @@ export class ScalingConfiguration extends pulumi.CustomResource { * The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. */ public readonly instanceTypes!: pulumi.Output; + /** + * Assign IPv6 address to instance network card. Possible values: + * 0: Do not assign IPv6 address. + * 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + */ + public readonly ipv6AddressCount!: pulumi.Output; /** * The ECS key pair name which the scaling configuration set. */ @@ -244,6 +250,7 @@ export class ScalingConfiguration extends pulumi.CustomResource { resourceInputs["instanceDescription"] = state ? state.instanceDescription : undefined; resourceInputs["instanceName"] = state ? state.instanceName : undefined; resourceInputs["instanceTypes"] = state ? state.instanceTypes : undefined; + resourceInputs["ipv6AddressCount"] = state ? state.ipv6AddressCount : undefined; resourceInputs["keyPairName"] = state ? state.keyPairName : undefined; resourceInputs["lifecycleState"] = state ? state.lifecycleState : undefined; resourceInputs["password"] = state ? state.password : undefined; @@ -290,6 +297,7 @@ export class ScalingConfiguration extends pulumi.CustomResource { resourceInputs["instanceDescription"] = args ? args.instanceDescription : undefined; resourceInputs["instanceName"] = args ? args.instanceName : undefined; resourceInputs["instanceTypes"] = args ? args.instanceTypes : undefined; + resourceInputs["ipv6AddressCount"] = args ? args.ipv6AddressCount : undefined; resourceInputs["keyPairName"] = args ? args.keyPairName : undefined; resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined; resourceInputs["projectName"] = args ? args.projectName : undefined; @@ -357,6 +365,12 @@ export interface ScalingConfigurationState { * The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. */ instanceTypes?: pulumi.Input[]>; + /** + * Assign IPv6 address to instance network card. Possible values: + * 0: Do not assign IPv6 address. + * 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + */ + ipv6AddressCount?: pulumi.Input; /** * The ECS key pair name which the scaling configuration set. */ @@ -455,6 +469,12 @@ export interface ScalingConfigurationArgs { * The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. */ instanceTypes: pulumi.Input[]>; + /** + * Assign IPv6 address to instance network card. Possible values: + * 0: Do not assign IPv6 address. + * 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + */ + ipv6AddressCount?: pulumi.Input; /** * The ECS key pair name which the scaling configuration set. */ diff --git a/sdk/nodejs/autoscaling/scalingGroup.ts b/sdk/nodejs/autoscaling/scalingGroup.ts index 8ef02a9b..01a276cb 100644 --- a/sdk/nodejs/autoscaling/scalingGroup.ts +++ b/sdk/nodejs/autoscaling/scalingGroup.ts @@ -96,9 +96,9 @@ export class ScalingGroup extends pulumi.CustomResource { */ public /*out*/ readonly createdAt!: pulumi.Output; /** - * The list of db instance ids. + * ID of the RDS database instance. */ - public /*out*/ readonly dbInstanceIds!: pulumi.Output; + public readonly dbInstanceIds!: pulumi.Output; /** * The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. */ @@ -107,6 +107,10 @@ export class ScalingGroup extends pulumi.CustomResource { * The desire instance number of the scaling group. */ public readonly desireInstanceNumber!: pulumi.Output; + /** + * The health check type of the scaling group. + */ + public /*out*/ readonly healthCheckType!: pulumi.Output; /** * The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. */ @@ -115,6 +119,10 @@ export class ScalingGroup extends pulumi.CustomResource { * The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. */ public readonly launchTemplateId!: pulumi.Output; + /** + * Specify instance specifications. + */ + public readonly launchTemplateOverrides!: pulumi.Output; /** * The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. */ @@ -123,6 +131,10 @@ export class ScalingGroup extends pulumi.CustomResource { * The lifecycle state of the scaling group. */ public /*out*/ readonly lifecycleState!: pulumi.Output; + /** + * Grace period for health check of CLB instance in elastic group. + */ + public /*out*/ readonly loadBalancerHealthCheckGracePeriod!: pulumi.Output; /** * The max instance number of the scaling group. Value range: 0 ~ 100. */ @@ -147,10 +159,20 @@ export class ScalingGroup extends pulumi.CustomResource { * The name of the scaling group. */ public readonly scalingGroupName!: pulumi.Output; + /** + * Example recycling mode for the elastic group, with values: + * release (default): Release mode. + * recycle: Shutdown recycling mode. + */ + public readonly scalingMode!: pulumi.Output; /** * The load balancer server group attributes of the scaling group. */ public readonly serverGroupAttributes!: pulumi.Output; + /** + * The number of stopped instances. + */ + public /*out*/ readonly stoppedInstanceCount!: pulumi.Output; /** * The list of the subnet id to which the ENI is connected. */ @@ -190,17 +212,22 @@ export class ScalingGroup extends pulumi.CustomResource { resourceInputs["dbInstanceIds"] = state ? state.dbInstanceIds : undefined; resourceInputs["defaultCooldown"] = state ? state.defaultCooldown : undefined; resourceInputs["desireInstanceNumber"] = state ? state.desireInstanceNumber : undefined; + resourceInputs["healthCheckType"] = state ? state.healthCheckType : undefined; resourceInputs["instanceTerminatePolicy"] = state ? state.instanceTerminatePolicy : undefined; resourceInputs["launchTemplateId"] = state ? state.launchTemplateId : undefined; + resourceInputs["launchTemplateOverrides"] = state ? state.launchTemplateOverrides : undefined; resourceInputs["launchTemplateVersion"] = state ? state.launchTemplateVersion : undefined; resourceInputs["lifecycleState"] = state ? state.lifecycleState : undefined; + resourceInputs["loadBalancerHealthCheckGracePeriod"] = state ? state.loadBalancerHealthCheckGracePeriod : undefined; resourceInputs["maxInstanceNumber"] = state ? state.maxInstanceNumber : undefined; resourceInputs["minInstanceNumber"] = state ? state.minInstanceNumber : undefined; resourceInputs["multiAzPolicy"] = state ? state.multiAzPolicy : undefined; resourceInputs["projectName"] = state ? state.projectName : undefined; resourceInputs["scalingGroupId"] = state ? state.scalingGroupId : undefined; resourceInputs["scalingGroupName"] = state ? state.scalingGroupName : undefined; + resourceInputs["scalingMode"] = state ? state.scalingMode : undefined; resourceInputs["serverGroupAttributes"] = state ? state.serverGroupAttributes : undefined; + resourceInputs["stoppedInstanceCount"] = state ? state.stoppedInstanceCount : undefined; resourceInputs["subnetIds"] = state ? state.subnetIds : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["totalInstanceCount"] = state ? state.totalInstanceCount : undefined; @@ -220,24 +247,29 @@ export class ScalingGroup extends pulumi.CustomResource { if ((!args || args.subnetIds === undefined) && !opts.urn) { throw new Error("Missing required property 'subnetIds'"); } + resourceInputs["dbInstanceIds"] = args ? args.dbInstanceIds : undefined; resourceInputs["defaultCooldown"] = args ? args.defaultCooldown : undefined; resourceInputs["desireInstanceNumber"] = args ? args.desireInstanceNumber : undefined; resourceInputs["instanceTerminatePolicy"] = args ? args.instanceTerminatePolicy : undefined; resourceInputs["launchTemplateId"] = args ? args.launchTemplateId : undefined; + resourceInputs["launchTemplateOverrides"] = args ? args.launchTemplateOverrides : undefined; resourceInputs["launchTemplateVersion"] = args ? args.launchTemplateVersion : undefined; resourceInputs["maxInstanceNumber"] = args ? args.maxInstanceNumber : undefined; resourceInputs["minInstanceNumber"] = args ? args.minInstanceNumber : undefined; resourceInputs["multiAzPolicy"] = args ? args.multiAzPolicy : undefined; resourceInputs["projectName"] = args ? args.projectName : undefined; resourceInputs["scalingGroupName"] = args ? args.scalingGroupName : undefined; + resourceInputs["scalingMode"] = args ? args.scalingMode : undefined; resourceInputs["serverGroupAttributes"] = args ? args.serverGroupAttributes : undefined; resourceInputs["subnetIds"] = args ? args.subnetIds : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["activeScalingConfigurationId"] = undefined /*out*/; resourceInputs["createdAt"] = undefined /*out*/; - resourceInputs["dbInstanceIds"] = undefined /*out*/; + resourceInputs["healthCheckType"] = undefined /*out*/; resourceInputs["lifecycleState"] = undefined /*out*/; + resourceInputs["loadBalancerHealthCheckGracePeriod"] = undefined /*out*/; resourceInputs["scalingGroupId"] = undefined /*out*/; + resourceInputs["stoppedInstanceCount"] = undefined /*out*/; resourceInputs["totalInstanceCount"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; resourceInputs["vpcId"] = undefined /*out*/; @@ -260,7 +292,7 @@ export interface ScalingGroupState { */ createdAt?: pulumi.Input; /** - * The list of db instance ids. + * ID of the RDS database instance. */ dbInstanceIds?: pulumi.Input[]>; /** @@ -271,6 +303,10 @@ export interface ScalingGroupState { * The desire instance number of the scaling group. */ desireInstanceNumber?: pulumi.Input; + /** + * The health check type of the scaling group. + */ + healthCheckType?: pulumi.Input; /** * The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. */ @@ -279,6 +315,10 @@ export interface ScalingGroupState { * The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. */ launchTemplateId?: pulumi.Input; + /** + * Specify instance specifications. + */ + launchTemplateOverrides?: pulumi.Input[]>; /** * The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. */ @@ -287,6 +327,10 @@ export interface ScalingGroupState { * The lifecycle state of the scaling group. */ lifecycleState?: pulumi.Input; + /** + * Grace period for health check of CLB instance in elastic group. + */ + loadBalancerHealthCheckGracePeriod?: pulumi.Input; /** * The max instance number of the scaling group. Value range: 0 ~ 100. */ @@ -311,10 +355,20 @@ export interface ScalingGroupState { * The name of the scaling group. */ scalingGroupName?: pulumi.Input; + /** + * Example recycling mode for the elastic group, with values: + * release (default): Release mode. + * recycle: Shutdown recycling mode. + */ + scalingMode?: pulumi.Input; /** * The load balancer server group attributes of the scaling group. */ serverGroupAttributes?: pulumi.Input[]>; + /** + * The number of stopped instances. + */ + stoppedInstanceCount?: pulumi.Input; /** * The list of the subnet id to which the ENI is connected. */ @@ -341,6 +395,10 @@ export interface ScalingGroupState { * The set of arguments for constructing a ScalingGroup resource. */ export interface ScalingGroupArgs { + /** + * ID of the RDS database instance. + */ + dbInstanceIds?: pulumi.Input[]>; /** * The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. */ @@ -357,6 +415,10 @@ export interface ScalingGroupArgs { * The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. */ launchTemplateId?: pulumi.Input; + /** + * Specify instance specifications. + */ + launchTemplateOverrides?: pulumi.Input[]>; /** * The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. */ @@ -381,6 +443,12 @@ export interface ScalingGroupArgs { * The name of the scaling group. */ scalingGroupName: pulumi.Input; + /** + * Example recycling mode for the elastic group, with values: + * release (default): Release mode. + * recycle: Shutdown recycling mode. + */ + scalingMode?: pulumi.Input; /** * The load balancer server group attributes of the scaling group. */ diff --git a/sdk/nodejs/autoscaling/scalingGroups.ts b/sdk/nodejs/autoscaling/scalingGroups.ts index 4d25b87a..8298685f 100644 --- a/sdk/nodejs/autoscaling/scalingGroups.ts +++ b/sdk/nodejs/autoscaling/scalingGroups.ts @@ -62,6 +62,7 @@ export function scalingGroups(args?: ScalingGroupsArgs, opts?: pulumi.InvokeOpti "ids": args.ids, "nameRegex": args.nameRegex, "outputFile": args.outputFile, + "projectName": args.projectName, "scalingGroupNames": args.scalingGroupNames, }, opts); } @@ -82,6 +83,10 @@ export interface ScalingGroupsArgs { * File name where to save data source results. */ outputFile?: string; + /** + * The project name of the scaling group. + */ + projectName?: string; /** * A list of scaling group names. */ @@ -99,6 +104,10 @@ export interface ScalingGroupsResult { readonly ids?: string[]; readonly nameRegex?: string; readonly outputFile?: string; + /** + * The ProjectName of scaling group. + */ + readonly projectName?: string; readonly scalingGroupNames?: string[]; /** * The collection of scaling group query. @@ -177,6 +186,10 @@ export interface ScalingGroupsOutputArgs { * File name where to save data source results. */ outputFile?: pulumi.Input; + /** + * The project name of the scaling group. + */ + projectName?: pulumi.Input; /** * A list of scaling group names. */ diff --git a/sdk/nodejs/autoscaling/scalingLifecycleHook.ts b/sdk/nodejs/autoscaling/scalingLifecycleHook.ts index b7bf2cc2..58f419ea 100644 --- a/sdk/nodejs/autoscaling/scalingLifecycleHook.ts +++ b/sdk/nodejs/autoscaling/scalingLifecycleHook.ts @@ -2,6 +2,8 @@ // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; import * as utilities from "../utilities"; /** @@ -24,6 +26,13 @@ import * as utilities from "../utilities"; * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); + * const fooCommand = new volcengine.ecs.Command("fooCommand", { + * description: "tf", + * workingDir: "/home", + * username: "root", + * timeout: 100, + * commandContent: "IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi", + * }); * const fooScalingGroup = new volcengine.autoscaling.ScalingGroup("fooScalingGroup", { * scalingGroupName: "acc-test-scaling-group-lifecycle", * subnetIds: [fooSubnet.id], @@ -36,11 +45,15 @@ import * as utilities from "../utilities"; * }); * const fooScalingLifecycleHook = new volcengine.autoscaling.ScalingLifecycleHook("fooScalingLifecycleHook", { * lifecycleHookName: "acc-test-lifecycle", - * lifecycleHookPolicy: "CONTINUE", - * lifecycleHookTimeout: 30, - * lifecycleHookType: "SCALE_IN", + * lifecycleHookPolicy: "ROLLBACK", + * lifecycleHookTimeout: 300, + * lifecycleHookType: "SCALE_OUT", * scalingGroupId: fooScalingGroup.id, * }); + * // lifecycle_command { + * // command_id = volcengine_ecs_command.foo.id + * // parameters = "{}" + * // } * ``` * * ## Import @@ -79,6 +92,10 @@ export class ScalingLifecycleHook extends pulumi.CustomResource { return obj['__pulumiType'] === ScalingLifecycleHook.__pulumiType; } + /** + * Batch job command. + */ + public readonly lifecycleCommand!: pulumi.Output; /** * The id of the lifecycle hook. */ @@ -88,7 +105,7 @@ export class ScalingLifecycleHook extends pulumi.CustomResource { */ public readonly lifecycleHookName!: pulumi.Output; /** - * The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + * The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. */ public readonly lifecycleHookPolicy!: pulumi.Output; /** @@ -117,6 +134,7 @@ export class ScalingLifecycleHook extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ScalingLifecycleHookState | undefined; + resourceInputs["lifecycleCommand"] = state ? state.lifecycleCommand : undefined; resourceInputs["lifecycleHookId"] = state ? state.lifecycleHookId : undefined; resourceInputs["lifecycleHookName"] = state ? state.lifecycleHookName : undefined; resourceInputs["lifecycleHookPolicy"] = state ? state.lifecycleHookPolicy : undefined; @@ -140,6 +158,7 @@ export class ScalingLifecycleHook extends pulumi.CustomResource { if ((!args || args.scalingGroupId === undefined) && !opts.urn) { throw new Error("Missing required property 'scalingGroupId'"); } + resourceInputs["lifecycleCommand"] = args ? args.lifecycleCommand : undefined; resourceInputs["lifecycleHookName"] = args ? args.lifecycleHookName : undefined; resourceInputs["lifecycleHookPolicy"] = args ? args.lifecycleHookPolicy : undefined; resourceInputs["lifecycleHookTimeout"] = args ? args.lifecycleHookTimeout : undefined; @@ -156,6 +175,10 @@ export class ScalingLifecycleHook extends pulumi.CustomResource { * Input properties used for looking up and filtering ScalingLifecycleHook resources. */ export interface ScalingLifecycleHookState { + /** + * Batch job command. + */ + lifecycleCommand?: pulumi.Input; /** * The id of the lifecycle hook. */ @@ -165,7 +188,7 @@ export interface ScalingLifecycleHookState { */ lifecycleHookName?: pulumi.Input; /** - * The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + * The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. */ lifecycleHookPolicy?: pulumi.Input; /** @@ -186,12 +209,16 @@ export interface ScalingLifecycleHookState { * The set of arguments for constructing a ScalingLifecycleHook resource. */ export interface ScalingLifecycleHookArgs { + /** + * Batch job command. + */ + lifecycleCommand?: pulumi.Input; /** * The name of the lifecycle hook. */ lifecycleHookName: pulumi.Input; /** - * The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + * The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. */ lifecycleHookPolicy: pulumi.Input; /** diff --git a/sdk/nodejs/mongodb/mongoAllowList.ts b/sdk/nodejs/mongodb/mongoAllowList.ts index efc319f5..00b22bd9 100644 --- a/sdk/nodejs/mongodb/mongoAllowList.ts +++ b/sdk/nodejs/mongodb/mongoAllowList.ts @@ -72,10 +72,6 @@ export class MongoAllowList extends pulumi.CustomResource { * The IP address type of allow list, valid value contains `IPv4`. */ public readonly allowListType!: pulumi.Output; - /** - * The modify mode. Only support Cover mode. - */ - public readonly modifyMode!: pulumi.Output; /** * Create a MongoAllowList resource with the given unique name, arguments, and options. @@ -94,7 +90,6 @@ export class MongoAllowList extends pulumi.CustomResource { resourceInputs["allowListDesc"] = state ? state.allowListDesc : undefined; resourceInputs["allowListName"] = state ? state.allowListName : undefined; resourceInputs["allowListType"] = state ? state.allowListType : undefined; - resourceInputs["modifyMode"] = state ? state.modifyMode : undefined; } else { const args = argsOrState as MongoAllowListArgs | undefined; if ((!args || args.allowList === undefined) && !opts.urn) { @@ -107,7 +102,6 @@ export class MongoAllowList extends pulumi.CustomResource { resourceInputs["allowListDesc"] = args ? args.allowListDesc : undefined; resourceInputs["allowListName"] = args ? args.allowListName : undefined; resourceInputs["allowListType"] = args ? args.allowListType : undefined; - resourceInputs["modifyMode"] = args ? args.modifyMode : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(MongoAllowList.__pulumiType, name, resourceInputs, opts); @@ -134,10 +128,6 @@ export interface MongoAllowListState { * The IP address type of allow list, valid value contains `IPv4`. */ allowListType?: pulumi.Input; - /** - * The modify mode. Only support Cover mode. - */ - modifyMode?: pulumi.Input; } /** @@ -160,8 +150,4 @@ export interface MongoAllowListArgs { * The IP address type of allow list, valid value contains `IPv4`. */ allowListType?: pulumi.Input; - /** - * The modify mode. Only support Cover mode. - */ - modifyMode?: pulumi.Input; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 6bbbfbe9..3df79eff 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -32,6 +32,13 @@ export namespace autoscaling { volumeType: pulumi.Input; } + export interface ScalingGroupLaunchTemplateOverride { + /** + * The instance type. + */ + instanceType: pulumi.Input; + } + export interface ScalingGroupServerGroupAttribute { loadBalancerId?: pulumi.Input; /** @@ -59,6 +66,18 @@ export namespace autoscaling { value: pulumi.Input; } + export interface ScalingLifecycleHookLifecycleCommand { + /** + * Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + */ + commandId: pulumi.Input; + /** + * Parameters and parameter values in batch job commands. + * The number of parameters ranges from 0 to 60. + */ + parameters?: pulumi.Input; + } + } export namespace bioos { @@ -2883,11 +2902,11 @@ export namespace vke { */ mountPoint?: pulumi.Input; /** - * The Size of DataVolumes, the value range in 20~32768. + * The Size of DataVolumes, the value range in 20~32768. Default value is `20`. */ size?: pulumi.Input; /** - * The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + * The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. */ type?: pulumi.Input; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index f275647a..3e01e35d 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -163,6 +163,12 @@ export namespace autoscaling { * The list of the ECS instance type which the scaling configuration set. */ instanceTypes: string[]; + /** + * Assign IPv6 address to instance network card. Possible values: + * 0: Do not assign IPv6 address. + * 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + */ + ipv6AddressCount: number; /** * The ECS key pair name which the scaling configuration set. */ @@ -243,6 +249,13 @@ export namespace autoscaling { volumeType: string; } + export interface ScalingGroupLaunchTemplateOverride { + /** + * The instance type. + */ + instanceType: string; + } + export interface ScalingGroupServerGroupAttribute { loadBalancerId: string; /** @@ -291,6 +304,10 @@ export namespace autoscaling { * The desire instance number of the scaling group. */ desireInstanceNumber: number; + /** + * The health check type of the scaling group. + */ + healthCheckType: string; /** * The id of the scaling group. */ @@ -303,6 +320,10 @@ export namespace autoscaling { * The ID of the launch template bound to the scaling group. */ launchTemplateId: string; + /** + * Instance start template information. + */ + launchTemplateOverrides: outputs.autoscaling.ScalingGroupsScalingGroupLaunchTemplateOverride[]; /** * The version of the launch template bound to the scaling group. */ @@ -311,6 +332,10 @@ export namespace autoscaling { * The lifecycle state of the scaling group. */ lifecycleState: string; + /** + * Grace period for health check of CLB instance in elastic group. + */ + loadBalancerHealthCheckGracePeriod: number; /** * The max instance number of the scaling group. */ @@ -324,7 +349,7 @@ export namespace autoscaling { */ multiAzPolicy: string; /** - * The ProjectName of scaling group. + * The project name of the scaling group. */ projectName: string; /** @@ -335,10 +360,18 @@ export namespace autoscaling { * The name of the scaling group. */ scalingGroupName: string; + /** + * The scaling mode of the scaling group. + */ + scalingMode: string; /** * The list of server group attributes. */ serverGroupAttributes: outputs.autoscaling.ScalingGroupsScalingGroupServerGroupAttribute[]; + /** + * The number of stopped instances. + */ + stoppedInstanceCount: number; /** * The list of the subnet id to which the ENI is connected. */ @@ -361,6 +394,17 @@ export namespace autoscaling { vpcId: string; } + export interface ScalingGroupsScalingGroupLaunchTemplateOverride { + /** + * The instance type. + */ + instanceType: string; + /** + * Weight of instance specifications. + */ + weightedCapacity: number; + } + export interface ScalingGroupsScalingGroupServerGroupAttribute { /** * The load balancer id. @@ -430,11 +474,27 @@ export namespace autoscaling { status: string; } + export interface ScalingLifecycleHookLifecycleCommand { + /** + * Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + */ + commandId: string; + /** + * Parameters and parameter values in batch job commands. + * The number of parameters ranges from 0 to 60. + */ + parameters?: string; + } + export interface ScalingLifecycleHooksLifecycleHook { /** * The id of the lifecycle hook. */ id: string; + /** + * Batch job command. + */ + lifecycleCommands: outputs.autoscaling.ScalingLifecycleHooksLifecycleHookLifecycleCommand[]; /** * The id of the lifecycle hook. */ @@ -461,6 +521,18 @@ export namespace autoscaling { scalingGroupId: string; } + export interface ScalingLifecycleHooksLifecycleHookLifecycleCommand { + /** + * Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + */ + commandId: string; + /** + * Parameters and parameter values in batch job commands. + * The number of parameters ranges from 0 to 60. + */ + parameters: string; + } + export interface ScalingPoliciesScalingPolicy { /** * The adjustment type of the scaling policy. @@ -12510,11 +12582,11 @@ export namespace vke { */ mountPoint?: string; /** - * The Size of DataVolumes, the value range in 20~32768. + * The Size of DataVolumes, the value range in 20~32768. Default value is `20`. */ size?: number; /** - * The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + * The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. */ type?: string; } @@ -12560,11 +12632,11 @@ export namespace vke { /** * The Size of SystemVolume, the value range in 20~2048. */ - size?: number; + size: number; /** * The Type of SystemVolume, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. */ - type?: string; + type: string; } export interface NodePoolTag { diff --git a/sdk/nodejs/vke/nodePool.ts b/sdk/nodejs/vke/nodePool.ts index 423ebbb3..55d612ce 100644 --- a/sdk/nodejs/vke/nodePool.ts +++ b/sdk/nodejs/vke/nodePool.ts @@ -77,12 +77,12 @@ import * as utilities from "../utilities"; * imageId: fooImages.then(fooImages => .filter(image => image.imageName == "veLinux 1.0 CentOS兼容版 64位").map(image => (image.imageId))[0]), * systemVolume: { * type: "ESSD_PL0", - * size: 60, + * size: 80, * }, * dataVolumes: [ * { * type: "ESSD_PL0", - * size: 60, + * size: 80, * mountPoint: "/tf1", * }, * { @@ -99,7 +99,7 @@ import * as utilities from "../utilities"; * securityStrategies: ["Hids"], * securityGroupIds: [fooSecurityGroup.id], * }, - * additionalContainerStorageEnabled: true, + * additionalContainerStorageEnabled: false, * instanceChargeType: "PostPaid", * namePrefix: "acc-test", * ecsTags: [{ diff --git a/sdk/nodejs/yarn.lock b/sdk/nodejs/yarn.lock index 47e46711..59062371 100644 --- a/sdk/nodejs/yarn.lock +++ b/sdk/nodejs/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@grpc/grpc-js@^1.8.16": - version "1.9.9" - resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.9.9.tgz#ce3a05439b1c957ec64c2ecdc6f1e4f54e8af797" - integrity sha512-vQ1qwi/Kiyprt+uhb1+rHMpyk4CVRMTGNUGGPRGS7pLNfWkdCHrGEnT6T3/JyC2VZgoOX/X1KwdoU0WYQAeYcQ== +"@grpc/grpc-js@1.9.6": + version "1.9.6" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.9.6.tgz#c64a2db3cb1c73939d3d666fb1339775813c1cd8" + integrity sha512-yq3qTy23u++8zdvf+h4mz4ohDFi681JAkMZZPTKh8zmUVh0AKLisFlgxcn22FMNowXz15oJ6pqgwT7DJ+PdJvg== dependencies: "@grpc/proto-loader" "^0.7.8" "@types/node" ">=12.12.47" @@ -33,31 +33,31 @@ "@opentelemetry/api" "^1.0.0" "@opentelemetry/api@^1.0.0", "@opentelemetry/api@^1.2.0": - version "1.6.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.6.0.tgz#de2c6823203d6f319511898bb5de7e70f5267e19" - integrity sha512-OWlrQAnWn9577PhVgqjUvMr1pg57Bc4jv0iL4w0PRuOSRvq67rvHW9Ie/dZVMvCzhSCB+UxhcY/PmCmFj33Q+g== + version "1.7.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.7.0.tgz#b139c81999c23e3c8d3c0a7234480e945920fc40" + integrity sha512-AdY5wvN0P2vXBi3b29hxZgSFvdhdxPB9+f0B6s//P9Q8nibRWeA3cHm8UmLpio9ABigkVHJ5NMPk+Mz8VCCyrw== -"@opentelemetry/context-async-hooks@1.17.1": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/context-async-hooks/-/context-async-hooks-1.17.1.tgz#4eba80bd66f8cd367e9ba94b5fec5f5acf5d7b25" - integrity sha512-up5I+RiQEkGrVEHtbAtmRgS+ZOnFh3shaDNHqZPBlGy+O92auL6yMmjzYpSKmJOGWowvs3fhVHePa8Exb5iHUg== +"@opentelemetry/context-async-hooks@1.18.1": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/context-async-hooks/-/context-async-hooks-1.18.1.tgz#d9eb17e23e469f85b44ca1c4788c42a06a62cc84" + integrity sha512-HHfJR32NH2x0b69CACCwH8m1dpNALoCTtpgmIWMNkeMGNUeKT48d4AX4xsF4uIRuUoRTbTgtSBRvS+cF97qwCQ== -"@opentelemetry/core@1.17.1": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.17.1.tgz#10c5e09c63aeb1836b34d80baf7113760fb19d96" - integrity sha512-I6LrZvl1FF97FQXPR0iieWQmKnGxYtMbWA1GrAXnLUR+B1Hn2m8KqQNEIlZAucyv00GBgpWkpllmULmZfG8P3g== +"@opentelemetry/core@1.18.1": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.18.1.tgz#d2e45f6bd6be4f00d20d18d4f1b230ec33805ae9" + integrity sha512-kvnUqezHMhsQvdsnhnqTNfAJs3ox/isB0SVrM1dhVFw7SsB7TstuVa6fgWnN2GdPyilIFLUvvbTZoVRmx6eiRg== dependencies: - "@opentelemetry/semantic-conventions" "1.17.1" + "@opentelemetry/semantic-conventions" "1.18.1" "@opentelemetry/exporter-zipkin@^1.6.0": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/exporter-zipkin/-/exporter-zipkin-1.17.1.tgz#6d7537c0bc40ece73f8661420ef0c7322c0945cd" - integrity sha512-FaLZlIhdpxlZiKu/G8OvA+so4xoCL1hCo/JgNdeSxzI4GnJrmFFbZT6DXgUzXJO7F9Qw3KDE1cBFUHawLVz58g== + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/exporter-zipkin/-/exporter-zipkin-1.18.1.tgz#01e7bd854971a81ae22ac1b3417e61017d074d44" + integrity sha512-RmoWVFXFhvIh3q4szUe8I+/vxuMR0HNsOm39zNxnWJcK7JDwnPra9cLY/M78u6bTgB6Fte8GKgU128vvDzz0Iw== dependencies: - "@opentelemetry/core" "1.17.1" - "@opentelemetry/resources" "1.17.1" - "@opentelemetry/sdk-trace-base" "1.17.1" - "@opentelemetry/semantic-conventions" "1.17.1" + "@opentelemetry/core" "1.18.1" + "@opentelemetry/resources" "1.18.1" + "@opentelemetry/sdk-trace-base" "1.18.1" + "@opentelemetry/semantic-conventions" "1.18.1" "@opentelemetry/instrumentation-grpc@^0.32.0": version "0.32.0" @@ -78,53 +78,53 @@ semver "^7.3.2" shimmer "^1.2.1" -"@opentelemetry/propagator-b3@1.17.1": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/propagator-b3/-/propagator-b3-1.17.1.tgz#65dbddf3763db82632ddd7ad1735e597ab7b2dc4" - integrity sha512-XEbXYb81AM3ayJLlbJqITPIgKBQCuby45ZHiB9mchnmQOffh6ZJOmXONdtZAV7TWzmzwvAd28vGSUk57Aw/5ZA== +"@opentelemetry/propagator-b3@1.18.1": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/propagator-b3/-/propagator-b3-1.18.1.tgz#e7be021bebdb1851eb9322a6f70bbc8d688b6ec8" + integrity sha512-oSTUOsnt31JDx5SoEy27B5jE1/tiPvvE46w7CDKj0R5oZhCCfYH2bbSGa7NOOyDXDNqQDkgqU1DIV/xOd3f8pw== dependencies: - "@opentelemetry/core" "1.17.1" + "@opentelemetry/core" "1.18.1" -"@opentelemetry/propagator-jaeger@1.17.1": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/propagator-jaeger/-/propagator-jaeger-1.17.1.tgz#31cc43045a059d1ed3651b9f21d0fd6db817b02f" - integrity sha512-p+P4lf2pbqd3YMfZO15QCGsDwR2m1ke2q5+dq6YBLa/q0qiC2eq4cD/qhYBBed5/X4PtdamaVGHGsp+u3GXHDA== +"@opentelemetry/propagator-jaeger@1.18.1": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/propagator-jaeger/-/propagator-jaeger-1.18.1.tgz#9ce06ba88a375a27d9e0670280307d88c5c99951" + integrity sha512-Kh4M1Qewv0Tbmts6D8LgNzx99IjdE18LCmY/utMkgVyU7Bg31Yuj+X6ZyoIRKPcD2EV4rVkuRI16WVMRuGbhWA== dependencies: - "@opentelemetry/core" "1.17.1" + "@opentelemetry/core" "1.18.1" -"@opentelemetry/resources@1.17.1", "@opentelemetry/resources@^1.6.0": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/resources/-/resources-1.17.1.tgz#932f70f58c0e03fb1d38f0cba12672fd70804d99" - integrity sha512-M2e5emqg5I7qRKqlzKx0ROkcPyF8PbcSaWEdsm72od9txP7Z/Pl8PDYOyu80xWvbHAWk5mDxOF6v3vNdifzclA== +"@opentelemetry/resources@1.18.1", "@opentelemetry/resources@^1.6.0": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/resources/-/resources-1.18.1.tgz#e27bdc4715bccc8cd4a72d4aca3995ad0a496fe7" + integrity sha512-JjbcQLYMttXcIabflLRuaw5oof5gToYV9fuXbcsoOeQ0BlbwUn6DAZi++PNsSz2jjPeASfDls10iaO/8BRIPRA== dependencies: - "@opentelemetry/core" "1.17.1" - "@opentelemetry/semantic-conventions" "1.17.1" + "@opentelemetry/core" "1.18.1" + "@opentelemetry/semantic-conventions" "1.18.1" -"@opentelemetry/sdk-trace-base@1.17.1", "@opentelemetry/sdk-trace-base@^1.6.0": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.17.1.tgz#8ede213df8b0c957028a869c66964e535193a4fd" - integrity sha512-pfSJJSjZj5jkCJUQZicSpzN8Iz9UKMryPWikZRGObPnJo6cUSoKkjZh6BM3j+D47G4olMBN+YZKYqkFM1L6zNA== +"@opentelemetry/sdk-trace-base@1.18.1", "@opentelemetry/sdk-trace-base@^1.6.0": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.18.1.tgz#256605d90b202002d5672305c66dbcf377132379" + integrity sha512-tRHfDxN5dO+nop78EWJpzZwHsN1ewrZRVVwo03VJa3JQZxToRDH29/+MB24+yoa+IArerdr7INFJiX/iN4gjqg== dependencies: - "@opentelemetry/core" "1.17.1" - "@opentelemetry/resources" "1.17.1" - "@opentelemetry/semantic-conventions" "1.17.1" + "@opentelemetry/core" "1.18.1" + "@opentelemetry/resources" "1.18.1" + "@opentelemetry/semantic-conventions" "1.18.1" "@opentelemetry/sdk-trace-node@^1.6.0": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/sdk-trace-node/-/sdk-trace-node-1.17.1.tgz#746c197ad54a8e0cdb24a4b257d33dc3a04493c1" - integrity sha512-J56DaG4cusjw5crpI7x9rv4bxDF27DtKYGxXJF56KIvopbNKpdck5ZWXBttEyqgAVPDwHMAXWDL1KchHzF0a3A== - dependencies: - "@opentelemetry/context-async-hooks" "1.17.1" - "@opentelemetry/core" "1.17.1" - "@opentelemetry/propagator-b3" "1.17.1" - "@opentelemetry/propagator-jaeger" "1.17.1" - "@opentelemetry/sdk-trace-base" "1.17.1" + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/sdk-trace-node/-/sdk-trace-node-1.18.1.tgz#ec35ff9abf89244c4fde1c550645d4effa2d7aba" + integrity sha512-ML0l9TNlfLoplLF1F8lb95NGKgdm6OezDS3Ymqav9sYxMd5bnH2LZVzd4xEF+ov5vpZJOGdWxJMs2nC9no7+xA== + dependencies: + "@opentelemetry/context-async-hooks" "1.18.1" + "@opentelemetry/core" "1.18.1" + "@opentelemetry/propagator-b3" "1.18.1" + "@opentelemetry/propagator-jaeger" "1.18.1" + "@opentelemetry/sdk-trace-base" "1.18.1" semver "^7.5.2" -"@opentelemetry/semantic-conventions@1.17.1", "@opentelemetry/semantic-conventions@^1.6.0": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.17.1.tgz#93d219935e967fbb9aa0592cc96b2c0ec817a56f" - integrity sha512-xbR2U+2YjauIuo42qmE8XyJK6dYeRMLJuOlUP5SO4auET4VtOHOzgkRVOq+Ik18N+Xf3YPcqJs9dZMiDddz1eQ== +"@opentelemetry/semantic-conventions@1.18.1", "@opentelemetry/semantic-conventions@^1.6.0": + version "1.18.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.18.1.tgz#8e47caf57a84b1dcc1722b2025693348cdf443b4" + integrity sha512-+NLGHr6VZwcgE/2lw8zDIufOCGnzsA5CbQIMleXZTrgkBd0TanCX+MiDYJ1TOS4KL/Tqk0nFRxawnaYr6pkZkA== "@opentelemetry/semantic-conventions@1.6.0": version "1.6.0" @@ -185,11 +185,11 @@ integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== "@pulumi/pulumi@^3.0.0": - version "3.91.1" - resolved "https://registry.yarnpkg.com/@pulumi/pulumi/-/pulumi-3.91.1.tgz#fea7720178f87388146692df371d9285a43093d7" - integrity sha512-ZKX9twt1+EDSb/Sg3d9fffA74f3Ikx90Xc8k7C++qdaOkcwKd2RTycciZdzvM/ri7KW4B6CYU2qCgKy33li6tQ== + version "3.93.0" + resolved "https://registry.yarnpkg.com/@pulumi/pulumi/-/pulumi-3.93.0.tgz#d0cac5cc9c92497f3966ea3704bf5ef0eadd256d" + integrity sha512-3Hg9lTIu1EmD288NdSkBKog/x6A6YdYmk/xP48JJ3IpksquiLANvkEgjx10v6tgt9xWVZ8h4oeKuFZVZ9jxZvw== dependencies: - "@grpc/grpc-js" "^1.8.16" + "@grpc/grpc-js" "1.9.6" "@logdna/tail-file" "^2.0.6" "@opentelemetry/api" "^1.2.0" "@opentelemetry/exporter-zipkin" "^1.6.0" @@ -226,9 +226,9 @@ integrity sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q== "@types/node@>=12.12.47", "@types/node@>=13.7.0": - version "20.8.10" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.10.tgz#a5448b895c753ae929c26ce85cab557c6d4a365e" - integrity sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w== + version "20.9.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.9.0.tgz#bfcdc230583aeb891cf51e73cfdaacdd8deae298" + integrity sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw== dependencies: undici-types "~5.26.4" diff --git a/sdk/python/pulumi_volcengine/autoscaling/_inputs.py b/sdk/python/pulumi_volcengine/autoscaling/_inputs.py index ac4380a0..64532672 100644 --- a/sdk/python/pulumi_volcengine/autoscaling/_inputs.py +++ b/sdk/python/pulumi_volcengine/autoscaling/_inputs.py @@ -12,8 +12,10 @@ __all__ = [ 'ScalingConfigurationTagArgs', 'ScalingConfigurationVolumeArgs', + 'ScalingGroupLaunchTemplateOverrideArgs', 'ScalingGroupServerGroupAttributeArgs', 'ScalingGroupTagArgs', + 'ScalingLifecycleHookLifecycleCommandArgs', ] @pulumi.input_type @@ -106,6 +108,28 @@ def delete_with_instance(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "delete_with_instance", value) +@pulumi.input_type +class ScalingGroupLaunchTemplateOverrideArgs: + def __init__(__self__, *, + instance_type: pulumi.Input[str]): + """ + :param pulumi.Input[str] instance_type: The instance type. + """ + pulumi.set(__self__, "instance_type", instance_type) + + @property + @pulumi.getter(name="instanceType") + def instance_type(self) -> pulumi.Input[str]: + """ + The instance type. + """ + return pulumi.get(self, "instance_type") + + @instance_type.setter + def instance_type(self, value: pulumi.Input[str]): + pulumi.set(self, "instance_type", value) + + @pulumi.input_type class ScalingGroupServerGroupAttributeArgs: def __init__(__self__, *, @@ -207,3 +231,43 @@ def value(self, value: pulumi.Input[str]): pulumi.set(self, "value", value) +@pulumi.input_type +class ScalingLifecycleHookLifecycleCommandArgs: + def __init__(__self__, *, + command_id: pulumi.Input[str], + parameters: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] command_id: Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + :param pulumi.Input[str] parameters: Parameters and parameter values in batch job commands. + The number of parameters ranges from 0 to 60. + """ + pulumi.set(__self__, "command_id", command_id) + if parameters is not None: + pulumi.set(__self__, "parameters", parameters) + + @property + @pulumi.getter(name="commandId") + def command_id(self) -> pulumi.Input[str]: + """ + Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + """ + return pulumi.get(self, "command_id") + + @command_id.setter + def command_id(self, value: pulumi.Input[str]): + pulumi.set(self, "command_id", value) + + @property + @pulumi.getter + def parameters(self) -> Optional[pulumi.Input[str]]: + """ + Parameters and parameter values in batch job commands. + The number of parameters ranges from 0 to 60. + """ + return pulumi.get(self, "parameters") + + @parameters.setter + def parameters(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "parameters", value) + + diff --git a/sdk/python/pulumi_volcengine/autoscaling/outputs.py b/sdk/python/pulumi_volcengine/autoscaling/outputs.py index be88c8be..63426ac7 100644 --- a/sdk/python/pulumi_volcengine/autoscaling/outputs.py +++ b/sdk/python/pulumi_volcengine/autoscaling/outputs.py @@ -18,13 +18,17 @@ 'ScalingConfigurationsScalingConfigurationResult', 'ScalingConfigurationsScalingConfigurationTagResult', 'ScalingConfigurationsScalingConfigurationVolumeResult', + 'ScalingGroupLaunchTemplateOverride', 'ScalingGroupServerGroupAttribute', 'ScalingGroupTag', 'ScalingGroupsScalingGroupResult', + 'ScalingGroupsScalingGroupLaunchTemplateOverrideResult', 'ScalingGroupsScalingGroupServerGroupAttributeResult', 'ScalingGroupsScalingGroupTagResult', 'ScalingInstancesScalingInstanceResult', + 'ScalingLifecycleHookLifecycleCommand', 'ScalingLifecycleHooksLifecycleHookResult', + 'ScalingLifecycleHooksLifecycleHookLifecycleCommandResult', 'ScalingPoliciesScalingPolicyResult', ] @@ -365,6 +369,7 @@ def __init__(__self__, *, instance_description: str, instance_name: str, instance_types: Sequence[str], + ipv6_address_count: int, key_pair_name: str, lifecycle_state: str, project_name: str, @@ -390,6 +395,9 @@ def __init__(__self__, *, :param str instance_description: The ECS instance description which the scaling configuration set. :param str instance_name: The ECS instance name which the scaling configuration set. :param Sequence[str] instance_types: The list of the ECS instance type which the scaling configuration set. + :param int ipv6_address_count: Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. :param str key_pair_name: The ECS key pair name which the scaling configuration set. :param str lifecycle_state: The lifecycle state of the scaling configuration. :param str project_name: The project to which the instance created by the scaling configuration belongs. @@ -415,6 +423,7 @@ def __init__(__self__, *, pulumi.set(__self__, "instance_description", instance_description) pulumi.set(__self__, "instance_name", instance_name) pulumi.set(__self__, "instance_types", instance_types) + pulumi.set(__self__, "ipv6_address_count", ipv6_address_count) pulumi.set(__self__, "key_pair_name", key_pair_name) pulumi.set(__self__, "lifecycle_state", lifecycle_state) pulumi.set(__self__, "project_name", project_name) @@ -517,6 +526,16 @@ def instance_types(self) -> Sequence[str]: """ return pulumi.get(self, "instance_types") + @property + @pulumi.getter(name="ipv6AddressCount") + def ipv6_address_count(self) -> int: + """ + Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + """ + return pulumi.get(self, "ipv6_address_count") + @property @pulumi.getter(name="keyPairName") def key_pair_name(self) -> str: @@ -691,6 +710,41 @@ def volume_type(self) -> str: return pulumi.get(self, "volume_type") +@pulumi.output_type +class ScalingGroupLaunchTemplateOverride(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "instanceType": + suggest = "instance_type" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ScalingGroupLaunchTemplateOverride. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ScalingGroupLaunchTemplateOverride.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ScalingGroupLaunchTemplateOverride.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + instance_type: str): + """ + :param str instance_type: The instance type. + """ + pulumi.set(__self__, "instance_type", instance_type) + + @property + @pulumi.getter(name="instanceType") + def instance_type(self) -> str: + """ + The instance type. + """ + return pulumi.get(self, "instance_type") + + @pulumi.output_type class ScalingGroupServerGroupAttribute(dict): @staticmethod @@ -795,18 +849,23 @@ def __init__(__self__, *, db_instance_ids: Sequence[str], default_cooldown: int, desire_instance_number: int, + health_check_type: str, id: str, instance_terminate_policy: str, launch_template_id: str, + launch_template_overrides: Sequence['outputs.ScalingGroupsScalingGroupLaunchTemplateOverrideResult'], launch_template_version: str, lifecycle_state: str, + load_balancer_health_check_grace_period: int, max_instance_number: int, min_instance_number: int, multi_az_policy: str, project_name: str, scaling_group_id: str, scaling_group_name: str, + scaling_mode: str, server_group_attributes: Sequence['outputs.ScalingGroupsScalingGroupServerGroupAttributeResult'], + stopped_instance_count: int, subnet_ids: Sequence[str], tags: Sequence['outputs.ScalingGroupsScalingGroupTagResult'], total_instance_count: int, @@ -818,18 +877,23 @@ def __init__(__self__, *, :param Sequence[str] db_instance_ids: The list of db instance ids. :param int default_cooldown: The default cooldown interval of the scaling group. :param int desire_instance_number: The desire instance number of the scaling group. + :param str health_check_type: The health check type of the scaling group. :param str id: The id of the scaling group. :param str instance_terminate_policy: The instance terminate policy of the scaling group. :param str launch_template_id: The ID of the launch template bound to the scaling group. + :param Sequence['ScalingGroupsScalingGroupLaunchTemplateOverrideArgs'] launch_template_overrides: Instance start template information. :param str launch_template_version: The version of the launch template bound to the scaling group. :param str lifecycle_state: The lifecycle state of the scaling group. + :param int load_balancer_health_check_grace_period: Grace period for health check of CLB instance in elastic group. :param int max_instance_number: The max instance number of the scaling group. :param int min_instance_number: The min instance number of the scaling group. :param str multi_az_policy: The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. - :param str project_name: The ProjectName of scaling group. + :param str project_name: The project name of the scaling group. :param str scaling_group_id: The id of the scaling group. :param str scaling_group_name: The name of the scaling group. + :param str scaling_mode: The scaling mode of the scaling group. :param Sequence['ScalingGroupsScalingGroupServerGroupAttributeArgs'] server_group_attributes: The list of server group attributes. + :param int stopped_instance_count: The number of stopped instances. :param Sequence[str] subnet_ids: The list of the subnet id to which the ENI is connected. :param Sequence['ScalingGroupsScalingGroupTagArgs'] tags: Tags. :param int total_instance_count: The total instance count of the scaling group. @@ -841,18 +905,23 @@ def __init__(__self__, *, pulumi.set(__self__, "db_instance_ids", db_instance_ids) pulumi.set(__self__, "default_cooldown", default_cooldown) pulumi.set(__self__, "desire_instance_number", desire_instance_number) + pulumi.set(__self__, "health_check_type", health_check_type) pulumi.set(__self__, "id", id) pulumi.set(__self__, "instance_terminate_policy", instance_terminate_policy) pulumi.set(__self__, "launch_template_id", launch_template_id) + pulumi.set(__self__, "launch_template_overrides", launch_template_overrides) pulumi.set(__self__, "launch_template_version", launch_template_version) pulumi.set(__self__, "lifecycle_state", lifecycle_state) + pulumi.set(__self__, "load_balancer_health_check_grace_period", load_balancer_health_check_grace_period) pulumi.set(__self__, "max_instance_number", max_instance_number) pulumi.set(__self__, "min_instance_number", min_instance_number) pulumi.set(__self__, "multi_az_policy", multi_az_policy) pulumi.set(__self__, "project_name", project_name) pulumi.set(__self__, "scaling_group_id", scaling_group_id) pulumi.set(__self__, "scaling_group_name", scaling_group_name) + pulumi.set(__self__, "scaling_mode", scaling_mode) pulumi.set(__self__, "server_group_attributes", server_group_attributes) + pulumi.set(__self__, "stopped_instance_count", stopped_instance_count) pulumi.set(__self__, "subnet_ids", subnet_ids) pulumi.set(__self__, "tags", tags) pulumi.set(__self__, "total_instance_count", total_instance_count) @@ -899,6 +968,14 @@ def desire_instance_number(self) -> int: """ return pulumi.get(self, "desire_instance_number") + @property + @pulumi.getter(name="healthCheckType") + def health_check_type(self) -> str: + """ + The health check type of the scaling group. + """ + return pulumi.get(self, "health_check_type") + @property @pulumi.getter def id(self) -> str: @@ -923,6 +1000,14 @@ def launch_template_id(self) -> str: """ return pulumi.get(self, "launch_template_id") + @property + @pulumi.getter(name="launchTemplateOverrides") + def launch_template_overrides(self) -> Sequence['outputs.ScalingGroupsScalingGroupLaunchTemplateOverrideResult']: + """ + Instance start template information. + """ + return pulumi.get(self, "launch_template_overrides") + @property @pulumi.getter(name="launchTemplateVersion") def launch_template_version(self) -> str: @@ -939,6 +1024,14 @@ def lifecycle_state(self) -> str: """ return pulumi.get(self, "lifecycle_state") + @property + @pulumi.getter(name="loadBalancerHealthCheckGracePeriod") + def load_balancer_health_check_grace_period(self) -> int: + """ + Grace period for health check of CLB instance in elastic group. + """ + return pulumi.get(self, "load_balancer_health_check_grace_period") + @property @pulumi.getter(name="maxInstanceNumber") def max_instance_number(self) -> int: @@ -967,7 +1060,7 @@ def multi_az_policy(self) -> str: @pulumi.getter(name="projectName") def project_name(self) -> str: """ - The ProjectName of scaling group. + The project name of the scaling group. """ return pulumi.get(self, "project_name") @@ -987,6 +1080,14 @@ def scaling_group_name(self) -> str: """ return pulumi.get(self, "scaling_group_name") + @property + @pulumi.getter(name="scalingMode") + def scaling_mode(self) -> str: + """ + The scaling mode of the scaling group. + """ + return pulumi.get(self, "scaling_mode") + @property @pulumi.getter(name="serverGroupAttributes") def server_group_attributes(self) -> Sequence['outputs.ScalingGroupsScalingGroupServerGroupAttributeResult']: @@ -995,6 +1096,14 @@ def server_group_attributes(self) -> Sequence['outputs.ScalingGroupsScalingGroup """ return pulumi.get(self, "server_group_attributes") + @property + @pulumi.getter(name="stoppedInstanceCount") + def stopped_instance_count(self) -> int: + """ + The number of stopped instances. + """ + return pulumi.get(self, "stopped_instance_count") + @property @pulumi.getter(name="subnetIds") def subnet_ids(self) -> Sequence[str]: @@ -1036,6 +1145,35 @@ def vpc_id(self) -> str: return pulumi.get(self, "vpc_id") +@pulumi.output_type +class ScalingGroupsScalingGroupLaunchTemplateOverrideResult(dict): + def __init__(__self__, *, + instance_type: str, + weighted_capacity: int): + """ + :param str instance_type: The instance type. + :param int weighted_capacity: Weight of instance specifications. + """ + pulumi.set(__self__, "instance_type", instance_type) + pulumi.set(__self__, "weighted_capacity", weighted_capacity) + + @property + @pulumi.getter(name="instanceType") + def instance_type(self) -> str: + """ + The instance type. + """ + return pulumi.get(self, "instance_type") + + @property + @pulumi.getter(name="weightedCapacity") + def weighted_capacity(self) -> int: + """ + Weight of instance specifications. + """ + return pulumi.get(self, "weighted_capacity") + + @pulumi.output_type class ScalingGroupsScalingGroupServerGroupAttributeResult(dict): def __init__(__self__, *, @@ -1222,10 +1360,60 @@ def status(self) -> str: return pulumi.get(self, "status") +@pulumi.output_type +class ScalingLifecycleHookLifecycleCommand(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "commandId": + suggest = "command_id" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ScalingLifecycleHookLifecycleCommand. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ScalingLifecycleHookLifecycleCommand.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ScalingLifecycleHookLifecycleCommand.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + command_id: str, + parameters: Optional[str] = None): + """ + :param str command_id: Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + :param str parameters: Parameters and parameter values in batch job commands. + The number of parameters ranges from 0 to 60. + """ + pulumi.set(__self__, "command_id", command_id) + if parameters is not None: + pulumi.set(__self__, "parameters", parameters) + + @property + @pulumi.getter(name="commandId") + def command_id(self) -> str: + """ + Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + """ + return pulumi.get(self, "command_id") + + @property + @pulumi.getter + def parameters(self) -> Optional[str]: + """ + Parameters and parameter values in batch job commands. + The number of parameters ranges from 0 to 60. + """ + return pulumi.get(self, "parameters") + + @pulumi.output_type class ScalingLifecycleHooksLifecycleHookResult(dict): def __init__(__self__, *, id: str, + lifecycle_commands: Sequence['outputs.ScalingLifecycleHooksLifecycleHookLifecycleCommandResult'], lifecycle_hook_id: str, lifecycle_hook_name: str, lifecycle_hook_policy: str, @@ -1234,6 +1422,7 @@ def __init__(__self__, *, scaling_group_id: str): """ :param str id: The id of the lifecycle hook. + :param Sequence['ScalingLifecycleHooksLifecycleHookLifecycleCommandArgs'] lifecycle_commands: Batch job command. :param str lifecycle_hook_id: The id of the lifecycle hook. :param str lifecycle_hook_name: The name of the lifecycle hook. :param str lifecycle_hook_policy: The policy of the lifecycle hook. @@ -1242,6 +1431,7 @@ def __init__(__self__, *, :param str scaling_group_id: An id of scaling group id. """ pulumi.set(__self__, "id", id) + pulumi.set(__self__, "lifecycle_commands", lifecycle_commands) pulumi.set(__self__, "lifecycle_hook_id", lifecycle_hook_id) pulumi.set(__self__, "lifecycle_hook_name", lifecycle_hook_name) pulumi.set(__self__, "lifecycle_hook_policy", lifecycle_hook_policy) @@ -1257,6 +1447,14 @@ def id(self) -> str: """ return pulumi.get(self, "id") + @property + @pulumi.getter(name="lifecycleCommands") + def lifecycle_commands(self) -> Sequence['outputs.ScalingLifecycleHooksLifecycleHookLifecycleCommandResult']: + """ + Batch job command. + """ + return pulumi.get(self, "lifecycle_commands") + @property @pulumi.getter(name="lifecycleHookId") def lifecycle_hook_id(self) -> str: @@ -1306,6 +1504,37 @@ def scaling_group_id(self) -> str: return pulumi.get(self, "scaling_group_id") +@pulumi.output_type +class ScalingLifecycleHooksLifecycleHookLifecycleCommandResult(dict): + def __init__(__self__, *, + command_id: str, + parameters: str): + """ + :param str command_id: Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + :param str parameters: Parameters and parameter values in batch job commands. + The number of parameters ranges from 0 to 60. + """ + pulumi.set(__self__, "command_id", command_id) + pulumi.set(__self__, "parameters", parameters) + + @property + @pulumi.getter(name="commandId") + def command_id(self) -> str: + """ + Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance. + """ + return pulumi.get(self, "command_id") + + @property + @pulumi.getter + def parameters(self) -> str: + """ + Parameters and parameter values in batch job commands. + The number of parameters ranges from 0 to 60. + """ + return pulumi.get(self, "parameters") + + @pulumi.output_type class ScalingPoliciesScalingPolicyResult(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_volcengine/autoscaling/scaling_configuration.py b/sdk/python/pulumi_volcengine/autoscaling/scaling_configuration.py index de0d1592..81cca7f2 100644 --- a/sdk/python/pulumi_volcengine/autoscaling/scaling_configuration.py +++ b/sdk/python/pulumi_volcengine/autoscaling/scaling_configuration.py @@ -29,6 +29,7 @@ def __init__(__self__, *, host_name: Optional[pulumi.Input[str]] = None, hpc_cluster_id: Optional[pulumi.Input[str]] = None, instance_description: Optional[pulumi.Input[str]] = None, + ipv6_address_count: Optional[pulumi.Input[int]] = None, key_pair_name: Optional[pulumi.Input[str]] = None, password: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, @@ -51,6 +52,9 @@ def __init__(__self__, *, :param pulumi.Input[str] host_name: The ECS hostname which the scaling configuration set. :param pulumi.Input[str] hpc_cluster_id: The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type. :param pulumi.Input[str] instance_description: The ECS instance description which the scaling configuration set. + :param pulumi.Input[int] ipv6_address_count: Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. :param pulumi.Input[str] key_pair_name: The ECS key pair name which the scaling configuration set. :param pulumi.Input[str] password: The ECS password which the scaling configuration set. :param pulumi.Input[str] project_name: The project to which the instance created by the scaling configuration belongs. @@ -78,6 +82,8 @@ def __init__(__self__, *, pulumi.set(__self__, "hpc_cluster_id", hpc_cluster_id) if instance_description is not None: pulumi.set(__self__, "instance_description", instance_description) + if ipv6_address_count is not None: + pulumi.set(__self__, "ipv6_address_count", ipv6_address_count) if key_pair_name is not None: pulumi.set(__self__, "key_pair_name", key_pair_name) if password is not None: @@ -249,6 +255,20 @@ def instance_description(self) -> Optional[pulumi.Input[str]]: def instance_description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "instance_description", value) + @property + @pulumi.getter(name="ipv6AddressCount") + def ipv6_address_count(self) -> Optional[pulumi.Input[int]]: + """ + Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + """ + return pulumi.get(self, "ipv6_address_count") + + @ipv6_address_count.setter + def ipv6_address_count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "ipv6_address_count", value) + @property @pulumi.getter(name="keyPairName") def key_pair_name(self) -> Optional[pulumi.Input[str]]: @@ -347,6 +367,7 @@ def __init__(__self__, *, instance_description: Optional[pulumi.Input[str]] = None, instance_name: Optional[pulumi.Input[str]] = None, instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + ipv6_address_count: Optional[pulumi.Input[int]] = None, key_pair_name: Optional[pulumi.Input[str]] = None, lifecycle_state: Optional[pulumi.Input[str]] = None, password: Optional[pulumi.Input[str]] = None, @@ -373,6 +394,9 @@ def __init__(__self__, *, :param pulumi.Input[str] instance_description: The ECS instance description which the scaling configuration set. :param pulumi.Input[str] instance_name: The ECS instance name which the scaling configuration set. :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_types: The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. + :param pulumi.Input[int] ipv6_address_count: Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. :param pulumi.Input[str] key_pair_name: The ECS key pair name which the scaling configuration set. :param pulumi.Input[str] lifecycle_state: The lifecycle state of the scaling configuration. :param pulumi.Input[str] password: The ECS password which the scaling configuration set. @@ -408,6 +432,8 @@ def __init__(__self__, *, pulumi.set(__self__, "instance_name", instance_name) if instance_types is not None: pulumi.set(__self__, "instance_types", instance_types) + if ipv6_address_count is not None: + pulumi.set(__self__, "ipv6_address_count", ipv6_address_count) if key_pair_name is not None: pulumi.set(__self__, "key_pair_name", key_pair_name) if lifecycle_state is not None: @@ -557,6 +583,20 @@ def instance_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def instance_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "instance_types", value) + @property + @pulumi.getter(name="ipv6AddressCount") + def ipv6_address_count(self) -> Optional[pulumi.Input[int]]: + """ + Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + """ + return pulumi.get(self, "ipv6_address_count") + + @ipv6_address_count.setter + def ipv6_address_count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "ipv6_address_count", value) + @property @pulumi.getter(name="keyPairName") def key_pair_name(self) -> Optional[pulumi.Input[str]]: @@ -740,6 +780,7 @@ def __init__(__self__, instance_description: Optional[pulumi.Input[str]] = None, instance_name: Optional[pulumi.Input[str]] = None, instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + ipv6_address_count: Optional[pulumi.Input[int]] = None, key_pair_name: Optional[pulumi.Input[str]] = None, password: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, @@ -845,6 +886,9 @@ def __init__(__self__, :param pulumi.Input[str] instance_description: The ECS instance description which the scaling configuration set. :param pulumi.Input[str] instance_name: The ECS instance name which the scaling configuration set. :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_types: The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. + :param pulumi.Input[int] ipv6_address_count: Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. :param pulumi.Input[str] key_pair_name: The ECS key pair name which the scaling configuration set. :param pulumi.Input[str] password: The ECS password which the scaling configuration set. :param pulumi.Input[str] project_name: The project to which the instance created by the scaling configuration belongs. @@ -969,6 +1013,7 @@ def _internal_init(__self__, instance_description: Optional[pulumi.Input[str]] = None, instance_name: Optional[pulumi.Input[str]] = None, instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + ipv6_address_count: Optional[pulumi.Input[int]] = None, key_pair_name: Optional[pulumi.Input[str]] = None, password: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, @@ -1004,6 +1049,7 @@ def _internal_init(__self__, if instance_types is None and not opts.urn: raise TypeError("Missing required property 'instance_types'") __props__.__dict__["instance_types"] = instance_types + __props__.__dict__["ipv6_address_count"] = ipv6_address_count __props__.__dict__["key_pair_name"] = key_pair_name __props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password) __props__.__dict__["project_name"] = project_name @@ -1049,6 +1095,7 @@ def get(resource_name: str, instance_description: Optional[pulumi.Input[str]] = None, instance_name: Optional[pulumi.Input[str]] = None, instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + ipv6_address_count: Optional[pulumi.Input[int]] = None, key_pair_name: Optional[pulumi.Input[str]] = None, lifecycle_state: Optional[pulumi.Input[str]] = None, password: Optional[pulumi.Input[str]] = None, @@ -1080,6 +1127,9 @@ def get(resource_name: str, :param pulumi.Input[str] instance_description: The ECS instance description which the scaling configuration set. :param pulumi.Input[str] instance_name: The ECS instance name which the scaling configuration set. :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_types: The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10. + :param pulumi.Input[int] ipv6_address_count: Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. :param pulumi.Input[str] key_pair_name: The ECS key pair name which the scaling configuration set. :param pulumi.Input[str] lifecycle_state: The lifecycle state of the scaling configuration. :param pulumi.Input[str] password: The ECS password which the scaling configuration set. @@ -1109,6 +1159,7 @@ def get(resource_name: str, __props__.__dict__["instance_description"] = instance_description __props__.__dict__["instance_name"] = instance_name __props__.__dict__["instance_types"] = instance_types + __props__.__dict__["ipv6_address_count"] = ipv6_address_count __props__.__dict__["key_pair_name"] = key_pair_name __props__.__dict__["lifecycle_state"] = lifecycle_state __props__.__dict__["password"] = password @@ -1205,6 +1256,16 @@ def instance_types(self) -> pulumi.Output[Sequence[str]]: """ return pulumi.get(self, "instance_types") + @property + @pulumi.getter(name="ipv6AddressCount") + def ipv6_address_count(self) -> pulumi.Output[Optional[int]]: + """ + Assign IPv6 address to instance network card. Possible values: + 0: Do not assign IPv6 address. + 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you. + """ + return pulumi.get(self, "ipv6_address_count") + @property @pulumi.getter(name="keyPairName") def key_pair_name(self) -> pulumi.Output[Optional[str]]: diff --git a/sdk/python/pulumi_volcengine/autoscaling/scaling_group.py b/sdk/python/pulumi_volcengine/autoscaling/scaling_group.py index 596e5b1d..19afe35d 100644 --- a/sdk/python/pulumi_volcengine/autoscaling/scaling_group.py +++ b/sdk/python/pulumi_volcengine/autoscaling/scaling_group.py @@ -20,13 +20,16 @@ def __init__(__self__, *, min_instance_number: pulumi.Input[int], scaling_group_name: pulumi.Input[str], subnet_ids: pulumi.Input[Sequence[pulumi.Input[str]]], + db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_cooldown: Optional[pulumi.Input[int]] = None, desire_instance_number: Optional[pulumi.Input[int]] = None, instance_terminate_policy: Optional[pulumi.Input[str]] = None, launch_template_id: Optional[pulumi.Input[str]] = None, + launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]] = None, launch_template_version: Optional[pulumi.Input[str]] = None, multi_az_policy: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, + scaling_mode: Optional[pulumi.Input[str]] = None, server_group_attributes: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupTagArgs']]]] = None): """ @@ -35,13 +38,18 @@ def __init__(__self__, *, :param pulumi.Input[int] min_instance_number: The min instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[str] scaling_group_name: The name of the scaling group. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: The list of the subnet id to which the ENI is connected. + :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: ID of the RDS database instance. :param pulumi.Input[int] default_cooldown: The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. :param pulumi.Input[int] desire_instance_number: The desire instance number of the scaling group. :param pulumi.Input[str] instance_terminate_policy: The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. :param pulumi.Input[str] launch_template_id: The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. + :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]] launch_template_overrides: Specify instance specifications. :param pulumi.Input[str] launch_template_version: The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. :param pulumi.Input[str] multi_az_policy: The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY. :param pulumi.Input[str] project_name: The ProjectName of the scaling group. + :param pulumi.Input[str] scaling_mode: Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]] server_group_attributes: The load balancer server group attributes of the scaling group. :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupTagArgs']]] tags: Tags. """ @@ -49,6 +57,8 @@ def __init__(__self__, *, pulumi.set(__self__, "min_instance_number", min_instance_number) pulumi.set(__self__, "scaling_group_name", scaling_group_name) pulumi.set(__self__, "subnet_ids", subnet_ids) + if db_instance_ids is not None: + pulumi.set(__self__, "db_instance_ids", db_instance_ids) if default_cooldown is not None: pulumi.set(__self__, "default_cooldown", default_cooldown) if desire_instance_number is not None: @@ -57,12 +67,16 @@ def __init__(__self__, *, pulumi.set(__self__, "instance_terminate_policy", instance_terminate_policy) if launch_template_id is not None: pulumi.set(__self__, "launch_template_id", launch_template_id) + if launch_template_overrides is not None: + pulumi.set(__self__, "launch_template_overrides", launch_template_overrides) if launch_template_version is not None: pulumi.set(__self__, "launch_template_version", launch_template_version) if multi_az_policy is not None: pulumi.set(__self__, "multi_az_policy", multi_az_policy) if project_name is not None: pulumi.set(__self__, "project_name", project_name) + if scaling_mode is not None: + pulumi.set(__self__, "scaling_mode", scaling_mode) if server_group_attributes is not None: pulumi.set(__self__, "server_group_attributes", server_group_attributes) if tags is not None: @@ -116,6 +130,18 @@ def subnet_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: def subnet_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "subnet_ids", value) + @property + @pulumi.getter(name="dbInstanceIds") + def db_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + ID of the RDS database instance. + """ + return pulumi.get(self, "db_instance_ids") + + @db_instance_ids.setter + def db_instance_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "db_instance_ids", value) + @property @pulumi.getter(name="defaultCooldown") def default_cooldown(self) -> Optional[pulumi.Input[int]]: @@ -164,6 +190,18 @@ def launch_template_id(self) -> Optional[pulumi.Input[str]]: def launch_template_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "launch_template_id", value) + @property + @pulumi.getter(name="launchTemplateOverrides") + def launch_template_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]]: + """ + Specify instance specifications. + """ + return pulumi.get(self, "launch_template_overrides") + + @launch_template_overrides.setter + def launch_template_overrides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]]): + pulumi.set(self, "launch_template_overrides", value) + @property @pulumi.getter(name="launchTemplateVersion") def launch_template_version(self) -> Optional[pulumi.Input[str]]: @@ -200,6 +238,20 @@ def project_name(self) -> Optional[pulumi.Input[str]]: def project_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project_name", value) + @property + @pulumi.getter(name="scalingMode") + def scaling_mode(self) -> Optional[pulumi.Input[str]]: + """ + Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. + """ + return pulumi.get(self, "scaling_mode") + + @scaling_mode.setter + def scaling_mode(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "scaling_mode", value) + @property @pulumi.getter(name="serverGroupAttributes") def server_group_attributes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]]]: @@ -233,17 +285,22 @@ def __init__(__self__, *, db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_cooldown: Optional[pulumi.Input[int]] = None, desire_instance_number: Optional[pulumi.Input[int]] = None, + health_check_type: Optional[pulumi.Input[str]] = None, instance_terminate_policy: Optional[pulumi.Input[str]] = None, launch_template_id: Optional[pulumi.Input[str]] = None, + launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]] = None, launch_template_version: Optional[pulumi.Input[str]] = None, lifecycle_state: Optional[pulumi.Input[str]] = None, + load_balancer_health_check_grace_period: Optional[pulumi.Input[int]] = None, max_instance_number: Optional[pulumi.Input[int]] = None, min_instance_number: Optional[pulumi.Input[int]] = None, multi_az_policy: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, scaling_group_id: Optional[pulumi.Input[str]] = None, scaling_group_name: Optional[pulumi.Input[str]] = None, + scaling_mode: Optional[pulumi.Input[str]] = None, server_group_attributes: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]]] = None, + stopped_instance_count: Optional[pulumi.Input[int]] = None, subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupTagArgs']]]] = None, total_instance_count: Optional[pulumi.Input[int]] = None, @@ -253,20 +310,27 @@ def __init__(__self__, *, Input properties used for looking up and filtering ScalingGroup resources. :param pulumi.Input[str] active_scaling_configuration_id: The scaling configuration id which used by the scaling group. :param pulumi.Input[str] created_at: The create time of the scaling group. - :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: The list of db instance ids. + :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: ID of the RDS database instance. :param pulumi.Input[int] default_cooldown: The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. :param pulumi.Input[int] desire_instance_number: The desire instance number of the scaling group. + :param pulumi.Input[str] health_check_type: The health check type of the scaling group. :param pulumi.Input[str] instance_terminate_policy: The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. :param pulumi.Input[str] launch_template_id: The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. + :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]] launch_template_overrides: Specify instance specifications. :param pulumi.Input[str] launch_template_version: The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. :param pulumi.Input[str] lifecycle_state: The lifecycle state of the scaling group. + :param pulumi.Input[int] load_balancer_health_check_grace_period: Grace period for health check of CLB instance in elastic group. :param pulumi.Input[int] max_instance_number: The max instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[int] min_instance_number: The min instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[str] multi_az_policy: The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY. :param pulumi.Input[str] project_name: The ProjectName of the scaling group. :param pulumi.Input[str] scaling_group_id: The id of the scaling group. :param pulumi.Input[str] scaling_group_name: The name of the scaling group. + :param pulumi.Input[str] scaling_mode: Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]] server_group_attributes: The load balancer server group attributes of the scaling group. + :param pulumi.Input[int] stopped_instance_count: The number of stopped instances. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: The list of the subnet id to which the ENI is connected. :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupTagArgs']]] tags: Tags. :param pulumi.Input[int] total_instance_count: The total instance count of the scaling group. @@ -283,14 +347,20 @@ def __init__(__self__, *, pulumi.set(__self__, "default_cooldown", default_cooldown) if desire_instance_number is not None: pulumi.set(__self__, "desire_instance_number", desire_instance_number) + if health_check_type is not None: + pulumi.set(__self__, "health_check_type", health_check_type) if instance_terminate_policy is not None: pulumi.set(__self__, "instance_terminate_policy", instance_terminate_policy) if launch_template_id is not None: pulumi.set(__self__, "launch_template_id", launch_template_id) + if launch_template_overrides is not None: + pulumi.set(__self__, "launch_template_overrides", launch_template_overrides) if launch_template_version is not None: pulumi.set(__self__, "launch_template_version", launch_template_version) if lifecycle_state is not None: pulumi.set(__self__, "lifecycle_state", lifecycle_state) + if load_balancer_health_check_grace_period is not None: + pulumi.set(__self__, "load_balancer_health_check_grace_period", load_balancer_health_check_grace_period) if max_instance_number is not None: pulumi.set(__self__, "max_instance_number", max_instance_number) if min_instance_number is not None: @@ -303,8 +373,12 @@ def __init__(__self__, *, pulumi.set(__self__, "scaling_group_id", scaling_group_id) if scaling_group_name is not None: pulumi.set(__self__, "scaling_group_name", scaling_group_name) + if scaling_mode is not None: + pulumi.set(__self__, "scaling_mode", scaling_mode) if server_group_attributes is not None: pulumi.set(__self__, "server_group_attributes", server_group_attributes) + if stopped_instance_count is not None: + pulumi.set(__self__, "stopped_instance_count", stopped_instance_count) if subnet_ids is not None: pulumi.set(__self__, "subnet_ids", subnet_ids) if tags is not None: @@ -344,7 +418,7 @@ def created_at(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="dbInstanceIds") def db_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - The list of db instance ids. + ID of the RDS database instance. """ return pulumi.get(self, "db_instance_ids") @@ -376,6 +450,18 @@ def desire_instance_number(self) -> Optional[pulumi.Input[int]]: def desire_instance_number(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "desire_instance_number", value) + @property + @pulumi.getter(name="healthCheckType") + def health_check_type(self) -> Optional[pulumi.Input[str]]: + """ + The health check type of the scaling group. + """ + return pulumi.get(self, "health_check_type") + + @health_check_type.setter + def health_check_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "health_check_type", value) + @property @pulumi.getter(name="instanceTerminatePolicy") def instance_terminate_policy(self) -> Optional[pulumi.Input[str]]: @@ -400,6 +486,18 @@ def launch_template_id(self) -> Optional[pulumi.Input[str]]: def launch_template_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "launch_template_id", value) + @property + @pulumi.getter(name="launchTemplateOverrides") + def launch_template_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]]: + """ + Specify instance specifications. + """ + return pulumi.get(self, "launch_template_overrides") + + @launch_template_overrides.setter + def launch_template_overrides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]]): + pulumi.set(self, "launch_template_overrides", value) + @property @pulumi.getter(name="launchTemplateVersion") def launch_template_version(self) -> Optional[pulumi.Input[str]]: @@ -424,6 +522,18 @@ def lifecycle_state(self) -> Optional[pulumi.Input[str]]: def lifecycle_state(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "lifecycle_state", value) + @property + @pulumi.getter(name="loadBalancerHealthCheckGracePeriod") + def load_balancer_health_check_grace_period(self) -> Optional[pulumi.Input[int]]: + """ + Grace period for health check of CLB instance in elastic group. + """ + return pulumi.get(self, "load_balancer_health_check_grace_period") + + @load_balancer_health_check_grace_period.setter + def load_balancer_health_check_grace_period(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "load_balancer_health_check_grace_period", value) + @property @pulumi.getter(name="maxInstanceNumber") def max_instance_number(self) -> Optional[pulumi.Input[int]]: @@ -496,6 +606,20 @@ def scaling_group_name(self) -> Optional[pulumi.Input[str]]: def scaling_group_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "scaling_group_name", value) + @property + @pulumi.getter(name="scalingMode") + def scaling_mode(self) -> Optional[pulumi.Input[str]]: + """ + Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. + """ + return pulumi.get(self, "scaling_mode") + + @scaling_mode.setter + def scaling_mode(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "scaling_mode", value) + @property @pulumi.getter(name="serverGroupAttributes") def server_group_attributes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]]]: @@ -508,6 +632,18 @@ def server_group_attributes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input def server_group_attributes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupServerGroupAttributeArgs']]]]): pulumi.set(self, "server_group_attributes", value) + @property + @pulumi.getter(name="stoppedInstanceCount") + def stopped_instance_count(self) -> Optional[pulumi.Input[int]]: + """ + The number of stopped instances. + """ + return pulumi.get(self, "stopped_instance_count") + + @stopped_instance_count.setter + def stopped_instance_count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "stopped_instance_count", value) + @property @pulumi.getter(name="subnetIds") def subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: @@ -574,16 +710,19 @@ class ScalingGroup(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_cooldown: Optional[pulumi.Input[int]] = None, desire_instance_number: Optional[pulumi.Input[int]] = None, instance_terminate_policy: Optional[pulumi.Input[str]] = None, launch_template_id: Optional[pulumi.Input[str]] = None, + launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]]] = None, launch_template_version: Optional[pulumi.Input[str]] = None, max_instance_number: Optional[pulumi.Input[int]] = None, min_instance_number: Optional[pulumi.Input[int]] = None, multi_az_policy: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, scaling_group_name: Optional[pulumi.Input[str]] = None, + scaling_mode: Optional[pulumi.Input[str]] = None, server_group_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupServerGroupAttributeArgs']]]]] = None, subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupTagArgs']]]]] = None, @@ -638,16 +777,21 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: ID of the RDS database instance. :param pulumi.Input[int] default_cooldown: The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. :param pulumi.Input[int] desire_instance_number: The desire instance number of the scaling group. :param pulumi.Input[str] instance_terminate_policy: The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. :param pulumi.Input[str] launch_template_id: The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]] launch_template_overrides: Specify instance specifications. :param pulumi.Input[str] launch_template_version: The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. :param pulumi.Input[int] max_instance_number: The max instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[int] min_instance_number: The min instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[str] multi_az_policy: The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY. :param pulumi.Input[str] project_name: The ProjectName of the scaling group. :param pulumi.Input[str] scaling_group_name: The name of the scaling group. + :param pulumi.Input[str] scaling_mode: Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupServerGroupAttributeArgs']]]] server_group_attributes: The load balancer server group attributes of the scaling group. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: The list of the subnet id to which the ENI is connected. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupTagArgs']]]] tags: Tags. @@ -721,16 +865,19 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_cooldown: Optional[pulumi.Input[int]] = None, desire_instance_number: Optional[pulumi.Input[int]] = None, instance_terminate_policy: Optional[pulumi.Input[str]] = None, launch_template_id: Optional[pulumi.Input[str]] = None, + launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]]] = None, launch_template_version: Optional[pulumi.Input[str]] = None, max_instance_number: Optional[pulumi.Input[int]] = None, min_instance_number: Optional[pulumi.Input[int]] = None, multi_az_policy: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, scaling_group_name: Optional[pulumi.Input[str]] = None, + scaling_mode: Optional[pulumi.Input[str]] = None, server_group_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupServerGroupAttributeArgs']]]]] = None, subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupTagArgs']]]]] = None, @@ -743,10 +890,12 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ScalingGroupArgs.__new__(ScalingGroupArgs) + __props__.__dict__["db_instance_ids"] = db_instance_ids __props__.__dict__["default_cooldown"] = default_cooldown __props__.__dict__["desire_instance_number"] = desire_instance_number __props__.__dict__["instance_terminate_policy"] = instance_terminate_policy __props__.__dict__["launch_template_id"] = launch_template_id + __props__.__dict__["launch_template_overrides"] = launch_template_overrides __props__.__dict__["launch_template_version"] = launch_template_version if max_instance_number is None and not opts.urn: raise TypeError("Missing required property 'max_instance_number'") @@ -759,6 +908,7 @@ def _internal_init(__self__, if scaling_group_name is None and not opts.urn: raise TypeError("Missing required property 'scaling_group_name'") __props__.__dict__["scaling_group_name"] = scaling_group_name + __props__.__dict__["scaling_mode"] = scaling_mode __props__.__dict__["server_group_attributes"] = server_group_attributes if subnet_ids is None and not opts.urn: raise TypeError("Missing required property 'subnet_ids'") @@ -766,9 +916,11 @@ def _internal_init(__self__, __props__.__dict__["tags"] = tags __props__.__dict__["active_scaling_configuration_id"] = None __props__.__dict__["created_at"] = None - __props__.__dict__["db_instance_ids"] = None + __props__.__dict__["health_check_type"] = None __props__.__dict__["lifecycle_state"] = None + __props__.__dict__["load_balancer_health_check_grace_period"] = None __props__.__dict__["scaling_group_id"] = None + __props__.__dict__["stopped_instance_count"] = None __props__.__dict__["total_instance_count"] = None __props__.__dict__["updated_at"] = None __props__.__dict__["vpc_id"] = None @@ -787,17 +939,22 @@ def get(resource_name: str, db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_cooldown: Optional[pulumi.Input[int]] = None, desire_instance_number: Optional[pulumi.Input[int]] = None, + health_check_type: Optional[pulumi.Input[str]] = None, instance_terminate_policy: Optional[pulumi.Input[str]] = None, launch_template_id: Optional[pulumi.Input[str]] = None, + launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]]] = None, launch_template_version: Optional[pulumi.Input[str]] = None, lifecycle_state: Optional[pulumi.Input[str]] = None, + load_balancer_health_check_grace_period: Optional[pulumi.Input[int]] = None, max_instance_number: Optional[pulumi.Input[int]] = None, min_instance_number: Optional[pulumi.Input[int]] = None, multi_az_policy: Optional[pulumi.Input[str]] = None, project_name: Optional[pulumi.Input[str]] = None, scaling_group_id: Optional[pulumi.Input[str]] = None, scaling_group_name: Optional[pulumi.Input[str]] = None, + scaling_mode: Optional[pulumi.Input[str]] = None, server_group_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupServerGroupAttributeArgs']]]]] = None, + stopped_instance_count: Optional[pulumi.Input[int]] = None, subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupTagArgs']]]]] = None, total_instance_count: Optional[pulumi.Input[int]] = None, @@ -812,20 +969,27 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] active_scaling_configuration_id: The scaling configuration id which used by the scaling group. :param pulumi.Input[str] created_at: The create time of the scaling group. - :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: The list of db instance ids. + :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: ID of the RDS database instance. :param pulumi.Input[int] default_cooldown: The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300. :param pulumi.Input[int] desire_instance_number: The desire instance number of the scaling group. + :param pulumi.Input[str] health_check_type: The health check type of the scaling group. :param pulumi.Input[str] instance_terminate_policy: The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance. :param pulumi.Input[str] launch_template_id: The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]] launch_template_overrides: Specify instance specifications. :param pulumi.Input[str] launch_template_version: The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default. :param pulumi.Input[str] lifecycle_state: The lifecycle state of the scaling group. + :param pulumi.Input[int] load_balancer_health_check_grace_period: Grace period for health check of CLB instance in elastic group. :param pulumi.Input[int] max_instance_number: The max instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[int] min_instance_number: The min instance number of the scaling group. Value range: 0 ~ 100. :param pulumi.Input[str] multi_az_policy: The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY. :param pulumi.Input[str] project_name: The ProjectName of the scaling group. :param pulumi.Input[str] scaling_group_id: The id of the scaling group. :param pulumi.Input[str] scaling_group_name: The name of the scaling group. + :param pulumi.Input[str] scaling_mode: Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupServerGroupAttributeArgs']]]] server_group_attributes: The load balancer server group attributes of the scaling group. + :param pulumi.Input[int] stopped_instance_count: The number of stopped instances. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: The list of the subnet id to which the ENI is connected. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupTagArgs']]]] tags: Tags. :param pulumi.Input[int] total_instance_count: The total instance count of the scaling group. @@ -841,17 +1005,22 @@ def get(resource_name: str, __props__.__dict__["db_instance_ids"] = db_instance_ids __props__.__dict__["default_cooldown"] = default_cooldown __props__.__dict__["desire_instance_number"] = desire_instance_number + __props__.__dict__["health_check_type"] = health_check_type __props__.__dict__["instance_terminate_policy"] = instance_terminate_policy __props__.__dict__["launch_template_id"] = launch_template_id + __props__.__dict__["launch_template_overrides"] = launch_template_overrides __props__.__dict__["launch_template_version"] = launch_template_version __props__.__dict__["lifecycle_state"] = lifecycle_state + __props__.__dict__["load_balancer_health_check_grace_period"] = load_balancer_health_check_grace_period __props__.__dict__["max_instance_number"] = max_instance_number __props__.__dict__["min_instance_number"] = min_instance_number __props__.__dict__["multi_az_policy"] = multi_az_policy __props__.__dict__["project_name"] = project_name __props__.__dict__["scaling_group_id"] = scaling_group_id __props__.__dict__["scaling_group_name"] = scaling_group_name + __props__.__dict__["scaling_mode"] = scaling_mode __props__.__dict__["server_group_attributes"] = server_group_attributes + __props__.__dict__["stopped_instance_count"] = stopped_instance_count __props__.__dict__["subnet_ids"] = subnet_ids __props__.__dict__["tags"] = tags __props__.__dict__["total_instance_count"] = total_instance_count @@ -877,9 +1046,9 @@ def created_at(self) -> pulumi.Output[str]: @property @pulumi.getter(name="dbInstanceIds") - def db_instance_ids(self) -> pulumi.Output[Sequence[str]]: + def db_instance_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: """ - The list of db instance ids. + ID of the RDS database instance. """ return pulumi.get(self, "db_instance_ids") @@ -899,6 +1068,14 @@ def desire_instance_number(self) -> pulumi.Output[int]: """ return pulumi.get(self, "desire_instance_number") + @property + @pulumi.getter(name="healthCheckType") + def health_check_type(self) -> pulumi.Output[str]: + """ + The health check type of the scaling group. + """ + return pulumi.get(self, "health_check_type") + @property @pulumi.getter(name="instanceTerminatePolicy") def instance_terminate_policy(self) -> pulumi.Output[str]: @@ -915,6 +1092,14 @@ def launch_template_id(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "launch_template_id") + @property + @pulumi.getter(name="launchTemplateOverrides") + def launch_template_overrides(self) -> pulumi.Output[Optional[Sequence['outputs.ScalingGroupLaunchTemplateOverride']]]: + """ + Specify instance specifications. + """ + return pulumi.get(self, "launch_template_overrides") + @property @pulumi.getter(name="launchTemplateVersion") def launch_template_version(self) -> pulumi.Output[Optional[str]]: @@ -931,6 +1116,14 @@ def lifecycle_state(self) -> pulumi.Output[str]: """ return pulumi.get(self, "lifecycle_state") + @property + @pulumi.getter(name="loadBalancerHealthCheckGracePeriod") + def load_balancer_health_check_grace_period(self) -> pulumi.Output[int]: + """ + Grace period for health check of CLB instance in elastic group. + """ + return pulumi.get(self, "load_balancer_health_check_grace_period") + @property @pulumi.getter(name="maxInstanceNumber") def max_instance_number(self) -> pulumi.Output[int]: @@ -979,6 +1172,16 @@ def scaling_group_name(self) -> pulumi.Output[str]: """ return pulumi.get(self, "scaling_group_name") + @property + @pulumi.getter(name="scalingMode") + def scaling_mode(self) -> pulumi.Output[str]: + """ + Example recycling mode for the elastic group, with values: + release (default): Release mode. + recycle: Shutdown recycling mode. + """ + return pulumi.get(self, "scaling_mode") + @property @pulumi.getter(name="serverGroupAttributes") def server_group_attributes(self) -> pulumi.Output[Optional[Sequence['outputs.ScalingGroupServerGroupAttribute']]]: @@ -987,6 +1190,14 @@ def server_group_attributes(self) -> pulumi.Output[Optional[Sequence['outputs.Sc """ return pulumi.get(self, "server_group_attributes") + @property + @pulumi.getter(name="stoppedInstanceCount") + def stopped_instance_count(self) -> pulumi.Output[int]: + """ + The number of stopped instances. + """ + return pulumi.get(self, "stopped_instance_count") + @property @pulumi.getter(name="subnetIds") def subnet_ids(self) -> pulumi.Output[Sequence[str]]: diff --git a/sdk/python/pulumi_volcengine/autoscaling/scaling_groups.py b/sdk/python/pulumi_volcengine/autoscaling/scaling_groups.py index 888abe2d..82982ab9 100644 --- a/sdk/python/pulumi_volcengine/autoscaling/scaling_groups.py +++ b/sdk/python/pulumi_volcengine/autoscaling/scaling_groups.py @@ -22,7 +22,7 @@ class ScalingGroupsResult: """ A collection of values returned by ScalingGroups. """ - def __init__(__self__, id=None, ids=None, name_regex=None, output_file=None, scaling_group_names=None, scaling_groups=None, total_count=None): + def __init__(__self__, id=None, ids=None, name_regex=None, output_file=None, project_name=None, scaling_group_names=None, scaling_groups=None, total_count=None): if id and not isinstance(id, str): raise TypeError("Expected argument 'id' to be a str") pulumi.set(__self__, "id", id) @@ -35,6 +35,9 @@ def __init__(__self__, id=None, ids=None, name_regex=None, output_file=None, sca if output_file and not isinstance(output_file, str): raise TypeError("Expected argument 'output_file' to be a str") pulumi.set(__self__, "output_file", output_file) + if project_name and not isinstance(project_name, str): + raise TypeError("Expected argument 'project_name' to be a str") + pulumi.set(__self__, "project_name", project_name) if scaling_group_names and not isinstance(scaling_group_names, list): raise TypeError("Expected argument 'scaling_group_names' to be a list") pulumi.set(__self__, "scaling_group_names", scaling_group_names) @@ -68,6 +71,14 @@ def name_regex(self) -> Optional[str]: def output_file(self) -> Optional[str]: return pulumi.get(self, "output_file") + @property + @pulumi.getter(name="projectName") + def project_name(self) -> Optional[str]: + """ + The ProjectName of scaling group. + """ + return pulumi.get(self, "project_name") + @property @pulumi.getter(name="scalingGroupNames") def scaling_group_names(self) -> Optional[Sequence[str]]: @@ -100,6 +111,7 @@ def __await__(self): ids=self.ids, name_regex=self.name_regex, output_file=self.output_file, + project_name=self.project_name, scaling_group_names=self.scaling_group_names, scaling_groups=self.scaling_groups, total_count=self.total_count) @@ -108,6 +120,7 @@ def __await__(self): def scaling_groups(ids: Optional[Sequence[str]] = None, name_regex: Optional[str] = None, output_file: Optional[str] = None, + project_name: Optional[str] = None, scaling_group_names: Optional[Sequence[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableScalingGroupsResult: """ @@ -155,12 +168,14 @@ def scaling_groups(ids: Optional[Sequence[str]] = None, :param Sequence[str] ids: A list of scaling group ids. :param str name_regex: A Name Regex of scaling group. :param str output_file: File name where to save data source results. + :param str project_name: The project name of the scaling group. :param Sequence[str] scaling_group_names: A list of scaling group names. """ __args__ = dict() __args__['ids'] = ids __args__['nameRegex'] = name_regex __args__['outputFile'] = output_file + __args__['projectName'] = project_name __args__['scalingGroupNames'] = scaling_group_names opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('volcengine:autoscaling/scalingGroups:ScalingGroups', __args__, opts=opts, typ=ScalingGroupsResult).value @@ -170,6 +185,7 @@ def scaling_groups(ids: Optional[Sequence[str]] = None, ids=pulumi.get(__ret__, 'ids'), name_regex=pulumi.get(__ret__, 'name_regex'), output_file=pulumi.get(__ret__, 'output_file'), + project_name=pulumi.get(__ret__, 'project_name'), scaling_group_names=pulumi.get(__ret__, 'scaling_group_names'), scaling_groups=pulumi.get(__ret__, 'scaling_groups'), total_count=pulumi.get(__ret__, 'total_count')) @@ -179,6 +195,7 @@ def scaling_groups(ids: Optional[Sequence[str]] = None, def scaling_groups_output(ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, name_regex: Optional[pulumi.Input[Optional[str]]] = None, output_file: Optional[pulumi.Input[Optional[str]]] = None, + project_name: Optional[pulumi.Input[Optional[str]]] = None, scaling_group_names: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[ScalingGroupsResult]: """ @@ -226,6 +243,7 @@ def scaling_groups_output(ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = :param Sequence[str] ids: A list of scaling group ids. :param str name_regex: A Name Regex of scaling group. :param str output_file: File name where to save data source results. + :param str project_name: The project name of the scaling group. :param Sequence[str] scaling_group_names: A list of scaling group names. """ ... diff --git a/sdk/python/pulumi_volcengine/autoscaling/scaling_lifecycle_hook.py b/sdk/python/pulumi_volcengine/autoscaling/scaling_lifecycle_hook.py index aa4ac99f..edf723f9 100644 --- a/sdk/python/pulumi_volcengine/autoscaling/scaling_lifecycle_hook.py +++ b/sdk/python/pulumi_volcengine/autoscaling/scaling_lifecycle_hook.py @@ -8,6 +8,8 @@ import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities +from . import outputs +from ._inputs import * __all__ = ['ScalingLifecycleHookArgs', 'ScalingLifecycleHook'] @@ -18,20 +20,24 @@ def __init__(__self__, *, lifecycle_hook_policy: pulumi.Input[str], lifecycle_hook_timeout: pulumi.Input[int], lifecycle_hook_type: pulumi.Input[str], - scaling_group_id: pulumi.Input[str]): + scaling_group_id: pulumi.Input[str], + lifecycle_command: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']] = None): """ The set of arguments for constructing a ScalingLifecycleHook resource. :param pulumi.Input[str] lifecycle_hook_name: The name of the lifecycle hook. - :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. :param pulumi.Input[int] lifecycle_hook_timeout: The timeout of the lifecycle hook. :param pulumi.Input[str] lifecycle_hook_type: The type of the lifecycle hook. Valid values: SCALE_IN, SCALE_OUT. :param pulumi.Input[str] scaling_group_id: The id of the scaling group. + :param pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs'] lifecycle_command: Batch job command. """ pulumi.set(__self__, "lifecycle_hook_name", lifecycle_hook_name) pulumi.set(__self__, "lifecycle_hook_policy", lifecycle_hook_policy) pulumi.set(__self__, "lifecycle_hook_timeout", lifecycle_hook_timeout) pulumi.set(__self__, "lifecycle_hook_type", lifecycle_hook_type) pulumi.set(__self__, "scaling_group_id", scaling_group_id) + if lifecycle_command is not None: + pulumi.set(__self__, "lifecycle_command", lifecycle_command) @property @pulumi.getter(name="lifecycleHookName") @@ -49,7 +55,7 @@ def lifecycle_hook_name(self, value: pulumi.Input[str]): @pulumi.getter(name="lifecycleHookPolicy") def lifecycle_hook_policy(self) -> pulumi.Input[str]: """ - The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. """ return pulumi.get(self, "lifecycle_hook_policy") @@ -93,10 +99,23 @@ def scaling_group_id(self) -> pulumi.Input[str]: def scaling_group_id(self, value: pulumi.Input[str]): pulumi.set(self, "scaling_group_id", value) + @property + @pulumi.getter(name="lifecycleCommand") + def lifecycle_command(self) -> Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]: + """ + Batch job command. + """ + return pulumi.get(self, "lifecycle_command") + + @lifecycle_command.setter + def lifecycle_command(self, value: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]): + pulumi.set(self, "lifecycle_command", value) + @pulumi.input_type class _ScalingLifecycleHookState: def __init__(__self__, *, + lifecycle_command: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']] = None, lifecycle_hook_id: Optional[pulumi.Input[str]] = None, lifecycle_hook_name: Optional[pulumi.Input[str]] = None, lifecycle_hook_policy: Optional[pulumi.Input[str]] = None, @@ -105,13 +124,16 @@ def __init__(__self__, *, scaling_group_id: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering ScalingLifecycleHook resources. + :param pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs'] lifecycle_command: Batch job command. :param pulumi.Input[str] lifecycle_hook_id: The id of the lifecycle hook. :param pulumi.Input[str] lifecycle_hook_name: The name of the lifecycle hook. - :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. :param pulumi.Input[int] lifecycle_hook_timeout: The timeout of the lifecycle hook. :param pulumi.Input[str] lifecycle_hook_type: The type of the lifecycle hook. Valid values: SCALE_IN, SCALE_OUT. :param pulumi.Input[str] scaling_group_id: The id of the scaling group. """ + if lifecycle_command is not None: + pulumi.set(__self__, "lifecycle_command", lifecycle_command) if lifecycle_hook_id is not None: pulumi.set(__self__, "lifecycle_hook_id", lifecycle_hook_id) if lifecycle_hook_name is not None: @@ -125,6 +147,18 @@ def __init__(__self__, *, if scaling_group_id is not None: pulumi.set(__self__, "scaling_group_id", scaling_group_id) + @property + @pulumi.getter(name="lifecycleCommand") + def lifecycle_command(self) -> Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]: + """ + Batch job command. + """ + return pulumi.get(self, "lifecycle_command") + + @lifecycle_command.setter + def lifecycle_command(self, value: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]): + pulumi.set(self, "lifecycle_command", value) + @property @pulumi.getter(name="lifecycleHookId") def lifecycle_hook_id(self) -> Optional[pulumi.Input[str]]: @@ -153,7 +187,7 @@ def lifecycle_hook_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="lifecycleHookPolicy") def lifecycle_hook_policy(self) -> Optional[pulumi.Input[str]]: """ - The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. """ return pulumi.get(self, "lifecycle_hook_policy") @@ -203,6 +237,7 @@ class ScalingLifecycleHook(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + lifecycle_command: Optional[pulumi.Input[pulumi.InputType['ScalingLifecycleHookLifecycleCommandArgs']]] = None, lifecycle_hook_name: Optional[pulumi.Input[str]] = None, lifecycle_hook_policy: Optional[pulumi.Input[str]] = None, lifecycle_hook_timeout: Optional[pulumi.Input[int]] = None, @@ -226,6 +261,12 @@ def __init__(__self__, cidr_block="172.16.0.0/24", zone_id=foo_zones.zones[0].id, vpc_id=foo_vpc.id) + foo_command = volcengine.ecs.Command("fooCommand", + description="tf", + working_dir="/home", + username="root", + timeout=100, + command_content="IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi") foo_scaling_group = volcengine.autoscaling.ScalingGroup("fooScalingGroup", scaling_group_name="acc-test-scaling-group-lifecycle", subnet_ids=[foo_subnet.id], @@ -237,10 +278,14 @@ def __init__(__self__, default_cooldown=10) foo_scaling_lifecycle_hook = volcengine.autoscaling.ScalingLifecycleHook("fooScalingLifecycleHook", lifecycle_hook_name="acc-test-lifecycle", - lifecycle_hook_policy="CONTINUE", - lifecycle_hook_timeout=30, - lifecycle_hook_type="SCALE_IN", + lifecycle_hook_policy="ROLLBACK", + lifecycle_hook_timeout=300, + lifecycle_hook_type="SCALE_OUT", scaling_group_id=foo_scaling_group.id) + # lifecycle_command { + # command_id = volcengine_ecs_command.foo.id + # parameters = "{}" + # } ``` ## Import @@ -253,8 +298,9 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[pulumi.InputType['ScalingLifecycleHookLifecycleCommandArgs']] lifecycle_command: Batch job command. :param pulumi.Input[str] lifecycle_hook_name: The name of the lifecycle hook. - :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. :param pulumi.Input[int] lifecycle_hook_timeout: The timeout of the lifecycle hook. :param pulumi.Input[str] lifecycle_hook_type: The type of the lifecycle hook. Valid values: SCALE_IN, SCALE_OUT. :param pulumi.Input[str] scaling_group_id: The id of the scaling group. @@ -282,6 +328,12 @@ def __init__(__self__, cidr_block="172.16.0.0/24", zone_id=foo_zones.zones[0].id, vpc_id=foo_vpc.id) + foo_command = volcengine.ecs.Command("fooCommand", + description="tf", + working_dir="/home", + username="root", + timeout=100, + command_content="IyEvYmluL2Jhc2gKCgplY2hvICJvcGVyYXRpb24gc3VjY2VzcyEi") foo_scaling_group = volcengine.autoscaling.ScalingGroup("fooScalingGroup", scaling_group_name="acc-test-scaling-group-lifecycle", subnet_ids=[foo_subnet.id], @@ -293,10 +345,14 @@ def __init__(__self__, default_cooldown=10) foo_scaling_lifecycle_hook = volcengine.autoscaling.ScalingLifecycleHook("fooScalingLifecycleHook", lifecycle_hook_name="acc-test-lifecycle", - lifecycle_hook_policy="CONTINUE", - lifecycle_hook_timeout=30, - lifecycle_hook_type="SCALE_IN", + lifecycle_hook_policy="ROLLBACK", + lifecycle_hook_timeout=300, + lifecycle_hook_type="SCALE_OUT", scaling_group_id=foo_scaling_group.id) + # lifecycle_command { + # command_id = volcengine_ecs_command.foo.id + # parameters = "{}" + # } ``` ## Import @@ -322,6 +378,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + lifecycle_command: Optional[pulumi.Input[pulumi.InputType['ScalingLifecycleHookLifecycleCommandArgs']]] = None, lifecycle_hook_name: Optional[pulumi.Input[str]] = None, lifecycle_hook_policy: Optional[pulumi.Input[str]] = None, lifecycle_hook_timeout: Optional[pulumi.Input[int]] = None, @@ -336,6 +393,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ScalingLifecycleHookArgs.__new__(ScalingLifecycleHookArgs) + __props__.__dict__["lifecycle_command"] = lifecycle_command if lifecycle_hook_name is None and not opts.urn: raise TypeError("Missing required property 'lifecycle_hook_name'") __props__.__dict__["lifecycle_hook_name"] = lifecycle_hook_name @@ -362,6 +420,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + lifecycle_command: Optional[pulumi.Input[pulumi.InputType['ScalingLifecycleHookLifecycleCommandArgs']]] = None, lifecycle_hook_id: Optional[pulumi.Input[str]] = None, lifecycle_hook_name: Optional[pulumi.Input[str]] = None, lifecycle_hook_policy: Optional[pulumi.Input[str]] = None, @@ -375,9 +434,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[pulumi.InputType['ScalingLifecycleHookLifecycleCommandArgs']] lifecycle_command: Batch job command. :param pulumi.Input[str] lifecycle_hook_id: The id of the lifecycle hook. :param pulumi.Input[str] lifecycle_hook_name: The name of the lifecycle hook. - :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + :param pulumi.Input[str] lifecycle_hook_policy: The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. :param pulumi.Input[int] lifecycle_hook_timeout: The timeout of the lifecycle hook. :param pulumi.Input[str] lifecycle_hook_type: The type of the lifecycle hook. Valid values: SCALE_IN, SCALE_OUT. :param pulumi.Input[str] scaling_group_id: The id of the scaling group. @@ -386,6 +446,7 @@ def get(resource_name: str, __props__ = _ScalingLifecycleHookState.__new__(_ScalingLifecycleHookState) + __props__.__dict__["lifecycle_command"] = lifecycle_command __props__.__dict__["lifecycle_hook_id"] = lifecycle_hook_id __props__.__dict__["lifecycle_hook_name"] = lifecycle_hook_name __props__.__dict__["lifecycle_hook_policy"] = lifecycle_hook_policy @@ -394,6 +455,14 @@ def get(resource_name: str, __props__.__dict__["scaling_group_id"] = scaling_group_id return ScalingLifecycleHook(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="lifecycleCommand") + def lifecycle_command(self) -> pulumi.Output[Optional['outputs.ScalingLifecycleHookLifecycleCommand']]: + """ + Batch job command. + """ + return pulumi.get(self, "lifecycle_command") + @property @pulumi.getter(name="lifecycleHookId") def lifecycle_hook_id(self) -> pulumi.Output[str]: @@ -414,7 +483,7 @@ def lifecycle_hook_name(self) -> pulumi.Output[str]: @pulumi.getter(name="lifecycleHookPolicy") def lifecycle_hook_policy(self) -> pulumi.Output[str]: """ - The policy of the lifecycle hook. Valid values: CONTINUE, REJECT. + The policy of the lifecycle hook. Valid values: CONTINUE, REJECT, ROLLBACK. """ return pulumi.get(self, "lifecycle_hook_policy") diff --git a/sdk/python/pulumi_volcengine/mongodb/mongo_allow_list.py b/sdk/python/pulumi_volcengine/mongodb/mongo_allow_list.py index e98e6345..753e2517 100644 --- a/sdk/python/pulumi_volcengine/mongodb/mongo_allow_list.py +++ b/sdk/python/pulumi_volcengine/mongodb/mongo_allow_list.py @@ -17,15 +17,13 @@ def __init__(__self__, *, allow_list: pulumi.Input[str], allow_list_name: pulumi.Input[str], allow_list_desc: Optional[pulumi.Input[str]] = None, - allow_list_type: Optional[pulumi.Input[str]] = None, - modify_mode: Optional[pulumi.Input[str]] = None): + allow_list_type: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a MongoAllowList resource. :param pulumi.Input[str] allow_list: IP address or IP address segment in CIDR format. :param pulumi.Input[str] allow_list_name: The name of allow list. :param pulumi.Input[str] allow_list_desc: The description of allow list. :param pulumi.Input[str] allow_list_type: The IP address type of allow list, valid value contains `IPv4`. - :param pulumi.Input[str] modify_mode: The modify mode. Only support Cover mode. """ pulumi.set(__self__, "allow_list", allow_list) pulumi.set(__self__, "allow_list_name", allow_list_name) @@ -33,8 +31,6 @@ def __init__(__self__, *, pulumi.set(__self__, "allow_list_desc", allow_list_desc) if allow_list_type is not None: pulumi.set(__self__, "allow_list_type", allow_list_type) - if modify_mode is not None: - pulumi.set(__self__, "modify_mode", modify_mode) @property @pulumi.getter(name="allowList") @@ -84,18 +80,6 @@ def allow_list_type(self) -> Optional[pulumi.Input[str]]: def allow_list_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "allow_list_type", value) - @property - @pulumi.getter(name="modifyMode") - def modify_mode(self) -> Optional[pulumi.Input[str]]: - """ - The modify mode. Only support Cover mode. - """ - return pulumi.get(self, "modify_mode") - - @modify_mode.setter - def modify_mode(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "modify_mode", value) - @pulumi.input_type class _MongoAllowListState: @@ -103,15 +87,13 @@ def __init__(__self__, *, allow_list: Optional[pulumi.Input[str]] = None, allow_list_desc: Optional[pulumi.Input[str]] = None, allow_list_name: Optional[pulumi.Input[str]] = None, - allow_list_type: Optional[pulumi.Input[str]] = None, - modify_mode: Optional[pulumi.Input[str]] = None): + allow_list_type: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering MongoAllowList resources. :param pulumi.Input[str] allow_list: IP address or IP address segment in CIDR format. :param pulumi.Input[str] allow_list_desc: The description of allow list. :param pulumi.Input[str] allow_list_name: The name of allow list. :param pulumi.Input[str] allow_list_type: The IP address type of allow list, valid value contains `IPv4`. - :param pulumi.Input[str] modify_mode: The modify mode. Only support Cover mode. """ if allow_list is not None: pulumi.set(__self__, "allow_list", allow_list) @@ -121,8 +103,6 @@ def __init__(__self__, *, pulumi.set(__self__, "allow_list_name", allow_list_name) if allow_list_type is not None: pulumi.set(__self__, "allow_list_type", allow_list_type) - if modify_mode is not None: - pulumi.set(__self__, "modify_mode", modify_mode) @property @pulumi.getter(name="allowList") @@ -172,18 +152,6 @@ def allow_list_type(self) -> Optional[pulumi.Input[str]]: def allow_list_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "allow_list_type", value) - @property - @pulumi.getter(name="modifyMode") - def modify_mode(self) -> Optional[pulumi.Input[str]]: - """ - The modify mode. Only support Cover mode. - """ - return pulumi.get(self, "modify_mode") - - @modify_mode.setter - def modify_mode(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "modify_mode", value) - class MongoAllowList(pulumi.CustomResource): @overload @@ -194,7 +162,6 @@ def __init__(__self__, allow_list_desc: Optional[pulumi.Input[str]] = None, allow_list_name: Optional[pulumi.Input[str]] = None, allow_list_type: Optional[pulumi.Input[str]] = None, - modify_mode: Optional[pulumi.Input[str]] = None, __props__=None): """ Provides a resource to manage mongodb allow list @@ -225,7 +192,6 @@ def __init__(__self__, :param pulumi.Input[str] allow_list_desc: The description of allow list. :param pulumi.Input[str] allow_list_name: The name of allow list. :param pulumi.Input[str] allow_list_type: The IP address type of allow list, valid value contains `IPv4`. - :param pulumi.Input[str] modify_mode: The modify mode. Only support Cover mode. """ ... @overload @@ -275,7 +241,6 @@ def _internal_init(__self__, allow_list_desc: Optional[pulumi.Input[str]] = None, allow_list_name: Optional[pulumi.Input[str]] = None, allow_list_type: Optional[pulumi.Input[str]] = None, - modify_mode: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -293,7 +258,6 @@ def _internal_init(__self__, raise TypeError("Missing required property 'allow_list_name'") __props__.__dict__["allow_list_name"] = allow_list_name __props__.__dict__["allow_list_type"] = allow_list_type - __props__.__dict__["modify_mode"] = modify_mode super(MongoAllowList, __self__).__init__( 'volcengine:mongodb/mongoAllowList:MongoAllowList', resource_name, @@ -307,8 +271,7 @@ def get(resource_name: str, allow_list: Optional[pulumi.Input[str]] = None, allow_list_desc: Optional[pulumi.Input[str]] = None, allow_list_name: Optional[pulumi.Input[str]] = None, - allow_list_type: Optional[pulumi.Input[str]] = None, - modify_mode: Optional[pulumi.Input[str]] = None) -> 'MongoAllowList': + allow_list_type: Optional[pulumi.Input[str]] = None) -> 'MongoAllowList': """ Get an existing MongoAllowList resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -320,7 +283,6 @@ def get(resource_name: str, :param pulumi.Input[str] allow_list_desc: The description of allow list. :param pulumi.Input[str] allow_list_name: The name of allow list. :param pulumi.Input[str] allow_list_type: The IP address type of allow list, valid value contains `IPv4`. - :param pulumi.Input[str] modify_mode: The modify mode. Only support Cover mode. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -330,7 +292,6 @@ def get(resource_name: str, __props__.__dict__["allow_list_desc"] = allow_list_desc __props__.__dict__["allow_list_name"] = allow_list_name __props__.__dict__["allow_list_type"] = allow_list_type - __props__.__dict__["modify_mode"] = modify_mode return MongoAllowList(resource_name, opts=opts, __props__=__props__) @property @@ -365,11 +326,3 @@ def allow_list_type(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "allow_list_type") - @property - @pulumi.getter(name="modifyMode") - def modify_mode(self) -> pulumi.Output[Optional[str]]: - """ - The modify mode. Only support Cover mode. - """ - return pulumi.get(self, "modify_mode") - diff --git a/sdk/python/pulumi_volcengine/vke/_inputs.py b/sdk/python/pulumi_volcengine/vke/_inputs.py index f0b209a3..3e758a77 100644 --- a/sdk/python/pulumi_volcengine/vke/_inputs.py +++ b/sdk/python/pulumi_volcengine/vke/_inputs.py @@ -2258,8 +2258,8 @@ def __init__(__self__, *, type: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] mount_point: The target mount directory of the disk. Must start with `/`. - :param pulumi.Input[int] size: The Size of DataVolumes, the value range in 20~32768. - :param pulumi.Input[str] type: The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + :param pulumi.Input[int] size: The Size of DataVolumes, the value range in 20~32768. Default value is `20`. + :param pulumi.Input[str] type: The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. """ if mount_point is not None: pulumi.set(__self__, "mount_point", mount_point) @@ -2284,7 +2284,7 @@ def mount_point(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def size(self) -> Optional[pulumi.Input[int]]: """ - The Size of DataVolumes, the value range in 20~32768. + The Size of DataVolumes, the value range in 20~32768. Default value is `20`. """ return pulumi.get(self, "size") @@ -2296,7 +2296,7 @@ def size(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ - The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. """ return pulumi.get(self, "type") diff --git a/sdk/python/pulumi_volcengine/vke/node_pool.py b/sdk/python/pulumi_volcengine/vke/node_pool.py index 3490d8ef..3e9de92f 100644 --- a/sdk/python/pulumi_volcengine/vke/node_pool.py +++ b/sdk/python/pulumi_volcengine/vke/node_pool.py @@ -328,12 +328,12 @@ def __init__(__self__, image_id=[image.image_id for image in foo_images.images if image.image_name == "veLinux 1.0 CentOS兼容版 64位"][0], system_volume=volcengine.vke.NodePoolNodeConfigSystemVolumeArgs( type="ESSD_PL0", - size=60, + size=80, ), data_volumes=[ volcengine.vke.NodePoolNodeConfigDataVolumeArgs( type="ESSD_PL0", - size=60, + size=80, mount_point="/tf1", ), volcengine.vke.NodePoolNodeConfigDataVolumeArgs( @@ -350,7 +350,7 @@ def __init__(__self__, security_strategies=["Hids"], security_group_ids=[foo_security_group.id], ), - additional_container_storage_enabled=True, + additional_container_storage_enabled=False, instance_charge_type="PostPaid", name_prefix="acc-test", ecs_tags=[volcengine.vke.NodePoolNodeConfigEcsTagArgs( @@ -464,12 +464,12 @@ def __init__(__self__, image_id=[image.image_id for image in foo_images.images if image.image_name == "veLinux 1.0 CentOS兼容版 64位"][0], system_volume=volcengine.vke.NodePoolNodeConfigSystemVolumeArgs( type="ESSD_PL0", - size=60, + size=80, ), data_volumes=[ volcengine.vke.NodePoolNodeConfigDataVolumeArgs( type="ESSD_PL0", - size=60, + size=80, mount_point="/tf1", ), volcengine.vke.NodePoolNodeConfigDataVolumeArgs( @@ -486,7 +486,7 @@ def __init__(__self__, security_strategies=["Hids"], security_group_ids=[foo_security_group.id], ), - additional_container_storage_enabled=True, + additional_container_storage_enabled=False, instance_charge_type="PostPaid", name_prefix="acc-test", ecs_tags=[volcengine.vke.NodePoolNodeConfigEcsTagArgs( diff --git a/sdk/python/pulumi_volcengine/vke/outputs.py b/sdk/python/pulumi_volcengine/vke/outputs.py index b2770bab..b8b1e981 100644 --- a/sdk/python/pulumi_volcengine/vke/outputs.py +++ b/sdk/python/pulumi_volcengine/vke/outputs.py @@ -3296,8 +3296,8 @@ def __init__(__self__, *, type: Optional[str] = None): """ :param str mount_point: The target mount directory of the disk. Must start with `/`. - :param int size: The Size of DataVolumes, the value range in 20~32768. - :param str type: The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + :param int size: The Size of DataVolumes, the value range in 20~32768. Default value is `20`. + :param str type: The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. """ if mount_point is not None: pulumi.set(__self__, "mount_point", mount_point) @@ -3318,7 +3318,7 @@ def mount_point(self) -> Optional[str]: @pulumi.getter def size(self) -> Optional[int]: """ - The Size of DataVolumes, the value range in 20~32768. + The Size of DataVolumes, the value range in 20~32768. Default value is `20`. """ return pulumi.get(self, "size") @@ -3326,7 +3326,7 @@ def size(self) -> Optional[int]: @pulumi.getter def type(self) -> Optional[str]: """ - The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. + The Type of DataVolumes, the value can be `PTSSD` or `ESSD_PL0` or `ESSD_FlexPL`. Default value is `ESSD_PL0`. """ return pulumi.get(self, "type")