AWS Kinesis client using NewFromConfig

I am trying to create a kinesis client using NewFromConfig. I want to send options to this method. Here is the code
options := kinesis.Options{
Credentials: cfg.Credentials,
Region: “us-east-1”,
kinesisSvc := kinesis.NewFromConfig(cfg, &options)

I am getting error
cannot use &options (type “…aws-sdk-go-v2/service/kinesis”.Options) as type func("…aws-sdk-go-v2/service/kinesis".Options) in argument to “

I am totally new to Golang. Can someone help me here?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.