Registry /
cloud / aws-aws-sdk-go-v2-service-elasticsearchservice
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
elasticsearchservice
✓ github.com/aws/aws-sdk-go-v2/service/elasticsearchservice
List Elasticsearch domains using the AWS SDK.
package main
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/elasticsearchservice"
)
func main() {
cfg, err := config.LoadDefaultConfig(context.TODO())
if err != nil {
fmt.Println(err)
return
}
client := elasticsearchservice.NewFromConfig(cfg)
output, err := client.ListDomainNames(context.TODO(), &elasticsearchservice.ListDomainNamesInput{})
if err != nil {
fmt.Println(err)
return
}
fmt.Println(output.DomainNames)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.42.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.