Registry / cloud / aws-aws-sdk-go-v2-service-ec2

aws-aws-sdk-go-v2-service-ec2

JSON →
library1.196.0gogounverified

Package ec2 provides the API client, operations, and parameter types for Amazon Elastic Compute Cloud.

go get github.com/aws/aws-sdk-go-v2/service/ec2
INSTALL
IMPORT
SIG · AWS-AWS-SDK-GO-V2-
A
aws-aws-sdk-go-v2-service-ec2
cloudgov1.196.0
harness data pending
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.

ec2
github.com/aws/aws-sdk-go-v2/service/ec2

Lists all AWS EC2 regions using the SDK client.

package main import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/ec2" ) func main() { client := ec2.New(ec2.Options{}) output, err := client.DescribeRegions(context.TODO(), &ec2.DescribeRegionsInput{}) if err != nil { fmt.Println(err) return } fmt.Println(output.Regions) }
Debug
Known issues
breakingThe AWS SDK Go v2 has breaking changes from v1; ensure you use the correct import paths and API.
fix
Refer to the migration guide from v1 to v2.
affects: >=1.0.0
Upgrade
Version history
1.196.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
Resources
aws-aws-sdk-go-v2-service-ec2 — go get aws-aws-sdk-go-v2-service-ec2 · libregistry