# HttpParameter

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

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

## Example

```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);
```

## Initializer

```ts
new HttpParameter()
```

## 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.
