1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. Workload
Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse

cpln.Workload

Explore with Pulumi AI

cpln logo
Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse

    Create Workload Resource

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

    Constructor syntax

    new Workload(name: string, args: WorkloadArgs, opts?: CustomResourceOptions);
    @overload
    def Workload(resource_name: str,
                 args: WorkloadArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Workload(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 containers: Optional[Sequence[WorkloadContainerArgs]] = None,
                 type: Optional[str] = None,
                 options: Optional[WorkloadOptionsArgs] = None,
                 gvc: Optional[str] = None,
                 local_options: Optional[Sequence[WorkloadLocalOptionArgs]] = None,
                 job: Optional[WorkloadJobArgs] = None,
                 identity_link: Optional[str] = None,
                 name: Optional[str] = None,
                 firewall_spec: Optional[WorkloadFirewallSpecArgs] = None,
                 rollout_options: Optional[WorkloadRolloutOptionsArgs] = None,
                 security_options: Optional[WorkloadSecurityOptionsArgs] = None,
                 sidecar: Optional[WorkloadSidecarArgs] = None,
                 support_dynamic_tags: Optional[bool] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 description: Optional[str] = None)
    func NewWorkload(ctx *Context, name string, args WorkloadArgs, opts ...ResourceOption) (*Workload, error)
    public Workload(string name, WorkloadArgs args, CustomResourceOptions? opts = null)
    public Workload(String name, WorkloadArgs args)
    public Workload(String name, WorkloadArgs args, CustomResourceOptions options)
    
    type: cpln:Workload
    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 WorkloadArgs
    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 WorkloadArgs
    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 WorkloadArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkloadArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkloadArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var workloadResource = new Cpln.Workload("workloadResource", new()
    {
        Containers = new[]
        {
            new Cpln.Inputs.WorkloadContainerArgs
            {
                Image = "string",
                Name = "string",
                LivenessProbe = new Cpln.Inputs.WorkloadContainerLivenessProbeArgs
                {
                    Exec = new Cpln.Inputs.WorkloadContainerLivenessProbeExecArgs
                    {
                        Commands = new[]
                        {
                            "string",
                        },
                    },
                    FailureThreshold = 0,
                    Grpc = new Cpln.Inputs.WorkloadContainerLivenessProbeGrpcArgs
                    {
                        Port = 0,
                    },
                    HttpGet = new Cpln.Inputs.WorkloadContainerLivenessProbeHttpGetArgs
                    {
                        HttpHeaders = 
                        {
                            { "string", "string" },
                        },
                        Path = "string",
                        Port = 0,
                        Scheme = "string",
                    },
                    InitialDelaySeconds = 0,
                    PeriodSeconds = 0,
                    SuccessThreshold = 0,
                    TcpSocket = new Cpln.Inputs.WorkloadContainerLivenessProbeTcpSocketArgs
                    {
                        Port = 0,
                    },
                    TimeoutSeconds = 0,
                },
                MinCpu = "string",
                GpuNvidia = new Cpln.Inputs.WorkloadContainerGpuNvidiaArgs
                {
                    Model = "string",
                    Quantity = 0,
                },
                Cpu = "string",
                InheritEnv = false,
                Lifecycle = new Cpln.Inputs.WorkloadContainerLifecycleArgs
                {
                    PostStart = new Cpln.Inputs.WorkloadContainerLifecyclePostStartArgs
                    {
                        Exec = new Cpln.Inputs.WorkloadContainerLifecyclePostStartExecArgs
                        {
                            Commands = new[]
                            {
                                "string",
                            },
                        },
                    },
                    PreStop = new Cpln.Inputs.WorkloadContainerLifecyclePreStopArgs
                    {
                        Exec = new Cpln.Inputs.WorkloadContainerLifecyclePreStopExecArgs
                        {
                            Commands = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
                Args = new[]
                {
                    "string",
                },
                Memory = "string",
                Metrics = new Cpln.Inputs.WorkloadContainerMetricsArgs
                {
                    Path = "string",
                    Port = 0,
                },
                Env = 
                {
                    { "string", "string" },
                },
                MinMemory = "string",
                Command = "string",
                Ports = new[]
                {
                    new Cpln.Inputs.WorkloadContainerPortArgs
                    {
                        Number = 0,
                        Protocol = "string",
                    },
                },
                ReadinessProbe = new Cpln.Inputs.WorkloadContainerReadinessProbeArgs
                {
                    Exec = new Cpln.Inputs.WorkloadContainerReadinessProbeExecArgs
                    {
                        Commands = new[]
                        {
                            "string",
                        },
                    },
                    FailureThreshold = 0,
                    Grpc = new Cpln.Inputs.WorkloadContainerReadinessProbeGrpcArgs
                    {
                        Port = 0,
                    },
                    HttpGet = new Cpln.Inputs.WorkloadContainerReadinessProbeHttpGetArgs
                    {
                        HttpHeaders = 
                        {
                            { "string", "string" },
                        },
                        Path = "string",
                        Port = 0,
                        Scheme = "string",
                    },
                    InitialDelaySeconds = 0,
                    PeriodSeconds = 0,
                    SuccessThreshold = 0,
                    TcpSocket = new Cpln.Inputs.WorkloadContainerReadinessProbeTcpSocketArgs
                    {
                        Port = 0,
                    },
                    TimeoutSeconds = 0,
                },
                Volumes = new[]
                {
                    new Cpln.Inputs.WorkloadContainerVolumeArgs
                    {
                        Path = "string",
                        Uri = "string",
                        RecoveryPolicy = "string",
                    },
                },
                WorkingDirectory = "string",
            },
        },
        Type = "string",
        Options = new Cpln.Inputs.WorkloadOptionsArgs
        {
            Autoscaling = new Cpln.Inputs.WorkloadOptionsAutoscalingArgs
            {
                MaxConcurrency = 0,
                MaxScale = 0,
                Metric = "string",
                MetricPercentile = "string",
                MinScale = 0,
                ScaleToZeroDelay = 0,
                Target = 0,
            },
            CapacityAi = false,
            Debug = false,
            Suspend = false,
            TimeoutSeconds = 0,
        },
        Gvc = "string",
        LocalOptions = new[]
        {
            new Cpln.Inputs.WorkloadLocalOptionArgs
            {
                Location = "string",
                Autoscaling = new Cpln.Inputs.WorkloadLocalOptionAutoscalingArgs
                {
                    MaxConcurrency = 0,
                    MaxScale = 0,
                    Metric = "string",
                    MetricPercentile = "string",
                    MinScale = 0,
                    ScaleToZeroDelay = 0,
                    Target = 0,
                },
                CapacityAi = false,
                Debug = false,
                Suspend = false,
                TimeoutSeconds = 0,
            },
        },
        Job = new Cpln.Inputs.WorkloadJobArgs
        {
            Schedule = "string",
            ActiveDeadlineSeconds = 0,
            ConcurrencyPolicy = "string",
            HistoryLimit = 0,
            RestartPolicy = "string",
        },
        IdentityLink = "string",
        Name = "string",
        FirewallSpec = new Cpln.Inputs.WorkloadFirewallSpecArgs
        {
            External = new Cpln.Inputs.WorkloadFirewallSpecExternalArgs
            {
                InboundAllowCidrs = new[]
                {
                    "string",
                },
                OutboundAllowCidrs = new[]
                {
                    "string",
                },
                OutboundAllowHostnames = new[]
                {
                    "string",
                },
                OutboundAllowPorts = new[]
                {
                    new Cpln.Inputs.WorkloadFirewallSpecExternalOutboundAllowPortArgs
                    {
                        Number = 0,
                        Protocol = "string",
                    },
                },
            },
            Internal = new Cpln.Inputs.WorkloadFirewallSpecInternalArgs
            {
                InboundAllowType = "string",
                InboundAllowWorkloads = new[]
                {
                    "string",
                },
            },
        },
        RolloutOptions = new Cpln.Inputs.WorkloadRolloutOptionsArgs
        {
            MaxSurgeReplicas = "string",
            MaxUnavailableReplicas = "string",
            MinReadySeconds = 0,
            ScalingPolicy = "string",
        },
        SecurityOptions = new Cpln.Inputs.WorkloadSecurityOptionsArgs
        {
            FileSystemGroupId = 0,
        },
        Sidecar = new Cpln.Inputs.WorkloadSidecarArgs
        {
            Envoy = "string",
        },
        SupportDynamicTags = false,
        Tags = 
        {
            { "string", "string" },
        },
        Description = "string",
    });
    
    example, err := cpln.NewWorkload(ctx, "workloadResource", &cpln.WorkloadArgs{
    	Containers: cpln.WorkloadContainerArray{
    		&cpln.WorkloadContainerArgs{
    			Image: pulumi.String("string"),
    			Name:  pulumi.String("string"),
    			LivenessProbe: &cpln.WorkloadContainerLivenessProbeArgs{
    				Exec: &cpln.WorkloadContainerLivenessProbeExecArgs{
    					Commands: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    				FailureThreshold: pulumi.Int(0),
    				Grpc: &cpln.WorkloadContainerLivenessProbeGrpcArgs{
    					Port: pulumi.Int(0),
    				},
    				HttpGet: &cpln.WorkloadContainerLivenessProbeHttpGetArgs{
    					HttpHeaders: pulumi.StringMap{
    						"string": pulumi.String("string"),
    					},
    					Path:   pulumi.String("string"),
    					Port:   pulumi.Int(0),
    					Scheme: pulumi.String("string"),
    				},
    				InitialDelaySeconds: pulumi.Int(0),
    				PeriodSeconds:       pulumi.Int(0),
    				SuccessThreshold:    pulumi.Int(0),
    				TcpSocket: &cpln.WorkloadContainerLivenessProbeTcpSocketArgs{
    					Port: pulumi.Int(0),
    				},
    				TimeoutSeconds: pulumi.Int(0),
    			},
    			MinCpu: pulumi.String("string"),
    			GpuNvidia: &cpln.WorkloadContainerGpuNvidiaArgs{
    				Model:    pulumi.String("string"),
    				Quantity: pulumi.Int(0),
    			},
    			Cpu:        pulumi.String("string"),
    			InheritEnv: pulumi.Bool(false),
    			Lifecycle: &cpln.WorkloadContainerLifecycleArgs{
    				PostStart: &cpln.WorkloadContainerLifecyclePostStartArgs{
    					Exec: &cpln.WorkloadContainerLifecyclePostStartExecArgs{
    						Commands: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    				PreStop: &cpln.WorkloadContainerLifecyclePreStopArgs{
    					Exec: &cpln.WorkloadContainerLifecyclePreStopExecArgs{
    						Commands: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    			},
    			Args: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Memory: pulumi.String("string"),
    			Metrics: &cpln.WorkloadContainerMetricsArgs{
    				Path: pulumi.String("string"),
    				Port: pulumi.Int(0),
    			},
    			Env: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			MinMemory: pulumi.String("string"),
    			Command:   pulumi.String("string"),
    			Ports: cpln.WorkloadContainerPortArray{
    				&cpln.WorkloadContainerPortArgs{
    					Number:   pulumi.Int(0),
    					Protocol: pulumi.String("string"),
    				},
    			},
    			ReadinessProbe: &cpln.WorkloadContainerReadinessProbeArgs{
    				Exec: &cpln.WorkloadContainerReadinessProbeExecArgs{
    					Commands: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    				FailureThreshold: pulumi.Int(0),
    				Grpc: &cpln.WorkloadContainerReadinessProbeGrpcArgs{
    					Port: pulumi.Int(0),
    				},
    				HttpGet: &cpln.WorkloadContainerReadinessProbeHttpGetArgs{
    					HttpHeaders: pulumi.StringMap{
    						"string": pulumi.String("string"),
    					},
    					Path:   pulumi.String("string"),
    					Port:   pulumi.Int(0),
    					Scheme: pulumi.String("string"),
    				},
    				InitialDelaySeconds: pulumi.Int(0),
    				PeriodSeconds:       pulumi.Int(0),
    				SuccessThreshold:    pulumi.Int(0),
    				TcpSocket: &cpln.WorkloadContainerReadinessProbeTcpSocketArgs{
    					Port: pulumi.Int(0),
    				},
    				TimeoutSeconds: pulumi.Int(0),
    			},
    			Volumes: cpln.WorkloadContainerVolumeArray{
    				&cpln.WorkloadContainerVolumeArgs{
    					Path:           pulumi.String("string"),
    					Uri:            pulumi.String("string"),
    					RecoveryPolicy: pulumi.String("string"),
    				},
    			},
    			WorkingDirectory: pulumi.String("string"),
    		},
    	},
    	Type: pulumi.String("string"),
    	Options: &cpln.WorkloadOptionsArgs{
    		Autoscaling: &cpln.WorkloadOptionsAutoscalingArgs{
    			MaxConcurrency:   pulumi.Int(0),
    			MaxScale:         pulumi.Int(0),
    			Metric:           pulumi.String("string"),
    			MetricPercentile: pulumi.String("string"),
    			MinScale:         pulumi.Int(0),
    			ScaleToZeroDelay: pulumi.Int(0),
    			Target:           pulumi.Int(0),
    		},
    		CapacityAi:     pulumi.Bool(false),
    		Debug:          pulumi.Bool(false),
    		Suspend:        pulumi.Bool(false),
    		TimeoutSeconds: pulumi.Int(0),
    	},
    	Gvc: pulumi.String("string"),
    	LocalOptions: cpln.WorkloadLocalOptionArray{
    		&cpln.WorkloadLocalOptionArgs{
    			Location: pulumi.String("string"),
    			Autoscaling: &cpln.WorkloadLocalOptionAutoscalingArgs{
    				MaxConcurrency:   pulumi.Int(0),
    				MaxScale:         pulumi.Int(0),
    				Metric:           pulumi.String("string"),
    				MetricPercentile: pulumi.String("string"),
    				MinScale:         pulumi.Int(0),
    				ScaleToZeroDelay: pulumi.Int(0),
    				Target:           pulumi.Int(0),
    			},
    			CapacityAi:     pulumi.Bool(false),
    			Debug:          pulumi.Bool(false),
    			Suspend:        pulumi.Bool(false),
    			TimeoutSeconds: pulumi.Int(0),
    		},
    	},
    	Job: &cpln.WorkloadJobArgs{
    		Schedule:              pulumi.String("string"),
    		ActiveDeadlineSeconds: pulumi.Int(0),
    		ConcurrencyPolicy:     pulumi.String("string"),
    		HistoryLimit:          pulumi.Int(0),
    		RestartPolicy:         pulumi.String("string"),
    	},
    	IdentityLink: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	FirewallSpec: &cpln.WorkloadFirewallSpecArgs{
    		External: &cpln.WorkloadFirewallSpecExternalArgs{
    			InboundAllowCidrs: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			OutboundAllowCidrs: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			OutboundAllowHostnames: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			OutboundAllowPorts: cpln.WorkloadFirewallSpecExternalOutboundAllowPortArray{
    				&cpln.WorkloadFirewallSpecExternalOutboundAllowPortArgs{
    					Number:   pulumi.Int(0),
    					Protocol: pulumi.String("string"),
    				},
    			},
    		},
    		Internal: &cpln.WorkloadFirewallSpecInternalArgs{
    			InboundAllowType: pulumi.String("string"),
    			InboundAllowWorkloads: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	RolloutOptions: &cpln.WorkloadRolloutOptionsArgs{
    		MaxSurgeReplicas:       pulumi.String("string"),
    		MaxUnavailableReplicas: pulumi.String("string"),
    		MinReadySeconds:        pulumi.Int(0),
    		ScalingPolicy:          pulumi.String("string"),
    	},
    	SecurityOptions: &cpln.WorkloadSecurityOptionsArgs{
    		FileSystemGroupId: pulumi.Int(0),
    	},
    	Sidecar: &cpln.WorkloadSidecarArgs{
    		Envoy: pulumi.String("string"),
    	},
    	SupportDynamicTags: pulumi.Bool(false),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    })
    
    var workloadResource = new Workload("workloadResource", WorkloadArgs.builder()
        .containers(WorkloadContainerArgs.builder()
            .image("string")
            .name("string")
            .livenessProbe(WorkloadContainerLivenessProbeArgs.builder()
                .exec(WorkloadContainerLivenessProbeExecArgs.builder()
                    .commands("string")
                    .build())
                .failureThreshold(0)
                .grpc(WorkloadContainerLivenessProbeGrpcArgs.builder()
                    .port(0)
                    .build())
                .httpGet(WorkloadContainerLivenessProbeHttpGetArgs.builder()
                    .httpHeaders(Map.of("string", "string"))
                    .path("string")
                    .port(0)
                    .scheme("string")
                    .build())
                .initialDelaySeconds(0)
                .periodSeconds(0)
                .successThreshold(0)
                .tcpSocket(WorkloadContainerLivenessProbeTcpSocketArgs.builder()
                    .port(0)
                    .build())
                .timeoutSeconds(0)
                .build())
            .minCpu("string")
            .gpuNvidia(WorkloadContainerGpuNvidiaArgs.builder()
                .model("string")
                .quantity(0)
                .build())
            .cpu("string")
            .inheritEnv(false)
            .lifecycle(WorkloadContainerLifecycleArgs.builder()
                .postStart(WorkloadContainerLifecyclePostStartArgs.builder()
                    .exec(WorkloadContainerLifecyclePostStartExecArgs.builder()
                        .commands("string")
                        .build())
                    .build())
                .preStop(WorkloadContainerLifecyclePreStopArgs.builder()
                    .exec(WorkloadContainerLifecyclePreStopExecArgs.builder()
                        .commands("string")
                        .build())
                    .build())
                .build())
            .args("string")
            .memory("string")
            .metrics(WorkloadContainerMetricsArgs.builder()
                .path("string")
                .port(0)
                .build())
            .env(Map.of("string", "string"))
            .minMemory("string")
            .command("string")
            .ports(WorkloadContainerPortArgs.builder()
                .number(0)
                .protocol("string")
                .build())
            .readinessProbe(WorkloadContainerReadinessProbeArgs.builder()
                .exec(WorkloadContainerReadinessProbeExecArgs.builder()
                    .commands("string")
                    .build())
                .failureThreshold(0)
                .grpc(WorkloadContainerReadinessProbeGrpcArgs.builder()
                    .port(0)
                    .build())
                .httpGet(WorkloadContainerReadinessProbeHttpGetArgs.builder()
                    .httpHeaders(Map.of("string", "string"))
                    .path("string")
                    .port(0)
                    .scheme("string")
                    .build())
                .initialDelaySeconds(0)
                .periodSeconds(0)
                .successThreshold(0)
                .tcpSocket(WorkloadContainerReadinessProbeTcpSocketArgs.builder()
                    .port(0)
                    .build())
                .timeoutSeconds(0)
                .build())
            .volumes(WorkloadContainerVolumeArgs.builder()
                .path("string")
                .uri("string")
                .recoveryPolicy("string")
                .build())
            .workingDirectory("string")
            .build())
        .type("string")
        .options(WorkloadOptionsArgs.builder()
            .autoscaling(WorkloadOptionsAutoscalingArgs.builder()
                .maxConcurrency(0)
                .maxScale(0)
                .metric("string")
                .metricPercentile("string")
                .minScale(0)
                .scaleToZeroDelay(0)
                .target(0)
                .build())
            .capacityAi(false)
            .debug(false)
            .suspend(false)
            .timeoutSeconds(0)
            .build())
        .gvc("string")
        .localOptions(WorkloadLocalOptionArgs.builder()
            .location("string")
            .autoscaling(WorkloadLocalOptionAutoscalingArgs.builder()
                .maxConcurrency(0)
                .maxScale(0)
                .metric("string")
                .metricPercentile("string")
                .minScale(0)
                .scaleToZeroDelay(0)
                .target(0)
                .build())
            .capacityAi(false)
            .debug(false)
            .suspend(false)
            .timeoutSeconds(0)
            .build())
        .job(WorkloadJobArgs.builder()
            .schedule("string")
            .activeDeadlineSeconds(0)
            .concurrencyPolicy("string")
            .historyLimit(0)
            .restartPolicy("string")
            .build())
        .identityLink("string")
        .name("string")
        .firewallSpec(WorkloadFirewallSpecArgs.builder()
            .external(WorkloadFirewallSpecExternalArgs.builder()
                .inboundAllowCidrs("string")
                .outboundAllowCidrs("string")
                .outboundAllowHostnames("string")
                .outboundAllowPorts(WorkloadFirewallSpecExternalOutboundAllowPortArgs.builder()
                    .number(0)
                    .protocol("string")
                    .build())
                .build())
            .internal(WorkloadFirewallSpecInternalArgs.builder()
                .inboundAllowType("string")
                .inboundAllowWorkloads("string")
                .build())
            .build())
        .rolloutOptions(WorkloadRolloutOptionsArgs.builder()
            .maxSurgeReplicas("string")
            .maxUnavailableReplicas("string")
            .minReadySeconds(0)
            .scalingPolicy("string")
            .build())
        .securityOptions(WorkloadSecurityOptionsArgs.builder()
            .fileSystemGroupId(0)
            .build())
        .sidecar(WorkloadSidecarArgs.builder()
            .envoy("string")
            .build())
        .supportDynamicTags(false)
        .tags(Map.of("string", "string"))
        .description("string")
        .build());
    
    workload_resource = cpln.Workload("workloadResource",
        containers=[cpln.WorkloadContainerArgs(
            image="string",
            name="string",
            liveness_probe=cpln.WorkloadContainerLivenessProbeArgs(
                exec_=cpln.WorkloadContainerLivenessProbeExecArgs(
                    commands=["string"],
                ),
                failure_threshold=0,
                grpc=cpln.WorkloadContainerLivenessProbeGrpcArgs(
                    port=0,
                ),
                http_get=cpln.WorkloadContainerLivenessProbeHttpGetArgs(
                    http_headers={
                        "string": "string",
                    },
                    path="string",
                    port=0,
                    scheme="string",
                ),
                initial_delay_seconds=0,
                period_seconds=0,
                success_threshold=0,
                tcp_socket=cpln.WorkloadContainerLivenessProbeTcpSocketArgs(
                    port=0,
                ),
                timeout_seconds=0,
            ),
            min_cpu="string",
            gpu_nvidia=cpln.WorkloadContainerGpuNvidiaArgs(
                model="string",
                quantity=0,
            ),
            cpu="string",
            inherit_env=False,
            lifecycle=cpln.WorkloadContainerLifecycleArgs(
                post_start=cpln.WorkloadContainerLifecyclePostStartArgs(
                    exec_=cpln.WorkloadContainerLifecyclePostStartExecArgs(
                        commands=["string"],
                    ),
                ),
                pre_stop=cpln.WorkloadContainerLifecyclePreStopArgs(
                    exec_=cpln.WorkloadContainerLifecyclePreStopExecArgs(
                        commands=["string"],
                    ),
                ),
            ),
            args=["string"],
            memory="string",
            metrics=cpln.WorkloadContainerMetricsArgs(
                path="string",
                port=0,
            ),
            env={
                "string": "string",
            },
            min_memory="string",
            command="string",
            ports=[cpln.WorkloadContainerPortArgs(
                number=0,
                protocol="string",
            )],
            readiness_probe=cpln.WorkloadContainerReadinessProbeArgs(
                exec_=cpln.WorkloadContainerReadinessProbeExecArgs(
                    commands=["string"],
                ),
                failure_threshold=0,
                grpc=cpln.WorkloadContainerReadinessProbeGrpcArgs(
                    port=0,
                ),
                http_get=cpln.WorkloadContainerReadinessProbeHttpGetArgs(
                    http_headers={
                        "string": "string",
                    },
                    path="string",
                    port=0,
                    scheme="string",
                ),
                initial_delay_seconds=0,
                period_seconds=0,
                success_threshold=0,
                tcp_socket=cpln.WorkloadContainerReadinessProbeTcpSocketArgs(
                    port=0,
                ),
                timeout_seconds=0,
            ),
            volumes=[cpln.WorkloadContainerVolumeArgs(
                path="string",
                uri="string",
                recovery_policy="string",
            )],
            working_directory="string",
        )],
        type="string",
        options=cpln.WorkloadOptionsArgs(
            autoscaling=cpln.WorkloadOptionsAutoscalingArgs(
                max_concurrency=0,
                max_scale=0,
                metric="string",
                metric_percentile="string",
                min_scale=0,
                scale_to_zero_delay=0,
                target=0,
            ),
            capacity_ai=False,
            debug=False,
            suspend=False,
            timeout_seconds=0,
        ),
        gvc="string",
        local_options=[cpln.WorkloadLocalOptionArgs(
            location="string",
            autoscaling=cpln.WorkloadLocalOptionAutoscalingArgs(
                max_concurrency=0,
                max_scale=0,
                metric="string",
                metric_percentile="string",
                min_scale=0,
                scale_to_zero_delay=0,
                target=0,
            ),
            capacity_ai=False,
            debug=False,
            suspend=False,
            timeout_seconds=0,
        )],
        job=cpln.WorkloadJobArgs(
            schedule="string",
            active_deadline_seconds=0,
            concurrency_policy="string",
            history_limit=0,
            restart_policy="string",
        ),
        identity_link="string",
        name="string",
        firewall_spec=cpln.WorkloadFirewallSpecArgs(
            external=cpln.WorkloadFirewallSpecExternalArgs(
                inbound_allow_cidrs=["string"],
                outbound_allow_cidrs=["string"],
                outbound_allow_hostnames=["string"],
                outbound_allow_ports=[cpln.WorkloadFirewallSpecExternalOutboundAllowPortArgs(
                    number=0,
                    protocol="string",
                )],
            ),
            internal=cpln.WorkloadFirewallSpecInternalArgs(
                inbound_allow_type="string",
                inbound_allow_workloads=["string"],
            ),
        ),
        rollout_options=cpln.WorkloadRolloutOptionsArgs(
            max_surge_replicas="string",
            max_unavailable_replicas="string",
            min_ready_seconds=0,
            scaling_policy="string",
        ),
        security_options=cpln.WorkloadSecurityOptionsArgs(
            file_system_group_id=0,
        ),
        sidecar=cpln.WorkloadSidecarArgs(
            envoy="string",
        ),
        support_dynamic_tags=False,
        tags={
            "string": "string",
        },
        description="string")
    
    const workloadResource = new cpln.Workload("workloadResource", {
        containers: [{
            image: "string",
            name: "string",
            livenessProbe: {
                exec: {
                    commands: ["string"],
                },
                failureThreshold: 0,
                grpc: {
                    port: 0,
                },
                httpGet: {
                    httpHeaders: {
                        string: "string",
                    },
                    path: "string",
                    port: 0,
                    scheme: "string",
                },
                initialDelaySeconds: 0,
                periodSeconds: 0,
                successThreshold: 0,
                tcpSocket: {
                    port: 0,
                },
                timeoutSeconds: 0,
            },
            minCpu: "string",
            gpuNvidia: {
                model: "string",
                quantity: 0,
            },
            cpu: "string",
            inheritEnv: false,
            lifecycle: {
                postStart: {
                    exec: {
                        commands: ["string"],
                    },
                },
                preStop: {
                    exec: {
                        commands: ["string"],
                    },
                },
            },
            args: ["string"],
            memory: "string",
            metrics: {
                path: "string",
                port: 0,
            },
            env: {
                string: "string",
            },
            minMemory: "string",
            command: "string",
            ports: [{
                number: 0,
                protocol: "string",
            }],
            readinessProbe: {
                exec: {
                    commands: ["string"],
                },
                failureThreshold: 0,
                grpc: {
                    port: 0,
                },
                httpGet: {
                    httpHeaders: {
                        string: "string",
                    },
                    path: "string",
                    port: 0,
                    scheme: "string",
                },
                initialDelaySeconds: 0,
                periodSeconds: 0,
                successThreshold: 0,
                tcpSocket: {
                    port: 0,
                },
                timeoutSeconds: 0,
            },
            volumes: [{
                path: "string",
                uri: "string",
                recoveryPolicy: "string",
            }],
            workingDirectory: "string",
        }],
        type: "string",
        options: {
            autoscaling: {
                maxConcurrency: 0,
                maxScale: 0,
                metric: "string",
                metricPercentile: "string",
                minScale: 0,
                scaleToZeroDelay: 0,
                target: 0,
            },
            capacityAi: false,
            debug: false,
            suspend: false,
            timeoutSeconds: 0,
        },
        gvc: "string",
        localOptions: [{
            location: "string",
            autoscaling: {
                maxConcurrency: 0,
                maxScale: 0,
                metric: "string",
                metricPercentile: "string",
                minScale: 0,
                scaleToZeroDelay: 0,
                target: 0,
            },
            capacityAi: false,
            debug: false,
            suspend: false,
            timeoutSeconds: 0,
        }],
        job: {
            schedule: "string",
            activeDeadlineSeconds: 0,
            concurrencyPolicy: "string",
            historyLimit: 0,
            restartPolicy: "string",
        },
        identityLink: "string",
        name: "string",
        firewallSpec: {
            external: {
                inboundAllowCidrs: ["string"],
                outboundAllowCidrs: ["string"],
                outboundAllowHostnames: ["string"],
                outboundAllowPorts: [{
                    number: 0,
                    protocol: "string",
                }],
            },
            internal: {
                inboundAllowType: "string",
                inboundAllowWorkloads: ["string"],
            },
        },
        rolloutOptions: {
            maxSurgeReplicas: "string",
            maxUnavailableReplicas: "string",
            minReadySeconds: 0,
            scalingPolicy: "string",
        },
        securityOptions: {
            fileSystemGroupId: 0,
        },
        sidecar: {
            envoy: "string",
        },
        supportDynamicTags: false,
        tags: {
            string: "string",
        },
        description: "string",
    });
    
    type: cpln:Workload
    properties:
        containers:
            - args:
                - string
              command: string
              cpu: string
              env:
                string: string
              gpuNvidia:
                model: string
                quantity: 0
              image: string
              inheritEnv: false
              lifecycle:
                postStart:
                    exec:
                        commands:
                            - string
                preStop:
                    exec:
                        commands:
                            - string
              livenessProbe:
                exec:
                    commands:
                        - string
                failureThreshold: 0
                grpc:
                    port: 0
                httpGet:
                    httpHeaders:
                        string: string
                    path: string
                    port: 0
                    scheme: string
                initialDelaySeconds: 0
                periodSeconds: 0
                successThreshold: 0
                tcpSocket:
                    port: 0
                timeoutSeconds: 0
              memory: string
              metrics:
                path: string
                port: 0
              minCpu: string
              minMemory: string
              name: string
              ports:
                - number: 0
                  protocol: string
              readinessProbe:
                exec:
                    commands:
                        - string
                failureThreshold: 0
                grpc:
                    port: 0
                httpGet:
                    httpHeaders:
                        string: string
                    path: string
                    port: 0
                    scheme: string
                initialDelaySeconds: 0
                periodSeconds: 0
                successThreshold: 0
                tcpSocket:
                    port: 0
                timeoutSeconds: 0
              volumes:
                - path: string
                  recoveryPolicy: string
                  uri: string
              workingDirectory: string
        description: string
        firewallSpec:
            external:
                inboundAllowCidrs:
                    - string
                outboundAllowCidrs:
                    - string
                outboundAllowHostnames:
                    - string
                outboundAllowPorts:
                    - number: 0
                      protocol: string
            internal:
                inboundAllowType: string
                inboundAllowWorkloads:
                    - string
        gvc: string
        identityLink: string
        job:
            activeDeadlineSeconds: 0
            concurrencyPolicy: string
            historyLimit: 0
            restartPolicy: string
            schedule: string
        localOptions:
            - autoscaling:
                maxConcurrency: 0
                maxScale: 0
                metric: string
                metricPercentile: string
                minScale: 0
                scaleToZeroDelay: 0
                target: 0
              capacityAi: false
              debug: false
              location: string
              suspend: false
              timeoutSeconds: 0
        name: string
        options:
            autoscaling:
                maxConcurrency: 0
                maxScale: 0
                metric: string
                metricPercentile: string
                minScale: 0
                scaleToZeroDelay: 0
                target: 0
            capacityAi: false
            debug: false
            suspend: false
            timeoutSeconds: 0
        rolloutOptions:
            maxSurgeReplicas: string
            maxUnavailableReplicas: string
            minReadySeconds: 0
            scalingPolicy: string
        securityOptions:
            fileSystemGroupId: 0
        sidecar:
            envoy: string
        supportDynamicTags: false
        tags:
            string: string
        type: string
    

    Workload Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Workload resource accepts the following input properties:

    Containers List<Pulumiverse.Cpln.Inputs.WorkloadContainer>
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    Gvc string
    Name of the associated GVC.
    Options Pulumiverse.Cpln.Inputs.WorkloadOptions
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    Type string
    Workload Type. Either serverless, standard, stateful, or cron.
    Description string
    Description of the Workload.
    FirewallSpec Pulumiverse.Cpln.Inputs.WorkloadFirewallSpec
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    IdentityLink string
    Full link to an Identity.
    Job Pulumiverse.Cpln.Inputs.WorkloadJob
    Cron Job Reference Page.
    LocalOptions List<Pulumiverse.Cpln.Inputs.WorkloadLocalOption>
    Name string
    Name of the Workload.
    RolloutOptions Pulumiverse.Cpln.Inputs.WorkloadRolloutOptions
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    SecurityOptions Pulumiverse.Cpln.Inputs.WorkloadSecurityOptions
    Allows for the configuration of the file system group id
    Sidecar Pulumiverse.Cpln.Inputs.WorkloadSidecar
    SupportDynamicTags bool
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    Containers []WorkloadContainerArgs
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    Gvc string
    Name of the associated GVC.
    Options WorkloadOptionsArgs
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    Type string
    Workload Type. Either serverless, standard, stateful, or cron.
    Description string
    Description of the Workload.
    FirewallSpec WorkloadFirewallSpecArgs
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    IdentityLink string
    Full link to an Identity.
    Job WorkloadJobArgs
    Cron Job Reference Page.
    LocalOptions []WorkloadLocalOptionArgs
    Name string
    Name of the Workload.
    RolloutOptions WorkloadRolloutOptionsArgs
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    SecurityOptions WorkloadSecurityOptionsArgs
    Allows for the configuration of the file system group id
    Sidecar WorkloadSidecarArgs
    SupportDynamicTags bool
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    Tags map[string]string
    Key-value map of resource tags.
    containers List<WorkloadContainer>
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    gvc String
    Name of the associated GVC.
    options WorkloadOptions
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    type String
    Workload Type. Either serverless, standard, stateful, or cron.
    description String
    Description of the Workload.
    firewallSpec WorkloadFirewallSpec
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    identityLink String
    Full link to an Identity.
    job WorkloadJob
    Cron Job Reference Page.
    localOptions List<WorkloadLocalOption>
    name String
    Name of the Workload.
    rolloutOptions WorkloadRolloutOptions
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    securityOptions WorkloadSecurityOptions
    Allows for the configuration of the file system group id
    sidecar WorkloadSidecar
    supportDynamicTags Boolean
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags Map<String,String>
    Key-value map of resource tags.
    containers WorkloadContainer[]
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    gvc string
    Name of the associated GVC.
    options WorkloadOptions
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    type string
    Workload Type. Either serverless, standard, stateful, or cron.
    description string
    Description of the Workload.
    firewallSpec WorkloadFirewallSpec
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    identityLink string
    Full link to an Identity.
    job WorkloadJob
    Cron Job Reference Page.
    localOptions WorkloadLocalOption[]
    name string
    Name of the Workload.
    rolloutOptions WorkloadRolloutOptions
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    securityOptions WorkloadSecurityOptions
    Allows for the configuration of the file system group id
    sidecar WorkloadSidecar
    supportDynamicTags boolean
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags {[key: string]: string}
    Key-value map of resource tags.
    containers Sequence[WorkloadContainerArgs]
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    gvc str
    Name of the associated GVC.
    options WorkloadOptionsArgs
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    type str
    Workload Type. Either serverless, standard, stateful, or cron.
    description str
    Description of the Workload.
    firewall_spec WorkloadFirewallSpecArgs
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    identity_link str
    Full link to an Identity.
    job WorkloadJobArgs
    Cron Job Reference Page.
    local_options Sequence[WorkloadLocalOptionArgs]
    name str
    Name of the Workload.
    rollout_options WorkloadRolloutOptionsArgs
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    security_options WorkloadSecurityOptionsArgs
    Allows for the configuration of the file system group id
    sidecar WorkloadSidecarArgs
    support_dynamic_tags bool
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags Mapping[str, str]
    Key-value map of resource tags.
    containers List<Property Map>
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    gvc String
    Name of the associated GVC.
    options Property Map
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    type String
    Workload Type. Either serverless, standard, stateful, or cron.
    description String
    Description of the Workload.
    firewallSpec Property Map
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    identityLink String
    Full link to an Identity.
    job Property Map
    Cron Job Reference Page.
    localOptions List<Property Map>
    name String
    Name of the Workload.
    rolloutOptions Property Map
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    securityOptions Property Map
    Allows for the configuration of the file system group id
    sidecar Property Map
    supportDynamicTags Boolean
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags Map<String>
    Key-value map of resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Workload resource produces the following output properties:

    CplnId string
    The ID, in GUID format, of the Workload.
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    Statuses List<Pulumiverse.Cpln.Outputs.WorkloadStatus>
    Status of the workload.
    CplnId string
    The ID, in GUID format, of the Workload.
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    Statuses []WorkloadStatus
    Status of the workload.
    cplnId String
    The ID, in GUID format, of the Workload.
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    statuses List<WorkloadStatus>
    Status of the workload.
    cplnId string
    The ID, in GUID format, of the Workload.
    id string
    The provider-assigned unique ID for this managed resource.
    selfLink string
    Full link to this resource. Can be referenced by other resources.
    statuses WorkloadStatus[]
    Status of the workload.
    cpln_id str
    The ID, in GUID format, of the Workload.
    id str
    The provider-assigned unique ID for this managed resource.
    self_link str
    Full link to this resource. Can be referenced by other resources.
    statuses Sequence[WorkloadStatus]
    Status of the workload.
    cplnId String
    The ID, in GUID format, of the Workload.
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    statuses List<Property Map>
    Status of the workload.

    Look up Existing Workload Resource

    Get an existing Workload 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?: WorkloadState, opts?: CustomResourceOptions): Workload
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            containers: Optional[Sequence[WorkloadContainerArgs]] = None,
            cpln_id: Optional[str] = None,
            description: Optional[str] = None,
            firewall_spec: Optional[WorkloadFirewallSpecArgs] = None,
            gvc: Optional[str] = None,
            identity_link: Optional[str] = None,
            job: Optional[WorkloadJobArgs] = None,
            local_options: Optional[Sequence[WorkloadLocalOptionArgs]] = None,
            name: Optional[str] = None,
            options: Optional[WorkloadOptionsArgs] = None,
            rollout_options: Optional[WorkloadRolloutOptionsArgs] = None,
            security_options: Optional[WorkloadSecurityOptionsArgs] = None,
            self_link: Optional[str] = None,
            sidecar: Optional[WorkloadSidecarArgs] = None,
            statuses: Optional[Sequence[WorkloadStatusArgs]] = None,
            support_dynamic_tags: Optional[bool] = None,
            tags: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None) -> Workload
    func GetWorkload(ctx *Context, name string, id IDInput, state *WorkloadState, opts ...ResourceOption) (*Workload, error)
    public static Workload Get(string name, Input<string> id, WorkloadState? state, CustomResourceOptions? opts = null)
    public static Workload get(String name, Output<String> id, WorkloadState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Containers List<Pulumiverse.Cpln.Inputs.WorkloadContainer>
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    CplnId string
    The ID, in GUID format, of the Workload.
    Description string
    Description of the Workload.
    FirewallSpec Pulumiverse.Cpln.Inputs.WorkloadFirewallSpec
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    Gvc string
    Name of the associated GVC.
    IdentityLink string
    Full link to an Identity.
    Job Pulumiverse.Cpln.Inputs.WorkloadJob
    Cron Job Reference Page.
    LocalOptions List<Pulumiverse.Cpln.Inputs.WorkloadLocalOption>
    Name string
    Name of the Workload.
    Options Pulumiverse.Cpln.Inputs.WorkloadOptions
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    RolloutOptions Pulumiverse.Cpln.Inputs.WorkloadRolloutOptions
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    SecurityOptions Pulumiverse.Cpln.Inputs.WorkloadSecurityOptions
    Allows for the configuration of the file system group id
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    Sidecar Pulumiverse.Cpln.Inputs.WorkloadSidecar
    Statuses List<Pulumiverse.Cpln.Inputs.WorkloadStatus>
    Status of the workload.
    SupportDynamicTags bool
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    Type string
    Workload Type. Either serverless, standard, stateful, or cron.
    Containers []WorkloadContainerArgs
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    CplnId string
    The ID, in GUID format, of the Workload.
    Description string
    Description of the Workload.
    FirewallSpec WorkloadFirewallSpecArgs
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    Gvc string
    Name of the associated GVC.
    IdentityLink string
    Full link to an Identity.
    Job WorkloadJobArgs
    Cron Job Reference Page.
    LocalOptions []WorkloadLocalOptionArgs
    Name string
    Name of the Workload.
    Options WorkloadOptionsArgs
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    RolloutOptions WorkloadRolloutOptionsArgs
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    SecurityOptions WorkloadSecurityOptionsArgs
    Allows for the configuration of the file system group id
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    Sidecar WorkloadSidecarArgs
    Statuses []WorkloadStatusArgs
    Status of the workload.
    SupportDynamicTags bool
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    Tags map[string]string
    Key-value map of resource tags.
    Type string
    Workload Type. Either serverless, standard, stateful, or cron.
    containers List<WorkloadContainer>
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    cplnId String
    The ID, in GUID format, of the Workload.
    description String
    Description of the Workload.
    firewallSpec WorkloadFirewallSpec
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    gvc String
    Name of the associated GVC.
    identityLink String
    Full link to an Identity.
    job WorkloadJob
    Cron Job Reference Page.
    localOptions List<WorkloadLocalOption>
    name String
    Name of the Workload.
    options WorkloadOptions
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    rolloutOptions WorkloadRolloutOptions
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    securityOptions WorkloadSecurityOptions
    Allows for the configuration of the file system group id
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    sidecar WorkloadSidecar
    statuses List<WorkloadStatus>
    Status of the workload.
    supportDynamicTags Boolean
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags Map<String,String>
    Key-value map of resource tags.
    type String
    Workload Type. Either serverless, standard, stateful, or cron.
    containers WorkloadContainer[]
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    cplnId string
    The ID, in GUID format, of the Workload.
    description string
    Description of the Workload.
    firewallSpec WorkloadFirewallSpec
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    gvc string
    Name of the associated GVC.
    identityLink string
    Full link to an Identity.
    job WorkloadJob
    Cron Job Reference Page.
    localOptions WorkloadLocalOption[]
    name string
    Name of the Workload.
    options WorkloadOptions
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    rolloutOptions WorkloadRolloutOptions
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    securityOptions WorkloadSecurityOptions
    Allows for the configuration of the file system group id
    selfLink string
    Full link to this resource. Can be referenced by other resources.
    sidecar WorkloadSidecar
    statuses WorkloadStatus[]
    Status of the workload.
    supportDynamicTags boolean
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags {[key: string]: string}
    Key-value map of resource tags.
    type string
    Workload Type. Either serverless, standard, stateful, or cron.
    containers Sequence[WorkloadContainerArgs]
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    cpln_id str
    The ID, in GUID format, of the Workload.
    description str
    Description of the Workload.
    firewall_spec WorkloadFirewallSpecArgs
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    gvc str
    Name of the associated GVC.
    identity_link str
    Full link to an Identity.
    job WorkloadJobArgs
    Cron Job Reference Page.
    local_options Sequence[WorkloadLocalOptionArgs]
    name str
    Name of the Workload.
    options WorkloadOptionsArgs
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    rollout_options WorkloadRolloutOptionsArgs
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    security_options WorkloadSecurityOptionsArgs
    Allows for the configuration of the file system group id
    self_link str
    Full link to this resource. Can be referenced by other resources.
    sidecar WorkloadSidecarArgs
    statuses Sequence[WorkloadStatusArgs]
    Status of the workload.
    support_dynamic_tags bool
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags Mapping[str, str]
    Key-value map of resource tags.
    type str
    Workload Type. Either serverless, standard, stateful, or cron.
    containers List<Property Map>
    An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
    cplnId String
    The ID, in GUID format, of the Workload.
    description String
    Description of the Workload.
    firewallSpec Property Map
    Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
    gvc String
    Name of the associated GVC.
    identityLink String
    Full link to an Identity.
    job Property Map
    Cron Job Reference Page.
    localOptions List<Property Map>
    name String
    Name of the Workload.
    options Property Map
    Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
    rolloutOptions Property Map
    Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
    securityOptions Property Map
    Allows for the configuration of the file system group id
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    sidecar Property Map
    statuses List<Property Map>
    Status of the workload.
    supportDynamicTags Boolean
    Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
    tags Map<String>
    Key-value map of resource tags.
    type String
    Workload Type. Either serverless, standard, stateful, or cron.

    Supporting Types

    WorkloadContainer, WorkloadContainerArgs

    image String
    name String
    args List<String>
    command String
    cpu String
    env Map<String,String>
    gpuNvidia WorkloadContainerGpuNvidia
    inheritEnv Boolean
    lifecycle WorkloadContainerLifecycle
    livenessProbe WorkloadContainerLivenessProbe
    memory String
    metrics WorkloadContainerMetrics
    minCpu String
    minMemory String
    port Integer

    Deprecated: The 'port' attribute will be deprecated in the next major version. Use the 'ports' attribute instead.

    ports List<WorkloadContainerPort>
    readinessProbe WorkloadContainerReadinessProbe
    volumes List<WorkloadContainerVolume>
    workingDirectory String
    image string
    name string
    args string[]
    command string
    cpu string
    env {[key: string]: string}
    gpuNvidia WorkloadContainerGpuNvidia
    inheritEnv boolean
    lifecycle WorkloadContainerLifecycle
    livenessProbe WorkloadContainerLivenessProbe
    memory string
    metrics WorkloadContainerMetrics
    minCpu string
    minMemory string
    port number

    Deprecated: The 'port' attribute will be deprecated in the next major version. Use the 'ports' attribute instead.

    ports WorkloadContainerPort[]
    readinessProbe WorkloadContainerReadinessProbe
    volumes WorkloadContainerVolume[]
    workingDirectory string
    image String
    name String
    args List<String>
    command String
    cpu String
    env Map<String>
    gpuNvidia Property Map
    inheritEnv Boolean
    lifecycle Property Map
    livenessProbe Property Map
    memory String
    metrics Property Map
    minCpu String
    minMemory String
    port Number

    Deprecated: The 'port' attribute will be deprecated in the next major version. Use the 'ports' attribute instead.

    ports List<Property Map>
    readinessProbe Property Map
    volumes List<Property Map>
    workingDirectory String

    WorkloadContainerGpuNvidia, WorkloadContainerGpuNvidiaArgs

    Model string
    Quantity int
    Model string
    Quantity int
    model String
    quantity Integer
    model string
    quantity number
    model String
    quantity Number

    WorkloadContainerLifecycle, WorkloadContainerLifecycleArgs

    WorkloadContainerLifecyclePostStart, WorkloadContainerLifecyclePostStartArgs

    WorkloadContainerLifecyclePostStartExec, WorkloadContainerLifecyclePostStartExecArgs

    Commands List<string>
    Commands []string
    commands List<String>
    commands string[]
    commands Sequence[str]
    commands List<String>

    WorkloadContainerLifecyclePreStop, WorkloadContainerLifecyclePreStopArgs

    WorkloadContainerLifecyclePreStopExec, WorkloadContainerLifecyclePreStopExecArgs

    Commands List<string>
    Commands []string
    commands List<String>
    commands string[]
    commands Sequence[str]
    commands List<String>

    WorkloadContainerLivenessProbe, WorkloadContainerLivenessProbeArgs

    WorkloadContainerLivenessProbeExec, WorkloadContainerLivenessProbeExecArgs

    Commands List<string>
    Commands []string
    commands List<String>
    commands string[]
    commands Sequence[str]
    commands List<String>

    WorkloadContainerLivenessProbeGrpc, WorkloadContainerLivenessProbeGrpcArgs

    Port int
    Port int
    port Integer
    port number
    port int
    port Number

    WorkloadContainerLivenessProbeHttpGet, WorkloadContainerLivenessProbeHttpGetArgs

    HttpHeaders Dictionary<string, string>
    Path string
    Port int
    Scheme string
    HttpHeaders map[string]string
    Path string
    Port int
    Scheme string
    httpHeaders Map<String,String>
    path String
    port Integer
    scheme String
    httpHeaders {[key: string]: string}
    path string
    port number
    scheme string
    http_headers Mapping[str, str]
    path str
    port int
    scheme str
    httpHeaders Map<String>
    path String
    port Number
    scheme String

    WorkloadContainerLivenessProbeTcpSocket, WorkloadContainerLivenessProbeTcpSocketArgs

    Port int
    Port int
    port Integer
    port number
    port int
    port Number

    WorkloadContainerMetrics, WorkloadContainerMetricsArgs

    Path string
    Port int
    Path string
    Port int
    path String
    port Integer
    path string
    port number
    path str
    port int
    path String
    port Number

    WorkloadContainerPort, WorkloadContainerPortArgs

    Number int
    Protocol string
    Number int
    Protocol string
    number Integer
    protocol String
    number number
    protocol string
    number Number
    protocol String

    WorkloadContainerReadinessProbe, WorkloadContainerReadinessProbeArgs

    WorkloadContainerReadinessProbeExec, WorkloadContainerReadinessProbeExecArgs

    Commands List<string>
    Commands []string
    commands List<String>
    commands string[]
    commands Sequence[str]
    commands List<String>

    WorkloadContainerReadinessProbeGrpc, WorkloadContainerReadinessProbeGrpcArgs

    Port int
    Port int
    port Integer
    port number
    port int
    port Number

    WorkloadContainerReadinessProbeHttpGet, WorkloadContainerReadinessProbeHttpGetArgs

    HttpHeaders Dictionary<string, string>
    Path string
    Port int
    Scheme string
    HttpHeaders map[string]string
    Path string
    Port int
    Scheme string
    httpHeaders Map<String,String>
    path String
    port Integer
    scheme String
    httpHeaders {[key: string]: string}
    path string
    port number
    scheme string
    http_headers Mapping[str, str]
    path str
    port int
    scheme str
    httpHeaders Map<String>
    path String
    port Number
    scheme String

    WorkloadContainerReadinessProbeTcpSocket, WorkloadContainerReadinessProbeTcpSocketArgs

    Port int
    Port int
    port Integer
    port number
    port int
    port Number

    WorkloadContainerVolume, WorkloadContainerVolumeArgs

    Path string
    Uri string
    RecoveryPolicy string
    Path string
    Uri string
    RecoveryPolicy string
    path String
    uri String
    recoveryPolicy String
    path string
    uri string
    recoveryPolicy string
    path String
    uri String
    recoveryPolicy String

    WorkloadFirewallSpec, WorkloadFirewallSpecArgs

    WorkloadFirewallSpecExternal, WorkloadFirewallSpecExternalArgs

    WorkloadFirewallSpecExternalOutboundAllowPort, WorkloadFirewallSpecExternalOutboundAllowPortArgs

    Number int
    Protocol string
    Number int
    Protocol string
    number Integer
    protocol String
    number number
    protocol string
    number Number
    protocol String

    WorkloadFirewallSpecInternal, WorkloadFirewallSpecInternalArgs

    WorkloadJob, WorkloadJobArgs

    WorkloadLocalOption, WorkloadLocalOptionArgs

    WorkloadLocalOptionAutoscaling, WorkloadLocalOptionAutoscalingArgs

    maxConcurrency Integer
    maxScale Integer
    metric String
    metricPercentile String
    minScale Integer
    scaleToZeroDelay Integer
    target Integer

    WorkloadOptions, WorkloadOptionsArgs

    WorkloadOptionsAutoscaling, WorkloadOptionsAutoscalingArgs

    maxConcurrency Integer
    maxScale Integer
    metric String
    metricPercentile String
    minScale Integer
    scaleToZeroDelay Integer
    target Integer

    WorkloadRolloutOptions, WorkloadRolloutOptionsArgs

    WorkloadSecurityOptions, WorkloadSecurityOptionsArgs

    WorkloadSidecar, WorkloadSidecarArgs

    Envoy string
    Envoy string
    envoy String
    envoy string
    envoy str
    envoy String

    WorkloadStatus, WorkloadStatusArgs

    WorkloadStatusHealthCheck, WorkloadStatusHealthCheckArgs

    Active bool
    Code int
    Failures int
    LastChecked string
    Message string
    Success bool
    Successes int
    Active bool
    Code int
    Failures int
    LastChecked string
    Message string
    Success bool
    Successes int
    active Boolean
    code Integer
    failures Integer
    lastChecked String
    message String
    success Boolean
    successes Integer
    active boolean
    code number
    failures number
    lastChecked string
    message string
    success boolean
    successes number
    active Boolean
    code Number
    failures Number
    lastChecked String
    message String
    success Boolean
    successes Number

    WorkloadStatusResolvedImage, WorkloadStatusResolvedImageArgs

    WorkloadStatusResolvedImageImage, WorkloadStatusResolvedImageImageArgs

    WorkloadStatusResolvedImageImageManifest, WorkloadStatusResolvedImageImageManifestArgs

    Digest string
    Image string
    MediaType string
    Platform Dictionary<string, string>
    Digest string
    Image string
    MediaType string
    Platform map[string]string
    digest String
    image String
    mediaType String
    platform Map<String,String>
    digest string
    image string
    mediaType string
    platform {[key: string]: string}
    digest str
    image str
    media_type str
    platform Mapping[str, str]
    digest String
    image String
    mediaType String
    platform Map<String>

    Package Details

    Repository
    cpln pulumiverse/pulumi-cpln
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cpln Terraform Provider.
    cpln logo
    Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse