# HttpParameter

An additional HTTP parameter to send along with the OAuth request.

Obtainable from: HttpParameter.fromSecret, HttpParameter.fromString

- Source: [`aws-events/lib/connection.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-events/lib/connection.ts#L195)
- Type last changed: v2.13.0 · 19 Feb 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_events as events } from 'aws-cdk-lib';

declare const secretValue: cdk.SecretValue;
const httpParameter = events.HttpParameter.fromSecret(secretValue);
```

Python:

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

# secret_value: cdk.SecretValue

http_parameter = events.HttpParameter.from_secret(secret_value)
```

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.*;
import software.amazon.awscdk.services.events.*;

SecretValue secretValue;

HttpParameter httpParameter = HttpParameter.fromSecret(secretValue);
```

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;
using Amazon.CDK.AWS.Events;

SecretValue secretValue;

var httpParameter = HttpParameter.FromSecret(secretValue);
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var secretValue SecretValue

httpParameter := awscdk.Aws_events.HttpParameter_FromSecret(secretValue)
```

## Initializer

TypeScript:

```ts
new HttpParameter()
```

Python:

```python
HttpParameter()
```

Java:

```java
new HttpParameter()
```

C# / .NET:

```csharp
new HttpParameter()
```

Golang:

```go
NewHttpParameter()
```

## Methods

- `fromSecret(value: SecretValue): HttpParameter // chainable` (static) — Make an OAuthParameter from a secret.

- `fromString(value: string): HttpParameter // chainable` (static) — Make an OAuthParameter from a string value.

  The value is not treated as a secret.
