sts

package
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sts provides the data structures and logic necessary to interact with the AWS Security Token Service (STS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountID

func GetAccountID(ctx context.Context, cfg aws.Config) (*string, error)

GetAccountID retrieves the account ID of the credentials that are being leveraged in this session. It provides an easy way to determine the account ID of the caller which is used throughout methodaws to enrich various resources with the account ID.

func GetCallerArn

func GetCallerArn(ctx context.Context, cfg aws.Config) (*string, error)

GetCallerArn retrieves the ARN of the credentials that are being leveraged in this session. It provides an easy way to determine the ARN of the caller which is used throughout methodaws to enrich various resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL