Represents a {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs kubernetes}.
using HashiCorp.Cdktf.Providers.Kubernetes;
new KubernetesProvider(Construct Scope, string Id, KubernetesProviderConfig Config = null);
Name | Type | Description |
---|---|---|
Scope |
Constructs.Construct |
The scope in which to define this construct. |
Id |
string |
The scoped construct ID. |
Config |
KubernetesProviderConfig |
No description. |
- Type: Constructs.Construct
The scope in which to define this construct.
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: KubernetesProviderConfig
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
AddOverride |
No description. |
OverrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
ToHclTerraform |
No description. |
ToMetadata |
No description. |
ToTerraform |
Adds this resource to the terraform JSON output. |
ResetAlias |
No description. |
ResetClientCertificate |
No description. |
ResetClientKey |
No description. |
ResetClusterCaCertificate |
No description. |
ResetConfigContext |
No description. |
ResetConfigContextAuthInfo |
No description. |
ResetConfigContextCluster |
No description. |
ResetConfigPath |
No description. |
ResetConfigPaths |
No description. |
ResetExec |
No description. |
ResetExperiments |
No description. |
ResetHost |
No description. |
ResetIgnoreAnnotations |
No description. |
ResetIgnoreLabels |
No description. |
ResetInsecure |
No description. |
ResetPassword |
No description. |
ResetProxyUrl |
No description. |
ResetTlsServerName |
No description. |
ResetToken |
No description. |
ResetUsername |
No description. |
private string ToString()
Returns a string representation of this construct.
private void AddOverride(string Path, object Value)
- Type: string
- Type: object
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
private object ToHclTerraform()
private object ToMetadata()
private object ToTerraform()
Adds this resource to the terraform JSON output.
private void ResetAlias()
private void ResetClientCertificate()
private void ResetClientKey()
private void ResetClusterCaCertificate()
private void ResetConfigContext()
private void ResetConfigContextAuthInfo()
private void ResetConfigContextCluster()
private void ResetConfigPath()
private void ResetConfigPaths()
private void ResetExec()
private void ResetExperiments()
private void ResetHost()
private void ResetIgnoreAnnotations()
private void ResetIgnoreLabels()
private void ResetInsecure()
private void ResetPassword()
private void ResetProxyUrl()
private void ResetTlsServerName()
private void ResetToken()
private void ResetUsername()
Name | Description |
---|---|
IsConstruct |
Checks if x is a construct. |
IsTerraformElement |
No description. |
IsTerraformProvider |
No description. |
GenerateConfigForImport |
Generates CDKTF code for importing a KubernetesProvider resource upon running "cdktf plan ". |
using HashiCorp.Cdktf.Providers.Kubernetes;
KubernetesProvider.IsConstruct(object X);
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: object
Any object.
using HashiCorp.Cdktf.Providers.Kubernetes;
KubernetesProvider.IsTerraformElement(object X);
- Type: object
using HashiCorp.Cdktf.Providers.Kubernetes;
KubernetesProvider.IsTerraformProvider(object X);
- Type: object
using HashiCorp.Cdktf.Providers.Kubernetes;
KubernetesProvider.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null);
Generates CDKTF code for importing a KubernetesProvider resource upon running "cdktf plan ".
- Type: Constructs.Construct
The scope in which to define this construct.
- Type: string
The construct id used in the generated config for the KubernetesProvider to import.
- Type: string
The id of the existing KubernetesProvider that should be imported.
Refer to the {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#import import section} in the documentation of this resource for the id to use
- Type: HashiCorp.Cdktf.TerraformProvider
? Optional instance of the provider where the KubernetesProvider to import is found.
Name | Type | Description |
---|---|---|
Node |
Constructs.Node |
The tree node. |
CdktfStack |
HashiCorp.Cdktf.TerraformStack |
No description. |
Fqn |
string |
No description. |
FriendlyUniqueId |
string |
No description. |
MetaAttributes |
System.Collections.Generic.IDictionary<string, object> |
No description. |
TerraformResourceType |
string |
No description. |
TerraformGeneratorMetadata |
HashiCorp.Cdktf.TerraformProviderGeneratorMetadata |
No description. |
TerraformProviderSource |
string |
No description. |
Alias |
string |
No description. |
AliasInput |
string |
No description. |
ClientCertificateInput |
string |
No description. |
ClientKeyInput |
string |
No description. |
ClusterCaCertificateInput |
string |
No description. |
ConfigContextAuthInfoInput |
string |
No description. |
ConfigContextClusterInput |
string |
No description. |
ConfigContextInput |
string |
No description. |
ConfigPathInput |
string |
No description. |
ConfigPathsInput |
string[] |
No description. |
ExecInput |
object |
No description. |
ExperimentsInput |
object |
No description. |
HostInput |
string |
No description. |
IgnoreAnnotationsInput |
string[] |
No description. |
IgnoreLabelsInput |
string[] |
No description. |
InsecureInput |
object |
No description. |
PasswordInput |
string |
No description. |
ProxyUrlInput |
string |
No description. |
TlsServerNameInput |
string |
No description. |
TokenInput |
string |
No description. |
UsernameInput |
string |
No description. |
ClientCertificate |
string |
No description. |
ClientKey |
string |
No description. |
ClusterCaCertificate |
string |
No description. |
ConfigContext |
string |
No description. |
ConfigContextAuthInfo |
string |
No description. |
ConfigContextCluster |
string |
No description. |
ConfigPath |
string |
No description. |
ConfigPaths |
string[] |
No description. |
Exec |
object |
No description. |
Experiments |
object |
No description. |
Host |
string |
No description. |
IgnoreAnnotations |
string[] |
No description. |
IgnoreLabels |
string[] |
No description. |
Insecure |
object |
No description. |
Password |
string |
No description. |
ProxyUrl |
string |
No description. |
TlsServerName |
string |
No description. |
Token |
string |
No description. |
Username |
string |
No description. |
public Node Node { get; }
- Type: Constructs.Node
The tree node.
public TerraformStack CdktfStack { get; }
- Type: HashiCorp.Cdktf.TerraformStack
public string Fqn { get; }
- Type: string
public string FriendlyUniqueId { get; }
- Type: string
public System.Collections.Generic.IDictionary<string, object> MetaAttributes { get; }
- Type: System.Collections.Generic.IDictionary<string, object>
public string TerraformResourceType { get; }
- Type: string
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
- Type: HashiCorp.Cdktf.TerraformProviderGeneratorMetadata
public string TerraformProviderSource { get; }
- Type: string
public string Alias { get; }
- Type: string
public string AliasInput { get; }
- Type: string
public string ClientCertificateInput { get; }
- Type: string
public string ClientKeyInput { get; }
- Type: string
public string ClusterCaCertificateInput { get; }
- Type: string
public string ConfigContextAuthInfoInput { get; }
- Type: string
public string ConfigContextClusterInput { get; }
- Type: string
public string ConfigContextInput { get; }
- Type: string
public string ConfigPathInput { get; }
- Type: string
public string[] ConfigPathsInput { get; }
- Type: string[]
public object ExecInput { get; }
- Type: object
public object ExperimentsInput { get; }
- Type: object
public string HostInput { get; }
- Type: string
public string[] IgnoreAnnotationsInput { get; }
- Type: string[]
public string[] IgnoreLabelsInput { get; }
- Type: string[]
public object InsecureInput { get; }
- Type: object
public string PasswordInput { get; }
- Type: string
public string ProxyUrlInput { get; }
- Type: string
public string TlsServerNameInput { get; }
- Type: string
public string TokenInput { get; }
- Type: string
public string UsernameInput { get; }
- Type: string
public string ClientCertificate { get; }
- Type: string
public string ClientKey { get; }
- Type: string
public string ClusterCaCertificate { get; }
- Type: string
public string ConfigContext { get; }
- Type: string
public string ConfigContextAuthInfo { get; }
- Type: string
public string ConfigContextCluster { get; }
- Type: string
public string ConfigPath { get; }
- Type: string
public string[] ConfigPaths { get; }
- Type: string[]
public object Exec { get; }
- Type: object
public object Experiments { get; }
- Type: object
public string Host { get; }
- Type: string
public string[] IgnoreAnnotations { get; }
- Type: string[]
public string[] IgnoreLabels { get; }
- Type: string[]
public object Insecure { get; }
- Type: object
public string Password { get; }
- Type: string
public string ProxyUrl { get; }
- Type: string
public string TlsServerName { get; }
- Type: string
public string Token { get; }
- Type: string
public string Username { get; }
- Type: string
Name | Type | Description |
---|---|---|
TfResourceType |
string |
No description. |
public string TfResourceType { get; }
- Type: string
using HashiCorp.Cdktf.Providers.Kubernetes;
new KubernetesProviderConfig {
string Alias = null,
string ClientCertificate = null,
string ClientKey = null,
string ClusterCaCertificate = null,
string ConfigContext = null,
string ConfigContextAuthInfo = null,
string ConfigContextCluster = null,
string ConfigPath = null,
string[] ConfigPaths = null,
object Exec = null,
object Experiments = null,
string Host = null,
string[] IgnoreAnnotations = null,
string[] IgnoreLabels = null,
object Insecure = null,
string Password = null,
string ProxyUrl = null,
string TlsServerName = null,
string Token = null,
string Username = null
};
Name | Type | Description |
---|---|---|
Alias |
string |
Alias name. |
ClientCertificate |
string |
PEM-encoded client certificate for TLS authentication. |
ClientKey |
string |
PEM-encoded client certificate key for TLS authentication. |
ClusterCaCertificate |
string |
PEM-encoded root certificates bundle for TLS authentication. |
ConfigContext |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_context KubernetesProvider#config_context}. |
ConfigContextAuthInfo |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_context_auth_info KubernetesProvider#config_context_auth_info}. |
ConfigContextCluster |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_context_cluster KubernetesProvider#config_context_cluster}. |
ConfigPath |
string |
Path to the kube config file. Can be set with KUBE_CONFIG_PATH. |
ConfigPaths |
string[] |
A list of paths to kube config files. Can be set with KUBE_CONFIG_PATHS environment variable. |
Exec |
object |
exec block. |
Experiments |
object |
experiments block. |
Host |
string |
The hostname (in form of URI) of Kubernetes master. |
IgnoreAnnotations |
string[] |
List of Kubernetes metadata annotations to ignore across all resources handled by this provider for situations where external systems are managing certain resource annotations. |
IgnoreLabels |
string[] |
List of Kubernetes metadata labels to ignore across all resources handled by this provider for situations where external systems are managing certain resource labels. |
Insecure |
object |
Whether server should be accessed without verifying the TLS certificate. |
Password |
string |
The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint. |
ProxyUrl |
string |
URL to the proxy to be used for all API requests. |
TlsServerName |
string |
Server name passed to the server for SNI and is used in the client to check server certificates against. |
Token |
string |
Token to authenticate an service account. |
Username |
string |
The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint. |
public string Alias { get; set; }
- Type: string
Alias name.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#alias KubernetesProvider#alias}
public string ClientCertificate { get; set; }
- Type: string
PEM-encoded client certificate for TLS authentication.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#client_certificate KubernetesProvider#client_certificate}
public string ClientKey { get; set; }
- Type: string
PEM-encoded client certificate key for TLS authentication.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#client_key KubernetesProvider#client_key}
public string ClusterCaCertificate { get; set; }
- Type: string
PEM-encoded root certificates bundle for TLS authentication.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#cluster_ca_certificate KubernetesProvider#cluster_ca_certificate}
public string ConfigContext { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_context KubernetesProvider#config_context}.
public string ConfigContextAuthInfo { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_context_auth_info KubernetesProvider#config_context_auth_info}.
public string ConfigContextCluster { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_context_cluster KubernetesProvider#config_context_cluster}.
public string ConfigPath { get; set; }
- Type: string
Path to the kube config file. Can be set with KUBE_CONFIG_PATH.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_path KubernetesProvider#config_path}
public string[] ConfigPaths { get; set; }
- Type: string[]
A list of paths to kube config files. Can be set with KUBE_CONFIG_PATHS environment variable.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#config_paths KubernetesProvider#config_paths}
public object Exec { get; set; }
- Type: object
exec block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#exec KubernetesProvider#exec}
public object Experiments { get; set; }
- Type: object
experiments block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#experiments KubernetesProvider#experiments}
public string Host { get; set; }
- Type: string
The hostname (in form of URI) of Kubernetes master.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#host KubernetesProvider#host}
public string[] IgnoreAnnotations { get; set; }
- Type: string[]
List of Kubernetes metadata annotations to ignore across all resources handled by this provider for situations where external systems are managing certain resource annotations.
Each item is a regular expression.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#ignore_annotations KubernetesProvider#ignore_annotations}
public string[] IgnoreLabels { get; set; }
- Type: string[]
List of Kubernetes metadata labels to ignore across all resources handled by this provider for situations where external systems are managing certain resource labels.
Each item is a regular expression.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#ignore_labels KubernetesProvider#ignore_labels}
public object Insecure { get; set; }
- Type: object
Whether server should be accessed without verifying the TLS certificate.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#insecure KubernetesProvider#insecure}
public string Password { get; set; }
- Type: string
The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#password KubernetesProvider#password}
public string ProxyUrl { get; set; }
- Type: string
URL to the proxy to be used for all API requests.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#proxy_url KubernetesProvider#proxy_url}
public string TlsServerName { get; set; }
- Type: string
Server name passed to the server for SNI and is used in the client to check server certificates against.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#tls_server_name KubernetesProvider#tls_server_name}
public string Token { get; set; }
- Type: string
Token to authenticate an service account.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#token KubernetesProvider#token}
public string Username { get; set; }
- Type: string
The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#username KubernetesProvider#username}
using HashiCorp.Cdktf.Providers.Kubernetes;
new KubernetesProviderExec {
string ApiVersion,
string Command,
string[] Args = null,
System.Collections.Generic.IDictionary<string, string> Env = null
};
Name | Type | Description |
---|---|---|
ApiVersion |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#api_version KubernetesProvider#api_version}. |
Command |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#command KubernetesProvider#command}. |
Args |
string[] |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#args KubernetesProvider#args}. |
Env |
System.Collections.Generic.IDictionary<string, string> |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#env KubernetesProvider#env}. |
public string ApiVersion { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#api_version KubernetesProvider#api_version}.
public string Command { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#command KubernetesProvider#command}.
public string[] Args { get; set; }
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#args KubernetesProvider#args}.
public System.Collections.Generic.IDictionary<string, string> Env { get; set; }
- Type: System.Collections.Generic.IDictionary<string, string>
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#env KubernetesProvider#env}.
using HashiCorp.Cdktf.Providers.Kubernetes;
new KubernetesProviderExperiments {
object ManifestResource = null
};
Name | Type | Description |
---|---|---|
ManifestResource |
object |
Enable the kubernetes_manifest resource. |
public object ManifestResource { get; set; }
- Type: object
Enable the kubernetes_manifest
resource.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.30.0/docs#manifest_resource KubernetesProvider#manifest_resource}