interface GrpcConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.GrpcConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_GrpcConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.GrpcConfigProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.GrpcConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » GrpcConfigProperty |
Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) framework built on HTTP/2.
gRPC offers bi-directional streaming and binary protocol that buffers payloads, making it suitable for applications that require low latency communications.
To enable your distribution to handle gRPC requests, you must include HTTP/2 as one of the supported HTTP versions and allow HTTP methods, including POST .
For more information, see Using gRPC with CloudFront distributions in the Amazon CloudFront Developer Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const grpcConfigProperty: cloudfront_mixins.CfnDistributionPropsMixin.GrpcConfigProperty = {
enabled: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| enabled? | boolean | IResolvable | Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins. |
enabled?
Type:
boolean | IResolvable
(optional)
Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.

.NET
Go
Java
Python
TypeScript