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

aws-aws-sdk-go-v2-service-sts

JSON →
library1.43.3gogounverified

Package sts provides the API client for AWS Security Token Service (STS) to request temporary, limited-privilege credentials.

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

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

Gets the caller's AWS account ID using STS.

package main import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/sts" ) func main() { cfg, _ := config.LoadDefaultConfig(context.TODO()) client := sts.NewFromConfig(cfg) output, _ := client.GetCallerIdentity(context.TODO(), &sts.GetCallerIdentityInput{}) fmt.Printf("Account: %s\n", *output.Account) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.43.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
42
Resources
aws-aws-sdk-go-v2-service-sts — go get aws-aws-sdk-go-v2-service-sts · libregistry