Show / Hide Table of Contents

Class CollectionComponentResource

Base component for containers of Kubernetes resources.

Inheritance
System.Object
Resource
ComponentResource
CollectionComponentResource
ChartBase
ConfigFile
ConfigGroup
Inherited Members
ComponentResource.RegisterOutputs()
ComponentResource.RegisterOutputs(IDictionary<String, Object>)
ComponentResource.RegisterOutputs(Task<IDictionary<String, Object>>)
ComponentResource.RegisterOutputs(Output<IDictionary<String, Object>>)
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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 Source

CollectionComponentResource(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 Source

GetCustomResource(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>
View Source

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.

View Source

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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.