Skip to content
v2.274.0

HttpParameter Class ​

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

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()
python
HttpParameter()
java
new HttpParameter()
csharp
new HttpParameter()
go
NewHttpParameter()

Methods ​

fromSecret(value: SecretValue): HttpParameter // chainable@staticmethod def from_secret(value: SecretValue) -> HttpParameterpublic static HttpParameter fromSecret(SecretValue value)public static HttpParameter FromSecret(SecretValue value)func FromSecret(Value SecretValue) HttpParameterstatic#
Make an OAuthParameter from a secret.
fromString(value: string): HttpParameter // chainable@staticmethod def from_string(value: str) -> HttpParameterpublic static HttpParameter fromString(String value)public static HttpParameter FromString(string value)func FromString(Value *string) HttpParameterstatic#
Make an OAuthParameter from a string value.

The value is not treated as a secret.