@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:46.627Z") @Stability(value=Stable) public interface CfnAddonProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
CfnAddonProps cfnAddonProps = CfnAddonProps.builder()
.addonName("addonName")
.clusterName("clusterName")
// the properties below are optional
.addonVersion("addonVersion")
.resolveConflicts("resolveConflicts")
.serviceAccountRoleArn("serviceAccountRoleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAddonProps.Builder
A builder for
CfnAddonProps |
static class |
CfnAddonProps.Jsii$Proxy
An implementation for
CfnAddonProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnAddonProps.Builder |
builder() |
String |
getAddonName()
The name of the add-on.
|
default String |
getAddonVersion()
The version of the add-on.
|
String |
getClusterName()
The name of the cluster.
|
default String |
getResolveConflicts()
How to resolve field value conflicts for an Amazon EKS add-on.
|
default String |
getServiceAccountRoleArn()
The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account.
|
default List<CfnTag> |
getTags()
The metadata that you apply to the add-on to assist with categorization and organization.
|
@Stability(value=Stable) @NotNull String getAddonName()
@Stability(value=Stable) @NotNull String getClusterName()
@Stability(value=Stable) @Nullable default String getAddonVersion()
@Stability(value=Stable) @Nullable default String getResolveConflicts()
Conflicts are handled based on the value you choose:
If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.
@Stability(value=Stable) @Nullable default String getServiceAccountRoleArn()
The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide .
To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide .
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
Each tag consists of a key and an optional value, both of which you define. Add-on tags do not propagate to any other resources associated with the cluster.
@Stability(value=Stable) static CfnAddonProps.Builder builder()
CfnAddonProps.Builder of CfnAddonPropsCopyright © 2022. All rights reserved.