HttpParametersProperty Struct
These are custom parameter to be used when the target is an API Gateway APIs or EventBridge ApiDestinations.
In the latter case, these are merged with any InvocationParameters specified on the Connection, with any values from the Connection taking precedence.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const httpParametersProperty: events.CfnRule.HttpParametersProperty = {
headerParameters: {
headerParametersKey: 'headerParameters',
},
pathParameterValues: ['pathParameterValues'],
queryStringParameters: {
queryStringParametersKey: 'queryStringParameters',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_events as events
http_parameters_property = events.CfnRule.HttpParametersProperty(
header_parameters={
"header_parameters_key": "headerParameters"
},
path_parameter_values=["pathParameterValues"],
query_string_parameters={
"query_string_parameters_key": "queryStringParameters"
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
HttpParametersProperty httpParametersProperty = HttpParametersProperty.builder()
.headerParameters(Map.of(
"headerParametersKey", "headerParameters"))
.pathParameterValues(List.of("pathParameterValues"))
.queryStringParameters(Map.of(
"queryStringParametersKey", "queryStringParameters"))
.build();
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.AWS.Events;
var httpParametersProperty = new HttpParametersProperty {
HeaderParameters = new Dictionary<string, string> {
{ "headerParametersKey", "headerParameters" }
},
PathParameterValues = new [] { "pathParameterValues" },
QueryStringParameters = new Dictionary<string, string> {
{ "queryStringParametersKey", "queryStringParameters" }
}
};
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 "github.com/aws/aws-cdk-go/awscdk"
httpParametersProperty := &HttpParametersProperty{
HeaderParameters: map[string]*string{
"headerParametersKey": jsii.String("headerParameters"),
},
PathParameterValues: []*string{
jsii.String("pathParameterValues"),
},
QueryStringParameters: map[string]*string{
"queryStringParametersKey": jsii.String("queryStringParameters"),
},
}
Properties
headerParametersoptionalIResolvable | { [key: string]: string }header_parametersoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]headerParametersoptionalIResolvableHeaderParametersoptionalIResolvableHeaderParametersoptionalinterface{} #The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
pathParameterValuesoptionalstring[]path_parameter_valuesoptionaltyping.List[str]pathParameterValuesoptionalList<String>PathParameterValuesoptionalstring[]PathParameterValuesoptional*[]*string #The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").
queryStringParametersoptionalIResolvable | { [key: string]: string }query_string_parametersoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]queryStringParametersoptionalIResolvableQueryStringParametersoptionalIResolvableQueryStringParametersoptionalinterface{} #The query string keys/values that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.