# HttpTimeoutProperty

An object that represents types of timeouts.

- 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_appmesh as appmesh } from 'aws-cdk-lib';
const httpTimeoutProperty: appmesh.CfnVirtualNode.HttpTimeoutProperty = {
  idle: {
    unit: 'unit',
    value: 123,
  },
  perRequest: {
    unit: 'unit',
    value: 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_appmesh as appmesh

http_timeout_property = appmesh.CfnVirtualNode.HttpTimeoutProperty(
    idle=appmesh.CfnVirtualNode.DurationProperty(
        unit="unit",
        value=123
    ),
    per_request=appmesh.CfnVirtualNode.DurationProperty(
        unit="unit",
        value=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.appmesh.*;

HttpTimeoutProperty httpTimeoutProperty = HttpTimeoutProperty.builder()
        .idle(DurationProperty.builder()
                .unit("unit")
                .value(123)
                .build())
        .perRequest(DurationProperty.builder()
                .unit("unit")
                .value(123)
                .build())
        .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.AppMesh;

var httpTimeoutProperty = new HttpTimeoutProperty {
    Idle = new DurationProperty {
        Unit = "unit",
        Value = 123
    },
    PerRequest = new DurationProperty {
        Unit = "unit",
        Value = 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"

httpTimeoutProperty := &HttpTimeoutProperty{
	Idle: &DurationProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
	PerRequest: &DurationProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
}
```

## Properties

- `idle`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.DurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.DurationProperty.html) — An object that represents an idle timeout.

  An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

- `perRequest`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.DurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.DurationProperty.html) — An object that represents a per request timeout.

  The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
