AWS SDK for GoGo 语言版本的 AWS SDK
AWS SDK for Go 是 Go 语言版本的 AWS SDK,是亚马逊 Web 服务 API 的客户端开发包,支持所有 AWS 服务。
示例代码:
import "github.com/awslabs/aws-sdk-go/aws" import "github.com/awslabs/aws-sdk-go/gen/ec2" creds := aws.Creds(accessKey, secretKey, "") cli := ec2.New(creds, "us-west-2", nil) resp, err := cli.DescribeInstances(nil) if err != nil { panic(err) } fmt.Println(resp.Reservations)
支持的服务包括:
-
AutoScaling
-
CloudFormation
-
CloudFront
-
CloudHSM
-
CloudSearch
-
CloudSearchdomain
-
CloudTrail
-
CloudWatch Metrics
-
CloudWatch Logs
-
CodeDeploy
-
Cognito Identity
-
Cognito Sync
-
Config
-
Data Pipeline
-
Direct Connect
-
DynamoDB
-
EC2
-
EC2 Container Service
-
Elasticache
-
Elastic Beanstalk
-
Elastic Transcoder
-
ELB
-
EMR
-
Glacier
-
IAM
-
Import/Export
-
Kinesis
-
Key Management Service
-
Lambda
-
OpsWorks
-
RDS
-
RedShift
-
Route53
-
Route53 Domains
-
S3
-
SimpleDB
-
Simple Email Service
-
SNS
-
SQS
-
Storage Gateway
-
STS
-
Support
-
SWF
评论