PipeSourceManagedStreamingKafkaParametersProperty Struct
The parameters for using an MSK stream as a source.
| Source | |
|---|---|
| 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_pipes as pipes } from 'aws-cdk-lib';
const pipeSourceManagedStreamingKafkaParametersProperty: pipes.CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty = {
topicName: 'topicName',
// the properties below are optional
batchSize: 123,
consumerGroupId: 'consumerGroupId',
credentials: {
clientCertificateTlsAuth: 'clientCertificateTlsAuth',
saslScram512Auth: 'saslScram512Auth',
},
maximumBatchingWindowInSeconds: 123,
startingPosition: 'startingPosition',
};
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_pipes as pipes
pipe_source_managed_streaming_kafka_parameters_property = pipes.CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty(
topic_name="topicName",
# the properties below are optional
batch_size=123,
consumer_group_id="consumerGroupId",
credentials=pipes.CfnPipe.MSKAccessCredentialsProperty(
client_certificate_tls_auth="clientCertificateTlsAuth",
sasl_scram512_auth="saslScram512Auth"
),
maximum_batching_window_in_seconds=123,
starting_position="startingPosition"
)
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.pipes.*;
PipeSourceManagedStreamingKafkaParametersProperty pipeSourceManagedStreamingKafkaParametersProperty = PipeSourceManagedStreamingKafkaParametersProperty.builder()
.topicName("topicName")
// the properties below are optional
.batchSize(123)
.consumerGroupId("consumerGroupId")
.credentials(MSKAccessCredentialsProperty.builder()
.clientCertificateTlsAuth("clientCertificateTlsAuth")
.saslScram512Auth("saslScram512Auth")
.build())
.maximumBatchingWindowInSeconds(123)
.startingPosition("startingPosition")
.build();
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.Pipes;
var pipeSourceManagedStreamingKafkaParametersProperty = new PipeSourceManagedStreamingKafkaParametersProperty {
TopicName = "topicName",
// the properties below are optional
BatchSize = 123,
ConsumerGroupId = "consumerGroupId",
Credentials = new MSKAccessCredentialsProperty {
ClientCertificateTlsAuth = "clientCertificateTlsAuth",
SaslScram512Auth = "saslScram512Auth"
},
MaximumBatchingWindowInSeconds = 123,
StartingPosition = "startingPosition"
};
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"
pipeSourceManagedStreamingKafkaParametersProperty := &PipeSourceManagedStreamingKafkaParametersProperty{
TopicName: jsii.String("topicName"),
// the properties below are optional
BatchSize: jsii.Number(123),
ConsumerGroupId: jsii.String("consumerGroupId"),
Credentials: &MSKAccessCredentialsProperty{
ClientCertificateTlsAuth: jsii.String("clientCertificateTlsAuth"),
SaslScram512Auth: jsii.String("saslScram512Auth"),
},
MaximumBatchingWindowInSeconds: jsii.Number(123),
StartingPosition: jsii.String("startingPosition"),
}
Properties
batchSizeoptionalnumberbatch_sizeoptionalint | floatbatchSizeoptionalNumberBatchSizeoptionaldoubleBatchSizeoptional*float64 #The maximum number of records to include in each batch.
consumerGroupIdoptionalstringconsumer_group_idoptionalstrconsumerGroupIdoptionalStringConsumerGroupIdoptionalstringConsumerGroupIdoptional*string #The name of the destination queue to consume.
credentialsoptionalIResolvable | CfnPipe.credentialsoptionaltyping.Union[IResolvable, MSKAccessCredentialsProperty]credentialsoptionalIResolvableCredentialsoptionalIResolvableCredentialsoptionalinterface{} #The credentials needed to access the resource.
maximumBatchingWindowInSecondsoptionalnumbermaximum_batching_window_in_secondsoptionalint | floatmaximumBatchingWindowInSecondsoptionalNumberMaximumBatchingWindowInSecondsoptionaldoubleMaximumBatchingWindowInSecondsoptional*float64 #The maximum length of a time to wait for events.
startingPositionoptionalstringstarting_positionoptionalstrstartingPositionoptionalStringStartingPositionoptionalstringStartingPositionoptional*string #The position in a stream from which to start reading.
The name of the topic that the pipe will read from.