HttpApiEventProperty Struct
| 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_sam as sam } from 'aws-cdk-lib';
const httpApiEventProperty: sam.CfnFunction.HttpApiEventProperty = {
apiId: 'apiId',
auth: {
authorizationScopes: ['authorizationScopes'],
authorizer: 'authorizer',
},
method: 'method',
path: 'path',
payloadFormatVersion: 'payloadFormatVersion',
routeSettings: {
dataTraceEnabled: false,
detailedMetricsEnabled: false,
loggingLevel: 'loggingLevel',
throttlingBurstLimit: 123,
throttlingRateLimit: 123,
},
timeoutInMillis: 123,
};
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_sam as sam
http_api_event_property = sam.CfnFunction.HttpApiEventProperty(
api_id="apiId",
auth=sam.CfnFunction.HttpApiFunctionAuthProperty(
authorization_scopes=["authorizationScopes"],
authorizer="authorizer"
),
method="method",
path="path",
payload_format_version="payloadFormatVersion",
route_settings=sam.CfnFunction.RouteSettingsProperty(
data_trace_enabled=False,
detailed_metrics_enabled=False,
logging_level="loggingLevel",
throttling_burst_limit=123,
throttling_rate_limit=123
),
timeout_in_millis=123
)
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.sam.*;
HttpApiEventProperty httpApiEventProperty = HttpApiEventProperty.builder()
.apiId("apiId")
.auth(HttpApiFunctionAuthProperty.builder()
.authorizationScopes(List.of("authorizationScopes"))
.authorizer("authorizer")
.build())
.method("method")
.path("path")
.payloadFormatVersion("payloadFormatVersion")
.routeSettings(RouteSettingsProperty.builder()
.dataTraceEnabled(false)
.detailedMetricsEnabled(false)
.loggingLevel("loggingLevel")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build())
.timeoutInMillis(123)
.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.SAM;
var httpApiEventProperty = new HttpApiEventProperty {
ApiId = "apiId",
Auth = new HttpApiFunctionAuthProperty {
AuthorizationScopes = new [] { "authorizationScopes" },
Authorizer = "authorizer"
},
Method = "method",
Path = "path",
PayloadFormatVersion = "payloadFormatVersion",
RouteSettings = new RouteSettingsProperty {
DataTraceEnabled = false,
DetailedMetricsEnabled = false,
LoggingLevel = "loggingLevel",
ThrottlingBurstLimit = 123,
ThrottlingRateLimit = 123
},
TimeoutInMillis = 123
};
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"
httpApiEventProperty := &HttpApiEventProperty{
ApiId: jsii.String("apiId"),
Auth: &HttpApiFunctionAuthProperty{
AuthorizationScopes: []*string{
jsii.String("authorizationScopes"),
},
Authorizer: jsii.String("authorizer"),
},
Method: jsii.String("method"),
Path: jsii.String("path"),
PayloadFormatVersion: jsii.String("payloadFormatVersion"),
RouteSettings: &RouteSettingsProperty{
DataTraceEnabled: jsii.Boolean(false),
DetailedMetricsEnabled: jsii.Boolean(false),
LoggingLevel: jsii.String("loggingLevel"),
ThrottlingBurstLimit: jsii.Number(123),
ThrottlingRateLimit: jsii.Number(123),
},
TimeoutInMillis: jsii.Number(123),
}
Properties
authoptionalIResolvable | CfnFunction.authoptionaltyping.Union[IResolvable, HttpApiFunctionAuthProperty]authoptionalIResolvableAuthoptionalIResolvableAuthoptionalinterface{} #methodoptionalstringmethodoptionalstrmethodoptionalStringMethodoptionalstringMethodoptional*string #payloadFormatVersionoptionalstringpayload_format_versionoptionalstrpayloadFormatVersionoptionalStringPayloadFormatVersionoptionalstringPayloadFormatVersionoptional*string #routeSettingsoptionalIResolvable | CfnFunction.route_settingsoptionaltyping.Union[IResolvable, RouteSettingsProperty]routeSettingsoptionalIResolvableRouteSettingsoptionalIResolvableRouteSettingsoptionalinterface{} #timeoutInMillisoptionalnumbertimeout_in_millisoptionalint | floattimeoutInMillisoptionalNumberTimeoutInMillisoptionaldoubleTimeoutInMillisoptional*float64 #