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 “github.com/aws/aws-sdk-go-v2/service/kinesis”
.NewFromConfig
I am totally new to Golang. Can someone help me here?