class HttpParameter
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Events.HttpParameter |
![]() | software.amazon.awscdk.services.events.HttpParameter |
![]() | aws_cdk.aws_events.HttpParameter |
![]() | @aws-cdk/aws-events » HttpParameter |
An additional HTTP parameter to send along with the OAuth request.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as events from '@aws-cdk/aws-events';
import * as cdk from '@aws-cdk/core';
declare const secretValue: cdk.SecretValue;
const httpParameter = events.HttpParameter.fromSecret(secretValue);
Initializer
new HttpParameter()
Methods
Name | Description |
---|---|
static from | Make an OAuthParameter from a secret. |
static from | Make an OAuthParameter from a string value. |
static fromSecret(value)
public static fromSecret(value: SecretValue): HttpParameter
Parameters
- value
Secret
Value
Returns
Make an OAuthParameter from a secret.
static fromString(value)
public static fromString(value: string): HttpParameter
Parameters
- value
string
Returns
Make an OAuthParameter from a string value.
The value is not treated as a secret.