PipeSourceParametersProperty Struct
The parameters required to set up a source for your pipe.
| 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 pipeSourceParametersProperty: pipes.CfnPipe.PipeSourceParametersProperty = {
activeMqBrokerParameters: {
credentials: {
basicAuth: 'basicAuth',
},
queueName: 'queueName',
// the properties below are optional
batchSize: 123,
maximumBatchingWindowInSeconds: 123,
},
dynamoDbStreamParameters: {
startingPosition: 'startingPosition',
// the properties below are optional
batchSize: 123,
deadLetterConfig: {
arn: 'arn',
},
maximumBatchingWindowInSeconds: 123,
maximumRecordAgeInSeconds: 123,
maximumRetryAttempts: 123,
onPartialBatchItemFailure: 'onPartialBatchItemFailure',
parallelizationFactor: 123,
},
filterCriteria: {
filters: [{
pattern: 'pattern',
}],
},
kinesisStreamParameters: {
startingPosition: 'startingPosition',
// the properties below are optional
batchSize: 123,
deadLetterConfig: {
arn: 'arn',
},
maximumBatchingWindowInSeconds: 123,
maximumRecordAgeInSeconds: 123,
maximumRetryAttempts: 123,
onPartialBatchItemFailure: 'onPartialBatchItemFailure',
parallelizationFactor: 123,
startingPositionTimestamp: 'startingPositionTimestamp',
},
managedStreamingKafkaParameters: {
topicName: 'topicName',
// the properties below are optional
batchSize: 123,
consumerGroupId: 'consumerGroupId',
credentials: {
clientCertificateTlsAuth: 'clientCertificateTlsAuth',
saslScram512Auth: 'saslScram512Auth',
},
maximumBatchingWindowInSeconds: 123,
startingPosition: 'startingPosition',
},
rabbitMqBrokerParameters: {
credentials: {
basicAuth: 'basicAuth',
},
queueName: 'queueName',
// the properties below are optional
batchSize: 123,
maximumBatchingWindowInSeconds: 123,
virtualHost: 'virtualHost',
},
selfManagedKafkaParameters: {
topicName: 'topicName',
// the properties below are optional
additionalBootstrapServers: ['additionalBootstrapServers'],
batchSize: 123,
consumerGroupId: 'consumerGroupId',
credentials: {
basicAuth: 'basicAuth',
clientCertificateTlsAuth: 'clientCertificateTlsAuth',
saslScram256Auth: 'saslScram256Auth',
saslScram512Auth: 'saslScram512Auth',
},
maximumBatchingWindowInSeconds: 123,
serverRootCaCertificate: 'serverRootCaCertificate',
startingPosition: 'startingPosition',
vpc: {
securityGroup: ['securityGroup'],
subnets: ['subnets'],
},
},
sqsQueueParameters: {
batchSize: 123,
maximumBatchingWindowInSeconds: 123,
},
};
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_parameters_property = pipes.CfnPipe.PipeSourceParametersProperty(
active_mq_broker_parameters=pipes.CfnPipe.PipeSourceActiveMQBrokerParametersProperty(
credentials=pipes.CfnPipe.MQBrokerAccessCredentialsProperty(
basic_auth="basicAuth"
),
queue_name="queueName",
# the properties below are optional
batch_size=123,
maximum_batching_window_in_seconds=123
),
dynamo_db_stream_parameters=pipes.CfnPipe.PipeSourceDynamoDBStreamParametersProperty(
starting_position="startingPosition",
# the properties below are optional
batch_size=123,
dead_letter_config=pipes.CfnPipe.DeadLetterConfigProperty(
arn="arn"
),
maximum_batching_window_in_seconds=123,
maximum_record_age_in_seconds=123,
maximum_retry_attempts=123,
on_partial_batch_item_failure="onPartialBatchItemFailure",
parallelization_factor=123
),
filter_criteria=pipes.CfnPipe.FilterCriteriaProperty(
filters=[pipes.CfnPipe.FilterProperty(
pattern="pattern"
)]
),
kinesis_stream_parameters=pipes.CfnPipe.PipeSourceKinesisStreamParametersProperty(
starting_position="startingPosition",
# the properties below are optional
batch_size=123,
dead_letter_config=pipes.CfnPipe.DeadLetterConfigProperty(
arn="arn"
),
maximum_batching_window_in_seconds=123,
maximum_record_age_in_seconds=123,
maximum_retry_attempts=123,
on_partial_batch_item_failure="onPartialBatchItemFailure",
parallelization_factor=123,
starting_position_timestamp="startingPositionTimestamp"
),
managed_streaming_kafka_parameters=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"
),
rabbit_mq_broker_parameters=pipes.CfnPipe.PipeSourceRabbitMQBrokerParametersProperty(
credentials=pipes.CfnPipe.MQBrokerAccessCredentialsProperty(
basic_auth="basicAuth"
),
queue_name="queueName",
# the properties below are optional
batch_size=123,
maximum_batching_window_in_seconds=123,
virtual_host="virtualHost"
),
self_managed_kafka_parameters=pipes.CfnPipe.PipeSourceSelfManagedKafkaParametersProperty(
topic_name="topicName",
# the properties below are optional
additional_bootstrap_servers=["additionalBootstrapServers"],
batch_size=123,
consumer_group_id="consumerGroupId",
credentials=pipes.CfnPipe.SelfManagedKafkaAccessConfigurationCredentialsProperty(
basic_auth="basicAuth",
client_certificate_tls_auth="clientCertificateTlsAuth",
sasl_scram256_auth="saslScram256Auth",
sasl_scram512_auth="saslScram512Auth"
),
maximum_batching_window_in_seconds=123,
server_root_ca_certificate="serverRootCaCertificate",
starting_position="startingPosition",
vpc=pipes.CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty(
security_group=["securityGroup"],
subnets=["subnets"]
)
),
sqs_queue_parameters=pipes.CfnPipe.PipeSourceSqsQueueParametersProperty(
batch_size=123,
maximum_batching_window_in_seconds=123
)
)
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.*;
PipeSourceParametersProperty pipeSourceParametersProperty = PipeSourceParametersProperty.builder()
.activeMqBrokerParameters(PipeSourceActiveMQBrokerParametersProperty.builder()
.credentials(MQBrokerAccessCredentialsProperty.builder()
.basicAuth("basicAuth")
.build())
.queueName("queueName")
// the properties below are optional
.batchSize(123)
.maximumBatchingWindowInSeconds(123)
.build())
.dynamoDbStreamParameters(PipeSourceDynamoDBStreamParametersProperty.builder()
.startingPosition("startingPosition")
// the properties below are optional
.batchSize(123)
.deadLetterConfig(DeadLetterConfigProperty.builder()
.arn("arn")
.build())
.maximumBatchingWindowInSeconds(123)
.maximumRecordAgeInSeconds(123)
.maximumRetryAttempts(123)
.onPartialBatchItemFailure("onPartialBatchItemFailure")
.parallelizationFactor(123)
.build())
.filterCriteria(FilterCriteriaProperty.builder()
.filters(List.of(FilterProperty.builder()
.pattern("pattern")
.build()))
.build())
.kinesisStreamParameters(PipeSourceKinesisStreamParametersProperty.builder()
.startingPosition("startingPosition")
// the properties below are optional
.batchSize(123)
.deadLetterConfig(DeadLetterConfigProperty.builder()
.arn("arn")
.build())
.maximumBatchingWindowInSeconds(123)
.maximumRecordAgeInSeconds(123)
.maximumRetryAttempts(123)
.onPartialBatchItemFailure("onPartialBatchItemFailure")
.parallelizationFactor(123)
.startingPositionTimestamp("startingPositionTimestamp")
.build())
.managedStreamingKafkaParameters(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())
.rabbitMqBrokerParameters(PipeSourceRabbitMQBrokerParametersProperty.builder()
.credentials(MQBrokerAccessCredentialsProperty.builder()
.basicAuth("basicAuth")
.build())
.queueName("queueName")
// the properties below are optional
.batchSize(123)
.maximumBatchingWindowInSeconds(123)
.virtualHost("virtualHost")
.build())
.selfManagedKafkaParameters(PipeSourceSelfManagedKafkaParametersProperty.builder()
.topicName("topicName")
// the properties below are optional
.additionalBootstrapServers(List.of("additionalBootstrapServers"))
.batchSize(123)
.consumerGroupId("consumerGroupId")
.credentials(SelfManagedKafkaAccessConfigurationCredentialsProperty.builder()
.basicAuth("basicAuth")
.clientCertificateTlsAuth("clientCertificateTlsAuth")
.saslScram256Auth("saslScram256Auth")
.saslScram512Auth("saslScram512Auth")
.build())
.maximumBatchingWindowInSeconds(123)
.serverRootCaCertificate("serverRootCaCertificate")
.startingPosition("startingPosition")
.vpc(SelfManagedKafkaAccessConfigurationVpcProperty.builder()
.securityGroup(List.of("securityGroup"))
.subnets(List.of("subnets"))
.build())
.build())
.sqsQueueParameters(PipeSourceSqsQueueParametersProperty.builder()
.batchSize(123)
.maximumBatchingWindowInSeconds(123)
.build())
.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 pipeSourceParametersProperty = new PipeSourceParametersProperty {
ActiveMqBrokerParameters = new PipeSourceActiveMQBrokerParametersProperty {
Credentials = new MQBrokerAccessCredentialsProperty {
BasicAuth = "basicAuth"
},
QueueName = "queueName",
// the properties below are optional
BatchSize = 123,
MaximumBatchingWindowInSeconds = 123
},
DynamoDbStreamParameters = new PipeSourceDynamoDBStreamParametersProperty {
StartingPosition = "startingPosition",
// the properties below are optional
BatchSize = 123,
DeadLetterConfig = new DeadLetterConfigProperty {
Arn = "arn"
},
MaximumBatchingWindowInSeconds = 123,
MaximumRecordAgeInSeconds = 123,
MaximumRetryAttempts = 123,
OnPartialBatchItemFailure = "onPartialBatchItemFailure",
ParallelizationFactor = 123
},
FilterCriteria = new FilterCriteriaProperty {
Filters = new [] { new FilterProperty {
Pattern = "pattern"
} }
},
KinesisStreamParameters = new PipeSourceKinesisStreamParametersProperty {
StartingPosition = "startingPosition",
// the properties below are optional
BatchSize = 123,
DeadLetterConfig = new DeadLetterConfigProperty {
Arn = "arn"
},
MaximumBatchingWindowInSeconds = 123,
MaximumRecordAgeInSeconds = 123,
MaximumRetryAttempts = 123,
OnPartialBatchItemFailure = "onPartialBatchItemFailure",
ParallelizationFactor = 123,
StartingPositionTimestamp = "startingPositionTimestamp"
},
ManagedStreamingKafkaParameters = new PipeSourceManagedStreamingKafkaParametersProperty {
TopicName = "topicName",
// the properties below are optional
BatchSize = 123,
ConsumerGroupId = "consumerGroupId",
Credentials = new MSKAccessCredentialsProperty {
ClientCertificateTlsAuth = "clientCertificateTlsAuth",
SaslScram512Auth = "saslScram512Auth"
},
MaximumBatchingWindowInSeconds = 123,
StartingPosition = "startingPosition"
},
RabbitMqBrokerParameters = new PipeSourceRabbitMQBrokerParametersProperty {
Credentials = new MQBrokerAccessCredentialsProperty {
BasicAuth = "basicAuth"
},
QueueName = "queueName",
// the properties below are optional
BatchSize = 123,
MaximumBatchingWindowInSeconds = 123,
VirtualHost = "virtualHost"
},
SelfManagedKafkaParameters = new PipeSourceSelfManagedKafkaParametersProperty {
TopicName = "topicName",
// the properties below are optional
AdditionalBootstrapServers = new [] { "additionalBootstrapServers" },
BatchSize = 123,
ConsumerGroupId = "consumerGroupId",
Credentials = new SelfManagedKafkaAccessConfigurationCredentialsProperty {
BasicAuth = "basicAuth",
ClientCertificateTlsAuth = "clientCertificateTlsAuth",
SaslScram256Auth = "saslScram256Auth",
SaslScram512Auth = "saslScram512Auth"
},
MaximumBatchingWindowInSeconds = 123,
ServerRootCaCertificate = "serverRootCaCertificate",
StartingPosition = "startingPosition",
Vpc = new SelfManagedKafkaAccessConfigurationVpcProperty {
SecurityGroup = new [] { "securityGroup" },
Subnets = new [] { "subnets" }
}
},
SqsQueueParameters = new PipeSourceSqsQueueParametersProperty {
BatchSize = 123,
MaximumBatchingWindowInSeconds = 123
}
};
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"
pipeSourceParametersProperty := &PipeSourceParametersProperty{
ActiveMqBrokerParameters: &PipeSourceActiveMQBrokerParametersProperty{
Credentials: &MQBrokerAccessCredentialsProperty{
BasicAuth: jsii.String("basicAuth"),
},
QueueName: jsii.String("queueName"),
// the properties below are optional
BatchSize: jsii.Number(123),
MaximumBatchingWindowInSeconds: jsii.Number(123),
},
DynamoDbStreamParameters: &PipeSourceDynamoDBStreamParametersProperty{
StartingPosition: jsii.String("startingPosition"),
// the properties below are optional
BatchSize: jsii.Number(123),
DeadLetterConfig: &DeadLetterConfigProperty{
Arn: jsii.String("arn"),
},
MaximumBatchingWindowInSeconds: jsii.Number(123),
MaximumRecordAgeInSeconds: jsii.Number(123),
MaximumRetryAttempts: jsii.Number(123),
OnPartialBatchItemFailure: jsii.String("onPartialBatchItemFailure"),
ParallelizationFactor: jsii.Number(123),
},
FilterCriteria: &FilterCriteriaProperty{
Filters: []interface{}{
&FilterProperty{
Pattern: jsii.String("pattern"),
},
},
},
KinesisStreamParameters: &PipeSourceKinesisStreamParametersProperty{
StartingPosition: jsii.String("startingPosition"),
// the properties below are optional
BatchSize: jsii.Number(123),
DeadLetterConfig: &DeadLetterConfigProperty{
Arn: jsii.String("arn"),
},
MaximumBatchingWindowInSeconds: jsii.Number(123),
MaximumRecordAgeInSeconds: jsii.Number(123),
MaximumRetryAttempts: jsii.Number(123),
OnPartialBatchItemFailure: jsii.String("onPartialBatchItemFailure"),
ParallelizationFactor: jsii.Number(123),
StartingPositionTimestamp: jsii.String("startingPositionTimestamp"),
},
ManagedStreamingKafkaParameters: &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"),
},
RabbitMqBrokerParameters: &PipeSourceRabbitMQBrokerParametersProperty{
Credentials: &MQBrokerAccessCredentialsProperty{
BasicAuth: jsii.String("basicAuth"),
},
QueueName: jsii.String("queueName"),
// the properties below are optional
BatchSize: jsii.Number(123),
MaximumBatchingWindowInSeconds: jsii.Number(123),
VirtualHost: jsii.String("virtualHost"),
},
SelfManagedKafkaParameters: &PipeSourceSelfManagedKafkaParametersProperty{
TopicName: jsii.String("topicName"),
// the properties below are optional
AdditionalBootstrapServers: []*string{
jsii.String("additionalBootstrapServers"),
},
BatchSize: jsii.Number(123),
ConsumerGroupId: jsii.String("consumerGroupId"),
Credentials: &SelfManagedKafkaAccessConfigurationCredentialsProperty{
BasicAuth: jsii.String("basicAuth"),
ClientCertificateTlsAuth: jsii.String("clientCertificateTlsAuth"),
SaslScram256Auth: jsii.String("saslScram256Auth"),
SaslScram512Auth: jsii.String("saslScram512Auth"),
},
MaximumBatchingWindowInSeconds: jsii.Number(123),
ServerRootCaCertificate: jsii.String("serverRootCaCertificate"),
StartingPosition: jsii.String("startingPosition"),
Vpc: &SelfManagedKafkaAccessConfigurationVpcProperty{
SecurityGroup: []*string{
jsii.String("securityGroup"),
},
Subnets: []*string{
jsii.String("subnets"),
},
},
},
SqsQueueParameters: &PipeSourceSqsQueueParametersProperty{
BatchSize: jsii.Number(123),
MaximumBatchingWindowInSeconds: jsii.Number(123),
},
}
Properties
activeMqBrokerParametersoptionalIResolvable | CfnPipe.active_mq_broker_parametersoptionaltyping.Union[IResolvable, PipeSourceActiveMQBrokerParametersProperty]activeMqBrokerParametersoptionalIResolvableActiveMqBrokerParametersoptionalIResolvableActiveMqBrokerParametersoptionalinterface{} #The parameters for using an Active MQ broker as a source.
dynamoDbStreamParametersoptionalIResolvable | CfnPipe.dynamo_db_stream_parametersoptionaltyping.Union[IResolvable, PipeSourceDynamoDBStreamParametersProperty]dynamoDbStreamParametersoptionalIResolvableDynamoDbStreamParametersoptionalIResolvableDynamoDbStreamParametersoptionalinterface{} #The parameters for using a DynamoDB stream as a source.
filterCriteriaoptionalIResolvable | CfnPipe.FilterCriteriaPropertyfilter_criteriaoptionaltyping.Union[IResolvable, FilterCriteriaProperty]filterCriteriaoptionalIResolvableFilterCriteriaoptionalIResolvableFilterCriteriaoptionalinterface{} #The collection of event patterns used to filter events.
notes
To remove a filter, specify a FilterCriteria object with an empty array of Filter objects.
For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .
kinesisStreamParametersoptionalIResolvable | CfnPipe.kinesis_stream_parametersoptionaltyping.Union[IResolvable, PipeSourceKinesisStreamParametersProperty]kinesisStreamParametersoptionalIResolvableKinesisStreamParametersoptionalIResolvableKinesisStreamParametersoptionalinterface{} #The parameters for using a Kinesis stream as a source.
managedStreamingKafkaParametersoptionalIResolvable | CfnPipe.managed_streaming_kafka_parametersoptionaltyping.Union[IResolvable, PipeSourceManagedStreamingKafkaParametersProperty]managedStreamingKafkaParametersoptionalIResolvableManagedStreamingKafkaParametersoptionalIResolvableManagedStreamingKafkaParametersoptionalinterface{} #The parameters for using an MSK stream as a source.
rabbitMqBrokerParametersoptionalIResolvable | CfnPipe.rabbit_mq_broker_parametersoptionaltyping.Union[IResolvable, PipeSourceRabbitMQBrokerParametersProperty]rabbitMqBrokerParametersoptionalIResolvableRabbitMqBrokerParametersoptionalIResolvableRabbitMqBrokerParametersoptionalinterface{} #The parameters for using a Rabbit MQ broker as a source.
selfManagedKafkaParametersoptionalIResolvable | CfnPipe.self_managed_kafka_parametersoptionaltyping.Union[IResolvable, PipeSourceSelfManagedKafkaParametersProperty]selfManagedKafkaParametersoptionalIResolvableSelfManagedKafkaParametersoptionalIResolvableSelfManagedKafkaParametersoptionalinterface{} #The parameters for using a self-managed Apache Kafka stream as a source.
notes
A self managed cluster refers to any Apache Kafka cluster not hosted by AWS . This includes both clusters you manage yourself, as well as those hosted by a third-party provider, such as Confluent Cloud , CloudKarafka , or Redpanda . For more information, see Apache Kafka streams as a source in the Amazon EventBridge User Guide .
sqsQueueParametersoptionalIResolvable | CfnPipe.sqs_queue_parametersoptionaltyping.Union[IResolvable, PipeSourceSqsQueueParametersProperty]sqsQueueParametersoptionalIResolvableSqsQueueParametersoptionalIResolvableSqsQueueParametersoptionalinterface{} #The parameters for using a Amazon SQS stream as a source.