Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi
azuredevops.EnvironmentResourceKubernetes
Explore with Pulumi AI
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:
- Environment
Id int - Namespace string
- Project
Id string - Service
Endpoint stringId - Cluster
Name string - Name string
- List<string>
- Environment
Id int - Namespace string
- Project
Id string - Service
Endpoint stringId - Cluster
Name string - Name string
- []string
- environment
Id Integer - namespace String
- project
Id String - service
Endpoint StringId - cluster
Name String - name String
- List<String>
- environment
Id number - namespace string
- project
Id string - service
Endpoint stringId - cluster
Name string - name string
- string[]
- environment_
id int - namespace str
- project_
id str - service_
endpoint_ strid - cluster_
name str - name str
- Sequence[str]
- environment
Id Number - namespace String
- project
Id String - service
Endpoint StringId - cluster
Name String - name String
- 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.
- Cluster
Name string - Environment
Id int - Name string
- Namespace string
- Project
Id string - Service
Endpoint stringId - List<string>
- Cluster
Name string - Environment
Id int - Name string
- Namespace string
- Project
Id string - Service
Endpoint stringId - []string
- cluster
Name String - environment
Id Integer - name String
- namespace String
- project
Id String - service
Endpoint StringId - List<String>
- cluster
Name string - environment
Id number - name string
- namespace string
- project
Id string - service
Endpoint stringId - string[]
- cluster_
name str - environment_
id int - name str
- namespace str
- project_
id str - service_
endpoint_ strid - Sequence[str]
- cluster
Name String - environment
Id Number - name String
- namespace String
- project
Id String - service
Endpoint StringId - 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.