1. Packages
  2. AzureDevOps
  3. API Docs
  4. EnvironmentResourceKubernetes
Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi

azuredevops.EnvironmentResourceKubernetes

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi

    Create EnvironmentResourceKubernetes Resource

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

    Constructor syntax

    new EnvironmentResourceKubernetes(name: string, args: EnvironmentResourceKubernetesArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentResourceKubernetes(resource_name: str,
                                      args: EnvironmentResourceKubernetesArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentResourceKubernetes(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      environment_id: Optional[int] = None,
                                      namespace: Optional[str] = None,
                                      project_id: Optional[str] = None,
                                      service_endpoint_id: Optional[str] = None,
                                      cluster_name: Optional[str] = None,
                                      name: Optional[str] = None,
                                      tags: Optional[Sequence[str]] = None)
    func NewEnvironmentResourceKubernetes(ctx *Context, name string, args EnvironmentResourceKubernetesArgs, opts ...ResourceOption) (*EnvironmentResourceKubernetes, error)
    public EnvironmentResourceKubernetes(string name, EnvironmentResourceKubernetesArgs args, CustomResourceOptions? opts = null)
    public EnvironmentResourceKubernetes(String name, EnvironmentResourceKubernetesArgs args)
    public EnvironmentResourceKubernetes(String name, EnvironmentResourceKubernetesArgs args, CustomResourceOptions options)
    
    type: azuredevops:EnvironmentResourceKubernetes
    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 EnvironmentResourceKubernetesArgs
    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 EnvironmentResourceKubernetesArgs
    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 EnvironmentResourceKubernetesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentResourceKubernetesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentResourceKubernetesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var environmentResourceKubernetesResource = new AzureDevOps.EnvironmentResourceKubernetes("environmentResourceKubernetesResource", new()
    {
        EnvironmentId = 0,
        Namespace = "string",
        ProjectId = "string",
        ServiceEndpointId = "string",
        ClusterName = "string",
        Name = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := azuredevops.NewEnvironmentResourceKubernetes(ctx, "environmentResourceKubernetesResource", &azuredevops.EnvironmentResourceKubernetesArgs{
    	EnvironmentId:     pulumi.Int(0),
    	Namespace:         pulumi.String("string"),
    	ProjectId:         pulumi.String("string"),
    	ServiceEndpointId: pulumi.String("string"),
    	ClusterName:       pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var environmentResourceKubernetesResource = new EnvironmentResourceKubernetes("environmentResourceKubernetesResource", EnvironmentResourceKubernetesArgs.builder()        
        .environmentId(0)
        .namespace("string")
        .projectId("string")
        .serviceEndpointId("string")
        .clusterName("string")
        .name("string")
        .tags("string")
        .build());
    
    environment_resource_kubernetes_resource = azuredevops.EnvironmentResourceKubernetes("environmentResourceKubernetesResource",
        environment_id=0,
        namespace="string",
        project_id="string",
        service_endpoint_id="string",
        cluster_name="string",
        name="string",
        tags=["string"])
    
    const environmentResourceKubernetesResource = new azuredevops.EnvironmentResourceKubernetes("environmentResourceKubernetesResource", {
        environmentId: 0,
        namespace: "string",
        projectId: "string",
        serviceEndpointId: "string",
        clusterName: "string",
        name: "string",
        tags: ["string"],
    });
    
    type: azuredevops:EnvironmentResourceKubernetes
    properties:
        clusterName: string
        environmentId: 0
        name: string
        namespace: string
        projectId: string
        serviceEndpointId: string
        tags:
            - string
    

    EnvironmentResourceKubernetes Resource Properties

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

    Inputs

    The EnvironmentResourceKubernetes resource accepts the following input properties:

    EnvironmentId int
    Namespace string
    ProjectId string
    ServiceEndpointId string
    ClusterName string
    Name string
    Tags List<string>
    EnvironmentId int
    Namespace string
    ProjectId string
    ServiceEndpointId string
    ClusterName string
    Name string
    Tags []string
    environmentId Integer
    namespace String
    projectId String
    serviceEndpointId String
    clusterName String
    name String
    tags List<String>
    environmentId number
    namespace string
    projectId string
    serviceEndpointId string
    clusterName string
    name string
    tags string[]
    environmentId Number
    namespace String
    projectId String
    serviceEndpointId String
    clusterName String
    name String
    tags List<String>

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EnvironmentResourceKubernetes Resource

    Get an existing EnvironmentResourceKubernetes 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?: EnvironmentResourceKubernetesState, opts?: CustomResourceOptions): EnvironmentResourceKubernetes
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_name: Optional[str] = None,
            environment_id: Optional[int] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            project_id: Optional[str] = None,
            service_endpoint_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> EnvironmentResourceKubernetes
    func GetEnvironmentResourceKubernetes(ctx *Context, name string, id IDInput, state *EnvironmentResourceKubernetesState, opts ...ResourceOption) (*EnvironmentResourceKubernetes, error)
    public static EnvironmentResourceKubernetes Get(string name, Input<string> id, EnvironmentResourceKubernetesState? state, CustomResourceOptions? opts = null)
    public static EnvironmentResourceKubernetes get(String name, Output<String> id, EnvironmentResourceKubernetesState 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:
    ClusterName string
    EnvironmentId int
    Name string
    Namespace string
    ProjectId string
    ServiceEndpointId string
    Tags List<string>
    ClusterName string
    EnvironmentId int
    Name string
    Namespace string
    ProjectId string
    ServiceEndpointId string
    Tags []string
    clusterName String
    environmentId Integer
    name String
    namespace String
    projectId String
    serviceEndpointId String
    tags List<String>
    clusterName string
    environmentId number
    name string
    namespace string
    projectId string
    serviceEndpointId string
    tags string[]
    clusterName String
    environmentId Number
    name String
    namespace String
    projectId String
    serviceEndpointId String
    tags List<String>

    Package Details

    Repository
    Azure DevOps pulumi/pulumi-azuredevops
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuredevops Terraform Provider.
    azuredevops logo
    Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi