# CfnCapabilityProps

Properties for defining a `CfnCapability`.

Extends: CfnCapabilityProps
Used as props by: CfnCapability

- Source: Generated code
- Type last changed: v2.231.0 · 1 Dec 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const cfnCapabilityProps: eks.CfnCapabilityProps = {
  capabilityName: 'capabilityName',
  clusterName: 'clusterName',
  deletePropagationPolicy: 'deletePropagationPolicy',
  roleArn: 'roleArn',
  type: 'type',

  // the properties below are optional
  configuration: {
    ack: {
      disabledServices: ['disabledServices'],
      enableCrossNamespace: false,
    },
    argoCd: {
      awsIdc: {
        idcInstanceArn: 'idcInstanceArn',

        // the properties below are optional
        idcManagedApplicationArn: 'idcManagedApplicationArn',
        idcRegion: 'idcRegion',
      },

      // the properties below are optional
      endpointPrefix: 'endpointPrefix',
      namespace: 'namespace',
      networkAccess: {
        vpceIds: ['vpceIds'],
      },
      rbacRoleMappings: [{
        identities: [{
          id: 'id',
          type: 'type',
        }],
        role: 'role',
      }],
      serverUrl: 'serverUrl',
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `capabilityName`: string (required) — The unique name of the capability within the cluster.

- `clusterName`: string (required) — The name of the Amazon EKS cluster that contains this capability.

- `configuration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCapability.CapabilityConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_eks.CfnCapability.CapabilityConfigurationProperty.html) — The configuration settings for the capability.

  The structure varies depending on the capability type.

- `deletePropagationPolicy`: string (required) — The delete propagation policy for the capability.

  Currently, the only supported value is `RETAIN` , which keeps all resources managed by the capability when the capability is deleted.

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with AWS services.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

- `type`: string (required) — The type of capability.

  Valid values are `ACK` , `ARGOCD` , or `KRO` .
