Provides a Realtime Compute Deployment resource.
Deployment in the Realtime Compute console.
For information about Realtime Compute Deployment and how to use it, see What is Deployment.
NOTE: Available since v1.265.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.vpc.Network("default", {
isDefault: false,
cidrBlock: "172.16.0.0/16",
vpcName: "example-tf-vpc-deployment",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
isDefault: false,
vpcId: _default.id,
zoneId: "cn-beijing-g",
cidrBlock: "172.16.0.0/24",
vswitchName: "example-tf-vSwitch-deployment",
});
const defaultBucket = new alicloud.oss.Bucket("default", {});
const defaultVvpInstance = new alicloud.realtimecompute.VvpInstance("default", {
vvpInstanceName: "code-example-tf-deployment",
storage: {
oss: {
bucket: defaultBucket.id,
},
},
vpcId: _default.id,
vswitchIds: [defaultSwitch.id],
resourceSpec: {
cpu: 8,
memoryGb: 32,
},
paymentType: "PayAsYouGo",
zoneId: defaultSwitch.zoneId,
});
const createDeployment9 = new alicloud.realtimecompute.Deployment("create_Deployment9", {
deploymentName: "tf-example-deployment-sql-56",
engineVersion: "vvr-8.0.10-flink-1.17",
resourceId: defaultVvpInstance.resourceId,
executionMode: "STREAMING",
deploymentTarget: {
mode: "PER_JOB",
name: "default-queue",
},
namespace: pulumi.interpolate`${defaultVvpInstance.vvpInstanceName}-default`,
artifact: {
kind: "SQLSCRIPT",
sqlArtifact: {
sqlScript: "create temporary table `datagen` ( id varchar, name varchar ) with ( 'connector' = 'datagen' ); create temporary table `blackhole` ( id varchar, name varchar ) with ( 'connector' = 'blackhole' ); insert into blackhole select * from datagen;",
},
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.vpc.Network("default",
is_default=False,
cidr_block="172.16.0.0/16",
vpc_name="example-tf-vpc-deployment")
default_switch = alicloud.vpc.Switch("default",
is_default=False,
vpc_id=default.id,
zone_id="cn-beijing-g",
cidr_block="172.16.0.0/24",
vswitch_name="example-tf-vSwitch-deployment")
default_bucket = alicloud.oss.Bucket("default")
default_vvp_instance = alicloud.realtimecompute.VvpInstance("default",
vvp_instance_name="code-example-tf-deployment",
storage={
"oss": {
"bucket": default_bucket.id,
},
},
vpc_id=default.id,
vswitch_ids=[default_switch.id],
resource_spec={
"cpu": 8,
"memory_gb": 32,
},
payment_type="PayAsYouGo",
zone_id=default_switch.zone_id)
create_deployment9 = alicloud.realtimecompute.Deployment("create_Deployment9",
deployment_name="tf-example-deployment-sql-56",
engine_version="vvr-8.0.10-flink-1.17",
resource_id=default_vvp_instance.resource_id,
execution_mode="STREAMING",
deployment_target={
"mode": "PER_JOB",
"name": "default-queue",
},
namespace=default_vvp_instance.vvp_instance_name.apply(lambda vvp_instance_name: f"{vvp_instance_name}-default"),
artifact={
"kind": "SQLSCRIPT",
"sql_artifact": {
"sql_script": "create temporary table `datagen` ( id varchar, name varchar ) with ( 'connector' = 'datagen' ); create temporary table `blackhole` ( id varchar, name varchar ) with ( 'connector' = 'blackhole' ); insert into blackhole select * from datagen;",
},
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/realtimecompute"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
IsDefault: pulumi.Bool(false),
CidrBlock: pulumi.String("172.16.0.0/16"),
VpcName: pulumi.String("example-tf-vpc-deployment"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
IsDefault: pulumi.Bool(false),
VpcId: _default.ID(),
ZoneId: pulumi.String("cn-beijing-g"),
CidrBlock: pulumi.String("172.16.0.0/24"),
VswitchName: pulumi.String("example-tf-vSwitch-deployment"),
})
if err != nil {
return err
}
defaultBucket, err := oss.NewBucket(ctx, "default", nil)
if err != nil {
return err
}
defaultVvpInstance, err := realtimecompute.NewVvpInstance(ctx, "default", &realtimecompute.VvpInstanceArgs{
VvpInstanceName: pulumi.String("code-example-tf-deployment"),
Storage: &realtimecompute.VvpInstanceStorageArgs{
Oss: &realtimecompute.VvpInstanceStorageOssArgs{
Bucket: defaultBucket.ID(),
},
},
VpcId: _default.ID(),
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
ResourceSpec: &realtimecompute.VvpInstanceResourceSpecArgs{
Cpu: pulumi.Int(8),
MemoryGb: pulumi.Int(32),
},
PaymentType: pulumi.String("PayAsYouGo"),
ZoneId: defaultSwitch.ZoneId,
})
if err != nil {
return err
}
_, err = realtimecompute.NewDeployment(ctx, "create_Deployment9", &realtimecompute.DeploymentArgs{
DeploymentName: pulumi.String("tf-example-deployment-sql-56"),
EngineVersion: pulumi.String("vvr-8.0.10-flink-1.17"),
ResourceId: defaultVvpInstance.ResourceId,
ExecutionMode: pulumi.String("STREAMING"),
DeploymentTarget: &realtimecompute.DeploymentDeploymentTargetArgs{
Mode: pulumi.String("PER_JOB"),
Name: pulumi.String("default-queue"),
},
Namespace: defaultVvpInstance.VvpInstanceName.ApplyT(func(vvpInstanceName string) (string, error) {
return fmt.Sprintf("%v-default", vvpInstanceName), nil
}).(pulumi.StringOutput),
Artifact: &realtimecompute.DeploymentArtifactArgs{
Kind: pulumi.String("SQLSCRIPT"),
SqlArtifact: &realtimecompute.DeploymentArtifactSqlArtifactArgs{
SqlScript: pulumi.String("create temporary table `datagen` ( id varchar, name varchar ) with ( 'connector' = 'datagen' ); create temporary table `blackhole` ( id varchar, name varchar ) with ( 'connector' = 'blackhole' ); insert into blackhole select * from datagen;"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Vpc.Network("default", new()
{
IsDefault = false,
CidrBlock = "172.16.0.0/16",
VpcName = "example-tf-vpc-deployment",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
IsDefault = false,
VpcId = @default.Id,
ZoneId = "cn-beijing-g",
CidrBlock = "172.16.0.0/24",
VswitchName = "example-tf-vSwitch-deployment",
});
var defaultBucket = new AliCloud.Oss.Bucket("default");
var defaultVvpInstance = new AliCloud.RealtimeCompute.VvpInstance("default", new()
{
VvpInstanceName = "code-example-tf-deployment",
Storage = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageArgs
{
Oss = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageOssArgs
{
Bucket = defaultBucket.Id,
},
},
VpcId = @default.Id,
VswitchIds = new[]
{
defaultSwitch.Id,
},
ResourceSpec = new AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpecArgs
{
Cpu = 8,
MemoryGb = 32,
},
PaymentType = "PayAsYouGo",
ZoneId = defaultSwitch.ZoneId,
});
var createDeployment9 = new AliCloud.RealtimeCompute.Deployment("create_Deployment9", new()
{
DeploymentName = "tf-example-deployment-sql-56",
EngineVersion = "vvr-8.0.10-flink-1.17",
ResourceId = defaultVvpInstance.ResourceId,
ExecutionMode = "STREAMING",
DeploymentTarget = new AliCloud.RealtimeCompute.Inputs.DeploymentDeploymentTargetArgs
{
Mode = "PER_JOB",
Name = "default-queue",
},
Namespace = defaultVvpInstance.VvpInstanceName.Apply(vvpInstanceName => $"{vvpInstanceName}-default"),
Artifact = new AliCloud.RealtimeCompute.Inputs.DeploymentArtifactArgs
{
Kind = "SQLSCRIPT",
SqlArtifact = new AliCloud.RealtimeCompute.Inputs.DeploymentArtifactSqlArtifactArgs
{
SqlScript = "create temporary table `datagen` ( id varchar, name varchar ) with ( 'connector' = 'datagen' ); create temporary table `blackhole` ( id varchar, name varchar ) with ( 'connector' = 'blackhole' ); insert into blackhole select * from datagen;",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.oss.Bucket;
import com.pulumi.alicloud.realtimecompute.VvpInstance;
import com.pulumi.alicloud.realtimecompute.VvpInstanceArgs;
import com.pulumi.alicloud.realtimecompute.inputs.VvpInstanceStorageArgs;
import com.pulumi.alicloud.realtimecompute.inputs.VvpInstanceStorageOssArgs;
import com.pulumi.alicloud.realtimecompute.inputs.VvpInstanceResourceSpecArgs;
import com.pulumi.alicloud.realtimecompute.Deployment;
import com.pulumi.alicloud.realtimecompute.DeploymentArgs;
import com.pulumi.alicloud.realtimecompute.inputs.DeploymentDeploymentTargetArgs;
import com.pulumi.alicloud.realtimecompute.inputs.DeploymentArtifactArgs;
import com.pulumi.alicloud.realtimecompute.inputs.DeploymentArtifactSqlArtifactArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new Network("default", NetworkArgs.builder()
.isDefault(false)
.cidrBlock("172.16.0.0/16")
.vpcName("example-tf-vpc-deployment")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.isDefault(false)
.vpcId(default_.id())
.zoneId("cn-beijing-g")
.cidrBlock("172.16.0.0/24")
.vswitchName("example-tf-vSwitch-deployment")
.build());
var defaultBucket = new Bucket("defaultBucket");
var defaultVvpInstance = new VvpInstance("defaultVvpInstance", VvpInstanceArgs.builder()
.vvpInstanceName("code-example-tf-deployment")
.storage(VvpInstanceStorageArgs.builder()
.oss(VvpInstanceStorageOssArgs.builder()
.bucket(defaultBucket.id())
.build())
.build())
.vpcId(default_.id())
.vswitchIds(defaultSwitch.id())
.resourceSpec(VvpInstanceResourceSpecArgs.builder()
.cpu(8)
.memoryGb(32)
.build())
.paymentType("PayAsYouGo")
.zoneId(defaultSwitch.zoneId())
.build());
var createDeployment9 = new Deployment("createDeployment9", DeploymentArgs.builder()
.deploymentName("tf-example-deployment-sql-56")
.engineVersion("vvr-8.0.10-flink-1.17")
.resourceId(defaultVvpInstance.resourceId())
.executionMode("STREAMING")
.deploymentTarget(DeploymentDeploymentTargetArgs.builder()
.mode("PER_JOB")
.name("default-queue")
.build())
.namespace(defaultVvpInstance.vvpInstanceName().applyValue(_vvpInstanceName -> String.format("%s-default", _vvpInstanceName)))
.artifact(DeploymentArtifactArgs.builder()
.kind("SQLSCRIPT")
.sqlArtifact(DeploymentArtifactSqlArtifactArgs.builder()
.sqlScript("create temporary table `datagen` ( id varchar, name varchar ) with ( 'connector' = 'datagen' ); create temporary table `blackhole` ( id varchar, name varchar ) with ( 'connector' = 'blackhole' ); insert into blackhole select * from datagen;")
.build())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:vpc:Network
properties:
isDefault: false
cidrBlock: 172.16.0.0/16
vpcName: example-tf-vpc-deployment
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
isDefault: false
vpcId: ${default.id}
zoneId: cn-beijing-g
cidrBlock: 172.16.0.0/24
vswitchName: example-tf-vSwitch-deployment
defaultBucket:
type: alicloud:oss:Bucket
name: default
defaultVvpInstance:
type: alicloud:realtimecompute:VvpInstance
name: default
properties:
vvpInstanceName: code-example-tf-deployment
storage:
oss:
bucket: ${defaultBucket.id}
vpcId: ${default.id}
vswitchIds:
- ${defaultSwitch.id}
resourceSpec:
cpu: '8'
memoryGb: '32'
paymentType: PayAsYouGo
zoneId: ${defaultSwitch.zoneId}
createDeployment9:
type: alicloud:realtimecompute:Deployment
name: create_Deployment9
properties:
deploymentName: tf-example-deployment-sql-56
engineVersion: vvr-8.0.10-flink-1.17
resourceId: ${defaultVvpInstance.resourceId}
executionMode: STREAMING
deploymentTarget:
mode: PER_JOB
name: default-queue
namespace: ${defaultVvpInstance.vvpInstanceName}-default
artifact:
kind: SQLSCRIPT
sqlArtifact:
sqlScript: create temporary table `datagen` ( id varchar, name varchar ) with ( 'connector' = 'datagen' ); create temporary table `blackhole` ( id varchar, name varchar ) with ( 'connector' = 'blackhole' ); insert into blackhole select * from datagen;
📚 Need more examples? VIEW MORE EXAMPLES
Create Deployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);@overload
def Deployment(resource_name: str,
args: DeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Deployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
execution_mode: Optional[str] = None,
artifact: Optional[DeploymentArtifactArgs] = None,
deployment_name: Optional[str] = None,
deployment_target: Optional[DeploymentDeploymentTargetArgs] = None,
namespace: Optional[str] = None,
resource_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
engine_version: Optional[str] = None,
batch_resource_setting: Optional[DeploymentBatchResourceSettingArgs] = None,
local_variables: Optional[Sequence[DeploymentLocalVariableArgs]] = None,
logging: Optional[DeploymentLoggingArgs] = None,
description: Optional[str] = None,
flink_conf: Optional[Mapping[str, str]] = None,
streaming_resource_setting: Optional[DeploymentStreamingResourceSettingArgs] = None)func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
public Deployment(String name, DeploymentArgs args)
public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
type: alicloud:realtimecompute:Deployment
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 DeploymentArgs
- 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 DeploymentArgs
- 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 DeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentArgs
- 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 deploymentResource = new AliCloud.RealtimeCompute.Deployment("deploymentResource", new()
{
ExecutionMode = "string",
Artifact = new AliCloud.RealtimeCompute.Inputs.DeploymentArtifactArgs
{
Kind = "string",
JarArtifact = new AliCloud.RealtimeCompute.Inputs.DeploymentArtifactJarArtifactArgs
{
AdditionalDependencies = new[]
{
"string",
},
EntryClass = "string",
JarUri = "string",
MainArgs = "string",
},
PythonArtifact = new AliCloud.RealtimeCompute.Inputs.DeploymentArtifactPythonArtifactArgs
{
AdditionalDependencies = new[]
{
"string",
},
AdditionalPythonArchives = new[]
{
"string",
},
AdditionalPythonLibraries = new[]
{
"string",
},
EntryModule = "string",
MainArgs = "string",
PythonArtifactUri = "string",
},
SqlArtifact = new AliCloud.RealtimeCompute.Inputs.DeploymentArtifactSqlArtifactArgs
{
AdditionalDependencies = new[]
{
"string",
},
SqlScript = "string",
},
},
DeploymentName = "string",
DeploymentTarget = new AliCloud.RealtimeCompute.Inputs.DeploymentDeploymentTargetArgs
{
Mode = "string",
Name = "string",
},
Namespace = "string",
ResourceId = "string",
Labels =
{
{ "string", "string" },
},
EngineVersion = "string",
BatchResourceSetting = new AliCloud.RealtimeCompute.Inputs.DeploymentBatchResourceSettingArgs
{
BasicResourceSetting = new AliCloud.RealtimeCompute.Inputs.DeploymentBatchResourceSettingBasicResourceSettingArgs
{
JobmanagerResourceSettingSpec = new AliCloud.RealtimeCompute.Inputs.DeploymentBatchResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs
{
Cpu = 0,
Memory = "string",
},
Parallelism = 0,
TaskmanagerResourceSettingSpec = new AliCloud.RealtimeCompute.Inputs.DeploymentBatchResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs
{
Cpu = 0,
Memory = "string",
},
},
MaxSlot = 0,
},
LocalVariables = new[]
{
new AliCloud.RealtimeCompute.Inputs.DeploymentLocalVariableArgs
{
Name = "string",
Value = "string",
},
},
Logging = new AliCloud.RealtimeCompute.Inputs.DeploymentLoggingArgs
{
Log4j2ConfigurationTemplate = "string",
Log4jLoggers = new[]
{
new AliCloud.RealtimeCompute.Inputs.DeploymentLoggingLog4jLoggerArgs
{
LoggerLevel = "string",
LoggerName = "string",
},
},
LogReservePolicy = new AliCloud.RealtimeCompute.Inputs.DeploymentLoggingLogReservePolicyArgs
{
ExpirationDays = 0,
OpenHistory = false,
},
LoggingProfile = "string",
},
Description = "string",
FlinkConf =
{
{ "string", "string" },
},
StreamingResourceSetting = new AliCloud.RealtimeCompute.Inputs.DeploymentStreamingResourceSettingArgs
{
BasicResourceSetting = new AliCloud.RealtimeCompute.Inputs.DeploymentStreamingResourceSettingBasicResourceSettingArgs
{
JobmanagerResourceSettingSpec = new AliCloud.RealtimeCompute.Inputs.DeploymentStreamingResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs
{
Cpu = 0,
Memory = "string",
},
Parallelism = 0,
TaskmanagerResourceSettingSpec = new AliCloud.RealtimeCompute.Inputs.DeploymentStreamingResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs
{
Cpu = 0,
Memory = "string",
},
},
ExpertResourceSetting = new AliCloud.RealtimeCompute.Inputs.DeploymentStreamingResourceSettingExpertResourceSettingArgs
{
JobmanagerResourceSettingSpec = new AliCloud.RealtimeCompute.Inputs.DeploymentStreamingResourceSettingExpertResourceSettingJobmanagerResourceSettingSpecArgs
{
Cpu = 0,
Memory = "string",
},
ResourcePlan = "string",
},
ResourceSettingMode = "string",
},
});
example, err := realtimecompute.NewDeployment(ctx, "deploymentResource", &realtimecompute.DeploymentArgs{
ExecutionMode: pulumi.String("string"),
Artifact: &realtimecompute.DeploymentArtifactArgs{
Kind: pulumi.String("string"),
JarArtifact: &realtimecompute.DeploymentArtifactJarArtifactArgs{
AdditionalDependencies: pulumi.StringArray{
pulumi.String("string"),
},
EntryClass: pulumi.String("string"),
JarUri: pulumi.String("string"),
MainArgs: pulumi.String("string"),
},
PythonArtifact: &realtimecompute.DeploymentArtifactPythonArtifactArgs{
AdditionalDependencies: pulumi.StringArray{
pulumi.String("string"),
},
AdditionalPythonArchives: pulumi.StringArray{
pulumi.String("string"),
},
AdditionalPythonLibraries: pulumi.StringArray{
pulumi.String("string"),
},
EntryModule: pulumi.String("string"),
MainArgs: pulumi.String("string"),
PythonArtifactUri: pulumi.String("string"),
},
SqlArtifact: &realtimecompute.DeploymentArtifactSqlArtifactArgs{
AdditionalDependencies: pulumi.StringArray{
pulumi.String("string"),
},
SqlScript: pulumi.String("string"),
},
},
DeploymentName: pulumi.String("string"),
DeploymentTarget: &realtimecompute.DeploymentDeploymentTargetArgs{
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
},
Namespace: pulumi.String("string"),
ResourceId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
EngineVersion: pulumi.String("string"),
BatchResourceSetting: &realtimecompute.DeploymentBatchResourceSettingArgs{
BasicResourceSetting: &realtimecompute.DeploymentBatchResourceSettingBasicResourceSettingArgs{
JobmanagerResourceSettingSpec: &realtimecompute.DeploymentBatchResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.String("string"),
},
Parallelism: pulumi.Int(0),
TaskmanagerResourceSettingSpec: &realtimecompute.DeploymentBatchResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.String("string"),
},
},
MaxSlot: pulumi.Int(0),
},
LocalVariables: realtimecompute.DeploymentLocalVariableArray{
&realtimecompute.DeploymentLocalVariableArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Logging: &realtimecompute.DeploymentLoggingArgs{
Log4j2ConfigurationTemplate: pulumi.String("string"),
Log4jLoggers: realtimecompute.DeploymentLoggingLog4jLoggerArray{
&realtimecompute.DeploymentLoggingLog4jLoggerArgs{
LoggerLevel: pulumi.String("string"),
LoggerName: pulumi.String("string"),
},
},
LogReservePolicy: &realtimecompute.DeploymentLoggingLogReservePolicyArgs{
ExpirationDays: pulumi.Int(0),
OpenHistory: pulumi.Bool(false),
},
LoggingProfile: pulumi.String("string"),
},
Description: pulumi.String("string"),
FlinkConf: pulumi.StringMap{
"string": pulumi.String("string"),
},
StreamingResourceSetting: &realtimecompute.DeploymentStreamingResourceSettingArgs{
BasicResourceSetting: &realtimecompute.DeploymentStreamingResourceSettingBasicResourceSettingArgs{
JobmanagerResourceSettingSpec: &realtimecompute.DeploymentStreamingResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.String("string"),
},
Parallelism: pulumi.Int(0),
TaskmanagerResourceSettingSpec: &realtimecompute.DeploymentStreamingResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.String("string"),
},
},
ExpertResourceSetting: &realtimecompute.DeploymentStreamingResourceSettingExpertResourceSettingArgs{
JobmanagerResourceSettingSpec: &realtimecompute.DeploymentStreamingResourceSettingExpertResourceSettingJobmanagerResourceSettingSpecArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.String("string"),
},
ResourcePlan: pulumi.String("string"),
},
ResourceSettingMode: pulumi.String("string"),
},
})
var deploymentResource = new Deployment("deploymentResource", DeploymentArgs.builder()
.executionMode("string")
.artifact(DeploymentArtifactArgs.builder()
.kind("string")
.jarArtifact(DeploymentArtifactJarArtifactArgs.builder()
.additionalDependencies("string")
.entryClass("string")
.jarUri("string")
.mainArgs("string")
.build())
.pythonArtifact(DeploymentArtifactPythonArtifactArgs.builder()
.additionalDependencies("string")
.additionalPythonArchives("string")
.additionalPythonLibraries("string")
.entryModule("string")
.mainArgs("string")
.pythonArtifactUri("string")
.build())
.sqlArtifact(DeploymentArtifactSqlArtifactArgs.builder()
.additionalDependencies("string")
.sqlScript("string")
.build())
.build())
.deploymentName("string")
.deploymentTarget(DeploymentDeploymentTargetArgs.builder()
.mode("string")
.name("string")
.build())
.namespace("string")
.resourceId("string")
.labels(Map.of("string", "string"))
.engineVersion("string")
.batchResourceSetting(DeploymentBatchResourceSettingArgs.builder()
.basicResourceSetting(DeploymentBatchResourceSettingBasicResourceSettingArgs.builder()
.jobmanagerResourceSettingSpec(DeploymentBatchResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs.builder()
.cpu(0.0)
.memory("string")
.build())
.parallelism(0)
.taskmanagerResourceSettingSpec(DeploymentBatchResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs.builder()
.cpu(0.0)
.memory("string")
.build())
.build())
.maxSlot(0)
.build())
.localVariables(DeploymentLocalVariableArgs.builder()
.name("string")
.value("string")
.build())
.logging(DeploymentLoggingArgs.builder()
.log4j2ConfigurationTemplate("string")
.log4jLoggers(DeploymentLoggingLog4jLoggerArgs.builder()
.loggerLevel("string")
.loggerName("string")
.build())
.logReservePolicy(DeploymentLoggingLogReservePolicyArgs.builder()
.expirationDays(0)
.openHistory(false)
.build())
.loggingProfile("string")
.build())
.description("string")
.flinkConf(Map.of("string", "string"))
.streamingResourceSetting(DeploymentStreamingResourceSettingArgs.builder()
.basicResourceSetting(DeploymentStreamingResourceSettingBasicResourceSettingArgs.builder()
.jobmanagerResourceSettingSpec(DeploymentStreamingResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs.builder()
.cpu(0.0)
.memory("string")
.build())
.parallelism(0)
.taskmanagerResourceSettingSpec(DeploymentStreamingResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs.builder()
.cpu(0.0)
.memory("string")
.build())
.build())
.expertResourceSetting(DeploymentStreamingResourceSettingExpertResourceSettingArgs.builder()
.jobmanagerResourceSettingSpec(DeploymentStreamingResourceSettingExpertResourceSettingJobmanagerResourceSettingSpecArgs.builder()
.cpu(0.0)
.memory("string")
.build())
.resourcePlan("string")
.build())
.resourceSettingMode("string")
.build())
.build());
deployment_resource = alicloud.realtimecompute.Deployment("deploymentResource",
execution_mode="string",
artifact={
"kind": "string",
"jar_artifact": {
"additional_dependencies": ["string"],
"entry_class": "string",
"jar_uri": "string",
"main_args": "string",
},
"python_artifact": {
"additional_dependencies": ["string"],
"additional_python_archives": ["string"],
"additional_python_libraries": ["string"],
"entry_module": "string",
"main_args": "string",
"python_artifact_uri": "string",
},
"sql_artifact": {
"additional_dependencies": ["string"],
"sql_script": "string",
},
},
deployment_name="string",
deployment_target={
"mode": "string",
"name": "string",
},
namespace="string",
resource_id="string",
labels={
"string": "string",
},
engine_version="string",
batch_resource_setting={
"basic_resource_setting": {
"jobmanager_resource_setting_spec": {
"cpu": 0,
"memory": "string",
},
"parallelism": 0,
"taskmanager_resource_setting_spec": {
"cpu": 0,
"memory": "string",
},
},
"max_slot": 0,
},
local_variables=[{
"name": "string",
"value": "string",
}],
logging={
"log4j2_configuration_template": "string",
"log4j_loggers": [{
"logger_level": "string",
"logger_name": "string",
}],
"log_reserve_policy": {
"expiration_days": 0,
"open_history": False,
},
"logging_profile": "string",
},
description="string",
flink_conf={
"string": "string",
},
streaming_resource_setting={
"basic_resource_setting": {
"jobmanager_resource_setting_spec": {
"cpu": 0,
"memory": "string",
},
"parallelism": 0,
"taskmanager_resource_setting_spec": {
"cpu": 0,
"memory": "string",
},
},
"expert_resource_setting": {
"jobmanager_resource_setting_spec": {
"cpu": 0,
"memory": "string",
},
"resource_plan": "string",
},
"resource_setting_mode": "string",
})
const deploymentResource = new alicloud.realtimecompute.Deployment("deploymentResource", {
executionMode: "string",
artifact: {
kind: "string",
jarArtifact: {
additionalDependencies: ["string"],
entryClass: "string",
jarUri: "string",
mainArgs: "string",
},
pythonArtifact: {
additionalDependencies: ["string"],
additionalPythonArchives: ["string"],
additionalPythonLibraries: ["string"],
entryModule: "string",
mainArgs: "string",
pythonArtifactUri: "string",
},
sqlArtifact: {
additionalDependencies: ["string"],
sqlScript: "string",
},
},
deploymentName: "string",
deploymentTarget: {
mode: "string",
name: "string",
},
namespace: "string",
resourceId: "string",
labels: {
string: "string",
},
engineVersion: "string",
batchResourceSetting: {
basicResourceSetting: {
jobmanagerResourceSettingSpec: {
cpu: 0,
memory: "string",
},
parallelism: 0,
taskmanagerResourceSettingSpec: {
cpu: 0,
memory: "string",
},
},
maxSlot: 0,
},
localVariables: [{
name: "string",
value: "string",
}],
logging: {
log4j2ConfigurationTemplate: "string",
log4jLoggers: [{
loggerLevel: "string",
loggerName: "string",
}],
logReservePolicy: {
expirationDays: 0,
openHistory: false,
},
loggingProfile: "string",
},
description: "string",
flinkConf: {
string: "string",
},
streamingResourceSetting: {
basicResourceSetting: {
jobmanagerResourceSettingSpec: {
cpu: 0,
memory: "string",
},
parallelism: 0,
taskmanagerResourceSettingSpec: {
cpu: 0,
memory: "string",
},
},
expertResourceSetting: {
jobmanagerResourceSettingSpec: {
cpu: 0,
memory: "string",
},
resourcePlan: "string",
},
resourceSettingMode: "string",
},
});
type: alicloud:realtimecompute:Deployment
properties:
artifact:
jarArtifact:
additionalDependencies:
- string
entryClass: string
jarUri: string
mainArgs: string
kind: string
pythonArtifact:
additionalDependencies:
- string
additionalPythonArchives:
- string
additionalPythonLibraries:
- string
entryModule: string
mainArgs: string
pythonArtifactUri: string
sqlArtifact:
additionalDependencies:
- string
sqlScript: string
batchResourceSetting:
basicResourceSetting:
jobmanagerResourceSettingSpec:
cpu: 0
memory: string
parallelism: 0
taskmanagerResourceSettingSpec:
cpu: 0
memory: string
maxSlot: 0
deploymentName: string
deploymentTarget:
mode: string
name: string
description: string
engineVersion: string
executionMode: string
flinkConf:
string: string
labels:
string: string
localVariables:
- name: string
value: string
logging:
log4j2ConfigurationTemplate: string
log4jLoggers:
- loggerLevel: string
loggerName: string
logReservePolicy:
expirationDays: 0
openHistory: false
loggingProfile: string
namespace: string
resourceId: string
streamingResourceSetting:
basicResourceSetting:
jobmanagerResourceSettingSpec:
cpu: 0
memory: string
parallelism: 0
taskmanagerResourceSettingSpec:
cpu: 0
memory: string
expertResourceSetting:
jobmanagerResourceSettingSpec:
cpu: 0
memory: string
resourcePlan: string
resourceSettingMode: string
Deployment 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 Deployment resource accepts the following input properties:
- Artifact
Pulumi.
Ali Cloud. Realtime Compute. Inputs. Deployment Artifact - Content of the deployment job See
artifactbelow. - Deployment
Name string - Name of the deployment
- Deployment
Target Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Deployment Target - Deployment target See
deployment_targetbelow. - Execution
Mode string - Execution mode. Valid values: STREAMING or BATCH.
- Namespace string
- Namespace name
- Batch
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Batch Resource Setting - Batch job resource settings See
batch_resource_settingbelow. - Description string
- Description
- Engine
Version string - Engine version of the deployment instance
- Flink
Conf Dictionary<string, string> - Flink configuration
- Labels Dictionary<string, string>
- Deployment labels
- Local
Variables List<Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Local Variable> - Job variables See
local_variablesbelow. - Logging
Pulumi.
Ali Cloud. Realtime Compute. Inputs. Deployment Logging - Job log configuration See
loggingbelow. - Resource
Id string - Workspace resource ID
- Streaming
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Streaming Resource Setting - Resource settings for streaming mode See
streaming_resource_settingbelow.
- Artifact
Deployment
Artifact Args - Content of the deployment job See
artifactbelow. - Deployment
Name string - Name of the deployment
- Deployment
Target DeploymentDeployment Target Args - Deployment target See
deployment_targetbelow. - Execution
Mode string - Execution mode. Valid values: STREAMING or BATCH.
- Namespace string
- Namespace name
- Batch
Resource DeploymentSetting Batch Resource Setting Args - Batch job resource settings See
batch_resource_settingbelow. - Description string
- Description
- Engine
Version string - Engine version of the deployment instance
- Flink
Conf map[string]string - Flink configuration
- Labels map[string]string
- Deployment labels
- Local
Variables []DeploymentLocal Variable Args - Job variables See
local_variablesbelow. - Logging
Deployment
Logging Args - Job log configuration See
loggingbelow. - Resource
Id string - Workspace resource ID
- Streaming
Resource DeploymentSetting Streaming Resource Setting Args - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact
Deployment
Artifact - Content of the deployment job See
artifactbelow. - deployment
Name String - Name of the deployment
- deployment
Target DeploymentDeployment Target - Deployment target See
deployment_targetbelow. - execution
Mode String - Execution mode. Valid values: STREAMING or BATCH.
- namespace String
- Namespace name
- batch
Resource DeploymentSetting Batch Resource Setting - Batch job resource settings See
batch_resource_settingbelow. - description String
- Description
- engine
Version String - Engine version of the deployment instance
- flink
Conf Map<String,String> - Flink configuration
- labels Map<String,String>
- Deployment labels
- local
Variables List<DeploymentLocal Variable> - Job variables See
local_variablesbelow. - logging
Deployment
Logging - Job log configuration See
loggingbelow. - resource
Id String - Workspace resource ID
- streaming
Resource DeploymentSetting Streaming Resource Setting - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact
Deployment
Artifact - Content of the deployment job See
artifactbelow. - deployment
Name string - Name of the deployment
- deployment
Target DeploymentDeployment Target - Deployment target See
deployment_targetbelow. - execution
Mode string - Execution mode. Valid values: STREAMING or BATCH.
- namespace string
- Namespace name
- batch
Resource DeploymentSetting Batch Resource Setting - Batch job resource settings See
batch_resource_settingbelow. - description string
- Description
- engine
Version string - Engine version of the deployment instance
- flink
Conf {[key: string]: string} - Flink configuration
- labels {[key: string]: string}
- Deployment labels
- local
Variables DeploymentLocal Variable[] - Job variables See
local_variablesbelow. - logging
Deployment
Logging - Job log configuration See
loggingbelow. - resource
Id string - Workspace resource ID
- streaming
Resource DeploymentSetting Streaming Resource Setting - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact
Deployment
Artifact Args - Content of the deployment job See
artifactbelow. - deployment_
name str - Name of the deployment
- deployment_
target DeploymentDeployment Target Args - Deployment target See
deployment_targetbelow. - execution_
mode str - Execution mode. Valid values: STREAMING or BATCH.
- namespace str
- Namespace name
- batch_
resource_ Deploymentsetting Batch Resource Setting Args - Batch job resource settings See
batch_resource_settingbelow. - description str
- Description
- engine_
version str - Engine version of the deployment instance
- flink_
conf Mapping[str, str] - Flink configuration
- labels Mapping[str, str]
- Deployment labels
- local_
variables Sequence[DeploymentLocal Variable Args] - Job variables See
local_variablesbelow. - logging
Deployment
Logging Args - Job log configuration See
loggingbelow. - resource_
id str - Workspace resource ID
- streaming_
resource_ Deploymentsetting Streaming Resource Setting Args - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact Property Map
- Content of the deployment job See
artifactbelow. - deployment
Name String - Name of the deployment
- deployment
Target Property Map - Deployment target See
deployment_targetbelow. - execution
Mode String - Execution mode. Valid values: STREAMING or BATCH.
- namespace String
- Namespace name
- batch
Resource Property MapSetting - Batch job resource settings See
batch_resource_settingbelow. - description String
- Description
- engine
Version String - Engine version of the deployment instance
- flink
Conf Map<String> - Flink configuration
- labels Map<String>
- Deployment labels
- local
Variables List<Property Map> - Job variables See
local_variablesbelow. - logging Property Map
- Job log configuration See
loggingbelow. - resource
Id String - Workspace resource ID
- streaming
Resource Property MapSetting - Resource settings for streaming mode See
streaming_resource_settingbelow.
Outputs
All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:
- Deployment
Id string - Resource property field representing the primary resource ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Deployment
Id string - Resource property field representing the primary resource ID
- Id string
- The provider-assigned unique ID for this managed resource.
- deployment
Id String - Resource property field representing the primary resource ID
- id String
- The provider-assigned unique ID for this managed resource.
- deployment
Id string - Resource property field representing the primary resource ID
- id string
- The provider-assigned unique ID for this managed resource.
- deployment_
id str - Resource property field representing the primary resource ID
- id str
- The provider-assigned unique ID for this managed resource.
- deployment
Id String - Resource property field representing the primary resource ID
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Deployment Resource
Get an existing Deployment 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?: DeploymentState, opts?: CustomResourceOptions): Deployment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
artifact: Optional[DeploymentArtifactArgs] = None,
batch_resource_setting: Optional[DeploymentBatchResourceSettingArgs] = None,
deployment_id: Optional[str] = None,
deployment_name: Optional[str] = None,
deployment_target: Optional[DeploymentDeploymentTargetArgs] = None,
description: Optional[str] = None,
engine_version: Optional[str] = None,
execution_mode: Optional[str] = None,
flink_conf: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
local_variables: Optional[Sequence[DeploymentLocalVariableArgs]] = None,
logging: Optional[DeploymentLoggingArgs] = None,
namespace: Optional[str] = None,
resource_id: Optional[str] = None,
streaming_resource_setting: Optional[DeploymentStreamingResourceSettingArgs] = None) -> Deploymentfunc GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)public static Deployment get(String name, Output<String> id, DeploymentState state, CustomResourceOptions options)resources: _: type: alicloud:realtimecompute:Deployment 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.
- Artifact
Pulumi.
Ali Cloud. Realtime Compute. Inputs. Deployment Artifact - Content of the deployment job See
artifactbelow. - Batch
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Batch Resource Setting - Batch job resource settings See
batch_resource_settingbelow. - Deployment
Id string - Resource property field representing the primary resource ID
- Deployment
Name string - Name of the deployment
- Deployment
Target Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Deployment Target - Deployment target See
deployment_targetbelow. - Description string
- Description
- Engine
Version string - Engine version of the deployment instance
- Execution
Mode string - Execution mode. Valid values: STREAMING or BATCH.
- Flink
Conf Dictionary<string, string> - Flink configuration
- Labels Dictionary<string, string>
- Deployment labels
- Local
Variables List<Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Local Variable> - Job variables See
local_variablesbelow. - Logging
Pulumi.
Ali Cloud. Realtime Compute. Inputs. Deployment Logging - Job log configuration See
loggingbelow. - Namespace string
- Namespace name
- Resource
Id string - Workspace resource ID
- Streaming
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Streaming Resource Setting - Resource settings for streaming mode See
streaming_resource_settingbelow.
- Artifact
Deployment
Artifact Args - Content of the deployment job See
artifactbelow. - Batch
Resource DeploymentSetting Batch Resource Setting Args - Batch job resource settings See
batch_resource_settingbelow. - Deployment
Id string - Resource property field representing the primary resource ID
- Deployment
Name string - Name of the deployment
- Deployment
Target DeploymentDeployment Target Args - Deployment target See
deployment_targetbelow. - Description string
- Description
- Engine
Version string - Engine version of the deployment instance
- Execution
Mode string - Execution mode. Valid values: STREAMING or BATCH.
- Flink
Conf map[string]string - Flink configuration
- Labels map[string]string
- Deployment labels
- Local
Variables []DeploymentLocal Variable Args - Job variables See
local_variablesbelow. - Logging
Deployment
Logging Args - Job log configuration See
loggingbelow. - Namespace string
- Namespace name
- Resource
Id string - Workspace resource ID
- Streaming
Resource DeploymentSetting Streaming Resource Setting Args - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact
Deployment
Artifact - Content of the deployment job See
artifactbelow. - batch
Resource DeploymentSetting Batch Resource Setting - Batch job resource settings See
batch_resource_settingbelow. - deployment
Id String - Resource property field representing the primary resource ID
- deployment
Name String - Name of the deployment
- deployment
Target DeploymentDeployment Target - Deployment target See
deployment_targetbelow. - description String
- Description
- engine
Version String - Engine version of the deployment instance
- execution
Mode String - Execution mode. Valid values: STREAMING or BATCH.
- flink
Conf Map<String,String> - Flink configuration
- labels Map<String,String>
- Deployment labels
- local
Variables List<DeploymentLocal Variable> - Job variables See
local_variablesbelow. - logging
Deployment
Logging - Job log configuration See
loggingbelow. - namespace String
- Namespace name
- resource
Id String - Workspace resource ID
- streaming
Resource DeploymentSetting Streaming Resource Setting - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact
Deployment
Artifact - Content of the deployment job See
artifactbelow. - batch
Resource DeploymentSetting Batch Resource Setting - Batch job resource settings See
batch_resource_settingbelow. - deployment
Id string - Resource property field representing the primary resource ID
- deployment
Name string - Name of the deployment
- deployment
Target DeploymentDeployment Target - Deployment target See
deployment_targetbelow. - description string
- Description
- engine
Version string - Engine version of the deployment instance
- execution
Mode string - Execution mode. Valid values: STREAMING or BATCH.
- flink
Conf {[key: string]: string} - Flink configuration
- labels {[key: string]: string}
- Deployment labels
- local
Variables DeploymentLocal Variable[] - Job variables See
local_variablesbelow. - logging
Deployment
Logging - Job log configuration See
loggingbelow. - namespace string
- Namespace name
- resource
Id string - Workspace resource ID
- streaming
Resource DeploymentSetting Streaming Resource Setting - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact
Deployment
Artifact Args - Content of the deployment job See
artifactbelow. - batch_
resource_ Deploymentsetting Batch Resource Setting Args - Batch job resource settings See
batch_resource_settingbelow. - deployment_
id str - Resource property field representing the primary resource ID
- deployment_
name str - Name of the deployment
- deployment_
target DeploymentDeployment Target Args - Deployment target See
deployment_targetbelow. - description str
- Description
- engine_
version str - Engine version of the deployment instance
- execution_
mode str - Execution mode. Valid values: STREAMING or BATCH.
- flink_
conf Mapping[str, str] - Flink configuration
- labels Mapping[str, str]
- Deployment labels
- local_
variables Sequence[DeploymentLocal Variable Args] - Job variables See
local_variablesbelow. - logging
Deployment
Logging Args - Job log configuration See
loggingbelow. - namespace str
- Namespace name
- resource_
id str - Workspace resource ID
- streaming_
resource_ Deploymentsetting Streaming Resource Setting Args - Resource settings for streaming mode See
streaming_resource_settingbelow.
- artifact Property Map
- Content of the deployment job See
artifactbelow. - batch
Resource Property MapSetting - Batch job resource settings See
batch_resource_settingbelow. - deployment
Id String - Resource property field representing the primary resource ID
- deployment
Name String - Name of the deployment
- deployment
Target Property Map - Deployment target See
deployment_targetbelow. - description String
- Description
- engine
Version String - Engine version of the deployment instance
- execution
Mode String - Execution mode. Valid values: STREAMING or BATCH.
- flink
Conf Map<String> - Flink configuration
- labels Map<String>
- Deployment labels
- local
Variables List<Property Map> - Job variables See
local_variablesbelow. - logging Property Map
- Job log configuration See
loggingbelow. - namespace String
- Namespace name
- resource
Id String - Workspace resource ID
- streaming
Resource Property MapSetting - Resource settings for streaming mode See
streaming_resource_settingbelow.
Supporting Types
DeploymentArtifact, DeploymentArtifactArgs
- Kind string
- Artifact type
- Jar
Artifact Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Artifact Jar Artifact - JarArtifact See
jar_artifactbelow. - Python
Artifact Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Artifact Python Artifact - PythonArtifact See
python_artifactbelow. - Sql
Artifact Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Artifact Sql Artifact - SqlArtifact See
sql_artifactbelow.
- Kind string
- Artifact type
- Jar
Artifact DeploymentArtifact Jar Artifact - JarArtifact See
jar_artifactbelow. - Python
Artifact DeploymentArtifact Python Artifact - PythonArtifact See
python_artifactbelow. - Sql
Artifact DeploymentArtifact Sql Artifact - SqlArtifact See
sql_artifactbelow.
- kind String
- Artifact type
- jar
Artifact DeploymentArtifact Jar Artifact - JarArtifact See
jar_artifactbelow. - python
Artifact DeploymentArtifact Python Artifact - PythonArtifact See
python_artifactbelow. - sql
Artifact DeploymentArtifact Sql Artifact - SqlArtifact See
sql_artifactbelow.
- kind string
- Artifact type
- jar
Artifact DeploymentArtifact Jar Artifact - JarArtifact See
jar_artifactbelow. - python
Artifact DeploymentArtifact Python Artifact - PythonArtifact See
python_artifactbelow. - sql
Artifact DeploymentArtifact Sql Artifact - SqlArtifact See
sql_artifactbelow.
- kind str
- Artifact type
- jar_
artifact DeploymentArtifact Jar Artifact - JarArtifact See
jar_artifactbelow. - python_
artifact DeploymentArtifact Python Artifact - PythonArtifact See
python_artifactbelow. - sql_
artifact DeploymentArtifact Sql Artifact - SqlArtifact See
sql_artifactbelow.
- kind String
- Artifact type
- jar
Artifact Property Map - JarArtifact See
jar_artifactbelow. - python
Artifact Property Map - PythonArtifact See
python_artifactbelow. - sql
Artifact Property Map - SqlArtifact See
sql_artifactbelow.
DeploymentArtifactJarArtifact, DeploymentArtifactJarArtifactArgs
- Additional
Dependencies List<string> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- Entry
Class string - Main class; you must specify the fully qualified class name
- Jar
Uri string - Full URL path of the JAR job
- Main
Args string - Startup arguments
- Additional
Dependencies []string - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- Entry
Class string - Main class; you must specify the fully qualified class name
- Jar
Uri string - Full URL path of the JAR job
- Main
Args string - Startup arguments
- additional
Dependencies List<String> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- entry
Class String - Main class; you must specify the fully qualified class name
- jar
Uri String - Full URL path of the JAR job
- main
Args String - Startup arguments
- additional
Dependencies string[] - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- entry
Class string - Main class; you must specify the fully qualified class name
- jar
Uri string - Full URL path of the JAR job
- main
Args string - Startup arguments
- additional_
dependencies Sequence[str] - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- entry_
class str - Main class; you must specify the fully qualified class name
- jar_
uri str - Full URL path of the JAR job
- main_
args str - Startup arguments
- additional
Dependencies List<String> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- entry
Class String - Main class; you must specify the fully qualified class name
- jar
Uri String - Full URL path of the JAR job
- main
Args String - Startup arguments
DeploymentArtifactPythonArtifact, DeploymentArtifactPythonArtifactArgs
- Additional
Dependencies List<string> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- Additional
Python List<string>Archives - URL paths of dependent Python archive files
- Additional
Python List<string>Libraries - URL paths of dependent Python library files
- Entry
Module string - Entry module for Python
- Main
Args string - Startup arguments
- Python
Artifact stringUri - Full URL path of the Python job
- Additional
Dependencies []string - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- Additional
Python []stringArchives - URL paths of dependent Python archive files
- Additional
Python []stringLibraries - URL paths of dependent Python library files
- Entry
Module string - Entry module for Python
- Main
Args string - Startup arguments
- Python
Artifact stringUri - Full URL path of the Python job
- additional
Dependencies List<String> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- additional
Python List<String>Archives - URL paths of dependent Python archive files
- additional
Python List<String>Libraries - URL paths of dependent Python library files
- entry
Module String - Entry module for Python
- main
Args String - Startup arguments
- python
Artifact StringUri - Full URL path of the Python job
- additional
Dependencies string[] - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- additional
Python string[]Archives - URL paths of dependent Python archive files
- additional
Python string[]Libraries - URL paths of dependent Python library files
- entry
Module string - Entry module for Python
- main
Args string - Startup arguments
- python
Artifact stringUri - Full URL path of the Python job
- additional_
dependencies Sequence[str] - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- additional_
python_ Sequence[str]archives - URL paths of dependent Python archive files
- additional_
python_ Sequence[str]libraries - URL paths of dependent Python library files
- entry_
module str - Entry module for Python
- main_
args str - Startup arguments
- python_
artifact_ struri - Full URL path of the Python job
- additional
Dependencies List<String> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- additional
Python List<String>Archives - URL paths of dependent Python archive files
- additional
Python List<String>Libraries - URL paths of dependent Python library files
- entry
Module String - Entry module for Python
- main
Args String - Startup arguments
- python
Artifact StringUri - Full URL path of the Python job
DeploymentArtifactSqlArtifact, DeploymentArtifactSqlArtifactArgs
- Additional
Dependencies List<string> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- Sql
Script string - Text content of the SQL job
- Additional
Dependencies []string - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- Sql
Script string - Text content of the SQL job
- additional
Dependencies List<String> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- sql
Script String - Text content of the SQL job
- additional
Dependencies string[] - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- sql
Script string - Text content of the SQL job
- additional_
dependencies Sequence[str] - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- sql_
script str - Text content of the SQL job
- additional
Dependencies List<String> - Full URL path of additional files. If you need to use dependencies such as UDFs, connectors, or formats that are not registered on the VVP platform, you must add them using this method. Dependencies already registered on the platform do not require this approach.
- sql
Script String - Text content of the SQL job
DeploymentBatchResourceSetting, DeploymentBatchResourceSettingArgs
- Basic
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Batch Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - Max
Slot int - Maximum number of slots
- Basic
Resource DeploymentSetting Batch Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - Max
Slot int - Maximum number of slots
- basic
Resource DeploymentSetting Batch Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - max
Slot Integer - Maximum number of slots
- basic
Resource DeploymentSetting Batch Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - max
Slot number - Maximum number of slots
- basic_
resource_ Deploymentsetting Batch Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - max_
slot int - Maximum number of slots
- basic
Resource Property MapSetting - Resource settings for basic mode See
basic_resource_settingbelow. - max
Slot Number - Maximum number of slots
DeploymentBatchResourceSettingBasicResourceSetting, DeploymentBatchResourceSettingBasicResourceSettingArgs
- Jobmanager
Resource Pulumi.Setting Spec Ali Cloud. Realtime Compute. Inputs. Deployment Batch Resource Setting Basic Resource Setting Jobmanager Resource Setting Spec - Parallelism int
- Taskmanager
Resource Pulumi.Setting Spec Ali Cloud. Realtime Compute. Inputs. Deployment Batch Resource Setting Basic Resource Setting Taskmanager Resource Setting Spec
DeploymentBatchResourceSettingBasicResourceSettingJobmanagerResourceSettingSpec, DeploymentBatchResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs
DeploymentBatchResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpec, DeploymentBatchResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs
DeploymentDeploymentTarget, DeploymentDeploymentTargetArgs
DeploymentLocalVariable, DeploymentLocalVariableArgs
DeploymentLogging, DeploymentLoggingArgs
- Log4j2Configuration
Template string - Custom log template
- Log4j
Loggers List<Pulumi.Ali Cloud. Realtime Compute. Inputs. Deployment Logging Log4j Logger> - log4j configuration See
log4j_loggersbelow. - Log
Reserve Pulumi.Policy Ali Cloud. Realtime Compute. Inputs. Deployment Logging Log Reserve Policy - Log retention policy See
log_reserve_policybelow. - Logging
Profile string - Default system log template
- Log4j2Configuration
Template string - Custom log template
- Log4j
Loggers []DeploymentLogging Log4j Logger - log4j configuration See
log4j_loggersbelow. - Log
Reserve DeploymentPolicy Logging Log Reserve Policy - Log retention policy See
log_reserve_policybelow. - Logging
Profile string - Default system log template
- log4j2Configuration
Template String - Custom log template
- log4j
Loggers List<DeploymentLogging Log4j Logger> - log4j configuration See
log4j_loggersbelow. - log
Reserve DeploymentPolicy Logging Log Reserve Policy - Log retention policy See
log_reserve_policybelow. - logging
Profile String - Default system log template
- log4j2Configuration
Template string - Custom log template
- log4j
Loggers DeploymentLogging Log4j Logger[] - log4j configuration See
log4j_loggersbelow. - log
Reserve DeploymentPolicy Logging Log Reserve Policy - Log retention policy See
log_reserve_policybelow. - logging
Profile string - Default system log template
- log4j2_
configuration_ strtemplate - Custom log template
- log4j_
loggers Sequence[DeploymentLogging Log4j Logger] - log4j configuration See
log4j_loggersbelow. - log_
reserve_ Deploymentpolicy Logging Log Reserve Policy - Log retention policy See
log_reserve_policybelow. - logging_
profile str - Default system log template
- log4j2Configuration
Template String - Custom log template
- log4j
Loggers List<Property Map> - log4j configuration See
log4j_loggersbelow. - log
Reserve Property MapPolicy - Log retention policy See
log_reserve_policybelow. - logging
Profile String - Default system log template
DeploymentLoggingLog4jLogger, DeploymentLoggingLog4jLoggerArgs
- Logger
Level string - Log output level
- Logger
Name string - Class name for log output
- Logger
Level string - Log output level
- Logger
Name string - Class name for log output
- logger
Level String - Log output level
- logger
Name String - Class name for log output
- logger
Level string - Log output level
- logger
Name string - Class name for log output
- logger_
level str - Log output level
- logger_
name str - Class name for log output
- logger
Level String - Log output level
- logger
Name String - Class name for log output
DeploymentLoggingLogReservePolicy, DeploymentLoggingLogReservePolicyArgs
- Expiration
Days int - Number of days to retain logs after log retention is enabled
- Open
History bool - Whether to enable log retention
- Expiration
Days int - Number of days to retain logs after log retention is enabled
- Open
History bool - Whether to enable log retention
- expiration
Days Integer - Number of days to retain logs after log retention is enabled
- open
History Boolean - Whether to enable log retention
- expiration
Days number - Number of days to retain logs after log retention is enabled
- open
History boolean - Whether to enable log retention
- expiration_
days int - Number of days to retain logs after log retention is enabled
- open_
history bool - Whether to enable log retention
- expiration
Days Number - Number of days to retain logs after log retention is enabled
- open
History Boolean - Whether to enable log retention
DeploymentStreamingResourceSetting, DeploymentStreamingResourceSettingArgs
- Basic
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Streaming Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - Expert
Resource Pulumi.Setting Ali Cloud. Realtime Compute. Inputs. Deployment Streaming Resource Setting Expert Resource Setting - Expert mode resource settings See
expert_resource_settingbelow. - Resource
Setting stringMode - Resource mode used in streaming mode, valid values: BASIC or EXPERT
- Basic
Resource DeploymentSetting Streaming Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - Expert
Resource DeploymentSetting Streaming Resource Setting Expert Resource Setting - Expert mode resource settings See
expert_resource_settingbelow. - Resource
Setting stringMode - Resource mode used in streaming mode, valid values: BASIC or EXPERT
- basic
Resource DeploymentSetting Streaming Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - expert
Resource DeploymentSetting Streaming Resource Setting Expert Resource Setting - Expert mode resource settings See
expert_resource_settingbelow. - resource
Setting StringMode - Resource mode used in streaming mode, valid values: BASIC or EXPERT
- basic
Resource DeploymentSetting Streaming Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - expert
Resource DeploymentSetting Streaming Resource Setting Expert Resource Setting - Expert mode resource settings See
expert_resource_settingbelow. - resource
Setting stringMode - Resource mode used in streaming mode, valid values: BASIC or EXPERT
- basic_
resource_ Deploymentsetting Streaming Resource Setting Basic Resource Setting - Resource settings for basic mode See
basic_resource_settingbelow. - expert_
resource_ Deploymentsetting Streaming Resource Setting Expert Resource Setting - Expert mode resource settings See
expert_resource_settingbelow. - resource_
setting_ strmode - Resource mode used in streaming mode, valid values: BASIC or EXPERT
- basic
Resource Property MapSetting - Resource settings for basic mode See
basic_resource_settingbelow. - expert
Resource Property MapSetting - Expert mode resource settings See
expert_resource_settingbelow. - resource
Setting StringMode - Resource mode used in streaming mode, valid values: BASIC or EXPERT
DeploymentStreamingResourceSettingBasicResourceSetting, DeploymentStreamingResourceSettingBasicResourceSettingArgs
- Jobmanager
Resource Pulumi.Setting Spec Ali Cloud. Realtime Compute. Inputs. Deployment Streaming Resource Setting Basic Resource Setting Jobmanager Resource Setting Spec - Parallelism int
- Taskmanager
Resource Pulumi.Setting Spec Ali Cloud. Realtime Compute. Inputs. Deployment Streaming Resource Setting Basic Resource Setting Taskmanager Resource Setting Spec
DeploymentStreamingResourceSettingBasicResourceSettingJobmanagerResourceSettingSpec, DeploymentStreamingResourceSettingBasicResourceSettingJobmanagerResourceSettingSpecArgs
DeploymentStreamingResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpec, DeploymentStreamingResourceSettingBasicResourceSettingTaskmanagerResourceSettingSpecArgs
DeploymentStreamingResourceSettingExpertResourceSetting, DeploymentStreamingResourceSettingExpertResourceSettingArgs
- Jobmanager
Resource DeploymentSetting Spec Streaming Resource Setting Expert Resource Setting Jobmanager Resource Setting Spec - Resource
Plan string - Resource plan for expert mode
- jobmanager
Resource DeploymentSetting Spec Streaming Resource Setting Expert Resource Setting Jobmanager Resource Setting Spec - resource
Plan String - Resource plan for expert mode
- jobmanager
Resource DeploymentSetting Spec Streaming Resource Setting Expert Resource Setting Jobmanager Resource Setting Spec - resource
Plan string - Resource plan for expert mode
- jobmanager_
resource_ Deploymentsetting_ spec Streaming Resource Setting Expert Resource Setting Jobmanager Resource Setting Spec - resource_
plan str - Resource plan for expert mode
- jobmanager
Resource Property MapSetting Spec - resource
Plan String - Resource plan for expert mode
DeploymentStreamingResourceSettingExpertResourceSettingJobmanagerResourceSettingSpec, DeploymentStreamingResourceSettingExpertResourceSettingJobmanagerResourceSettingSpecArgs
Import
Realtime Compute Deployment can be imported using the id, e.g.
$ pulumi import alicloud:realtimecompute/deployment:Deployment example <resource_id>:<namespace>:<deployment_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
