<filename>sdk/dotnet/Tencentcloud/Dts/MigrateJobResumeOperation.cs<gh_stars>0// *** 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 TencentCloudIAC.PulumiPackage.Tencentcloud.Dts
{
    /// <summary>
    /// Provides a resource to create a dts migrate_job_resume_operation
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var resume = new Tencentcloud.Dts.MigrateJobResumeOperation("resume", new Tencentcloud.Dts.MigrateJobResumeOperationArgs
    ///         {
    ///             JobId = "job_id",
    ///             ResumeOption = "normal",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Dts/migrateJobResumeOperation:MigrateJobResumeOperation")]
    public partial class MigrateJobResumeOperation : Pulumi.CustomResource
    {
        /// <summary>
        /// job id.
        /// </summary>
        [Output("jobId")]
        public Output<string> JobId { get; private set; } = null!;

        /// <summary>
        /// resume mode: 1.clearData-Clear target data; 2.overwrite-The task is executed in overwrite mode; 3.normal-No extra action. Note that clearData and overwrite are valid only for redis links, normal is valid only for non-Redis links.
        /// </summary>
        [Output("resumeOption")]
        public Output<string> ResumeOption { get; private set; } = null!;


        /// <summary>
        /// Create a MigrateJobResumeOperation resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public MigrateJobResumeOperation(string name, MigrateJobResumeOperationArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Dts/migrateJobResumeOperation:MigrateJobResumeOperation", name, args ?? new MigrateJobResumeOperationArgs(), MakeResourceOptions(options, ""))
        {
        }

        private MigrateJobResumeOperation(string name, Input<string> id, MigrateJobResumeOperationState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Dts/migrateJobResumeOperation:MigrateJobResumeOperation", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/tencentcloudstack",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing MigrateJobResumeOperation resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static MigrateJobResumeOperation Get(string name, Input<string> id, MigrateJobResumeOperationState? state = null, CustomResourceOptions? options = null)
        {
            return new MigrateJobResumeOperation(name, id, state, options);
        }
    }

    public sealed class MigrateJobResumeOperationArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// job id.
        /// </summary>
        [Input("jobId", required: true)]
        public Input<string> JobId { get; set; } = null!;

        /// <summary>
        /// resume mode: 1.clearData-Clear target data; 2.overwrite-The task is executed in overwrite mode; 3.normal-No extra action. Note that clearData and overwrite are valid only for redis links, normal is valid only for non-Redis links.
        /// </summary>
        [Input("resumeOption", required: true)]
        public Input<string> ResumeOption { get; set; } = null!;

        public MigrateJobResumeOperationArgs()
        {
        }
    }

    public sealed class MigrateJobResumeOperationState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// job id.
        /// </summary>
        [Input("jobId")]
        public Input<string>? JobId { get; set; }

        /// <summary>
        /// resume mode: 1.clearData-Clear target data; 2.overwrite-The task is executed in overwrite mode; 3.normal-No extra action. Note that clearData and overwrite are valid only for redis links, normal is valid only for non-Redis links.
        /// </summary>
        [Input("resumeOption")]
        public Input<string>? ResumeOption { get; set; }

        public MigrateJobResumeOperationState()
        {
        }
    }
}
