1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. Workload
Control Plane v0.0.47 published on Saturday, Nov 9, 2024 by pulumiverse

cpln.Workload

Explore with Pulumi AI

cpln logo
Control Plane v0.0.47 published on Saturday, Nov 9, 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,
                 gvc: Optional[str] = None,
                 type: Optional[str] = None,
                 containers: Optional[Sequence[WorkloadContainerArgs]] = None,
                 name: Optional[str] = None,
                 identity_link: Optional[str] = None,
                 job: Optional[WorkloadJobArgs] = None,
                 load_balancer: Optional[WorkloadLoadBalancerArgs] = None,
                 local_options: Optional[Sequence[WorkloadLocalOptionArgs]] = None,
                 firewall_spec: Optional[WorkloadFirewallSpecArgs] = None,
                 options: Optional[WorkloadOptionsArgs] = 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.

    Constructor example

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

    var workloadResource = new Cpln.Workload("workloadResource", new()
    {
        Gvc = "string",
        Type = "string",
        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
                    {
                        _sentinel = false,
                        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
                    {
                        _sentinel = false,
                        Port = 0,
                    },
                    TimeoutSeconds = 0,
                },
                MinCpu = "string",
                GpuNvidia = new Cpln.Inputs.WorkloadContainerGpuNvidiaArgs
                {
                    Model = "string",
                    Quantity = 0,
                },
                Cpu = "string",
                InheritEnv = false,
                Lifecycle = new Cpln.Inputs.WorkloadContainerLifecycleArgs
                {
                    _sentinel = false,
                    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
                    {
                        _sentinel = false,
                        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
                    {
                        _sentinel = false,
                        Port = 0,
                    },
                    TimeoutSeconds = 0,
                },
                Volumes = new[]
                {
                    new Cpln.Inputs.WorkloadContainerVolumeArgs
                    {
                        Path = "string",
                        Uri = "string",
                        RecoveryPolicy = "string",
                    },
                },
                WorkingDirectory = "string",
            },
        },
        Name = "string",
        IdentityLink = "string",
        Job = new Cpln.Inputs.WorkloadJobArgs
        {
            Schedule = "string",
            ActiveDeadlineSeconds = 0,
            ConcurrencyPolicy = "string",
            HistoryLimit = 0,
            RestartPolicy = "string",
        },
        LoadBalancer = new Cpln.Inputs.WorkloadLoadBalancerArgs
        {
            _sentinel = false,
            Direct = new Cpln.Inputs.WorkloadLoadBalancerDirectArgs
            {
                Enabled = false,
                Ports = new[]
                {
                    new Cpln.Inputs.WorkloadLoadBalancerDirectPortArgs
                    {
                        ExternalPort = 0,
                        Protocol = "string",
                        ContainerPort = 0,
                        Scheme = "string",
                    },
                },
            },
            GeoLocation = new Cpln.Inputs.WorkloadLoadBalancerGeoLocationArgs
            {
                Enabled = false,
                Headers = new Cpln.Inputs.WorkloadLoadBalancerGeoLocationHeadersArgs
                {
                    Asn = "string",
                    City = "string",
                    Country = "string",
                    Region = "string",
                },
            },
        },
        LocalOptions = new[]
        {
            new Cpln.Inputs.WorkloadLocalOptionArgs
            {
                Location = "string",
                Autoscaling = new Cpln.Inputs.WorkloadLocalOptionAutoscalingArgs
                {
                    MaxConcurrency = 0,
                    MaxScale = 0,
                    Metric = "string",
                    MetricPercentile = "string",
                    MinScale = 0,
                    Multis = new[]
                    {
                        new Cpln.Inputs.WorkloadLocalOptionAutoscalingMultiArgs
                        {
                            Metric = "string",
                            Target = 0,
                        },
                    },
                    ScaleToZeroDelay = 0,
                    Target = 0,
                },
                CapacityAi = false,
                Debug = false,
                Suspend = false,
                TimeoutSeconds = 0,
            },
        },
        FirewallSpec = new Cpln.Inputs.WorkloadFirewallSpecArgs
        {
            _sentinel = false,
            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",
                },
            },
        },
        Options = new Cpln.Inputs.WorkloadOptionsArgs
        {
            Autoscaling = new Cpln.Inputs.WorkloadOptionsAutoscalingArgs
            {
                MaxConcurrency = 0,
                MaxScale = 0,
                Metric = "string",
                MetricPercentile = "string",
                MinScale = 0,
                Multis = new[]
                {
                    new Cpln.Inputs.WorkloadOptionsAutoscalingMultiArgs
                    {
                        Metric = "string",
                        Target = 0,
                    },
                },
                ScaleToZeroDelay = 0,
                Target = 0,
            },
            CapacityAi = false,
            Debug = false,
            Suspend = false,
            TimeoutSeconds = 0,
        },
        RolloutOptions = new Cpln.Inputs.WorkloadRolloutOptionsArgs
        {
            MaxSurgeReplicas = "string",
            MaxUnavailableReplicas = "string",
            MinReadySeconds = 0,
            ScalingPolicy = "string",
        },
        SecurityOptions = new Cpln.Inputs.WorkloadSecurityOptionsArgs
        {
            _sentinel = false,
            FileSystemGroupId = 0,
        },
        Sidecar = new Cpln.Inputs.WorkloadSidecarArgs
        {
            Envoy = "string",
        },
        SupportDynamicTags = false,
        Tags = 
        {
            { "string", "string" },
        },
        Description = "string",
    });
    
    example, err := cpln.NewWorkload(ctx, "workloadResource", &cpln.WorkloadArgs{
    	Gvc:  pulumi.String("string"),
    	Type: pulumi.String("string"),
    	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{
    					_sentinel: pulumi.Bool(false),
    					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{
    					_sentinel: pulumi.Bool(false),
    					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{
    				_sentinel: pulumi.Bool(false),
    				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{
    					_sentinel: pulumi.Bool(false),
    					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{
    					_sentinel: pulumi.Bool(false),
    					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"),
    		},
    	},
    	Name:         pulumi.String("string"),
    	IdentityLink: pulumi.String("string"),
    	Job: &cpln.WorkloadJobArgs{
    		Schedule:              pulumi.String("string"),
    		ActiveDeadlineSeconds: pulumi.Int(0),
    		ConcurrencyPolicy:     pulumi.String("string"),
    		HistoryLimit:          pulumi.Int(0),
    		RestartPolicy:         pulumi.String("string"),
    	},
    	LoadBalancer: &cpln.WorkloadLoadBalancerArgs{
    		_sentinel: pulumi.Bool(false),
    		Direct: &cpln.WorkloadLoadBalancerDirectArgs{
    			Enabled: pulumi.Bool(false),
    			Ports: cpln.WorkloadLoadBalancerDirectPortArray{
    				&cpln.WorkloadLoadBalancerDirectPortArgs{
    					ExternalPort:  pulumi.Int(0),
    					Protocol:      pulumi.String("string"),
    					ContainerPort: pulumi.Int(0),
    					Scheme:        pulumi.String("string"),
    				},
    			},
    		},
    		GeoLocation: &cpln.WorkloadLoadBalancerGeoLocationArgs{
    			Enabled: pulumi.Bool(false),
    			Headers: &cpln.WorkloadLoadBalancerGeoLocationHeadersArgs{
    				Asn:     pulumi.String("string"),
    				City:    pulumi.String("string"),
    				Country: pulumi.String("string"),
    				Region:  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),
    				Multis: cpln.WorkloadLocalOptionAutoscalingMultiArray{
    					&cpln.WorkloadLocalOptionAutoscalingMultiArgs{
    						Metric: pulumi.String("string"),
    						Target: 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),
    		},
    	},
    	FirewallSpec: &cpln.WorkloadFirewallSpecArgs{
    		_sentinel: pulumi.Bool(false),
    		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"),
    			},
    		},
    	},
    	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),
    			Multis: cpln.WorkloadOptionsAutoscalingMultiArray{
    				&cpln.WorkloadOptionsAutoscalingMultiArgs{
    					Metric: pulumi.String("string"),
    					Target: 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),
    	},
    	RolloutOptions: &cpln.WorkloadRolloutOptionsArgs{
    		MaxSurgeReplicas:       pulumi.String("string"),
    		MaxUnavailableReplicas: pulumi.String("string"),
    		MinReadySeconds:        pulumi.Int(0),
    		ScalingPolicy:          pulumi.String("string"),
    	},
    	SecurityOptions: &cpln.WorkloadSecurityOptionsArgs{
    		_sentinel:         pulumi.Bool(false),
    		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()
        .gvc("string")
        .type("string")
        .containers(WorkloadContainerArgs.builder()
            .image("string")
            .name("string")
            .livenessProbe(WorkloadContainerLivenessProbeArgs.builder()
                .exec(WorkloadContainerLivenessProbeExecArgs.builder()
                    .commands("string")
                    .build())
                .failureThreshold(0)
                .grpc(WorkloadContainerLivenessProbeGrpcArgs.builder()
                    ._sentinel(false)
                    .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()
                    ._sentinel(false)
                    .port(0)
                    .build())
                .timeoutSeconds(0)
                .build())
            .minCpu("string")
            .gpuNvidia(WorkloadContainerGpuNvidiaArgs.builder()
                .model("string")
                .quantity(0)
                .build())
            .cpu("string")
            .inheritEnv(false)
            .lifecycle(WorkloadContainerLifecycleArgs.builder()
                ._sentinel(false)
                .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()
                    ._sentinel(false)
                    .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()
                    ._sentinel(false)
                    .port(0)
                    .build())
                .timeoutSeconds(0)
                .build())
            .volumes(WorkloadContainerVolumeArgs.builder()
                .path("string")
                .uri("string")
                .recoveryPolicy("string")
                .build())
            .workingDirectory("string")
            .build())
        .name("string")
        .identityLink("string")
        .job(WorkloadJobArgs.builder()
            .schedule("string")
            .activeDeadlineSeconds(0)
            .concurrencyPolicy("string")
            .historyLimit(0)
            .restartPolicy("string")
            .build())
        .loadBalancer(WorkloadLoadBalancerArgs.builder()
            ._sentinel(false)
            .direct(WorkloadLoadBalancerDirectArgs.builder()
                .enabled(false)
                .ports(WorkloadLoadBalancerDirectPortArgs.builder()
                    .externalPort(0)
                    .protocol("string")
                    .containerPort(0)
                    .scheme("string")
                    .build())
                .build())
            .geoLocation(WorkloadLoadBalancerGeoLocationArgs.builder()
                .enabled(false)
                .headers(WorkloadLoadBalancerGeoLocationHeadersArgs.builder()
                    .asn("string")
                    .city("string")
                    .country("string")
                    .region("string")
                    .build())
                .build())
            .build())
        .localOptions(WorkloadLocalOptionArgs.builder()
            .location("string")
            .autoscaling(WorkloadLocalOptionAutoscalingArgs.builder()
                .maxConcurrency(0)
                .maxScale(0)
                .metric("string")
                .metricPercentile("string")
                .minScale(0)
                .multis(WorkloadLocalOptionAutoscalingMultiArgs.builder()
                    .metric("string")
                    .target(0)
                    .build())
                .scaleToZeroDelay(0)
                .target(0)
                .build())
            .capacityAi(false)
            .debug(false)
            .suspend(false)
            .timeoutSeconds(0)
            .build())
        .firewallSpec(WorkloadFirewallSpecArgs.builder()
            ._sentinel(false)
            .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())
        .options(WorkloadOptionsArgs.builder()
            .autoscaling(WorkloadOptionsAutoscalingArgs.builder()
                .maxConcurrency(0)
                .maxScale(0)
                .metric("string")
                .metricPercentile("string")
                .minScale(0)
                .multis(WorkloadOptionsAutoscalingMultiArgs.builder()
                    .metric("string")
                    .target(0)
                    .build())
                .scaleToZeroDelay(0)
                .target(0)
                .build())
            .capacityAi(false)
            .debug(false)
            .suspend(false)
            .timeoutSeconds(0)
            .build())
        .rolloutOptions(WorkloadRolloutOptionsArgs.builder()
            .maxSurgeReplicas("string")
            .maxUnavailableReplicas("string")
            .minReadySeconds(0)
            .scalingPolicy("string")
            .build())
        .securityOptions(WorkloadSecurityOptionsArgs.builder()
            ._sentinel(false)
            .fileSystemGroupId(0)
            .build())
        .sidecar(WorkloadSidecarArgs.builder()
            .envoy("string")
            .build())
        .supportDynamicTags(false)
        .tags(Map.of("string", "string"))
        .description("string")
        .build());
    
    workload_resource = cpln.Workload("workloadResource",
        gvc="string",
        type="string",
        containers=[{
            "image": "string",
            "name": "string",
            "liveness_probe": {
                "exec_": {
                    "commands": ["string"],
                },
                "failure_threshold": 0,
                "grpc": {
                    "_sentinel": False,
                    "port": 0,
                },
                "http_get": {
                    "http_headers": {
                        "string": "string",
                    },
                    "path": "string",
                    "port": 0,
                    "scheme": "string",
                },
                "initial_delay_seconds": 0,
                "period_seconds": 0,
                "success_threshold": 0,
                "tcp_socket": {
                    "_sentinel": False,
                    "port": 0,
                },
                "timeout_seconds": 0,
            },
            "min_cpu": "string",
            "gpu_nvidia": {
                "model": "string",
                "quantity": 0,
            },
            "cpu": "string",
            "inherit_env": False,
            "lifecycle": {
                "_sentinel": False,
                "post_start": {
                    "exec_": {
                        "commands": ["string"],
                    },
                },
                "pre_stop": {
                    "exec_": {
                        "commands": ["string"],
                    },
                },
            },
            "args": ["string"],
            "memory": "string",
            "metrics": {
                "path": "string",
                "port": 0,
            },
            "env": {
                "string": "string",
            },
            "min_memory": "string",
            "command": "string",
            "ports": [{
                "number": 0,
                "protocol": "string",
            }],
            "readiness_probe": {
                "exec_": {
                    "commands": ["string"],
                },
                "failure_threshold": 0,
                "grpc": {
                    "_sentinel": False,
                    "port": 0,
                },
                "http_get": {
                    "http_headers": {
                        "string": "string",
                    },
                    "path": "string",
                    "port": 0,
                    "scheme": "string",
                },
                "initial_delay_seconds": 0,
                "period_seconds": 0,
                "success_threshold": 0,
                "tcp_socket": {
                    "_sentinel": False,
                    "port": 0,
                },
                "timeout_seconds": 0,
            },
            "volumes": [{
                "path": "string",
                "uri": "string",
                "recovery_policy": "string",
            }],
            "working_directory": "string",
        }],
        name="string",
        identity_link="string",
        job={
            "schedule": "string",
            "active_deadline_seconds": 0,
            "concurrency_policy": "string",
            "history_limit": 0,
            "restart_policy": "string",
        },
        load_balancer={
            "_sentinel": False,
            "direct": {
                "enabled": False,
                "ports": [{
                    "external_port": 0,
                    "protocol": "string",
                    "container_port": 0,
                    "scheme": "string",
                }],
            },
            "geo_location": {
                "enabled": False,
                "headers": {
                    "asn": "string",
                    "city": "string",
                    "country": "string",
                    "region": "string",
                },
            },
        },
        local_options=[{
            "location": "string",
            "autoscaling": {
                "max_concurrency": 0,
                "max_scale": 0,
                "metric": "string",
                "metric_percentile": "string",
                "min_scale": 0,
                "multis": [{
                    "metric": "string",
                    "target": 0,
                }],
                "scale_to_zero_delay": 0,
                "target": 0,
            },
            "capacity_ai": False,
            "debug": False,
            "suspend": False,
            "timeout_seconds": 0,
        }],
        firewall_spec={
            "_sentinel": False,
            "external": {
                "inbound_allow_cidrs": ["string"],
                "outbound_allow_cidrs": ["string"],
                "outbound_allow_hostnames": ["string"],
                "outbound_allow_ports": [{
                    "number": 0,
                    "protocol": "string",
                }],
            },
            "internal": {
                "inbound_allow_type": "string",
                "inbound_allow_workloads": ["string"],
            },
        },
        options={
            "autoscaling": {
                "max_concurrency": 0,
                "max_scale": 0,
                "metric": "string",
                "metric_percentile": "string",
                "min_scale": 0,
                "multis": [{
                    "metric": "string",
                    "target": 0,
                }],
                "scale_to_zero_delay": 0,
                "target": 0,
            },
            "capacity_ai": False,
            "debug": False,
            "suspend": False,
            "timeout_seconds": 0,
        },
        rollout_options={
            "max_surge_replicas": "string",
            "max_unavailable_replicas": "string",
            "min_ready_seconds": 0,
            "scaling_policy": "string",
        },
        security_options={
            "_sentinel": False,
            "file_system_group_id": 0,
        },
        sidecar={
            "envoy": "string",
        },
        support_dynamic_tags=False,
        tags={
            "string": "string",
        },
        description="string")
    
    const workloadResource = new cpln.Workload("workloadResource", {
        gvc: "string",
        type: "string",
        containers: [{
            image: "string",
            name: "string",
            livenessProbe: {
                exec: {
                    commands: ["string"],
                },
                failureThreshold: 0,
                grpc: {
                    _sentinel: false,
                    port: 0,
                },
                httpGet: {
                    httpHeaders: {
                        string: "string",
                    },
                    path: "string",
                    port: 0,
                    scheme: "string",
                },
                initialDelaySeconds: 0,
                periodSeconds: 0,
                successThreshold: 0,
                tcpSocket: {
                    _sentinel: false,
                    port: 0,
                },
                timeoutSeconds: 0,
            },
            minCpu: "string",
            gpuNvidia: {
                model: "string",
                quantity: 0,
            },
            cpu: "string",
            inheritEnv: false,
            lifecycle: {
                _sentinel: false,
                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: {
                    _sentinel: false,
                    port: 0,
                },
                httpGet: {
                    httpHeaders: {
                        string: "string",
                    },
                    path: "string",
                    port: 0,
                    scheme: "string",
                },
                initialDelaySeconds: 0,
                periodSeconds: 0,
                successThreshold: 0,
                tcpSocket: {
                    _sentinel: false,
                    port: 0,
                },
                timeoutSeconds: 0,
            },
            volumes: [{
                path: "string",
                uri: "string",
                recoveryPolicy: "string",
            }],
            workingDirectory: "string",
        }],
        name: "string",
        identityLink: "string",
        job: {
            schedule: "string",
            activeDeadlineSeconds: 0,
            concurrencyPolicy: "string",
            historyLimit: 0,
            restartPolicy: "string",
        },
        loadBalancer: {
            _sentinel: false,
            direct: {
                enabled: false,
                ports: [{
                    externalPort: 0,
                    protocol: "string",
                    containerPort: 0,
                    scheme: "string",
                }],
            },
            geoLocation: {
                enabled: false,
                headers: {
                    asn: "string",
                    city: "string",
                    country: "string",
                    region: "string",
                },
            },
        },
        localOptions: [{
            location: "string",
            autoscaling: {
                maxConcurrency: 0,
                maxScale: 0,
                metric: "string",
                metricPercentile: "string",
                minScale: 0,
                multis: [{
                    metric: "string",
                    target: 0,
                }],
                scaleToZeroDelay: 0,
                target: 0,
            },
            capacityAi: false,
            debug: false,
            suspend: false,
            timeoutSeconds: 0,
        }],
        firewallSpec: {
            _sentinel: false,
            external: {
                inboundAllowCidrs: ["string"],
                outboundAllowCidrs: ["string"],
                outboundAllowHostnames: ["string"],
                outboundAllowPorts: [{
                    number: 0,
                    protocol: "string",
                }],
            },
            internal: {
                inboundAllowType: "string",
                inboundAllowWorkloads: ["string"],
            },
        },
        options: {
            autoscaling: {
                maxConcurrency: 0,
                maxScale: 0,
                metric: "string",
                metricPercentile: "string",
                minScale: 0,
                multis: [{
                    metric: "string",
                    target: 0,
                }],
                scaleToZeroDelay: 0,
                target: 0,
            },
            capacityAi: false,
            debug: false,
            suspend: false,
            timeoutSeconds: 0,
        },
        rolloutOptions: {
            maxSurgeReplicas: "string",
            maxUnavailableReplicas: "string",
            minReadySeconds: 0,
            scalingPolicy: "string",
        },
        securityOptions: {
            _sentinel: false,
            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:
                _sentinel: false
                postStart:
                    exec:
                        commands:
                            - string
                preStop:
                    exec:
                        commands:
                            - string
              livenessProbe:
                exec:
                    commands:
                        - string
                failureThreshold: 0
                grpc:
                    _sentinel: false
                    port: 0
                httpGet:
                    httpHeaders:
                        string: string
                    path: string
                    port: 0
                    scheme: string
                initialDelaySeconds: 0
                periodSeconds: 0
                successThreshold: 0
                tcpSocket:
                    _sentinel: false
                    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:
                    _sentinel: false
                    port: 0
                httpGet:
                    httpHeaders:
                        string: string
                    path: string
                    port: 0
                    scheme: string
                initialDelaySeconds: 0
                periodSeconds: 0
                successThreshold: 0
                tcpSocket:
                    _sentinel: false
                    port: 0
                timeoutSeconds: 0
              volumes:
                - path: string
                  recoveryPolicy: string
                  uri: string
              workingDirectory: string
        description: string
        firewallSpec:
            _sentinel: false
            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
        loadBalancer:
            _sentinel: false
            direct:
                enabled: false
                ports:
                    - containerPort: 0
                      externalPort: 0
                      protocol: string
                      scheme: string
            geoLocation:
                enabled: false
                headers:
                    asn: string
                    city: string
                    country: string
                    region: string
        localOptions:
            - autoscaling:
                maxConcurrency: 0
                maxScale: 0
                metric: string
                metricPercentile: string
                minScale: 0
                multis:
                    - metric: string
                      target: 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
                multis:
                    - metric: string
                      target: 0
                scaleToZeroDelay: 0
                target: 0
            capacityAi: false
            debug: false
            suspend: false
            timeoutSeconds: 0
        rolloutOptions:
            maxSurgeReplicas: string
            maxUnavailableReplicas: string
            minReadySeconds: 0
            scalingPolicy: string
        securityOptions:
            _sentinel: false
            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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.
    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.
    LoadBalancer Pulumiverse.Cpln.Inputs.WorkloadLoadBalancer
    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 and geo location
    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.
    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.
    LoadBalancer WorkloadLoadBalancerArgs
    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 and geo location
    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.
    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.
    loadBalancer WorkloadLoadBalancer
    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 and geo location
    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.
    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.
    loadBalancer WorkloadLoadBalancer
    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 and geo location
    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.
    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.
    load_balancer WorkloadLoadBalancerArgs
    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 and geo location
    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.
    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.
    loadBalancer Property Map
    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 and geo location
    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,
            load_balancer: Optional[WorkloadLoadBalancerArgs] = 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.
    LoadBalancer Pulumiverse.Cpln.Inputs.WorkloadLoadBalancer
    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 and geo location
    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.
    LoadBalancer WorkloadLoadBalancerArgs
    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 and geo location
    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.
    loadBalancer WorkloadLoadBalancer
    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 and geo location
    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.
    loadBalancer WorkloadLoadBalancer
    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 and geo location
    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.
    load_balancer WorkloadLoadBalancerArgs
    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 and geo location
    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.
    loadBalancer Property Map
    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 and geo location
    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
    _sentinel bool
    Port int
    _sentinel bool
    _sentinel Boolean
    port Integer
    _sentinel boolean
    port number
    _sentinel bool
    port int
    _sentinel Boolean
    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
    _sentinel bool
    Port int
    _sentinel bool
    _sentinel Boolean
    port Integer
    _sentinel boolean
    port number
    _sentinel bool
    port int
    _sentinel Boolean
    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
    _sentinel bool
    Port int
    _sentinel bool
    _sentinel Boolean
    port Integer
    _sentinel boolean
    port number
    _sentinel bool
    port int
    _sentinel Boolean
    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
    _sentinel bool
    Port int
    _sentinel bool
    _sentinel Boolean
    port Integer
    _sentinel boolean
    port number
    _sentinel bool
    port int
    _sentinel Boolean
    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

    WorkloadLoadBalancer, WorkloadLoadBalancerArgs

    WorkloadLoadBalancerDirect, WorkloadLoadBalancerDirectArgs

    WorkloadLoadBalancerDirectPort, WorkloadLoadBalancerDirectPortArgs

    externalPort Integer
    protocol String
    containerPort Integer
    scheme String
    externalPort number
    protocol string
    containerPort number
    scheme string
    externalPort Number
    protocol String
    containerPort Number
    scheme String

    WorkloadLoadBalancerGeoLocation, WorkloadLoadBalancerGeoLocationArgs

    WorkloadLoadBalancerGeoLocationHeaders, WorkloadLoadBalancerGeoLocationHeadersArgs

    Asn string
    City string
    Country string
    Region string
    Asn string
    City string
    Country string
    Region string
    asn String
    city String
    country String
    region String
    asn string
    city string
    country string
    region string
    asn str
    city str
    country str
    region str
    asn String
    city String
    country String
    region String

    WorkloadLocalOption, WorkloadLocalOptionArgs

    WorkloadLocalOptionAutoscaling, WorkloadLocalOptionAutoscalingArgs

    WorkloadLocalOptionAutoscalingMulti, WorkloadLocalOptionAutoscalingMultiArgs

    Metric string
    Target int
    Metric string
    Target int
    metric String
    target Integer
    metric string
    target number
    metric str
    target int
    metric String
    target Number

    WorkloadOptions, WorkloadOptionsArgs

    WorkloadOptionsAutoscaling, WorkloadOptionsAutoscalingArgs

    WorkloadOptionsAutoscalingMulti, WorkloadOptionsAutoscalingMultiArgs

    Metric string
    Target int
    Metric string
    Target int
    metric String
    target Integer
    metric string
    target number
    metric str
    target int
    metric String
    target Number

    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

    WorkloadStatusLoadBalancer, WorkloadStatusLoadBalancerArgs

    Origin string
    Url string
    Origin string
    Url string
    origin String
    url String
    origin string
    url string
    origin str
    url str
    origin String
    url String

    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.47 published on Saturday, Nov 9, 2024 by pulumiverse