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,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
operation = tencentcloud.MpsStartFlowOperation("operation",
flow_id=tencentcloud_mps_flow["flow_rtp"]["id"],
start=True)
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
})
}
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,
});
});
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());
}
}
resources:
operation:
type: tencentcloud:MpsStartFlowOperation
properties:
flowId: ${tencentcloud_mps_flow.flow_rtp.id}
start: true
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,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
operation = tencentcloud.MpsStartFlowOperation("operation",
flow_id=tencentcloud_mps_flow["flow_rtp"]["id"],
start=False)
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
})
}
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,
});
});
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());
}
}
resources:
operation:
type: tencentcloud:MpsStartFlowOperation
properties:
flowId: ${tencentcloud_mps_flow.flow_rtp.id}
start: false
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 string
- The unique name of the resource.
- args MpsStartFlowOperationArgs
- 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 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 string
- The unique name of the resource.
- args MpsStartFlowOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MpsStartFlowOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Flow
Id string - Flow Id.
- Start bool
true
: start mps stream link flow;false
: stop.- Mps
Start stringFlow Operation Id - ID of the resource.
- Flow
Id string - Flow Id.
- Start bool
true
: start mps stream link flow;false
: stop.- Mps
Start stringFlow Operation Id - ID of the resource.
- flow
Id String - Flow Id.
- start Boolean
true
: start mps stream link flow;false
: stop.- mps
Start StringFlow Operation Id - ID of the resource.
- flow
Id string - Flow Id.
- start boolean
true
: start mps stream link flow;false
: stop.- mps
Start stringFlow Operation Id - ID of the resource.
- flow_
id str - Flow Id.
- start bool
true
: start mps stream link flow;false
: stop.- mps_
start_ strflow_ operation_ id - ID of the resource.
- flow
Id String - Flow Id.
- start Boolean
true
: start mps stream link flow;false
: stop.- mps
Start StringFlow Operation Id - 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
- 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.
- Flow
Id string - Flow Id.
- Mps
Start stringFlow Operation Id - ID of the resource.
- Start bool
true
: start mps stream link flow;false
: stop.
- Flow
Id string - Flow Id.
- Mps
Start stringFlow Operation Id - ID of the resource.
- Start bool
true
: start mps stream link flow;false
: stop.
- flow
Id String - Flow Id.
- mps
Start StringFlow Operation Id - ID of the resource.
- start Boolean
true
: start mps stream link flow;false
: stop.
- flow
Id string - Flow Id.
- mps
Start stringFlow Operation Id - ID of the resource.
- start boolean
true
: start mps stream link flow;false
: stop.
- flow_
id str - Flow Id.
- mps_
start_ strflow_ operation_ id - ID of the resource.
- start bool
true
: start mps stream link flow;false
: stop.
- flow
Id String - Flow Id.
- mps
Start StringFlow Operation Id - 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.