Class CollectionComponentResource
Base component for containers of Kubernetes resources.
Inheritance
System.Object
CollectionComponentResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Kubernetes.Yaml
Assembly: Pulumi.Kubernetes.dll
Syntax
public abstract class CollectionComponentResource : ComponentResource
Constructors
View SourceCollectionComponentResource(String, String, ComponentResourceOptions)
Declaration
protected CollectionComponentResource(string type, string name, ComponentResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | type | |
| System.String | name | |
| ComponentResourceOptions | options |
Methods
View SourceGetCustomResource(String, String, String)
Returns a custom resource defined by the given group/version/kind and name.
Declaration
public Output<CustomResource> GetCustomResource(string groupVersionKind, string name, string namespaceName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupVersionKind | Group/version/kind, e.g. "monitoring.coreos.com/v1/ServiceMonitor". |
| System.String | name | Resource name. |
| System.String | namespaceName | Optional namespace, e.g. "kube-prometheus-exporter-kubernetes". |
Returns
| Type | Description |
|---|---|
| Output<CustomResource> |
GetResource<T>(String, String)
Returns a resource defined by the given name.
Declaration
public Output<T> GetResource<T>(string name, string namespaceName = null)
where T : KubernetesResource
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Resource name. |
| System.String | namespaceName | Optional namespace, e.g. "kube-prometheus-exporter-kubernetes". |
Returns
| Type | Description |
|---|---|
| Output<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the resource. |
RegisterResources(Output<ImmutableDictionary<String, KubernetesResource>>)
Declaration
protected void RegisterResources(Output<ImmutableDictionary<string, KubernetesResource>> resources)
Parameters
| Type | Name | Description |
|---|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, KubernetesResource>> | resources |