Skip to content
v2.278.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);
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
// 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);
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);
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 ​

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) HttpParameter static #
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) HttpParameter static #
Make an OAuthParameter from a string value.

The value is not treated as a secret.