AppProtocol Class
Service connect app protocol.
| Source | aws-ecs/lib/container-definition.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const appProtocol = ecs.AppProtocol.grpc;
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_ecs as ecs
app_protocol = ecs.AppProtocol.grpc
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.ecs.*;
AppProtocol appProtocol = AppProtocol.getGrpc();
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.ECS;
var appProtocol = AppProtocol.Grpc;
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"
appProtocol := awscdk.Aws_ecs.AppProtocol_Grpc()
Properties
GRPC app protocol.
HTTP app protocol.
HTTP2 app protocol.
Custom value.