1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OceanusStopJob
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.OceanusStopJob

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a oceanus stop_job

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OceanusStopJob("example", {
        stopJobDescriptions: [{
            jobId: "cql-4xwincyn",
            stopType: 1,
        }],
        workSpaceId: "space-2idq8wbr",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OceanusStopJob("example",
        stop_job_descriptions=[{
            "job_id": "cql-4xwincyn",
            "stop_type": 1,
        }],
        work_space_id="space-2idq8wbr")
    
    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.NewOceanusStopJob(ctx, "example", &tencentcloud.OceanusStopJobArgs{
    			StopJobDescriptions: tencentcloud.OceanusStopJobStopJobDescriptionArray{
    				&tencentcloud.OceanusStopJobStopJobDescriptionArgs{
    					JobId:    pulumi.String("cql-4xwincyn"),
    					StopType: pulumi.Float64(1),
    				},
    			},
    			WorkSpaceId: pulumi.String("space-2idq8wbr"),
    		})
    		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 example = new Tencentcloud.OceanusStopJob("example", new()
        {
            StopJobDescriptions = new[]
            {
                new Tencentcloud.Inputs.OceanusStopJobStopJobDescriptionArgs
                {
                    JobId = "cql-4xwincyn",
                    StopType = 1,
                },
            },
            WorkSpaceId = "space-2idq8wbr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OceanusStopJob;
    import com.pulumi.tencentcloud.OceanusStopJobArgs;
    import com.pulumi.tencentcloud.inputs.OceanusStopJobStopJobDescriptionArgs;
    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 example = new OceanusStopJob("example", OceanusStopJobArgs.builder()
                .stopJobDescriptions(OceanusStopJobStopJobDescriptionArgs.builder()
                    .jobId("cql-4xwincyn")
                    .stopType(1)
                    .build())
                .workSpaceId("space-2idq8wbr")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OceanusStopJob
        properties:
          stopJobDescriptions:
            - jobId: cql-4xwincyn
              stopType: 1
          workSpaceId: space-2idq8wbr
    

    Create OceanusStopJob Resource

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

    Constructor syntax

    new OceanusStopJob(name: string, args: OceanusStopJobArgs, opts?: CustomResourceOptions);
    @overload
    def OceanusStopJob(resource_name: str,
                       args: OceanusStopJobArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def OceanusStopJob(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       stop_job_descriptions: Optional[Sequence[OceanusStopJobStopJobDescriptionArgs]] = None,
                       oceanus_stop_job_id: Optional[str] = None,
                       work_space_id: Optional[str] = None)
    func NewOceanusStopJob(ctx *Context, name string, args OceanusStopJobArgs, opts ...ResourceOption) (*OceanusStopJob, error)
    public OceanusStopJob(string name, OceanusStopJobArgs args, CustomResourceOptions? opts = null)
    public OceanusStopJob(String name, OceanusStopJobArgs args)
    public OceanusStopJob(String name, OceanusStopJobArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OceanusStopJob
    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 OceanusStopJobArgs
    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 OceanusStopJobArgs
    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 OceanusStopJobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OceanusStopJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OceanusStopJobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    StopJobDescriptions List<OceanusStopJobStopJobDescription>
    The description information for batch job stop.
    OceanusStopJobId string
    ID of the resource.
    WorkSpaceId string
    Workspace SerialId.
    StopJobDescriptions []OceanusStopJobStopJobDescriptionArgs
    The description information for batch job stop.
    OceanusStopJobId string
    ID of the resource.
    WorkSpaceId string
    Workspace SerialId.
    stopJobDescriptions List<OceanusStopJobStopJobDescription>
    The description information for batch job stop.
    oceanusStopJobId String
    ID of the resource.
    workSpaceId String
    Workspace SerialId.
    stopJobDescriptions OceanusStopJobStopJobDescription[]
    The description information for batch job stop.
    oceanusStopJobId string
    ID of the resource.
    workSpaceId string
    Workspace SerialId.
    stop_job_descriptions Sequence[OceanusStopJobStopJobDescriptionArgs]
    The description information for batch job stop.
    oceanus_stop_job_id str
    ID of the resource.
    work_space_id str
    Workspace SerialId.
    stopJobDescriptions List<Property Map>
    The description information for batch job stop.
    oceanusStopJobId String
    ID of the resource.
    workSpaceId String
    Workspace SerialId.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OceanusStopJob 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 OceanusStopJob Resource

    Get an existing OceanusStopJob 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?: OceanusStopJobState, opts?: CustomResourceOptions): OceanusStopJob
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            oceanus_stop_job_id: Optional[str] = None,
            stop_job_descriptions: Optional[Sequence[OceanusStopJobStopJobDescriptionArgs]] = None,
            work_space_id: Optional[str] = None) -> OceanusStopJob
    func GetOceanusStopJob(ctx *Context, name string, id IDInput, state *OceanusStopJobState, opts ...ResourceOption) (*OceanusStopJob, error)
    public static OceanusStopJob Get(string name, Input<string> id, OceanusStopJobState? state, CustomResourceOptions? opts = null)
    public static OceanusStopJob get(String name, Output<String> id, OceanusStopJobState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OceanusStopJob    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.
    The following state arguments are supported:
    OceanusStopJobId string
    ID of the resource.
    StopJobDescriptions List<OceanusStopJobStopJobDescription>
    The description information for batch job stop.
    WorkSpaceId string
    Workspace SerialId.
    OceanusStopJobId string
    ID of the resource.
    StopJobDescriptions []OceanusStopJobStopJobDescriptionArgs
    The description information for batch job stop.
    WorkSpaceId string
    Workspace SerialId.
    oceanusStopJobId String
    ID of the resource.
    stopJobDescriptions List<OceanusStopJobStopJobDescription>
    The description information for batch job stop.
    workSpaceId String
    Workspace SerialId.
    oceanusStopJobId string
    ID of the resource.
    stopJobDescriptions OceanusStopJobStopJobDescription[]
    The description information for batch job stop.
    workSpaceId string
    Workspace SerialId.
    oceanus_stop_job_id str
    ID of the resource.
    stop_job_descriptions Sequence[OceanusStopJobStopJobDescriptionArgs]
    The description information for batch job stop.
    work_space_id str
    Workspace SerialId.
    oceanusStopJobId String
    ID of the resource.
    stopJobDescriptions List<Property Map>
    The description information for batch job stop.
    workSpaceId String
    Workspace SerialId.

    Supporting Types

    OceanusStopJobStopJobDescription, OceanusStopJobStopJobDescriptionArgs

    JobId string
    Job Id.
    StopType double
    Stop type,1 stopped 2 paused.
    JobId string
    Job Id.
    StopType float64
    Stop type,1 stopped 2 paused.
    jobId String
    Job Id.
    stopType Double
    Stop type,1 stopped 2 paused.
    jobId string
    Job Id.
    stopType number
    Stop type,1 stopped 2 paused.
    job_id str
    Job Id.
    stop_type float
    Stop type,1 stopped 2 paused.
    jobId String
    Job Id.
    stopType Number
    Stop type,1 stopped 2 paused.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack