Interface ApiGatewayToKinesisStreamsProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiGatewayToKinesisStreamsProps.Jsii$Proxy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiGatewayToKinesisStreamsPropsstatic final classAn implementation forApiGatewayToKinesisStreamsProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Optional PutRecord Request Templates for content-types other thanapplication/json.Optional PutRecords Request Templates for content-types other thanapplication/json.default software.amazon.awscdk.services.apigateway.RestApiPropsOptional user-provided props to override the default props for the API Gateway.default BooleanWhether to create recommended CloudWatch alarms.default software.amazon.awscdk.services.kinesis.StreamExisting instance of Kinesis Stream, providing both this andkinesisStreamPropswill cause an error.default software.amazon.awscdk.services.kinesis.StreamPropsOptional user-provided props to override the default props for the Kinesis Data Stream.default software.amazon.awscdk.services.logs.LogGroupPropsUser provided props to override the default props for the CloudWatchLogs LogGroup.default List<software.amazon.awscdk.services.apigateway.IntegrationResponse>Optional, custom API Gateway Integration Response for the PutRecord action.default software.amazon.awscdk.services.apigateway.ModelOptionsAPI Gateway request model for the PutRecord action.default StringAPI Gateway request template for the PutRecord action.default List<software.amazon.awscdk.services.apigateway.IntegrationResponse>Optional, custom API Gateway Integration Response for the PutRecord action.default software.amazon.awscdk.services.apigateway.ModelOptionsAPI Gateway request model for the PutRecords action.default StringAPI Gateway request template for the PutRecords action for the defaultapplication/jsoncontent-type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAdditionalPutRecordRequestTemplates
Optional PutRecord Request Templates for content-types other thanapplication/json.Use the
putRecordRequestTemplateproperty to set the request template for theapplication/jsoncontent-type.Default: - None
-
getAdditionalPutRecordsRequestTemplates
Optional PutRecords Request Templates for content-types other thanapplication/json.Use the
putRecordsRequestTemplateproperty to set the request template for theapplication/jsoncontent-type.Default: - None
-
getApiGatewayProps
@Nullable default software.amazon.awscdk.services.apigateway.RestApiProps getApiGatewayProps()Optional user-provided props to override the default props for the API Gateway.Default: - Default properties are used.
-
getCreateCloudWatchAlarms
Whether to create recommended CloudWatch alarms.Default: - Alarms are created
-
getExistingStreamObj
@Nullable default software.amazon.awscdk.services.kinesis.Stream getExistingStreamObj()Existing instance of Kinesis Stream, providing both this andkinesisStreamPropswill cause an error.Default: - None
-
getKinesisStreamProps
@Nullable default software.amazon.awscdk.services.kinesis.StreamProps getKinesisStreamProps()Optional user-provided props to override the default props for the Kinesis Data Stream.Default: - Default properties are used.
-
getLogGroupProps
@Nullable default software.amazon.awscdk.services.logs.LogGroupProps getLogGroupProps()User provided props to override the default props for the CloudWatchLogs LogGroup.Default: - Default props are used
-
getPutRecordIntegrationResponses
@Nullable default List<software.amazon.awscdk.services.apigateway.IntegrationResponse> getPutRecordIntegrationResponses()Optional, custom API Gateway Integration Response for the PutRecord action.Default: - [{statusCode:"200"},{statusCode:"500",responseTemplates:{"text/html":"Error"},selectionPattern:"500"}]
-
getPutRecordRequestModel
@Nullable default software.amazon.awscdk.services.apigateway.ModelOptions getPutRecordRequestModel()API Gateway request model for the PutRecord action.If not provided, a default one will be created.
Default: - {"$schema":"http://json-schema.org/draft-04/schema#","title":"PutRecord proxy single-record payload","type":"object", "required":["data","partitionKey"],"properties":{"data":{"type":"string"},"partitionKey":{"type":"string"}}}
-
getPutRecordRequestTemplate
API Gateway request template for the PutRecord action.If not provided, a default one will be used.
Default: - { "StreamName": "${this.kinesisStream.streamName}", "Data": "$util.base64Encode($input.json('$.data'))", "PartitionKey": "$input.path('$.partitionKey')" }
-
getPutRecordsIntegrationResponses
@Nullable default List<software.amazon.awscdk.services.apigateway.IntegrationResponse> getPutRecordsIntegrationResponses()Optional, custom API Gateway Integration Response for the PutRecord action.Default: - [{statusCode:"200"},{statusCode:"500",responseTemplates:{"text/html":"Error"},selectionPattern:"500"}]
-
getPutRecordsRequestModel
@Nullable default software.amazon.awscdk.services.apigateway.ModelOptions getPutRecordsRequestModel()API Gateway request model for the PutRecords action.If not provided, a default one will be created.
Default: - {"$schema":"http://json-schema.org/draft-04/schema#","title":"PutRecords proxy payload data","type":"object","required":["records"], "properties":{"records":{"type":"array","items":{"type":"object", "required":["data","partitionKey"],"properties":{"data":{"type":"string"},"partitionKey":{"type":"string"}}}}}}
-
getPutRecordsRequestTemplate
API Gateway request template for the PutRecords action for the defaultapplication/jsoncontent-type.If not provided, a default one will be used.
Default: - { "StreamName": "${this.kinesisStream.streamName}", "Records": [ #foreach($elem in $input.path('$.records')) { "Data": "$util.base64Encode($elem.data)", "PartitionKey": "$elem.partitionKey"}#if($foreach.hasNext),#end #end ] }
-
builder
-