# StreamConsumerAttributes

A reference to a StreamConsumer, which can be imported using `StreamConsumer.fromStreamConsumerAttributes`.

Used as argument in: [StreamConsumer.fromStreamConsumerAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.StreamConsumer.html#fromstreamconsumerattributes)

- Source: [`aws-kinesis/lib/stream-consumer.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-kinesis/lib/stream-consumer.ts#L148)
- Type last changed: v2.180.0 · 21 Feb 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesis as kinesis } from 'aws-cdk-lib';
const streamConsumerAttributes: kinesis.StreamConsumerAttributes = {
  streamConsumerArn: 'streamConsumerArn',
};
```

Python:

```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_kinesis as kinesis

stream_consumer_attributes = kinesis.StreamConsumerAttributes(
    stream_consumer_arn="streamConsumerArn"
)
```

Java:

```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.kinesis.*;

StreamConsumerAttributes streamConsumerAttributes = StreamConsumerAttributes.builder()
        .streamConsumerArn("streamConsumerArn")
        .build();
```

C# / .NET:

```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.Kinesis;

var streamConsumerAttributes = new StreamConsumerAttributes {
    StreamConsumerArn = "streamConsumerArn"
};
```

Golang:

```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"

streamConsumerAttributes := &StreamConsumerAttributes{
	StreamConsumerArn: jsii.String("streamConsumerArn"),
}
```

## Properties

- `streamConsumerArn`: string (required) — The Amazon Resource Name (ARN) of the stream consumer.
