# EksConfigurationProperty

The `EksConfiguration` structure describes the connection to the Amazon EKS cluster from which a scraper collects metrics.

- Source: Generated at build time
- Type last changed: v2.135.0 · 2 Apr 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const eksConfigurationProperty: aps.CfnScraper.EksConfigurationProperty = {
  clusterArn: 'clusterArn',
  subnetIds: ['subnetIds'],

  // the properties below are optional
  securityGroupIds: ['securityGroupIds'],
};
```

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_aps as aps

eks_configuration_property = aps.CfnScraper.EksConfigurationProperty(
    cluster_arn="clusterArn",
    subnet_ids=["subnetIds"],

    # the properties below are optional
    security_group_ids=["securityGroupIds"]
)
```

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.aps.*;

EksConfigurationProperty eksConfigurationProperty = EksConfigurationProperty.builder()
        .clusterArn("clusterArn")
        .subnetIds(List.of("subnetIds"))

        // the properties below are optional
        .securityGroupIds(List.of("securityGroupIds"))
        .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.APS;

var eksConfigurationProperty = new EksConfigurationProperty {
    ClusterArn = "clusterArn",
    SubnetIds = new [] { "subnetIds" },

    // the properties below are optional
    SecurityGroupIds = new [] { "securityGroupIds" }
};
```

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"

eksConfigurationProperty := &EksConfigurationProperty{
	ClusterArn: jsii.String("clusterArn"),
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},

	// the properties below are optional
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
}
```

## Properties

- `clusterArn`: string (required) — ARN of the Amazon EKS cluster.

- `securityGroupIds`: string[] — A list of the security group IDs for the Amazon EKS cluster VPC configuration.

- `subnetIds`: string[] (required) — A list of subnet IDs for the Amazon EKS cluster VPC configuration.
