1. Packages
  2. Prodvana
  3. API Docs
  4. K8sRuntime
Prodvana v0.1.20 published on Tuesday, Apr 2, 2024 by Prodvana

prodvana.K8sRuntime

Explore with Pulumi AI

prodvana logo
Prodvana v0.1.20 published on Tuesday, Apr 2, 2024 by Prodvana

    This resource allows you to manage a Prodvana Kubernetes Runtime. You are responsible for managing the agent lifetime. Also see prodvana.ManagedK8sRuntime.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Prodvana = Pulumi.Prodvana;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Prodvana.K8sRuntime("example", new()
        {
            Labels = new[]
            {
                new Prodvana.Inputs.K8sRuntimeLabelArgs
                {
                    Label = "env",
                    Value = "staging",
                },
                new Prodvana.Inputs.K8sRuntimeLabelArgs
                {
                    Label = "region",
                    Value = "us-central1",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/prodvana/pulumi-prodvana/sdk/go/prodvana"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := prodvana.NewK8sRuntime(ctx, "example", &prodvana.K8sRuntimeArgs{
    			Labels: prodvana.K8sRuntimeLabelArray{
    				&prodvana.K8sRuntimeLabelArgs{
    					Label: pulumi.String("env"),
    					Value: pulumi.String("staging"),
    				},
    				&prodvana.K8sRuntimeLabelArgs{
    					Label: pulumi.String("region"),
    					Value: pulumi.String("us-central1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.prodvana.K8sRuntime;
    import com.pulumi.prodvana.K8sRuntimeArgs;
    import com.pulumi.prodvana.inputs.K8sRuntimeLabelArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new K8sRuntime("example", K8sRuntimeArgs.builder()        
                .labels(            
                    K8sRuntimeLabelArgs.builder()
                        .label("env")
                        .value("staging")
                        .build(),
                    K8sRuntimeLabelArgs.builder()
                        .label("region")
                        .value("us-central1")
                        .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_prodvana as prodvana
    
    example = prodvana.K8sRuntime("example", labels=[
        prodvana.K8sRuntimeLabelArgs(
            label="env",
            value="staging",
        ),
        prodvana.K8sRuntimeLabelArgs(
            label="region",
            value="us-central1",
        ),
    ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as prodvana from "@prodvana/pulumi-prodvana";
    
    const example = new prodvana.K8sRuntime("example", {labels: [
        {
            label: "env",
            value: "staging",
        },
        {
            label: "region",
            value: "us-central1",
        },
    ]});
    
    resources:
      example:
        type: prodvana:K8sRuntime
        properties:
          labels:
            - label: env
              value: staging
            - label: region
              value: us-central1
    

    Create K8sRuntime Resource

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

    Constructor syntax

    new K8sRuntime(name: string, args?: K8sRuntimeArgs, opts?: CustomResourceOptions);
    @overload
    def K8sRuntime(resource_name: str,
                   args: Optional[K8sRuntimeArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def K8sRuntime(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   labels: Optional[Sequence[K8sRuntimeLabelArgs]] = None,
                   name: Optional[str] = None)
    func NewK8sRuntime(ctx *Context, name string, args *K8sRuntimeArgs, opts ...ResourceOption) (*K8sRuntime, error)
    public K8sRuntime(string name, K8sRuntimeArgs? args = null, CustomResourceOptions? opts = null)
    public K8sRuntime(String name, K8sRuntimeArgs args)
    public K8sRuntime(String name, K8sRuntimeArgs args, CustomResourceOptions options)
    
    type: prodvana:K8sRuntime
    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 K8sRuntimeArgs
    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 K8sRuntimeArgs
    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 K8sRuntimeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args K8sRuntimeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args K8sRuntimeArgs
    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 k8sRuntimeResource = new Prodvana.K8sRuntime("k8sRuntimeResource", new()
    {
        Labels = new[]
        {
            new Prodvana.Inputs.K8sRuntimeLabelArgs
            {
                Label = "string",
                Value = "string",
            },
        },
        Name = "string",
    });
    
    example, err := prodvana.NewK8sRuntime(ctx, "k8sRuntimeResource", &prodvana.K8sRuntimeArgs{
    	Labels: prodvana.K8sRuntimeLabelArray{
    		&prodvana.K8sRuntimeLabelArgs{
    			Label: pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var k8sRuntimeResource = new K8sRuntime("k8sRuntimeResource", K8sRuntimeArgs.builder()
        .labels(K8sRuntimeLabelArgs.builder()
            .label("string")
            .value("string")
            .build())
        .name("string")
        .build());
    
    k8s_runtime_resource = prodvana.K8sRuntime("k8sRuntimeResource",
        labels=[{
            "label": "string",
            "value": "string",
        }],
        name="string")
    
    const k8sRuntimeResource = new prodvana.K8sRuntime("k8sRuntimeResource", {
        labels: [{
            label: "string",
            value: "string",
        }],
        name: "string",
    });
    
    type: prodvana:K8sRuntime
    properties:
        labels:
            - label: string
              value: string
        name: string
    

    K8sRuntime 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 K8sRuntime resource accepts the following input properties:

    Labels List<K8sRuntimeLabel>
    List of labels to apply to the runtime
    Name string
    Runtime name
    Labels []K8sRuntimeLabelArgs
    List of labels to apply to the runtime
    Name string
    Runtime name
    labels List<K8sRuntimeLabel>
    List of labels to apply to the runtime
    name String
    Runtime name
    labels K8sRuntimeLabel[]
    List of labels to apply to the runtime
    name string
    Runtime name
    labels Sequence[K8sRuntimeLabelArgs]
    List of labels to apply to the runtime
    name str
    Runtime name
    labels List<Property Map>
    List of labels to apply to the runtime
    name String
    Runtime name

    Outputs

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

    AgentApiToken string
    API Token used for linking the Kubernetes Prodvana agent
    AgentArgs List<string>
    Arguments to pass to the Kubernetes Prodvana agent container.
    AgentImage string
    URL of the Kubernetes Prodvana agent container image.
    AgentUrl string
    URL of the Kubernetes Prodvana agent server
    Id string
    The provider-assigned unique ID for this managed resource.
    AgentApiToken string
    API Token used for linking the Kubernetes Prodvana agent
    AgentArgs []string
    Arguments to pass to the Kubernetes Prodvana agent container.
    AgentImage string
    URL of the Kubernetes Prodvana agent container image.
    AgentUrl string
    URL of the Kubernetes Prodvana agent server
    Id string
    The provider-assigned unique ID for this managed resource.
    agentApiToken String
    API Token used for linking the Kubernetes Prodvana agent
    agentArgs List<String>
    Arguments to pass to the Kubernetes Prodvana agent container.
    agentImage String
    URL of the Kubernetes Prodvana agent container image.
    agentUrl String
    URL of the Kubernetes Prodvana agent server
    id String
    The provider-assigned unique ID for this managed resource.
    agentApiToken string
    API Token used for linking the Kubernetes Prodvana agent
    agentArgs string[]
    Arguments to pass to the Kubernetes Prodvana agent container.
    agentImage string
    URL of the Kubernetes Prodvana agent container image.
    agentUrl string
    URL of the Kubernetes Prodvana agent server
    id string
    The provider-assigned unique ID for this managed resource.
    agent_api_token str
    API Token used for linking the Kubernetes Prodvana agent
    agent_args Sequence[str]
    Arguments to pass to the Kubernetes Prodvana agent container.
    agent_image str
    URL of the Kubernetes Prodvana agent container image.
    agent_url str
    URL of the Kubernetes Prodvana agent server
    id str
    The provider-assigned unique ID for this managed resource.
    agentApiToken String
    API Token used for linking the Kubernetes Prodvana agent
    agentArgs List<String>
    Arguments to pass to the Kubernetes Prodvana agent container.
    agentImage String
    URL of the Kubernetes Prodvana agent container image.
    agentUrl String
    URL of the Kubernetes Prodvana agent server
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing K8sRuntime Resource

    Get an existing K8sRuntime 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?: K8sRuntimeState, opts?: CustomResourceOptions): K8sRuntime
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_api_token: Optional[str] = None,
            agent_args: Optional[Sequence[str]] = None,
            agent_image: Optional[str] = None,
            agent_url: Optional[str] = None,
            labels: Optional[Sequence[K8sRuntimeLabelArgs]] = None,
            name: Optional[str] = None) -> K8sRuntime
    func GetK8sRuntime(ctx *Context, name string, id IDInput, state *K8sRuntimeState, opts ...ResourceOption) (*K8sRuntime, error)
    public static K8sRuntime Get(string name, Input<string> id, K8sRuntimeState? state, CustomResourceOptions? opts = null)
    public static K8sRuntime get(String name, Output<String> id, K8sRuntimeState 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:
    AgentApiToken string
    API Token used for linking the Kubernetes Prodvana agent
    AgentArgs List<string>
    Arguments to pass to the Kubernetes Prodvana agent container.
    AgentImage string
    URL of the Kubernetes Prodvana agent container image.
    AgentUrl string
    URL of the Kubernetes Prodvana agent server
    Labels List<K8sRuntimeLabel>
    List of labels to apply to the runtime
    Name string
    Runtime name
    AgentApiToken string
    API Token used for linking the Kubernetes Prodvana agent
    AgentArgs []string
    Arguments to pass to the Kubernetes Prodvana agent container.
    AgentImage string
    URL of the Kubernetes Prodvana agent container image.
    AgentUrl string
    URL of the Kubernetes Prodvana agent server
    Labels []K8sRuntimeLabelArgs
    List of labels to apply to the runtime
    Name string
    Runtime name
    agentApiToken String
    API Token used for linking the Kubernetes Prodvana agent
    agentArgs List<String>
    Arguments to pass to the Kubernetes Prodvana agent container.
    agentImage String
    URL of the Kubernetes Prodvana agent container image.
    agentUrl String
    URL of the Kubernetes Prodvana agent server
    labels List<K8sRuntimeLabel>
    List of labels to apply to the runtime
    name String
    Runtime name
    agentApiToken string
    API Token used for linking the Kubernetes Prodvana agent
    agentArgs string[]
    Arguments to pass to the Kubernetes Prodvana agent container.
    agentImage string
    URL of the Kubernetes Prodvana agent container image.
    agentUrl string
    URL of the Kubernetes Prodvana agent server
    labels K8sRuntimeLabel[]
    List of labels to apply to the runtime
    name string
    Runtime name
    agent_api_token str
    API Token used for linking the Kubernetes Prodvana agent
    agent_args Sequence[str]
    Arguments to pass to the Kubernetes Prodvana agent container.
    agent_image str
    URL of the Kubernetes Prodvana agent container image.
    agent_url str
    URL of the Kubernetes Prodvana agent server
    labels Sequence[K8sRuntimeLabelArgs]
    List of labels to apply to the runtime
    name str
    Runtime name
    agentApiToken String
    API Token used for linking the Kubernetes Prodvana agent
    agentArgs List<String>
    Arguments to pass to the Kubernetes Prodvana agent container.
    agentImage String
    URL of the Kubernetes Prodvana agent container image.
    agentUrl String
    URL of the Kubernetes Prodvana agent server
    labels List<Property Map>
    List of labels to apply to the runtime
    name String
    Runtime name

    Supporting Types

    K8sRuntimeLabel, K8sRuntimeLabelArgs

    Label string
    Label name
    Value string
    Label value
    Label string
    Label name
    Value string
    Label value
    label String
    Label name
    value String
    Label value
    label string
    Label name
    value string
    Label value
    label str
    Label name
    value str
    Label value
    label String
    Label name
    value String
    Label value

    Import

     $ pulumi import prodvana:index/k8sRuntime:K8sRuntime example <runtime name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    prodvana prodvana/pulumi-prodvana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the prodvana Terraform Provider.
    prodvana logo
    Prodvana v0.1.20 published on Tuesday, Apr 2, 2024 by Prodvana