@aws-quickstart/eks-blueprints
    Preparing search index...

    Class Capability

    Base class for EKS capabilities that provides common functionality for creating and configuring EKS capabilities with proper IAM roles and policies.

    This class handles the CDK v2.224.0+ compatibility by ensuring managed policies are created within proper construct scope to avoid UnscopedValidationError.

    Hierarchy (View Summary)

    Implements

    Index
    DEFAULT_POLICY_NAME: string | undefined = undefined

    Default AWS managed policy name for this capability type. Set to undefined in base class for security - subclasses should override.

    Configuration properties for the capability

    CapabilityType

    • Sets up IAM role for the capability with appropriate policies. Creates managed policy references within stack context to avoid CDK v2.224.0+ issues.

      Parameters

      • clusterInfo: ClusterInfo

        Information about the target EKS cluster

      • capabilityType: CapabilityType

        Type of capability being created

      • OptionalpolicyName: string

        Optional custom managed policy name

      • OptionalpolicyDocument: PolicyDocument

        Optional inline policy document

      Returns string

      ARN of the created or configured IAM role