Trying to get attributes for an AWS SQS queue. I am just starting to use golang sdk v2. I am getting the following error during compile:
cannot use *string{…} (type *string) as type “github.com/aws/aws-sdk-go-v2/service/sqs/types”.QueueAttributeName in field value
Code being executed is:
params := &sqs.GetQueueAttributesInput{
QueueUrl: aws.String(queueUrl[i]),
AttributeNames: []*string{
aws.String("QueueArn"),
},
}
resp, err := client.GetQueueAttributes(context.TODO(), params)
Is this a golang aws sdk v1/v2 issue? Any ideas on how to fix this? Any help would be greatly appreciated.