# ListenerTimeoutProperty

An object that represents timeouts for different protocols.

- 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 listenerTimeoutProperty: appmesh.CfnVirtualNode.ListenerTimeoutProperty = {
  grpc: {
    idle: {
      unit: 'unit',
      value: 123,
    },
    perRequest: {
      unit: 'unit',
      value: 123,
    },
  },
  http: {
    idle: {
      unit: 'unit',
      value: 123,
    },
    perRequest: {
      unit: 'unit',
      value: 123,
    },
  },
  http2: {
    idle: {
      unit: 'unit',
      value: 123,
    },
    perRequest: {
      unit: 'unit',
      value: 123,
    },
  },
  tcp: {
    idle: {
      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

listener_timeout_property = appmesh.CfnVirtualNode.ListenerTimeoutProperty(
    grpc=appmesh.CfnVirtualNode.GrpcTimeoutProperty(
        idle=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    http=appmesh.CfnVirtualNode.HttpTimeoutProperty(
        idle=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    http2=appmesh.CfnVirtualNode.HttpTimeoutProperty(
        idle=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    tcp=appmesh.CfnVirtualNode.TcpTimeoutProperty(
        idle=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.*;

ListenerTimeoutProperty listenerTimeoutProperty = ListenerTimeoutProperty.builder()
        .grpc(GrpcTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .perRequest(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .http(HttpTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .perRequest(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .http2(HttpTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .perRequest(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .tcp(TcpTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .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 listenerTimeoutProperty = new ListenerTimeoutProperty {
    Grpc = new GrpcTimeoutProperty {
        Idle = new DurationProperty {
            Unit = "unit",
            Value = 123
        },
        PerRequest = new DurationProperty {
            Unit = "unit",
            Value = 123
        }
    },
    Http = new HttpTimeoutProperty {
        Idle = new DurationProperty {
            Unit = "unit",
            Value = 123
        },
        PerRequest = new DurationProperty {
            Unit = "unit",
            Value = 123
        }
    },
    Http2 = new HttpTimeoutProperty {
        Idle = new DurationProperty {
            Unit = "unit",
            Value = 123
        },
        PerRequest = new DurationProperty {
            Unit = "unit",
            Value = 123
        }
    },
    Tcp = new TcpTimeoutProperty {
        Idle = 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"

listenerTimeoutProperty := &ListenerTimeoutProperty{
	Grpc: &GrpcTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
		PerRequest: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
	Http: &HttpTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
		PerRequest: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
	Http2: &HttpTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
		PerRequest: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
	Tcp: &TcpTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
}
```

## Properties

- `grpc`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.GrpcTimeoutProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.GrpcTimeoutProperty.html) — An object that represents types of timeouts.

- `http`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.HttpTimeoutProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.HttpTimeoutProperty.html) — An object that represents types of timeouts.

- `http2`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.HttpTimeoutProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.HttpTimeoutProperty.html) — An object that represents types of timeouts.

- `tcp`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.TcpTimeoutProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.TcpTimeoutProperty.html) — An object that represents types of timeouts.
