1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MariadbBackupTime
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.MariadbBackupTime

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a mariadb backup_time

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const backupTime = new tencentcloud.MariadbBackupTime("backupTime", {
        endBackupTime: "04:00",
        instanceId: "tdsql-9vqvls95",
        startBackupTime: "01:00",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    backup_time = tencentcloud.MariadbBackupTime("backupTime",
        end_backup_time="04:00",
        instance_id="tdsql-9vqvls95",
        start_backup_time="01:00")
    
    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 {
    		_, err := tencentcloud.NewMariadbBackupTime(ctx, "backupTime", &tencentcloud.MariadbBackupTimeArgs{
    			EndBackupTime:   pulumi.String("04:00"),
    			InstanceId:      pulumi.String("tdsql-9vqvls95"),
    			StartBackupTime: pulumi.String("01:00"),
    		})
    		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 backupTime = new Tencentcloud.MariadbBackupTime("backupTime", new()
        {
            EndBackupTime = "04:00",
            InstanceId = "tdsql-9vqvls95",
            StartBackupTime = "01:00",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MariadbBackupTime;
    import com.pulumi.tencentcloud.MariadbBackupTimeArgs;
    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) {
            var backupTime = new MariadbBackupTime("backupTime", MariadbBackupTimeArgs.builder()
                .endBackupTime("04:00")
                .instanceId("tdsql-9vqvls95")
                .startBackupTime("01:00")
                .build());
    
        }
    }
    
    resources:
      backupTime:
        type: tencentcloud:MariadbBackupTime
        properties:
          endBackupTime: 04:00
          instanceId: tdsql-9vqvls95
          startBackupTime: 01:00
    

    Create MariadbBackupTime Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MariadbBackupTime(name: string, args: MariadbBackupTimeArgs, opts?: CustomResourceOptions);
    @overload
    def MariadbBackupTime(resource_name: str,
                          args: MariadbBackupTimeArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MariadbBackupTime(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          end_backup_time: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          start_backup_time: Optional[str] = None,
                          mariadb_backup_time_id: Optional[str] = None)
    func NewMariadbBackupTime(ctx *Context, name string, args MariadbBackupTimeArgs, opts ...ResourceOption) (*MariadbBackupTime, error)
    public MariadbBackupTime(string name, MariadbBackupTimeArgs args, CustomResourceOptions? opts = null)
    public MariadbBackupTime(String name, MariadbBackupTimeArgs args)
    public MariadbBackupTime(String name, MariadbBackupTimeArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MariadbBackupTime
    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 MariadbBackupTimeArgs
    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 MariadbBackupTimeArgs
    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 MariadbBackupTimeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MariadbBackupTimeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MariadbBackupTimeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MariadbBackupTime 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 MariadbBackupTime resource accepts the following input properties:

    EndBackupTime string
    End time of daily backup window in the format of mm:ss, such as 23:59.
    InstanceId string
    instance id.
    StartBackupTime string
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    MariadbBackupTimeId string
    ID of the resource.
    EndBackupTime string
    End time of daily backup window in the format of mm:ss, such as 23:59.
    InstanceId string
    instance id.
    StartBackupTime string
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    MariadbBackupTimeId string
    ID of the resource.
    endBackupTime String
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instanceId String
    instance id.
    startBackupTime String
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    mariadbBackupTimeId String
    ID of the resource.
    endBackupTime string
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instanceId string
    instance id.
    startBackupTime string
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    mariadbBackupTimeId string
    ID of the resource.
    end_backup_time str
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instance_id str
    instance id.
    start_backup_time str
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    mariadb_backup_time_id str
    ID of the resource.
    endBackupTime String
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instanceId String
    instance id.
    startBackupTime String
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    mariadbBackupTimeId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MariadbBackupTime 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 MariadbBackupTime Resource

    Get an existing MariadbBackupTime 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?: MariadbBackupTimeState, opts?: CustomResourceOptions): MariadbBackupTime
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            end_backup_time: Optional[str] = None,
            instance_id: Optional[str] = None,
            mariadb_backup_time_id: Optional[str] = None,
            start_backup_time: Optional[str] = None) -> MariadbBackupTime
    func GetMariadbBackupTime(ctx *Context, name string, id IDInput, state *MariadbBackupTimeState, opts ...ResourceOption) (*MariadbBackupTime, error)
    public static MariadbBackupTime Get(string name, Input<string> id, MariadbBackupTimeState? state, CustomResourceOptions? opts = null)
    public static MariadbBackupTime get(String name, Output<String> id, MariadbBackupTimeState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MariadbBackupTime    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.
    The following state arguments are supported:
    EndBackupTime string
    End time of daily backup window in the format of mm:ss, such as 23:59.
    InstanceId string
    instance id.
    MariadbBackupTimeId string
    ID of the resource.
    StartBackupTime string
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    EndBackupTime string
    End time of daily backup window in the format of mm:ss, such as 23:59.
    InstanceId string
    instance id.
    MariadbBackupTimeId string
    ID of the resource.
    StartBackupTime string
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    endBackupTime String
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instanceId String
    instance id.
    mariadbBackupTimeId String
    ID of the resource.
    startBackupTime String
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    endBackupTime string
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instanceId string
    instance id.
    mariadbBackupTimeId string
    ID of the resource.
    startBackupTime string
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    end_backup_time str
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instance_id str
    instance id.
    mariadb_backup_time_id str
    ID of the resource.
    start_backup_time str
    Start time of daily backup window in the format of mm:ss, such as 22:00.
    endBackupTime String
    End time of daily backup window in the format of mm:ss, such as 23:59.
    instanceId String
    instance id.
    mariadbBackupTimeId String
    ID of the resource.
    startBackupTime String
    Start time of daily backup window in the format of mm:ss, such as 22:00.

    Import

    mariadb backup_time can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/mariadbBackupTime:MariadbBackupTime backup_time backup_time_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack