tencentcloud.OceanusStopJob
Explore with Pulumi AI
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:
- Stop
Job List<OceanusDescriptions Stop Job Stop Job Description> - The description information for batch job stop.
- Oceanus
Stop stringJob Id - ID of the resource.
- Work
Space stringId - Workspace SerialId.
- Stop
Job []OceanusDescriptions Stop Job Stop Job Description Args - The description information for batch job stop.
- Oceanus
Stop stringJob Id - ID of the resource.
- Work
Space stringId - Workspace SerialId.
- stop
Job List<OceanusDescriptions Stop Job Stop Job Description> - The description information for batch job stop.
- oceanus
Stop StringJob Id - ID of the resource.
- work
Space StringId - Workspace SerialId.
- stop
Job OceanusDescriptions Stop Job Stop Job Description[] - The description information for batch job stop.
- oceanus
Stop stringJob Id - ID of the resource.
- work
Space stringId - Workspace SerialId.
- stop_
job_ Sequence[Oceanusdescriptions Stop Job Stop Job Description Args] - The description information for batch job stop.
- oceanus_
stop_ strjob_ id - ID of the resource.
- work_
space_ strid - Workspace SerialId.
- stop
Job List<Property Map>Descriptions - The description information for batch job stop.
- oceanus
Stop StringJob Id - ID of the resource.
- work
Space StringId - 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.
- Oceanus
Stop stringJob Id - ID of the resource.
- Stop
Job List<OceanusDescriptions Stop Job Stop Job Description> - The description information for batch job stop.
- Work
Space stringId - Workspace SerialId.
- Oceanus
Stop stringJob Id - ID of the resource.
- Stop
Job []OceanusDescriptions Stop Job Stop Job Description Args - The description information for batch job stop.
- Work
Space stringId - Workspace SerialId.
- oceanus
Stop StringJob Id - ID of the resource.
- stop
Job List<OceanusDescriptions Stop Job Stop Job Description> - The description information for batch job stop.
- work
Space StringId - Workspace SerialId.
- oceanus
Stop stringJob Id - ID of the resource.
- stop
Job OceanusDescriptions Stop Job Stop Job Description[] - The description information for batch job stop.
- work
Space stringId - Workspace SerialId.
- oceanus_
stop_ strjob_ id - ID of the resource.
- stop_
job_ Sequence[Oceanusdescriptions Stop Job Stop Job Description Args] - The description information for batch job stop.
- work_
space_ strid - Workspace SerialId.
- oceanus
Stop StringJob Id - ID of the resource.
- stop
Job List<Property Map>Descriptions - The description information for batch job stop.
- work
Space StringId - Workspace SerialId.
Supporting Types
OceanusStopJobStopJobDescription, OceanusStopJobStopJobDescriptionArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.