Class WebSocketRouteIntegrationConfig
Config returned back as a result of the bind.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class WebSocketRouteIntegrationConfig : Object, IWebSocketRouteIntegrationConfig
Syntax (vb)
Public Class WebSocketRouteIntegrationConfig
Inherits Object
Implements IWebSocketRouteIntegrationConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Apigatewayv2;
using Amazon.CDK.AWS.IAM;
Role role;
var webSocketRouteIntegrationConfig = new WebSocketRouteIntegrationConfig {
Type = WebSocketIntegrationType.AWS_PROXY,
Uri = "uri",
// the properties below are optional
ContentHandling = ContentHandling.CONVERT_TO_BINARY,
CredentialsRole = role,
Method = "method",
PassthroughBehavior = PassthroughBehavior.WHEN_NO_MATCH,
RequestParameters = new Dictionary<string, string> {
{ "requestParametersKey", "requestParameters" }
},
RequestTemplates = new Dictionary<string, string> {
{ "requestTemplatesKey", "requestTemplates" }
},
TemplateSelectionExpression = "templateSelectionExpression",
Timeout = Duration.Minutes(30)
};
Synopsis
Constructors
WebSocketRouteIntegrationConfig() |
Properties
ContentHandling | Specifies how to handle response payload content type conversions. |
CredentialsRole | Credentials role. |
Method | Integration method. |
PassthroughBehavior | Integration passthrough behaviors. |
RequestParameters | Request parameters. |
RequestTemplates | Request template. |
TemplateSelectionExpression | Template selection expression. |
Timeout | The maximum amount of time an integration will run before it returns without a response. |
Type | Integration type. |
Uri | Integration URI. |
Constructors
WebSocketRouteIntegrationConfig()
public WebSocketRouteIntegrationConfig()
Properties
ContentHandling
Specifies how to handle response payload content type conversions.
public Nullable<ContentHandling> ContentHandling { get; set; }
Property Value
System.Nullable<ContentHandling>
Remarks
Default: - The response payload will be passed through from the integration response to the route response or method response without modification.
CredentialsRole
Credentials role.
public IRole CredentialsRole { get; set; }
Property Value
Remarks
Default: - No role provided.
Method
Integration method.
public string Method { get; set; }
Property Value
System.String
Remarks
Default: - No integration method.
PassthroughBehavior
Integration passthrough behaviors.
public Nullable<PassthroughBehavior> PassthroughBehavior { get; set; }
Property Value
System.Nullable<PassthroughBehavior>
Remarks
Default: - No pass through bahavior.
RequestParameters
Request parameters.
public IDictionary<string, string> RequestParameters { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - No request parameters provided.
RequestTemplates
Request template.
public IDictionary<string, string> RequestTemplates { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - No request template provided.
TemplateSelectionExpression
Template selection expression.
public string TemplateSelectionExpression { get; set; }
Property Value
System.String
Remarks
Default: - No template selection expression.
Timeout
The maximum amount of time an integration will run before it returns without a response.
public Duration Timeout { get; set; }
Property Value
Remarks
Must be between 50 milliseconds and 29 seconds.
Default: Duration.seconds(29)
Type
Integration type.
public WebSocketIntegrationType Type { get; set; }
Property Value
Uri
Integration URI.
public string Uri { get; set; }
Property Value
System.String