tencentcloud.TatInvoker
Explore with Pulumi AI
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:
- Command
Id string - Remote command ID.
- Instance
Ids 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.
- Schedule
Settings TatInvoker Schedule Settings - Settings required for a recurring invoker.
- Tat
Invoker stringId - ID of the resource.
- Username string
- The user who executes the command.
- Command
Id string - Remote command ID.
- Instance
Ids []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.
- Schedule
Settings TatInvoker Schedule Settings Args - Settings required for a recurring invoker.
- Tat
Invoker stringId - ID of the resource.
- Username string
- The user who executes the command.
- command
Id String - Remote command ID.
- instance
Ids 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.
- schedule
Settings TatInvoker Schedule Settings - Settings required for a recurring invoker.
- tat
Invoker StringId - ID of the resource.
- username String
- The user who executes the command.
- command
Id string - Remote command ID.
- instance
Ids 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.
- schedule
Settings TatInvoker Schedule Settings - Settings required for a recurring invoker.
- tat
Invoker stringId - 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 TatInvoker Schedule Settings Args - Settings required for a recurring invoker.
- tat_
invoker_ strid - ID of the resource.
- username str
- The user who executes the command.
- command
Id String - Remote command ID.
- instance
Ids 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.
- schedule
Settings Property Map - Settings required for a recurring invoker.
- tat
Invoker StringId - 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:
- Created
Time string - Creation time.
- Enable bool
- Whether to enable the invoker.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invoker
Id string - Invoker ID.
- Updated
Time string - Modification time.
- Created
Time string - Creation time.
- Enable bool
- Whether to enable the invoker.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invoker
Id string - Invoker ID.
- Updated
Time string - Modification time.
- created
Time String - Creation time.
- enable Boolean
- Whether to enable the invoker.
- id String
- The provider-assigned unique ID for this managed resource.
- invoker
Id String - Invoker ID.
- updated
Time String - Modification time.
- created
Time string - Creation time.
- enable boolean
- Whether to enable the invoker.
- id string
- The provider-assigned unique ID for this managed resource.
- invoker
Id string - Invoker ID.
- updated
Time 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.
- created
Time String - Creation time.
- enable Boolean
- Whether to enable the invoker.
- id String
- The provider-assigned unique ID for this managed resource.
- invoker
Id String - Invoker ID.
- updated
Time 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.
- Command
Id string - Remote command ID.
- Created
Time string - Creation time.
- Enable bool
- Whether to enable the invoker.
- Instance
Ids List<string> - ID of the instance bound to the trigger. Up to 100 IDs are allowed.
- Invoker
Id string - Invoker ID.
- Name string
- Invoker name.
- Parameters string
- Custom parameters of the command.
- Schedule
Settings TatInvoker Schedule Settings - Settings required for a recurring invoker.
- Tat
Invoker stringId - ID of the resource.
- Type string
- Invoker type. It can only be
SCHEDULE
(recurring invokers). - Updated
Time string - Modification time.
- Username string
- The user who executes the command.
- Command
Id string - Remote command ID.
- Created
Time string - Creation time.
- Enable bool
- Whether to enable the invoker.
- Instance
Ids []string - ID of the instance bound to the trigger. Up to 100 IDs are allowed.
- Invoker
Id string - Invoker ID.
- Name string
- Invoker name.
- Parameters string
- Custom parameters of the command.
- Schedule
Settings TatInvoker Schedule Settings Args - Settings required for a recurring invoker.
- Tat
Invoker stringId - ID of the resource.
- Type string
- Invoker type. It can only be
SCHEDULE
(recurring invokers). - Updated
Time string - Modification time.
- Username string
- The user who executes the command.
- command
Id String - Remote command ID.
- created
Time String - Creation time.
- enable Boolean
- Whether to enable the invoker.
- instance
Ids List<String> - ID of the instance bound to the trigger. Up to 100 IDs are allowed.
- invoker
Id String - Invoker ID.
- name String
- Invoker name.
- parameters String
- Custom parameters of the command.
- schedule
Settings TatInvoker Schedule Settings - Settings required for a recurring invoker.
- tat
Invoker StringId - ID of the resource.
- type String
- Invoker type. It can only be
SCHEDULE
(recurring invokers). - updated
Time String - Modification time.
- username String
- The user who executes the command.
- command
Id string - Remote command ID.
- created
Time string - Creation time.
- enable boolean
- Whether to enable the invoker.
- instance
Ids string[] - ID of the instance bound to the trigger. Up to 100 IDs are allowed.
- invoker
Id string - Invoker ID.
- name string
- Invoker name.
- parameters string
- Custom parameters of the command.
- schedule
Settings TatInvoker Schedule Settings - Settings required for a recurring invoker.
- tat
Invoker stringId - ID of the resource.
- type string
- Invoker type. It can only be
SCHEDULE
(recurring invokers). - updated
Time 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 TatInvoker Schedule Settings Args - Settings required for a recurring invoker.
- tat_
invoker_ strid - 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.
- command
Id String - Remote command ID.
- created
Time String - Creation time.
- enable Boolean
- Whether to enable the invoker.
- instance
Ids List<String> - ID of the instance bound to the trigger. Up to 100 IDs are allowed.
- invoker
Id String - Invoker ID.
- name String
- Invoker name.
- parameters String
- Custom parameters of the command.
- schedule
Settings Property Map - Settings required for a recurring invoker.
- tat
Invoker StringId - ID of the resource.
- type String
- Invoker type. It can only be
SCHEDULE
(recurring invokers). - updated
Time 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. - Invoke
Time 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
isRECURRENCE
. The crontab expression is parsed in UTC+8.
- Policy string
- Execution policy:
ONCE
: Execute once;RECURRENCE
: Execute repeatedly. - Invoke
Time 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
isRECURRENCE
. The crontab expression is parsed in UTC+8.
- policy String
- Execution policy:
ONCE
: Execute once;RECURRENCE
: Execute repeatedly. - invoke
Time 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
isRECURRENCE
. The crontab expression is parsed in UTC+8.
- policy string
- Execution policy:
ONCE
: Execute once;RECURRENCE
: Execute repeatedly. - invoke
Time 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
isRECURRENCE
. 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
isRECURRENCE
. The crontab expression is parsed in UTC+8.
- policy String
- Execution policy:
ONCE
: Execute once;RECURRENCE
: Execute repeatedly. - invoke
Time 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
isRECURRENCE
. 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.