tencentcloud.AsCompleteLifecycle
Explore with Pulumi AI
Provides a resource to create a as complete_lifecycle
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const zones = tencentcloud.getAvailabilityZonesByProduct({
product: "as",
});
const image = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "TencentOS Server 3.2 (Final)",
});
const instanceTypes = zones.then(zones => tencentcloud.getInstanceTypes({
filters: [
{
name: "zone",
values: [zones.zones?.[0]?.name],
},
{
name: "instance-family",
values: ["S5"],
},
],
cpuCoreCount: 2,
excludeSoldOut: true,
}));
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
vpcId: vpc.vpcId,
cidrBlock: "10.0.0.0/16",
availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
});
const exampleAsScalingConfig = new tencentcloud.AsScalingConfig("exampleAsScalingConfig", {
configurationName: "tf-example",
imageId: image.then(image => image.images?.[0]?.imageId),
instanceTypes: [
"SA1.SMALL1",
"SA2.SMALL1",
"SA2.SMALL2",
"SA2.SMALL4",
],
instanceNameSettings: {
instanceName: "test-ins-name",
},
});
const exampleAsScalingGroup = new tencentcloud.AsScalingGroup("exampleAsScalingGroup", {
scalingGroupName: "tf-example",
configurationId: exampleAsScalingConfig.asScalingConfigId,
maxSize: 1,
minSize: 0,
vpcId: vpc.vpcId,
subnetIds: [subnet.subnetId],
});
const exampleAsLifecycleHook = new tencentcloud.AsLifecycleHook("exampleAsLifecycleHook", {
scalingGroupId: exampleAsScalingGroup.asScalingGroupId,
lifecycleHookName: "tf-as-lifecycle-hook",
lifecycleTransition: "INSTANCE_LAUNCHING",
defaultResult: "CONTINUE",
heartbeatTimeout: 500,
notificationMetadata: "tf test",
});
const exampleInstance = new tencentcloud.Instance("exampleInstance", {
instanceName: "tf_example",
availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
imageId: image.then(image => image.images?.[0]?.imageId),
instanceType: instanceTypes.then(instanceTypes => instanceTypes.instanceTypes?.[0]?.instanceType),
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
hostname: "user",
projectId: 0,
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
});
const completeLifecycle = new tencentcloud.AsCompleteLifecycle("completeLifecycle", {
lifecycleHookId: exampleAsLifecycleHook.asLifecycleHookId,
instanceId: exampleInstance.instanceId,
lifecycleActionResult: "CONTINUE",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
zones = tencentcloud.get_availability_zones_by_product(product="as")
image = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="TencentOS Server 3.2 (Final)")
instance_types = tencentcloud.get_instance_types(filters=[
{
"name": "zone",
"values": [zones.zones[0].name],
},
{
"name": "instance-family",
"values": ["S5"],
},
],
cpu_core_count=2,
exclude_sold_out=True)
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
vpc_id=vpc.vpc_id,
cidr_block="10.0.0.0/16",
availability_zone=zones.zones[0].name)
example_as_scaling_config = tencentcloud.AsScalingConfig("exampleAsScalingConfig",
configuration_name="tf-example",
image_id=image.images[0].image_id,
instance_types=[
"SA1.SMALL1",
"SA2.SMALL1",
"SA2.SMALL2",
"SA2.SMALL4",
],
instance_name_settings={
"instance_name": "test-ins-name",
})
example_as_scaling_group = tencentcloud.AsScalingGroup("exampleAsScalingGroup",
scaling_group_name="tf-example",
configuration_id=example_as_scaling_config.as_scaling_config_id,
max_size=1,
min_size=0,
vpc_id=vpc.vpc_id,
subnet_ids=[subnet.subnet_id])
example_as_lifecycle_hook = tencentcloud.AsLifecycleHook("exampleAsLifecycleHook",
scaling_group_id=example_as_scaling_group.as_scaling_group_id,
lifecycle_hook_name="tf-as-lifecycle-hook",
lifecycle_transition="INSTANCE_LAUNCHING",
default_result="CONTINUE",
heartbeat_timeout=500,
notification_metadata="tf test")
example_instance = tencentcloud.Instance("exampleInstance",
instance_name="tf_example",
availability_zone=zones.zones[0].name,
image_id=image.images[0].image_id,
instance_type=instance_types.instance_types[0].instance_type,
system_disk_type="CLOUD_PREMIUM",
system_disk_size=50,
hostname="user",
project_id=0,
vpc_id=vpc.vpc_id,
subnet_id=subnet.subnet_id)
complete_lifecycle = tencentcloud.AsCompleteLifecycle("completeLifecycle",
lifecycle_hook_id=example_as_lifecycle_hook.as_lifecycle_hook_id,
instance_id=example_instance.instance_id,
lifecycle_action_result="CONTINUE")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zones, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Product: "as",
}, nil);
if err != nil {
return err
}
image, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("TencentOS Server 3.2 (Final)"),
}, nil);
if err != nil {
return err
}
instanceTypes, err := tencentcloud.GetInstanceTypes(ctx, &tencentcloud.GetInstanceTypesArgs{
Filters: []tencentcloud.GetInstanceTypesFilter{
{
Name: "zone",
Values: interface{}{
zones.Zones[0].Name,
},
},
{
Name: "instance-family",
Values: []string{
"S5",
},
},
},
CpuCoreCount: pulumi.Float64Ref(2),
ExcludeSoldOut: pulumi.BoolRef(true),
}, nil);
if err != nil {
return err
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
VpcId: vpc.VpcId,
CidrBlock: pulumi.String("10.0.0.0/16"),
AvailabilityZone: pulumi.String(zones.Zones[0].Name),
})
if err != nil {
return err
}
exampleAsScalingConfig, err := tencentcloud.NewAsScalingConfig(ctx, "exampleAsScalingConfig", &tencentcloud.AsScalingConfigArgs{
ConfigurationName: pulumi.String("tf-example"),
ImageId: pulumi.String(image.Images[0].ImageId),
InstanceTypes: pulumi.StringArray{
pulumi.String("SA1.SMALL1"),
pulumi.String("SA2.SMALL1"),
pulumi.String("SA2.SMALL2"),
pulumi.String("SA2.SMALL4"),
},
InstanceNameSettings: &tencentcloud.AsScalingConfigInstanceNameSettingsArgs{
InstanceName: pulumi.String("test-ins-name"),
},
})
if err != nil {
return err
}
exampleAsScalingGroup, err := tencentcloud.NewAsScalingGroup(ctx, "exampleAsScalingGroup", &tencentcloud.AsScalingGroupArgs{
ScalingGroupName: pulumi.String("tf-example"),
ConfigurationId: exampleAsScalingConfig.AsScalingConfigId,
MaxSize: pulumi.Float64(1),
MinSize: pulumi.Float64(0),
VpcId: vpc.VpcId,
SubnetIds: pulumi.StringArray{
subnet.SubnetId,
},
})
if err != nil {
return err
}
exampleAsLifecycleHook, err := tencentcloud.NewAsLifecycleHook(ctx, "exampleAsLifecycleHook", &tencentcloud.AsLifecycleHookArgs{
ScalingGroupId: exampleAsScalingGroup.AsScalingGroupId,
LifecycleHookName: pulumi.String("tf-as-lifecycle-hook"),
LifecycleTransition: pulumi.String("INSTANCE_LAUNCHING"),
DefaultResult: pulumi.String("CONTINUE"),
HeartbeatTimeout: pulumi.Float64(500),
NotificationMetadata: pulumi.String("tf test"),
})
if err != nil {
return err
}
exampleInstance, err := tencentcloud.NewInstance(ctx, "exampleInstance", &tencentcloud.InstanceArgs{
InstanceName: pulumi.String("tf_example"),
AvailabilityZone: pulumi.String(zones.Zones[0].Name),
ImageId: pulumi.String(image.Images[0].ImageId),
InstanceType: pulumi.String(instanceTypes.InstanceTypes[0].InstanceType),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
Hostname: pulumi.String("user"),
ProjectId: pulumi.Float64(0),
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
})
if err != nil {
return err
}
_, err = tencentcloud.NewAsCompleteLifecycle(ctx, "completeLifecycle", &tencentcloud.AsCompleteLifecycleArgs{
LifecycleHookId: exampleAsLifecycleHook.AsLifecycleHookId,
InstanceId: exampleInstance.InstanceId,
LifecycleActionResult: pulumi.String("CONTINUE"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var zones = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Product = "as",
});
var image = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "TencentOS Server 3.2 (Final)",
});
var instanceTypes = Tencentcloud.GetInstanceTypes.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
{
Name = "zone",
Values = new[]
{
zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
},
},
new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
{
Name = "instance-family",
Values = new[]
{
"S5",
},
},
},
CpuCoreCount = 2,
ExcludeSoldOut = true,
});
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
VpcId = vpc.VpcId,
CidrBlock = "10.0.0.0/16",
AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
});
var exampleAsScalingConfig = new Tencentcloud.AsScalingConfig("exampleAsScalingConfig", new()
{
ConfigurationName = "tf-example",
ImageId = image.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceTypes = new[]
{
"SA1.SMALL1",
"SA2.SMALL1",
"SA2.SMALL2",
"SA2.SMALL4",
},
InstanceNameSettings = new Tencentcloud.Inputs.AsScalingConfigInstanceNameSettingsArgs
{
InstanceName = "test-ins-name",
},
});
var exampleAsScalingGroup = new Tencentcloud.AsScalingGroup("exampleAsScalingGroup", new()
{
ScalingGroupName = "tf-example",
ConfigurationId = exampleAsScalingConfig.AsScalingConfigId,
MaxSize = 1,
MinSize = 0,
VpcId = vpc.VpcId,
SubnetIds = new[]
{
subnet.SubnetId,
},
});
var exampleAsLifecycleHook = new Tencentcloud.AsLifecycleHook("exampleAsLifecycleHook", new()
{
ScalingGroupId = exampleAsScalingGroup.AsScalingGroupId,
LifecycleHookName = "tf-as-lifecycle-hook",
LifecycleTransition = "INSTANCE_LAUNCHING",
DefaultResult = "CONTINUE",
HeartbeatTimeout = 500,
NotificationMetadata = "tf test",
});
var exampleInstance = new Tencentcloud.Instance("exampleInstance", new()
{
InstanceName = "tf_example",
AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
ImageId = image.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceType = instanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.InstanceType),
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
Hostname = "user",
ProjectId = 0,
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
});
var completeLifecycle = new Tencentcloud.AsCompleteLifecycle("completeLifecycle", new()
{
LifecycleHookId = exampleAsLifecycleHook.AsLifecycleHookId,
InstanceId = exampleInstance.InstanceId,
LifecycleActionResult = "CONTINUE",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.inputs.GetInstanceTypesArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.AsScalingConfig;
import com.pulumi.tencentcloud.AsScalingConfigArgs;
import com.pulumi.tencentcloud.inputs.AsScalingConfigInstanceNameSettingsArgs;
import com.pulumi.tencentcloud.AsScalingGroup;
import com.pulumi.tencentcloud.AsScalingGroupArgs;
import com.pulumi.tencentcloud.AsLifecycleHook;
import com.pulumi.tencentcloud.AsLifecycleHookArgs;
import com.pulumi.tencentcloud.Instance;
import com.pulumi.tencentcloud.InstanceArgs;
import com.pulumi.tencentcloud.AsCompleteLifecycle;
import com.pulumi.tencentcloud.AsCompleteLifecycleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var zones = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.product("as")
.build());
final var image = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("TencentOS Server 3.2 (Final)")
.build());
final var instanceTypes = TencentcloudFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.filters(
GetInstanceTypesFilterArgs.builder()
.name("zone")
.values(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.build(),
GetInstanceTypesFilterArgs.builder()
.name("instance-family")
.values("S5")
.build())
.cpuCoreCount(2)
.excludeSoldOut(true)
.build());
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.vpcId(vpc.vpcId())
.cidrBlock("10.0.0.0/16")
.availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.build());
var exampleAsScalingConfig = new AsScalingConfig("exampleAsScalingConfig", AsScalingConfigArgs.builder()
.configurationName("tf-example")
.imageId(image.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceTypes(
"SA1.SMALL1",
"SA2.SMALL1",
"SA2.SMALL2",
"SA2.SMALL4")
.instanceNameSettings(AsScalingConfigInstanceNameSettingsArgs.builder()
.instanceName("test-ins-name")
.build())
.build());
var exampleAsScalingGroup = new AsScalingGroup("exampleAsScalingGroup", AsScalingGroupArgs.builder()
.scalingGroupName("tf-example")
.configurationId(exampleAsScalingConfig.asScalingConfigId())
.maxSize(1)
.minSize(0)
.vpcId(vpc.vpcId())
.subnetIds(subnet.subnetId())
.build());
var exampleAsLifecycleHook = new AsLifecycleHook("exampleAsLifecycleHook", AsLifecycleHookArgs.builder()
.scalingGroupId(exampleAsScalingGroup.asScalingGroupId())
.lifecycleHookName("tf-as-lifecycle-hook")
.lifecycleTransition("INSTANCE_LAUNCHING")
.defaultResult("CONTINUE")
.heartbeatTimeout(500)
.notificationMetadata("tf test")
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.instanceName("tf_example")
.availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.imageId(image.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceType(instanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].instanceType()))
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize(50)
.hostname("user")
.projectId(0)
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.build());
var completeLifecycle = new AsCompleteLifecycle("completeLifecycle", AsCompleteLifecycleArgs.builder()
.lifecycleHookId(exampleAsLifecycleHook.asLifecycleHookId())
.instanceId(exampleInstance.instanceId())
.lifecycleActionResult("CONTINUE")
.build());
}
}
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
vpcId: ${vpc.vpcId}
cidrBlock: 10.0.0.0/16
availabilityZone: ${zones.zones[0].name}
exampleAsScalingConfig:
type: tencentcloud:AsScalingConfig
properties:
configurationName: tf-example
imageId: ${image.images[0].imageId}
instanceTypes:
- SA1.SMALL1
- SA2.SMALL1
- SA2.SMALL2
- SA2.SMALL4
instanceNameSettings:
instanceName: test-ins-name
exampleAsScalingGroup:
type: tencentcloud:AsScalingGroup
properties:
scalingGroupName: tf-example
configurationId: ${exampleAsScalingConfig.asScalingConfigId}
maxSize: 1
minSize: 0
vpcId: ${vpc.vpcId}
subnetIds:
- ${subnet.subnetId}
exampleAsLifecycleHook:
type: tencentcloud:AsLifecycleHook
properties:
scalingGroupId: ${exampleAsScalingGroup.asScalingGroupId}
lifecycleHookName: tf-as-lifecycle-hook
lifecycleTransition: INSTANCE_LAUNCHING
defaultResult: CONTINUE
heartbeatTimeout: 500
notificationMetadata: tf test
exampleInstance:
type: tencentcloud:Instance
properties:
instanceName: tf_example
availabilityZone: ${zones.zones[0].name}
imageId: ${image.images[0].imageId}
instanceType: ${instanceTypes.instanceTypes[0].instanceType}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: 50
hostname: user
projectId: 0
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
completeLifecycle:
type: tencentcloud:AsCompleteLifecycle
properties:
lifecycleHookId: ${exampleAsLifecycleHook.asLifecycleHookId}
instanceId: ${exampleInstance.instanceId}
lifecycleActionResult: CONTINUE
variables:
zones:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: as
image:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: TencentOS Server 3.2 (Final)
instanceTypes:
fn::invoke:
function: tencentcloud:getInstanceTypes
arguments:
filters:
- name: zone
values:
- ${zones.zones[0].name}
- name: instance-family
values:
- S5
cpuCoreCount: 2
excludeSoldOut: true
Create AsCompleteLifecycle Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsCompleteLifecycle(name: string, args: AsCompleteLifecycleArgs, opts?: CustomResourceOptions);
@overload
def AsCompleteLifecycle(resource_name: str,
args: AsCompleteLifecycleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsCompleteLifecycle(resource_name: str,
opts: Optional[ResourceOptions] = None,
lifecycle_action_result: Optional[str] = None,
lifecycle_hook_id: Optional[str] = None,
as_complete_lifecycle_id: Optional[str] = None,
instance_id: Optional[str] = None,
lifecycle_action_token: Optional[str] = None)
func NewAsCompleteLifecycle(ctx *Context, name string, args AsCompleteLifecycleArgs, opts ...ResourceOption) (*AsCompleteLifecycle, error)
public AsCompleteLifecycle(string name, AsCompleteLifecycleArgs args, CustomResourceOptions? opts = null)
public AsCompleteLifecycle(String name, AsCompleteLifecycleArgs args)
public AsCompleteLifecycle(String name, AsCompleteLifecycleArgs args, CustomResourceOptions options)
type: tencentcloud:AsCompleteLifecycle
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AsCompleteLifecycleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AsCompleteLifecycleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AsCompleteLifecycleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsCompleteLifecycleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsCompleteLifecycleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AsCompleteLifecycle Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AsCompleteLifecycle resource accepts the following input properties:
- Lifecycle
Action stringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - Lifecycle
Hook stringId - Lifecycle hook ID.
- As
Complete stringLifecycle Id - ID of the resource.
- Instance
Id string - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Action stringToken - Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Action stringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - Lifecycle
Hook stringId - Lifecycle hook ID.
- As
Complete stringLifecycle Id - ID of the resource.
- Instance
Id string - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Action stringToken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action StringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle
Hook StringId - Lifecycle hook ID.
- as
Complete StringLifecycle Id - ID of the resource.
- instance
Id String - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action StringToken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action stringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle
Hook stringId - Lifecycle hook ID.
- as
Complete stringLifecycle Id - ID of the resource.
- instance
Id string - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action stringToken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle_
action_ strresult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle_
hook_ strid - Lifecycle hook ID.
- as_
complete_ strlifecycle_ id - ID of the resource.
- instance_
id str - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle_
action_ strtoken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action StringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle
Hook StringId - Lifecycle hook ID.
- as
Complete StringLifecycle Id - ID of the resource.
- instance
Id String - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action StringToken - Either InstanceId or LifecycleActionToken must be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsCompleteLifecycle resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AsCompleteLifecycle Resource
Get an existing AsCompleteLifecycle resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AsCompleteLifecycleState, opts?: CustomResourceOptions): AsCompleteLifecycle
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_complete_lifecycle_id: Optional[str] = None,
instance_id: Optional[str] = None,
lifecycle_action_result: Optional[str] = None,
lifecycle_action_token: Optional[str] = None,
lifecycle_hook_id: Optional[str] = None) -> AsCompleteLifecycle
func GetAsCompleteLifecycle(ctx *Context, name string, id IDInput, state *AsCompleteLifecycleState, opts ...ResourceOption) (*AsCompleteLifecycle, error)
public static AsCompleteLifecycle Get(string name, Input<string> id, AsCompleteLifecycleState? state, CustomResourceOptions? opts = null)
public static AsCompleteLifecycle get(String name, Output<String> id, AsCompleteLifecycleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:AsCompleteLifecycle get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- As
Complete stringLifecycle Id - ID of the resource.
- Instance
Id string - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Action stringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - Lifecycle
Action stringToken - Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Hook stringId - Lifecycle hook ID.
- As
Complete stringLifecycle Id - ID of the resource.
- Instance
Id string - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Action stringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - Lifecycle
Action stringToken - Either InstanceId or LifecycleActionToken must be specified.
- Lifecycle
Hook stringId - Lifecycle hook ID.
- as
Complete StringLifecycle Id - ID of the resource.
- instance
Id String - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action StringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle
Action StringToken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Hook StringId - Lifecycle hook ID.
- as
Complete stringLifecycle Id - ID of the resource.
- instance
Id string - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action stringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle
Action stringToken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Hook stringId - Lifecycle hook ID.
- as_
complete_ strlifecycle_ id - ID of the resource.
- instance_
id str - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle_
action_ strresult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle_
action_ strtoken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle_
hook_ strid - Lifecycle hook ID.
- as
Complete StringLifecycle Id - ID of the resource.
- instance
Id String - Instance ID. Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Action StringResult - Result of the lifecycle action. Value range:
CONTINUE
,ABANDON
. - lifecycle
Action StringToken - Either InstanceId or LifecycleActionToken must be specified.
- lifecycle
Hook StringId - Lifecycle hook ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.