@aws-cdk_aws-apigatewayv2-alpha.WebSocketApiAttributes
interface WebSocketApiAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.Alpha.WebSocketApiAttributes |
![]() | github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2#WebSocketApiAttributes |
![]() | software.amazon.awscdk.services.apigatewayv2.alpha.WebSocketApiAttributes |
![]() | aws_cdk.aws_apigatewayv2_alpha.WebSocketApiAttributes |
![]() | @aws-cdk/aws-apigatewayv2-alpha ยป WebSocketApiAttributes |
Attributes for importing a WebSocketApi into the CDK.
Example
const webSocketApi = apigwv2.WebSocketApi.fromWebSocketApiAttributes(this, 'mywsapi', { webSocketId: 'api-1234' });
Properties
Name | Type | Description |
---|---|---|
web | string | The identifier of the WebSocketApi. |
api | string | The endpoint URL of the WebSocketApi. |
webSocketId
Type:
string
The identifier of the WebSocketApi.
apiEndpoint?
Type:
string
(optional, default: throw san error if apiEndpoint is accessed.)
The endpoint URL of the WebSocketApi.