tencentcloud.DlcRollbackDataEngineImageOperation
Explore with Pulumi AI
Provides a resource to create a DLC rollback data engine image
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleDlcCheckDataEngineImageCanBeRollback = tencentcloud.getDlcCheckDataEngineImageCanBeRollback({
dataEngineId: "DataEngine-cgkvbas6",
});
const exampleDlcRollbackDataEngineImageOperation = new tencentcloud.DlcRollbackDataEngineImageOperation("exampleDlcRollbackDataEngineImageOperation", {
dataEngineId: "DataEngine-cgkvbas6",
fromRecordId: exampleDlcCheckDataEngineImageCanBeRollback.then(exampleDlcCheckDataEngineImageCanBeRollback => exampleDlcCheckDataEngineImageCanBeRollback.fromRecordId),
toRecordId: exampleDlcCheckDataEngineImageCanBeRollback.then(exampleDlcCheckDataEngineImageCanBeRollback => exampleDlcCheckDataEngineImageCanBeRollback.toRecordId),
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_dlc_check_data_engine_image_can_be_rollback = tencentcloud.get_dlc_check_data_engine_image_can_be_rollback(data_engine_id="DataEngine-cgkvbas6")
example_dlc_rollback_data_engine_image_operation = tencentcloud.DlcRollbackDataEngineImageOperation("exampleDlcRollbackDataEngineImageOperation",
data_engine_id="DataEngine-cgkvbas6",
from_record_id=example_dlc_check_data_engine_image_can_be_rollback.from_record_id,
to_record_id=example_dlc_check_data_engine_image_can_be_rollback.to_record_id)
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 {
exampleDlcCheckDataEngineImageCanBeRollback, err := tencentcloud.GetDlcCheckDataEngineImageCanBeRollback(ctx, &tencentcloud.GetDlcCheckDataEngineImageCanBeRollbackArgs{
DataEngineId: "DataEngine-cgkvbas6",
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.NewDlcRollbackDataEngineImageOperation(ctx, "exampleDlcRollbackDataEngineImageOperation", &tencentcloud.DlcRollbackDataEngineImageOperationArgs{
DataEngineId: pulumi.String("DataEngine-cgkvbas6"),
FromRecordId: pulumi.String(exampleDlcCheckDataEngineImageCanBeRollback.FromRecordId),
ToRecordId: pulumi.String(exampleDlcCheckDataEngineImageCanBeRollback.ToRecordId),
})
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 exampleDlcCheckDataEngineImageCanBeRollback = Tencentcloud.GetDlcCheckDataEngineImageCanBeRollback.Invoke(new()
{
DataEngineId = "DataEngine-cgkvbas6",
});
var exampleDlcRollbackDataEngineImageOperation = new Tencentcloud.DlcRollbackDataEngineImageOperation("exampleDlcRollbackDataEngineImageOperation", new()
{
DataEngineId = "DataEngine-cgkvbas6",
FromRecordId = exampleDlcCheckDataEngineImageCanBeRollback.Apply(getDlcCheckDataEngineImageCanBeRollbackResult => getDlcCheckDataEngineImageCanBeRollbackResult.FromRecordId),
ToRecordId = exampleDlcCheckDataEngineImageCanBeRollback.Apply(getDlcCheckDataEngineImageCanBeRollbackResult => getDlcCheckDataEngineImageCanBeRollbackResult.ToRecordId),
});
});
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.GetDlcCheckDataEngineImageCanBeRollbackArgs;
import com.pulumi.tencentcloud.DlcRollbackDataEngineImageOperation;
import com.pulumi.tencentcloud.DlcRollbackDataEngineImageOperationArgs;
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 exampleDlcCheckDataEngineImageCanBeRollback = TencentcloudFunctions.getDlcCheckDataEngineImageCanBeRollback(GetDlcCheckDataEngineImageCanBeRollbackArgs.builder()
.dataEngineId("DataEngine-cgkvbas6")
.build());
var exampleDlcRollbackDataEngineImageOperation = new DlcRollbackDataEngineImageOperation("exampleDlcRollbackDataEngineImageOperation", DlcRollbackDataEngineImageOperationArgs.builder()
.dataEngineId("DataEngine-cgkvbas6")
.fromRecordId(exampleDlcCheckDataEngineImageCanBeRollback.applyValue(getDlcCheckDataEngineImageCanBeRollbackResult -> getDlcCheckDataEngineImageCanBeRollbackResult.fromRecordId()))
.toRecordId(exampleDlcCheckDataEngineImageCanBeRollback.applyValue(getDlcCheckDataEngineImageCanBeRollbackResult -> getDlcCheckDataEngineImageCanBeRollbackResult.toRecordId()))
.build());
}
}
resources:
exampleDlcRollbackDataEngineImageOperation:
type: tencentcloud:DlcRollbackDataEngineImageOperation
properties:
dataEngineId: DataEngine-cgkvbas6
fromRecordId: ${exampleDlcCheckDataEngineImageCanBeRollback.fromRecordId}
toRecordId: ${exampleDlcCheckDataEngineImageCanBeRollback.toRecordId}
variables:
exampleDlcCheckDataEngineImageCanBeRollback:
fn::invoke:
function: tencentcloud:getDlcCheckDataEngineImageCanBeRollback
arguments:
dataEngineId: DataEngine-cgkvbas6
Create DlcRollbackDataEngineImageOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcRollbackDataEngineImageOperation(name: string, args: DlcRollbackDataEngineImageOperationArgs, opts?: CustomResourceOptions);
@overload
def DlcRollbackDataEngineImageOperation(resource_name: str,
args: DlcRollbackDataEngineImageOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcRollbackDataEngineImageOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_engine_id: Optional[str] = None,
dlc_rollback_data_engine_image_operation_id: Optional[str] = None,
from_record_id: Optional[str] = None,
to_record_id: Optional[str] = None)
func NewDlcRollbackDataEngineImageOperation(ctx *Context, name string, args DlcRollbackDataEngineImageOperationArgs, opts ...ResourceOption) (*DlcRollbackDataEngineImageOperation, error)
public DlcRollbackDataEngineImageOperation(string name, DlcRollbackDataEngineImageOperationArgs args, CustomResourceOptions? opts = null)
public DlcRollbackDataEngineImageOperation(String name, DlcRollbackDataEngineImageOperationArgs args)
public DlcRollbackDataEngineImageOperation(String name, DlcRollbackDataEngineImageOperationArgs args, CustomResourceOptions options)
type: tencentcloud:DlcRollbackDataEngineImageOperation
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 DlcRollbackDataEngineImageOperationArgs
- 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 DlcRollbackDataEngineImageOperationArgs
- 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 DlcRollbackDataEngineImageOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcRollbackDataEngineImageOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcRollbackDataEngineImageOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcRollbackDataEngineImageOperation 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 DlcRollbackDataEngineImageOperation resource accepts the following input properties:
- Data
Engine stringId - Engine ID.
- Dlc
Rollback stringData Engine Image Operation Id - ID of the resource.
- From
Record stringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- To
Record stringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- Data
Engine stringId - Engine ID.
- Dlc
Rollback stringData Engine Image Operation Id - ID of the resource.
- From
Record stringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- To
Record stringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data
Engine StringId - Engine ID.
- dlc
Rollback StringData Engine Image Operation Id - ID of the resource.
- from
Record StringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to
Record StringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data
Engine stringId - Engine ID.
- dlc
Rollback stringData Engine Image Operation Id - ID of the resource.
- from
Record stringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to
Record stringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data_
engine_ strid - Engine ID.
- dlc_
rollback_ strdata_ engine_ image_ operation_ id - ID of the resource.
- from_
record_ strid - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to_
record_ strid - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data
Engine StringId - Engine ID.
- dlc
Rollback StringData Engine Image Operation Id - ID of the resource.
- from
Record StringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to
Record StringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcRollbackDataEngineImageOperation 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 DlcRollbackDataEngineImageOperation Resource
Get an existing DlcRollbackDataEngineImageOperation 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?: DlcRollbackDataEngineImageOperationState, opts?: CustomResourceOptions): DlcRollbackDataEngineImageOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_engine_id: Optional[str] = None,
dlc_rollback_data_engine_image_operation_id: Optional[str] = None,
from_record_id: Optional[str] = None,
to_record_id: Optional[str] = None) -> DlcRollbackDataEngineImageOperation
func GetDlcRollbackDataEngineImageOperation(ctx *Context, name string, id IDInput, state *DlcRollbackDataEngineImageOperationState, opts ...ResourceOption) (*DlcRollbackDataEngineImageOperation, error)
public static DlcRollbackDataEngineImageOperation Get(string name, Input<string> id, DlcRollbackDataEngineImageOperationState? state, CustomResourceOptions? opts = null)
public static DlcRollbackDataEngineImageOperation get(String name, Output<String> id, DlcRollbackDataEngineImageOperationState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcRollbackDataEngineImageOperation 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.
- Data
Engine stringId - Engine ID.
- Dlc
Rollback stringData Engine Image Operation Id - ID of the resource.
- From
Record stringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- To
Record stringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- Data
Engine stringId - Engine ID.
- Dlc
Rollback stringData Engine Image Operation Id - ID of the resource.
- From
Record stringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- To
Record stringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data
Engine StringId - Engine ID.
- dlc
Rollback StringData Engine Image Operation Id - ID of the resource.
- from
Record StringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to
Record StringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data
Engine stringId - Engine ID.
- dlc
Rollback stringData Engine Image Operation Id - ID of the resource.
- from
Record stringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to
Record stringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data_
engine_ strid - Engine ID.
- dlc_
rollback_ strdata_ engine_ image_ operation_ id - ID of the resource.
- from_
record_ strid - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to_
record_ strid - ToRecordId parameters returned by the API for checking the availability of rolling back.
- data
Engine StringId - Engine ID.
- dlc
Rollback StringData Engine Image Operation Id - ID of the resource.
- from
Record StringId - FromRecordId parameters returned by the API for checking the availability of rolling back.
- to
Record StringId - ToRecordId parameters returned by the API for checking the availability of rolling back.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.