# ApiKeyDetailsProperty

API key authentication details.

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const apiKeyDetailsProperty: devopsagent.CfnService.ApiKeyDetailsProperty = {
  apiKeyHeader: 'apiKeyHeader',
  apiKeyName: 'apiKeyName',
  apiKeyValue: 'apiKeyValue',
};
```

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_devopsagent as devopsagent

api_key_details_property = devopsagent.CfnService.ApiKeyDetailsProperty(
    api_key_header="apiKeyHeader",
    api_key_name="apiKeyName",
    api_key_value="apiKeyValue"
)
```

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

ApiKeyDetailsProperty apiKeyDetailsProperty = ApiKeyDetailsProperty.builder()
        .apiKeyHeader("apiKeyHeader")
        .apiKeyName("apiKeyName")
        .apiKeyValue("apiKeyValue")
        .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.DevOpsAgent;

var apiKeyDetailsProperty = new ApiKeyDetailsProperty {
    ApiKeyHeader = "apiKeyHeader",
    ApiKeyName = "apiKeyName",
    ApiKeyValue = "apiKeyValue"
};
```

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"

apiKeyDetailsProperty := &ApiKeyDetailsProperty{
	ApiKeyHeader: jsii.String("apiKeyHeader"),
	ApiKeyName: jsii.String("apiKeyName"),
	ApiKeyValue: jsii.String("apiKeyValue"),
}
```

## Properties

- `apiKeyHeader`: string (required) — HTTP header name to send the API key.

- `apiKeyName`: string (required) — User friendly API key name.

- `apiKeyValue`: string (required) — API key value.
