1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. Invocation
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.ecs.Invocation

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    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

    The Invocation resource accepts the following input properties:

    CommandId string
    The command id of the ecs invocation.
    InstanceIds List<string>
    The list of ECS instance IDs.
    InvocationName 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.
    InvocationDescription string
    The description of the ecs invocation.
    LaunchTime 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 or Fixed.
    RecurrenceEndTime string
    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.
    RepeatMode 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.
    WorkingDir 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.
    CommandId string
    The command id of the ecs invocation.
    InstanceIds []string
    The list of ECS instance IDs.
    InvocationName 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.
    InvocationDescription string
    The description of the ecs invocation.
    LaunchTime 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 or Fixed.
    RecurrenceEndTime string
    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.
    RepeatMode 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.
    WorkingDir 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.
    commandId String
    The command id of the ecs invocation.
    instanceIds List<String>
    The list of ECS instance IDs.
    invocationName 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.
    invocationDescription String
    The description of the ecs invocation.
    launchTime 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 or Fixed.
    recurrenceEndTime String
    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.
    repeatMode 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.
    workingDir 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.
    commandId string
    The command id of the ecs invocation.
    instanceIds string[]
    The list of ECS instance IDs.
    invocationName 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.
    invocationDescription string
    The description of the ecs invocation.
    launchTime 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 or Fixed.
    recurrenceEndTime string
    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.
    repeatMode 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.
    workingDir 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 or Fixed.
    recurrence_end_time str
    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.
    commandId String
    The command id of the ecs invocation.
    instanceIds List<String>
    The list of ECS instance IDs.
    invocationName 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.
    invocationDescription String
    The description of the ecs invocation.
    launchTime 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 or Fixed.
    recurrenceEndTime String
    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.
    repeatMode 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.
    workingDir 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:

    EndTime string
    The end time of the ecs invocation.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvocationStatus string
    The status of the ecs invocation.
    StartTime string
    The start time of the ecs invocation.
    EndTime string
    The end time of the ecs invocation.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvocationStatus string
    The status of the ecs invocation.
    StartTime string
    The start time of the ecs invocation.
    endTime String
    The end time of the ecs invocation.
    id String
    The provider-assigned unique ID for this managed resource.
    invocationStatus String
    The status of the ecs invocation.
    startTime String
    The start time of the ecs invocation.
    endTime string
    The end time of the ecs invocation.
    id string
    The provider-assigned unique ID for this managed resource.
    invocationStatus string
    The status of the ecs invocation.
    startTime 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.
    endTime String
    The end time of the ecs invocation.
    id String
    The provider-assigned unique ID for this managed resource.
    invocationStatus String
    The status of the ecs invocation.
    startTime 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.
    The following state arguments are supported:
    CommandId string
    The command id of the ecs invocation.
    EndTime 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.
    InstanceIds List<string>
    The list of ECS instance IDs.
    InvocationDescription string
    The description of the ecs invocation.
    InvocationName string
    The name of the ecs invocation.
    InvocationStatus string
    The status of the ecs invocation.
    LaunchTime 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 or Fixed.
    RecurrenceEndTime string
    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.
    RepeatMode string
    The repeat mode of the ecs invocation. Valid values: Once, Rate, Fixed.
    StartTime 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.
    WorkingDir 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.
    CommandId string
    The command id of the ecs invocation.
    EndTime 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.
    InstanceIds []string
    The list of ECS instance IDs.
    InvocationDescription string
    The description of the ecs invocation.
    InvocationName string
    The name of the ecs invocation.
    InvocationStatus string
    The status of the ecs invocation.
    LaunchTime 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 or Fixed.
    RecurrenceEndTime string
    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.
    RepeatMode string
    The repeat mode of the ecs invocation. Valid values: Once, Rate, Fixed.
    StartTime 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.
    WorkingDir 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.
    commandId String
    The command id of the ecs invocation.
    endTime 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.
    instanceIds List<String>
    The list of ECS instance IDs.
    invocationDescription String
    The description of the ecs invocation.
    invocationName String
    The name of the ecs invocation.
    invocationStatus String
    The status of the ecs invocation.
    launchTime 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 or Fixed.
    recurrenceEndTime String
    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.
    repeatMode String
    The repeat mode of the ecs invocation. Valid values: Once, Rate, Fixed.
    startTime 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.
    workingDir 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.
    commandId string
    The command id of the ecs invocation.
    endTime 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.
    instanceIds string[]
    The list of ECS instance IDs.
    invocationDescription string
    The description of the ecs invocation.
    invocationName string
    The name of the ecs invocation.
    invocationStatus string
    The status of the ecs invocation.
    launchTime 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 or Fixed.
    recurrenceEndTime string
    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.
    repeatMode string
    The repeat mode of the ecs invocation. Valid values: Once, Rate, Fixed.
    startTime 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.
    workingDir 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 or Fixed.
    recurrence_end_time str
    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.
    commandId String
    The command id of the ecs invocation.
    endTime 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.
    instanceIds List<String>
    The list of ECS instance IDs.
    invocationDescription String
    The description of the ecs invocation.
    invocationName String
    The name of the ecs invocation.
    invocationStatus String
    The status of the ecs invocation.
    launchTime 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 or Fixed.
    recurrenceEndTime String
    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.
    repeatMode String
    The repeat mode of the ecs invocation. Valid values: Once, Rate, Fixed.
    startTime 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.
    workingDir 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.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine