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

tencentcloud.TatInvoker

Explore with Pulumi AI

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

    Provides a resource to create a tat invoker

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const invoker = new tencentcloud.TatInvoker("invoker", {
        commandId: "cmd-6fydo27j",
        instanceIds: ["ins-3c7q2ebs"],
        scheduleSettings: {
            invokeTime: "2099-11-17T16:00:00Z",
            policy: "ONCE",
        },
        type: "SCHEDULE",
        username: "root",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    invoker = tencentcloud.TatInvoker("invoker",
        command_id="cmd-6fydo27j",
        instance_ids=["ins-3c7q2ebs"],
        schedule_settings={
            "invoke_time": "2099-11-17T16:00:00Z",
            "policy": "ONCE",
        },
        type="SCHEDULE",
        username="root")
    
    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.NewTatInvoker(ctx, "invoker", &tencentcloud.TatInvokerArgs{
    			CommandId: pulumi.String("cmd-6fydo27j"),
    			InstanceIds: pulumi.StringArray{
    				pulumi.String("ins-3c7q2ebs"),
    			},
    			ScheduleSettings: &tencentcloud.TatInvokerScheduleSettingsArgs{
    				InvokeTime: pulumi.String("2099-11-17T16:00:00Z"),
    				Policy:     pulumi.String("ONCE"),
    			},
    			Type:     pulumi.String("SCHEDULE"),
    			Username: pulumi.String("root"),
    		})
    		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 invoker = new Tencentcloud.TatInvoker("invoker", new()
        {
            CommandId = "cmd-6fydo27j",
            InstanceIds = new[]
            {
                "ins-3c7q2ebs",
            },
            ScheduleSettings = new Tencentcloud.Inputs.TatInvokerScheduleSettingsArgs
            {
                InvokeTime = "2099-11-17T16:00:00Z",
                Policy = "ONCE",
            },
            Type = "SCHEDULE",
            Username = "root",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TatInvoker;
    import com.pulumi.tencentcloud.TatInvokerArgs;
    import com.pulumi.tencentcloud.inputs.TatInvokerScheduleSettingsArgs;
    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 invoker = new TatInvoker("invoker", TatInvokerArgs.builder()
                .commandId("cmd-6fydo27j")
                .instanceIds("ins-3c7q2ebs")
                .scheduleSettings(TatInvokerScheduleSettingsArgs.builder()
                    .invokeTime("2099-11-17T16:00:00Z")
                    .policy("ONCE")
                    .build())
                .type("SCHEDULE")
                .username("root")
                .build());
    
        }
    }
    
    resources:
      invoker:
        type: tencentcloud:TatInvoker
        properties:
          commandId: cmd-6fydo27j
          instanceIds:
            - ins-3c7q2ebs
          # parameters = ""
          scheduleSettings:
            invokeTime: 2099-11-17T16:00:00Z
            policy: ONCE
          type: SCHEDULE
          username: root
    

    Create TatInvoker Resource

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

    Constructor syntax

    new TatInvoker(name: string, args: TatInvokerArgs, opts?: CustomResourceOptions);
    @overload
    def TatInvoker(resource_name: str,
                   args: TatInvokerArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TatInvoker(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   command_id: Optional[str] = None,
                   instance_ids: Optional[Sequence[str]] = None,
                   type: Optional[str] = None,
                   name: Optional[str] = None,
                   parameters: Optional[str] = None,
                   schedule_settings: Optional[TatInvokerScheduleSettingsArgs] = None,
                   tat_invoker_id: Optional[str] = None,
                   username: Optional[str] = None)
    func NewTatInvoker(ctx *Context, name string, args TatInvokerArgs, opts ...ResourceOption) (*TatInvoker, error)
    public TatInvoker(string name, TatInvokerArgs args, CustomResourceOptions? opts = null)
    public TatInvoker(String name, TatInvokerArgs args)
    public TatInvoker(String name, TatInvokerArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TatInvoker
    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 TatInvokerArgs
    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 TatInvokerArgs
    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 TatInvokerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TatInvokerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TatInvokerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    CommandId string
    Remote command ID.
    InstanceIds List<string>
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    Type string
    Invoker type. It can only be SCHEDULE (recurring invokers).
    Name string
    Invoker name.
    Parameters string
    Custom parameters of the command.
    ScheduleSettings TatInvokerScheduleSettings
    Settings required for a recurring invoker.
    TatInvokerId string
    ID of the resource.
    Username string
    The user who executes the command.
    CommandId string
    Remote command ID.
    InstanceIds []string
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    Type string
    Invoker type. It can only be SCHEDULE (recurring invokers).
    Name string
    Invoker name.
    Parameters string
    Custom parameters of the command.
    ScheduleSettings TatInvokerScheduleSettingsArgs
    Settings required for a recurring invoker.
    TatInvokerId string
    ID of the resource.
    Username string
    The user who executes the command.
    commandId String
    Remote command ID.
    instanceIds List<String>
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    type String
    Invoker type. It can only be SCHEDULE (recurring invokers).
    name String
    Invoker name.
    parameters String
    Custom parameters of the command.
    scheduleSettings TatInvokerScheduleSettings
    Settings required for a recurring invoker.
    tatInvokerId String
    ID of the resource.
    username String
    The user who executes the command.
    commandId string
    Remote command ID.
    instanceIds string[]
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    type string
    Invoker type. It can only be SCHEDULE (recurring invokers).
    name string
    Invoker name.
    parameters string
    Custom parameters of the command.
    scheduleSettings TatInvokerScheduleSettings
    Settings required for a recurring invoker.
    tatInvokerId string
    ID of the resource.
    username string
    The user who executes the command.
    command_id str
    Remote command ID.
    instance_ids Sequence[str]
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    type str
    Invoker type. It can only be SCHEDULE (recurring invokers).
    name str
    Invoker name.
    parameters str
    Custom parameters of the command.
    schedule_settings TatInvokerScheduleSettingsArgs
    Settings required for a recurring invoker.
    tat_invoker_id str
    ID of the resource.
    username str
    The user who executes the command.
    commandId String
    Remote command ID.
    instanceIds List<String>
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    type String
    Invoker type. It can only be SCHEDULE (recurring invokers).
    name String
    Invoker name.
    parameters String
    Custom parameters of the command.
    scheduleSettings Property Map
    Settings required for a recurring invoker.
    tatInvokerId String
    ID of the resource.
    username String
    The user who executes the command.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TatInvoker resource produces the following output properties:

    CreatedTime string
    Creation time.
    Enable bool
    Whether to enable the invoker.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvokerId string
    Invoker ID.
    UpdatedTime string
    Modification time.
    CreatedTime string
    Creation time.
    Enable bool
    Whether to enable the invoker.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvokerId string
    Invoker ID.
    UpdatedTime string
    Modification time.
    createdTime String
    Creation time.
    enable Boolean
    Whether to enable the invoker.
    id String
    The provider-assigned unique ID for this managed resource.
    invokerId String
    Invoker ID.
    updatedTime String
    Modification time.
    createdTime string
    Creation time.
    enable boolean
    Whether to enable the invoker.
    id string
    The provider-assigned unique ID for this managed resource.
    invokerId string
    Invoker ID.
    updatedTime string
    Modification time.
    created_time str
    Creation time.
    enable bool
    Whether to enable the invoker.
    id str
    The provider-assigned unique ID for this managed resource.
    invoker_id str
    Invoker ID.
    updated_time str
    Modification time.
    createdTime String
    Creation time.
    enable Boolean
    Whether to enable the invoker.
    id String
    The provider-assigned unique ID for this managed resource.
    invokerId String
    Invoker ID.
    updatedTime String
    Modification time.

    Look up Existing TatInvoker Resource

    Get an existing TatInvoker 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?: TatInvokerState, opts?: CustomResourceOptions): TatInvoker
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            command_id: Optional[str] = None,
            created_time: Optional[str] = None,
            enable: Optional[bool] = None,
            instance_ids: Optional[Sequence[str]] = None,
            invoker_id: Optional[str] = None,
            name: Optional[str] = None,
            parameters: Optional[str] = None,
            schedule_settings: Optional[TatInvokerScheduleSettingsArgs] = None,
            tat_invoker_id: Optional[str] = None,
            type: Optional[str] = None,
            updated_time: Optional[str] = None,
            username: Optional[str] = None) -> TatInvoker
    func GetTatInvoker(ctx *Context, name string, id IDInput, state *TatInvokerState, opts ...ResourceOption) (*TatInvoker, error)
    public static TatInvoker Get(string name, Input<string> id, TatInvokerState? state, CustomResourceOptions? opts = null)
    public static TatInvoker get(String name, Output<String> id, TatInvokerState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TatInvoker    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:
    CommandId string
    Remote command ID.
    CreatedTime string
    Creation time.
    Enable bool
    Whether to enable the invoker.
    InstanceIds List<string>
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    InvokerId string
    Invoker ID.
    Name string
    Invoker name.
    Parameters string
    Custom parameters of the command.
    ScheduleSettings TatInvokerScheduleSettings
    Settings required for a recurring invoker.
    TatInvokerId string
    ID of the resource.
    Type string
    Invoker type. It can only be SCHEDULE (recurring invokers).
    UpdatedTime string
    Modification time.
    Username string
    The user who executes the command.
    CommandId string
    Remote command ID.
    CreatedTime string
    Creation time.
    Enable bool
    Whether to enable the invoker.
    InstanceIds []string
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    InvokerId string
    Invoker ID.
    Name string
    Invoker name.
    Parameters string
    Custom parameters of the command.
    ScheduleSettings TatInvokerScheduleSettingsArgs
    Settings required for a recurring invoker.
    TatInvokerId string
    ID of the resource.
    Type string
    Invoker type. It can only be SCHEDULE (recurring invokers).
    UpdatedTime string
    Modification time.
    Username string
    The user who executes the command.
    commandId String
    Remote command ID.
    createdTime String
    Creation time.
    enable Boolean
    Whether to enable the invoker.
    instanceIds List<String>
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    invokerId String
    Invoker ID.
    name String
    Invoker name.
    parameters String
    Custom parameters of the command.
    scheduleSettings TatInvokerScheduleSettings
    Settings required for a recurring invoker.
    tatInvokerId String
    ID of the resource.
    type String
    Invoker type. It can only be SCHEDULE (recurring invokers).
    updatedTime String
    Modification time.
    username String
    The user who executes the command.
    commandId string
    Remote command ID.
    createdTime string
    Creation time.
    enable boolean
    Whether to enable the invoker.
    instanceIds string[]
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    invokerId string
    Invoker ID.
    name string
    Invoker name.
    parameters string
    Custom parameters of the command.
    scheduleSettings TatInvokerScheduleSettings
    Settings required for a recurring invoker.
    tatInvokerId string
    ID of the resource.
    type string
    Invoker type. It can only be SCHEDULE (recurring invokers).
    updatedTime string
    Modification time.
    username string
    The user who executes the command.
    command_id str
    Remote command ID.
    created_time str
    Creation time.
    enable bool
    Whether to enable the invoker.
    instance_ids Sequence[str]
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    invoker_id str
    Invoker ID.
    name str
    Invoker name.
    parameters str
    Custom parameters of the command.
    schedule_settings TatInvokerScheduleSettingsArgs
    Settings required for a recurring invoker.
    tat_invoker_id str
    ID of the resource.
    type str
    Invoker type. It can only be SCHEDULE (recurring invokers).
    updated_time str
    Modification time.
    username str
    The user who executes the command.
    commandId String
    Remote command ID.
    createdTime String
    Creation time.
    enable Boolean
    Whether to enable the invoker.
    instanceIds List<String>
    ID of the instance bound to the trigger. Up to 100 IDs are allowed.
    invokerId String
    Invoker ID.
    name String
    Invoker name.
    parameters String
    Custom parameters of the command.
    scheduleSettings Property Map
    Settings required for a recurring invoker.
    tatInvokerId String
    ID of the resource.
    type String
    Invoker type. It can only be SCHEDULE (recurring invokers).
    updatedTime String
    Modification time.
    username String
    The user who executes the command.

    Supporting Types

    TatInvokerScheduleSettings, TatInvokerScheduleSettingsArgs

    Policy string
    Execution policy: ONCE: Execute once; RECURRENCE: Execute repeatedly.
    InvokeTime string
    The next execution time of the invoker. This field is required if Policy is ONCE.
    Recurrence string
    Trigger the crontab expression. This field is required if Policy is RECURRENCE. The crontab expression is parsed in UTC+8.
    Policy string
    Execution policy: ONCE: Execute once; RECURRENCE: Execute repeatedly.
    InvokeTime string
    The next execution time of the invoker. This field is required if Policy is ONCE.
    Recurrence string
    Trigger the crontab expression. This field is required if Policy is RECURRENCE. The crontab expression is parsed in UTC+8.
    policy String
    Execution policy: ONCE: Execute once; RECURRENCE: Execute repeatedly.
    invokeTime String
    The next execution time of the invoker. This field is required if Policy is ONCE.
    recurrence String
    Trigger the crontab expression. This field is required if Policy is RECURRENCE. The crontab expression is parsed in UTC+8.
    policy string
    Execution policy: ONCE: Execute once; RECURRENCE: Execute repeatedly.
    invokeTime string
    The next execution time of the invoker. This field is required if Policy is ONCE.
    recurrence string
    Trigger the crontab expression. This field is required if Policy is RECURRENCE. The crontab expression is parsed in UTC+8.
    policy str
    Execution policy: ONCE: Execute once; RECURRENCE: Execute repeatedly.
    invoke_time str
    The next execution time of the invoker. This field is required if Policy is ONCE.
    recurrence str
    Trigger the crontab expression. This field is required if Policy is RECURRENCE. The crontab expression is parsed in UTC+8.
    policy String
    Execution policy: ONCE: Execute once; RECURRENCE: Execute repeatedly.
    invokeTime String
    The next execution time of the invoker. This field is required if Policy is ONCE.
    recurrence String
    Trigger the crontab expression. This field is required if Policy is RECURRENCE. The crontab expression is parsed in UTC+8.

    Import

    tat invoker can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tatInvoker:TatInvoker invoker ivk-gwb4ztk5
    

    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