Provides a resource to manage vmp integration task enable
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
// Create a VMP integration task enable
const _default = new volcengine.vmp.IntegrationTaskEnable("default", {taskIds: [
"3c55cdd4-f240-4fc8-a43b-ca83ad44807a",
"a09fdaf5-ce90-4f34-8ab3-4decd5aef8e1",
]});
import pulumi
import pulumi_volcengine as volcengine
# Create a VMP integration task enable
default = volcengine.vmp.IntegrationTaskEnable("default", task_ids=[
"3c55cdd4-f240-4fc8-a43b-ca83ad44807a",
"a09fdaf5-ce90-4f34-8ab3-4decd5aef8e1",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a VMP integration task enable
_, err := vmp.NewIntegrationTaskEnable(ctx, "default", &vmp.IntegrationTaskEnableArgs{
TaskIds: pulumi.StringArray{
pulumi.String("3c55cdd4-f240-4fc8-a43b-ca83ad44807a"),
pulumi.String("a09fdaf5-ce90-4f34-8ab3-4decd5aef8e1"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
// Create a VMP integration task enable
var @default = new Volcengine.Vmp.IntegrationTaskEnable("default", new()
{
TaskIds = new[]
{
"3c55cdd4-f240-4fc8-a43b-ca83ad44807a",
"a09fdaf5-ce90-4f34-8ab3-4decd5aef8e1",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.IntegrationTaskEnable;
import com.pulumi.volcengine.vmp.IntegrationTaskEnableArgs;
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) {
// Create a VMP integration task enable
var default_ = new IntegrationTaskEnable("default", IntegrationTaskEnableArgs.builder()
.taskIds(
"3c55cdd4-f240-4fc8-a43b-ca83ad44807a",
"a09fdaf5-ce90-4f34-8ab3-4decd5aef8e1")
.build());
}
}
resources:
# Create a VMP integration task enable
default:
type: volcengine:vmp:IntegrationTaskEnable
properties:
taskIds:
- 3c55cdd4-f240-4fc8-a43b-ca83ad44807a
- a09fdaf5-ce90-4f34-8ab3-4decd5aef8e1
Create IntegrationTaskEnable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IntegrationTaskEnable(name: string, args: IntegrationTaskEnableArgs, opts?: CustomResourceOptions);@overload
def IntegrationTaskEnable(resource_name: str,
args: IntegrationTaskEnableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IntegrationTaskEnable(resource_name: str,
opts: Optional[ResourceOptions] = None,
task_ids: Optional[Sequence[str]] = None)func NewIntegrationTaskEnable(ctx *Context, name string, args IntegrationTaskEnableArgs, opts ...ResourceOption) (*IntegrationTaskEnable, error)public IntegrationTaskEnable(string name, IntegrationTaskEnableArgs args, CustomResourceOptions? opts = null)
public IntegrationTaskEnable(String name, IntegrationTaskEnableArgs args)
public IntegrationTaskEnable(String name, IntegrationTaskEnableArgs args, CustomResourceOptions options)
type: volcengine:vmp:IntegrationTaskEnable
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 IntegrationTaskEnableArgs
- 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 IntegrationTaskEnableArgs
- 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 IntegrationTaskEnableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationTaskEnableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationTaskEnableArgs
- 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 integrationTaskEnableResource = new Volcengine.Vmp.IntegrationTaskEnable("integrationTaskEnableResource", new()
{
TaskIds = new[]
{
"string",
},
});
example, err := vmp.NewIntegrationTaskEnable(ctx, "integrationTaskEnableResource", &vmp.IntegrationTaskEnableArgs{
TaskIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var integrationTaskEnableResource = new IntegrationTaskEnable("integrationTaskEnableResource", IntegrationTaskEnableArgs.builder()
.taskIds("string")
.build());
integration_task_enable_resource = volcengine.vmp.IntegrationTaskEnable("integrationTaskEnableResource", task_ids=["string"])
const integrationTaskEnableResource = new volcengine.vmp.IntegrationTaskEnable("integrationTaskEnableResource", {taskIds: ["string"]});
type: volcengine:vmp:IntegrationTaskEnable
properties:
taskIds:
- string
IntegrationTaskEnable 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 IntegrationTaskEnable resource accepts the following input properties:
- Task
Ids List<string> - A list of integration task IDs to enable.
- Task
Ids []string - A list of integration task IDs to enable.
- task
Ids List<String> - A list of integration task IDs to enable.
- task
Ids string[] - A list of integration task IDs to enable.
- task_
ids Sequence[str] - A list of integration task IDs to enable.
- task
Ids List<String> - A list of integration task IDs to enable.
Outputs
All input properties are implicitly available as output properties. Additionally, the IntegrationTaskEnable 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 IntegrationTaskEnable Resource
Get an existing IntegrationTaskEnable 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?: IntegrationTaskEnableState, opts?: CustomResourceOptions): IntegrationTaskEnable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
task_ids: Optional[Sequence[str]] = None) -> IntegrationTaskEnablefunc GetIntegrationTaskEnable(ctx *Context, name string, id IDInput, state *IntegrationTaskEnableState, opts ...ResourceOption) (*IntegrationTaskEnable, error)public static IntegrationTaskEnable Get(string name, Input<string> id, IntegrationTaskEnableState? state, CustomResourceOptions? opts = null)public static IntegrationTaskEnable get(String name, Output<String> id, IntegrationTaskEnableState state, CustomResourceOptions options)resources: _: type: volcengine:vmp:IntegrationTaskEnable 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.
- Task
Ids List<string> - A list of integration task IDs to enable.
- Task
Ids []string - A list of integration task IDs to enable.
- task
Ids List<String> - A list of integration task IDs to enable.
- task
Ids string[] - A list of integration task IDs to enable.
- task_
ids Sequence[str] - A list of integration task IDs to enable.
- task
Ids List<String> - A list of integration task IDs to enable.
Import
VMP Integration Task Enable can be imported using the task ids, e.g.
$ pulumi import volcengine:vmp/integrationTaskEnable:IntegrationTaskEnable default task-id1,task-id2
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
volcengineTerraform Provider.
