volcengine.ecs.Invocation
Explore with Pulumi AI
Provides a resource to manage ecs invocation
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Ecs.Invocation("foo", new()
{
CommandId = "cmd-ychkepkhtim0tr3b****",
Frequency = "5m",
InstanceIds = new[]
{
"i-ychmz92487l8j00o****",
},
InvocationDescription = "tf",
InvocationName = "tf-test",
LaunchTime = "2023-06-20T09:48:00Z",
RecurrenceEndTime = "2023-06-20T09:59:00Z",
RepeatMode = "Rate",
Timeout = 90,
Username = "root",
WorkingDir = "/home",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewInvocation(ctx, "foo", &ecs.InvocationArgs{
CommandId: pulumi.String("cmd-ychkepkhtim0tr3b****"),
Frequency: pulumi.String("5m"),
InstanceIds: pulumi.StringArray{
pulumi.String("i-ychmz92487l8j00o****"),
},
InvocationDescription: pulumi.String("tf"),
InvocationName: pulumi.String("tf-test"),
LaunchTime: pulumi.String("2023-06-20T09:48:00Z"),
RecurrenceEndTime: pulumi.String("2023-06-20T09:59:00Z"),
RepeatMode: pulumi.String("Rate"),
Timeout: pulumi.Int(90),
Username: pulumi.String("root"),
WorkingDir: pulumi.String("/home"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.Invocation;
import com.pulumi.volcengine.ecs.InvocationArgs;
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 foo = new Invocation("foo", InvocationArgs.builder()
.commandId("cmd-ychkepkhtim0tr3b****")
.frequency("5m")
.instanceIds("i-ychmz92487l8j00o****")
.invocationDescription("tf")
.invocationName("tf-test")
.launchTime("2023-06-20T09:48:00Z")
.recurrenceEndTime("2023-06-20T09:59:00Z")
.repeatMode("Rate")
.timeout(90)
.username("root")
.workingDir("/home")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.Invocation("foo",
command_id="cmd-ychkepkhtim0tr3b****",
frequency="5m",
instance_ids=["i-ychmz92487l8j00o****"],
invocation_description="tf",
invocation_name="tf-test",
launch_time="2023-06-20T09:48:00Z",
recurrence_end_time="2023-06-20T09:59:00Z",
repeat_mode="Rate",
timeout=90,
username="root",
working_dir="/home")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.ecs.Invocation("foo", {
commandId: "cmd-ychkepkhtim0tr3b****",
frequency: "5m",
instanceIds: ["i-ychmz92487l8j00o****"],
invocationDescription: "tf",
invocationName: "tf-test",
launchTime: "2023-06-20T09:48:00Z",
recurrenceEndTime: "2023-06-20T09:59:00Z",
repeatMode: "Rate",
timeout: 90,
username: "root",
workingDir: "/home",
});
resources:
foo:
type: volcengine:ecs:Invocation
properties:
commandId: cmd-ychkepkhtim0tr3b****
frequency: 5m
instanceIds:
- i-ychmz92487l8j00o****
invocationDescription: tf
invocationName: tf-test
launchTime: 2023-06-20T09:48:00Z
recurrenceEndTime: 2023-06-20T09:59:00Z
repeatMode: Rate
timeout: 90
username: root
workingDir: /home
Create Invocation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Invocation(name: string, args: InvocationArgs, opts?: CustomResourceOptions);
@overload
def Invocation(resource_name: str,
args: InvocationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Invocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
command_id: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
invocation_name: Optional[str] = None,
username: Optional[str] = None,
frequency: Optional[str] = None,
invocation_description: Optional[str] = None,
launch_time: Optional[str] = None,
recurrence_end_time: Optional[str] = None,
repeat_mode: Optional[str] = None,
timeout: Optional[int] = None,
working_dir: Optional[str] = None)
func NewInvocation(ctx *Context, name string, args InvocationArgs, opts ...ResourceOption) (*Invocation, error)
public Invocation(string name, InvocationArgs args, CustomResourceOptions? opts = null)
public Invocation(String name, InvocationArgs args)
public Invocation(String name, InvocationArgs args, CustomResourceOptions options)
type: volcengine:ecs:Invocation
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 InvocationArgs
- 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 InvocationArgs
- 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 InvocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InvocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InvocationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var invocationResource = new Volcengine.Ecs.Invocation("invocationResource", new()
{
CommandId = "string",
InstanceIds = new[]
{
"string",
},
InvocationName = "string",
Username = "string",
Frequency = "string",
InvocationDescription = "string",
LaunchTime = "string",
RecurrenceEndTime = "string",
RepeatMode = "string",
Timeout = 0,
WorkingDir = "string",
});
example, err := ecs.NewInvocation(ctx, "invocationResource", &ecs.InvocationArgs{
CommandId: pulumi.String("string"),
InstanceIds: pulumi.StringArray{
pulumi.String("string"),
},
InvocationName: pulumi.String("string"),
Username: pulumi.String("string"),
Frequency: pulumi.String("string"),
InvocationDescription: pulumi.String("string"),
LaunchTime: pulumi.String("string"),
RecurrenceEndTime: pulumi.String("string"),
RepeatMode: pulumi.String("string"),
Timeout: pulumi.Int(0),
WorkingDir: pulumi.String("string"),
})
var invocationResource = new Invocation("invocationResource", InvocationArgs.builder()
.commandId("string")
.instanceIds("string")
.invocationName("string")
.username("string")
.frequency("string")
.invocationDescription("string")
.launchTime("string")
.recurrenceEndTime("string")
.repeatMode("string")
.timeout(0)
.workingDir("string")
.build());
invocation_resource = volcengine.ecs.Invocation("invocationResource",
command_id="string",
instance_ids=["string"],
invocation_name="string",
username="string",
frequency="string",
invocation_description="string",
launch_time="string",
recurrence_end_time="string",
repeat_mode="string",
timeout=0,
working_dir="string")
const invocationResource = new volcengine.ecs.Invocation("invocationResource", {
commandId: "string",
instanceIds: ["string"],
invocationName: "string",
username: "string",
frequency: "string",
invocationDescription: "string",
launchTime: "string",
recurrenceEndTime: "string",
repeatMode: "string",
timeout: 0,
workingDir: "string",
});
type: volcengine:ecs:Invocation
properties:
commandId: string
frequency: string
instanceIds:
- string
invocationDescription: string
invocationName: string
launchTime: string
recurrenceEndTime: string
repeatMode: string
timeout: 0
username: string
workingDir: string
Invocation 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 Invocation resource accepts the following input properties:
- Command
Id string - The command id of the ecs invocation.
- Instance
Ids List<string> - The list of ECS instance IDs.
- Invocation
Name string - The name of the ecs invocation.
- Username string
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Frequency string
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - Invocation
Description string - The description of the ecs invocation.
- Launch
Time string - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - Recurrence
End stringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - Repeat
Mode string - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - Timeout int
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Working
Dir string - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Command
Id string - The command id of the ecs invocation.
- Instance
Ids []string - The list of ECS instance IDs.
- Invocation
Name string - The name of the ecs invocation.
- Username string
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Frequency string
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - Invocation
Description string - The description of the ecs invocation.
- Launch
Time string - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - Recurrence
End stringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - Repeat
Mode string - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - Timeout int
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Working
Dir string - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command
Id String - The command id of the ecs invocation.
- instance
Ids List<String> - The list of ECS instance IDs.
- invocation
Name String - The name of the ecs invocation.
- username String
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- frequency String
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - invocation
Description String - The description of the ecs invocation.
- launch
Time String - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence
End StringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat
Mode String - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - timeout Integer
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working
Dir String - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command
Id string - The command id of the ecs invocation.
- instance
Ids string[] - The list of ECS instance IDs.
- invocation
Name string - The name of the ecs invocation.
- username string
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- frequency string
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - invocation
Description string - The description of the ecs invocation.
- launch
Time string - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence
End stringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat
Mode string - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - timeout number
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working
Dir string - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command_
id str - The command id of the ecs invocation.
- instance_
ids Sequence[str] - The list of ECS instance IDs.
- invocation_
name str - The name of the ecs invocation.
- username str
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- frequency str
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - invocation_
description str - The description of the ecs invocation.
- launch_
time str - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence_
end_ strtime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat_
mode str - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - timeout int
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working_
dir str - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command
Id String - The command id of the ecs invocation.
- instance
Ids List<String> - The list of ECS instance IDs.
- invocation
Name String - The name of the ecs invocation.
- username String
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- frequency String
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - invocation
Description String - The description of the ecs invocation.
- launch
Time String - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence
End StringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat
Mode String - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - timeout Number
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working
Dir String - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
Outputs
All input properties are implicitly available as output properties. Additionally, the Invocation resource produces the following output properties:
- End
Time string - The end time of the ecs invocation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocation
Status string - The status of the ecs invocation.
- Start
Time string - The start time of the ecs invocation.
- End
Time string - The end time of the ecs invocation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocation
Status string - The status of the ecs invocation.
- Start
Time string - The start time of the ecs invocation.
- end
Time String - The end time of the ecs invocation.
- id String
- The provider-assigned unique ID for this managed resource.
- invocation
Status String - The status of the ecs invocation.
- start
Time String - The start time of the ecs invocation.
- end
Time string - The end time of the ecs invocation.
- id string
- The provider-assigned unique ID for this managed resource.
- invocation
Status string - The status of the ecs invocation.
- start
Time string - The start time of the ecs invocation.
- end_
time str - The end time of the ecs invocation.
- id str
- The provider-assigned unique ID for this managed resource.
- invocation_
status str - The status of the ecs invocation.
- start_
time str - The start time of the ecs invocation.
- end
Time String - The end time of the ecs invocation.
- id String
- The provider-assigned unique ID for this managed resource.
- invocation
Status String - The status of the ecs invocation.
- start
Time String - The start time of the ecs invocation.
Look up Existing Invocation Resource
Get an existing Invocation 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?: InvocationState, opts?: CustomResourceOptions): Invocation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
command_id: Optional[str] = None,
end_time: Optional[str] = None,
frequency: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
invocation_description: Optional[str] = None,
invocation_name: Optional[str] = None,
invocation_status: Optional[str] = None,
launch_time: Optional[str] = None,
recurrence_end_time: Optional[str] = None,
repeat_mode: Optional[str] = None,
start_time: Optional[str] = None,
timeout: Optional[int] = None,
username: Optional[str] = None,
working_dir: Optional[str] = None) -> Invocation
func GetInvocation(ctx *Context, name string, id IDInput, state *InvocationState, opts ...ResourceOption) (*Invocation, error)
public static Invocation Get(string name, Input<string> id, InvocationState? state, CustomResourceOptions? opts = null)
public static Invocation get(String name, Output<String> id, InvocationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 - The command id of the ecs invocation.
- End
Time string - The end time of the ecs invocation.
- Frequency string
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - Instance
Ids List<string> - The list of ECS instance IDs.
- Invocation
Description string - The description of the ecs invocation.
- Invocation
Name string - The name of the ecs invocation.
- Invocation
Status string - The status of the ecs invocation.
- Launch
Time string - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - Recurrence
End stringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - Repeat
Mode string - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - Start
Time string - The start time of the ecs invocation.
- Timeout int
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Username string
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Working
Dir string - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Command
Id string - The command id of the ecs invocation.
- End
Time string - The end time of the ecs invocation.
- Frequency string
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - Instance
Ids []string - The list of ECS instance IDs.
- Invocation
Description string - The description of the ecs invocation.
- Invocation
Name string - The name of the ecs invocation.
- Invocation
Status string - The status of the ecs invocation.
- Launch
Time string - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - Recurrence
End stringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - Repeat
Mode string - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - Start
Time string - The start time of the ecs invocation.
- Timeout int
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Username string
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- Working
Dir string - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command
Id String - The command id of the ecs invocation.
- end
Time String - The end time of the ecs invocation.
- frequency String
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - instance
Ids List<String> - The list of ECS instance IDs.
- invocation
Description String - The description of the ecs invocation.
- invocation
Name String - The name of the ecs invocation.
- invocation
Status String - The status of the ecs invocation.
- launch
Time String - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence
End StringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat
Mode String - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start
Time String - The start time of the ecs invocation.
- timeout Integer
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- username String
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working
Dir String - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command
Id string - The command id of the ecs invocation.
- end
Time string - The end time of the ecs invocation.
- frequency string
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - instance
Ids string[] - The list of ECS instance IDs.
- invocation
Description string - The description of the ecs invocation.
- invocation
Name string - The name of the ecs invocation.
- invocation
Status string - The status of the ecs invocation.
- launch
Time string - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence
End stringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat
Mode string - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start
Time string - The start time of the ecs invocation.
- timeout number
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- username string
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working
Dir string - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command_
id str - The command id of the ecs invocation.
- end_
time str - The end time of the ecs invocation.
- frequency str
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - instance_
ids Sequence[str] - The list of ECS instance IDs.
- invocation_
description str - The description of the ecs invocation.
- invocation_
name str - The name of the ecs invocation.
- invocation_
status str - The status of the ecs invocation.
- launch_
time str - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence_
end_ strtime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat_
mode str - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start_
time str - The start time of the ecs invocation.
- timeout int
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- username str
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working_
dir str - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- command
Id String - The command id of the ecs invocation.
- end
Time String - The end time of the ecs invocation.
- frequency String
- The frequency of the ecs invocation. This field is valid and required when the value of the repeat_mode field is
Rate
. - instance
Ids List<String> - The list of ECS instance IDs.
- invocation
Description String - The description of the ecs invocation.
- invocation
Name String - The name of the ecs invocation.
- invocation
Status String - The status of the ecs invocation.
- launch
Time String - The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
orFixed
. - recurrence
End StringTime - The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeat_mode field is
Rate
. - repeat
Mode String - The repeat mode of the ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start
Time String - The start time of the ecs invocation.
- timeout Number
- The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- username String
- The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
- working
Dir String - The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
Import
EcsInvocation can be imported using the id, e.g.
$ pulumi import volcengine:ecs/invocation:Invocation default ivk-ychnxnm45dl8j0mm****
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.