Class Addon
(experimental) Represents an Amazon EKS Add-On.
Inherited Members
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class Addon : Resource, IAddon, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class Addon Inherits Resource Implements IAddon, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Stability: Experimental
Resource: AWS::EKS::Addon
ExampleMetadata: infused
Examples
Cluster cluster;
new Addon(this, "Addon", new AddonProps {
Cluster = cluster,
AddonName = "coredns",
AddonVersion = "v1.11.4-eksbuild.2",
// whether to preserve the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.
PreserveOnDelete = false,
ConfigurationValues = new Dictionary<string, object> {
{ "replicaCount", 2 }
}
});
Synopsis
Constructors
| Addon(Construct, string, IAddonProps) | (experimental) Creates a new Amazon EKS Add-On. |
Properties
| AddonArn | (experimental) Arn of the addon. |
| AddonName | (experimental) Name of the addon. |
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Methods
| FromAddonArn(Construct, string, string) | (experimental) Creates an |
| FromAddonAttributes(Construct, string, IAddonAttributes) | (experimental) Creates an |
Constructors
Addon(Construct, string, IAddonProps)
(experimental) Creates a new Amazon EKS Add-On.
public Addon(Construct scope, string id, IAddonProps props)
Parameters
- scope Construct
The parent construct.
- id string
The construct ID.
- props IAddonProps
The properties for the Add-On.
Remarks
Stability: Experimental
Properties
AddonArn
(experimental) Arn of the addon.
public virtual string AddonArn { get; }
Property Value
Remarks
Stability: Experimental
AddonName
(experimental) Name of the addon.
public virtual string AddonName { get; }
Property Value
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Methods
FromAddonArn(Construct, string, string)
(experimental) Creates an IAddon from an existing addon ARN.
public static IAddon FromAddonArn(Construct scope, string id, string addonArn)
Parameters
- scope Construct
- The parent construct.
- id string
- The ID of the construct.
- addonArn string
- The ARN of the addon.
Returns
An IAddon implementation.
Remarks
Stability: Experimental
FromAddonAttributes(Construct, string, IAddonAttributes)
(experimental) Creates an IAddon instance from the given addon attributes.
public static IAddon FromAddonAttributes(Construct scope, string id, IAddonAttributes attrs)
Parameters
- scope Construct
- The parent construct.
- id string
- The construct ID.
- attrs IAddonAttributes
- The attributes of the addon, including the addon name and the cluster name.
Returns
An IAddon instance.
Remarks
Stability: Experimental