# AccessConfigProperty

The access configuration for the cluster.

- Source: Generated at build time
- Type last changed: v2.117.0 · 27 Dec 2023

## Example

TypeScript:

```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 accessConfigProperty: eks.CfnCluster.AccessConfigProperty = {
  authenticationMode: 'authenticationMode',
  bootstrapClusterCreatorAdminPermissions: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

access_config_property = eks.CfnCluster.AccessConfigProperty(
    authentication_mode="authenticationMode",
    bootstrap_cluster_creator_admin_permissions=False
)
```

Java:

```java
// 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.*;

AccessConfigProperty accessConfigProperty = AccessConfigProperty.builder()
        .authenticationMode("authenticationMode")
        .bootstrapClusterCreatorAdminPermissions(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var accessConfigProperty = new AccessConfigProperty {
    AuthenticationMode = "authenticationMode",
    BootstrapClusterCreatorAdminPermissions = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

accessConfigProperty := &AccessConfigProperty{
	AuthenticationMode: jsii.String("authenticationMode"),
	BootstrapClusterCreatorAdminPermissions: jsii.Boolean(false),
}
```

## Properties

- `authenticationMode`: string — The desired authentication mode for the cluster.

  If you create a cluster by using the EKS API, AWS SDKs, or AWS CloudFormation , the default is `CONFIG_MAP` . If you create the cluster by using the AWS Management Console , the default value is `API_AND_CONFIG_MAP` .

- `bootstrapClusterCreatorAdminPermissions`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.

  The default value is `true` .
