# HttpApiEventProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `apiId`: string

- `auth`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.HttpApiFunctionAuthProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.HttpApiFunctionAuthProperty.html)

- `method`: string

- `path`: string

- `payloadFormatVersion`: string

- `routeSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.RouteSettingsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.RouteSettingsProperty.html)

- `timeoutInMillis`: number
