# ApiKeyAuthParametersProperty

The API key authorization parameters for the connection.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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_events as events } from 'aws-cdk-lib';
const apiKeyAuthParametersProperty: events.CfnConnection.ApiKeyAuthParametersProperty = {
  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_events as events

api_key_auth_parameters_property = events.CfnConnection.ApiKeyAuthParametersProperty(
    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.events.*;

ApiKeyAuthParametersProperty apiKeyAuthParametersProperty = ApiKeyAuthParametersProperty.builder()
        .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.Events;

var apiKeyAuthParametersProperty = new ApiKeyAuthParametersProperty {
    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"

apiKeyAuthParametersProperty := &ApiKeyAuthParametersProperty{
	ApiKeyName: jsii.String("apiKeyName"),
	ApiKeyValue: jsii.String("apiKeyValue"),
}
```

## Properties

- `apiKeyName`: string (required) — The name of the API key to use for authorization.

- `apiKeyValue`: string (required) — The value for the API key to use for authorization.
