1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MpsStartFlowOperation
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.MpsStartFlowOperation

Explore with Pulumi AI

Provides a resource to create a mps start_flow_operation

Example Usage

Start flow

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const operation = new tencentcloud.MpsStartFlowOperation("operation", {
    flowId: tencentcloud_mps_flow.flow_rtp.id,
    start: true,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

operation = tencentcloud.MpsStartFlowOperation("operation",
    flow_id=tencentcloud_mps_flow["flow_rtp"]["id"],
    start=True)
Copy
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.NewMpsStartFlowOperation(ctx, "operation", &tencentcloud.MpsStartFlowOperationArgs{
			FlowId: pulumi.Any(tencentcloud_mps_flow.Flow_rtp.Id),
			Start:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var operation = new Tencentcloud.MpsStartFlowOperation("operation", new()
    {
        FlowId = tencentcloud_mps_flow.Flow_rtp.Id,
        Start = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MpsStartFlowOperation;
import com.pulumi.tencentcloud.MpsStartFlowOperationArgs;
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 operation = new MpsStartFlowOperation("operation", MpsStartFlowOperationArgs.builder()
            .flowId(tencentcloud_mps_flow.flow_rtp().id())
            .start(true)
            .build());

    }
}
Copy
resources:
  operation:
    type: tencentcloud:MpsStartFlowOperation
    properties:
      flowId: ${tencentcloud_mps_flow.flow_rtp.id}
      start: true
Copy

Stop flow

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const operation = new tencentcloud.MpsStartFlowOperation("operation", {
    flowId: tencentcloud_mps_flow.flow_rtp.id,
    start: false,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

operation = tencentcloud.MpsStartFlowOperation("operation",
    flow_id=tencentcloud_mps_flow["flow_rtp"]["id"],
    start=False)
Copy
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.NewMpsStartFlowOperation(ctx, "operation", &tencentcloud.MpsStartFlowOperationArgs{
			FlowId: pulumi.Any(tencentcloud_mps_flow.Flow_rtp.Id),
			Start:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var operation = new Tencentcloud.MpsStartFlowOperation("operation", new()
    {
        FlowId = tencentcloud_mps_flow.Flow_rtp.Id,
        Start = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MpsStartFlowOperation;
import com.pulumi.tencentcloud.MpsStartFlowOperationArgs;
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 operation = new MpsStartFlowOperation("operation", MpsStartFlowOperationArgs.builder()
            .flowId(tencentcloud_mps_flow.flow_rtp().id())
            .start(false)
            .build());

    }
}
Copy
resources:
  operation:
    type: tencentcloud:MpsStartFlowOperation
    properties:
      flowId: ${tencentcloud_mps_flow.flow_rtp.id}
      start: false
Copy

Create MpsStartFlowOperation Resource

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

Constructor syntax

new MpsStartFlowOperation(name: string, args: MpsStartFlowOperationArgs, opts?: CustomResourceOptions);
@overload
def MpsStartFlowOperation(resource_name: str,
                          args: MpsStartFlowOperationArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def MpsStartFlowOperation(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          flow_id: Optional[str] = None,
                          start: Optional[bool] = None,
                          mps_start_flow_operation_id: Optional[str] = None)
func NewMpsStartFlowOperation(ctx *Context, name string, args MpsStartFlowOperationArgs, opts ...ResourceOption) (*MpsStartFlowOperation, error)
public MpsStartFlowOperation(string name, MpsStartFlowOperationArgs args, CustomResourceOptions? opts = null)
public MpsStartFlowOperation(String name, MpsStartFlowOperationArgs args)
public MpsStartFlowOperation(String name, MpsStartFlowOperationArgs args, CustomResourceOptions options)
type: tencentcloud:MpsStartFlowOperation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MpsStartFlowOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MpsStartFlowOperationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MpsStartFlowOperationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MpsStartFlowOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MpsStartFlowOperationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

FlowId This property is required. string
Flow Id.
Start This property is required. bool
true: start mps stream link flow; false: stop.
MpsStartFlowOperationId string
ID of the resource.
FlowId This property is required. string
Flow Id.
Start This property is required. bool
true: start mps stream link flow; false: stop.
MpsStartFlowOperationId string
ID of the resource.
flowId This property is required. String
Flow Id.
start This property is required. Boolean
true: start mps stream link flow; false: stop.
mpsStartFlowOperationId String
ID of the resource.
flowId This property is required. string
Flow Id.
start This property is required. boolean
true: start mps stream link flow; false: stop.
mpsStartFlowOperationId string
ID of the resource.
flow_id This property is required. str
Flow Id.
start This property is required. bool
true: start mps stream link flow; false: stop.
mps_start_flow_operation_id str
ID of the resource.
flowId This property is required. String
Flow Id.
start This property is required. Boolean
true: start mps stream link flow; false: stop.
mpsStartFlowOperationId String
ID of the resource.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing MpsStartFlowOperation Resource

Get an existing MpsStartFlowOperation 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?: MpsStartFlowOperationState, opts?: CustomResourceOptions): MpsStartFlowOperation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        flow_id: Optional[str] = None,
        mps_start_flow_operation_id: Optional[str] = None,
        start: Optional[bool] = None) -> MpsStartFlowOperation
func GetMpsStartFlowOperation(ctx *Context, name string, id IDInput, state *MpsStartFlowOperationState, opts ...ResourceOption) (*MpsStartFlowOperation, error)
public static MpsStartFlowOperation Get(string name, Input<string> id, MpsStartFlowOperationState? state, CustomResourceOptions? opts = null)
public static MpsStartFlowOperation get(String name, Output<String> id, MpsStartFlowOperationState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:MpsStartFlowOperation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
FlowId string
Flow Id.
MpsStartFlowOperationId string
ID of the resource.
Start bool
true: start mps stream link flow; false: stop.
FlowId string
Flow Id.
MpsStartFlowOperationId string
ID of the resource.
Start bool
true: start mps stream link flow; false: stop.
flowId String
Flow Id.
mpsStartFlowOperationId String
ID of the resource.
start Boolean
true: start mps stream link flow; false: stop.
flowId string
Flow Id.
mpsStartFlowOperationId string
ID of the resource.
start boolean
true: start mps stream link flow; false: stop.
flow_id str
Flow Id.
mps_start_flow_operation_id str
ID of the resource.
start bool
true: start mps stream link flow; false: stop.
flowId String
Flow Id.
mpsStartFlowOperationId String
ID of the resource.
start Boolean
true: start mps stream link flow; false: stop.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.