interface GrpcConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudFront.CfnDistributionPropsMixin.GrpcConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudfront#CfnDistributionPropsMixin_GrpcConfigProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.GrpcConfigProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudfront.CfnDistributionPropsMixin.GrpcConfigProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudfront » 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 { aws_cloudfront as cloudfront } from '@aws-cdk/cfn-property-mixins';
const grpcConfigProperty: cloudfront.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