Show / Hide Table of Contents

Class KubectlProviderAttributes

(experimental) Kubectl Provider Attributes.

Inheritance
object
KubectlProviderAttributes
Implements
IKubectlProviderAttributes
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class KubectlProviderAttributes : IKubectlProviderAttributes
Syntax (vb)
Public Class KubectlProviderAttributes Implements IKubectlProviderAttributes
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
using Amazon.CDK.LambdaLayer.KubectlV32;


             var handlerRole = Role.FromRoleArn(this, "HandlerRole", "arn:aws:iam::123456789012:role/lambda-role");
             // get the serivceToken from the custom resource provider
             var functionArn = Function.FromFunctionName(this, "ProviderOnEventFunc", "ProviderframeworkonEvent-XXX").FunctionArn;
             var kubectlProvider = KubectlProvider.FromKubectlProviderAttributes(this, "KubectlProvider", new KubectlProviderAttributes {
                 ServiceToken = functionArn,
                 Role = handlerRole
             });

             var cluster = Cluster.FromClusterAttributes(this, "Cluster", new ClusterAttributes {
                 ClusterName = "cluster",
                 KubectlProvider = kubectlProvider
             });

Synopsis

Constructors

KubectlProviderAttributes()

(experimental) Kubectl Provider Attributes.

Properties

Role

(experimental) The role of the provider lambda function.

ServiceToken

(experimental) The kubectl provider lambda arn.

Constructors

KubectlProviderAttributes()

(experimental) Kubectl Provider Attributes.

public KubectlProviderAttributes()
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
using Amazon.CDK.LambdaLayer.KubectlV32;


             var handlerRole = Role.FromRoleArn(this, "HandlerRole", "arn:aws:iam::123456789012:role/lambda-role");
             // get the serivceToken from the custom resource provider
             var functionArn = Function.FromFunctionName(this, "ProviderOnEventFunc", "ProviderframeworkonEvent-XXX").FunctionArn;
             var kubectlProvider = KubectlProvider.FromKubectlProviderAttributes(this, "KubectlProvider", new KubectlProviderAttributes {
                 ServiceToken = functionArn,
                 Role = handlerRole
             });

             var cluster = Cluster.FromClusterAttributes(this, "Cluster", new ClusterAttributes {
                 ClusterName = "cluster",
                 KubectlProvider = kubectlProvider
             });

Properties

Role

(experimental) The role of the provider lambda function.

public IRole? Role { get; set; }
Property Value

IRole

Remarks

Only required if you deploy helm charts using this imported provider.

Default: - no role.

Stability: Experimental

ServiceToken

(experimental) The kubectl provider lambda arn.

public string ServiceToken { get; set; }
Property Value

string

Remarks

Stability: Experimental

Implements

IKubectlProviderAttributes
Back to top Generated by DocFX